﻿
.container-cards {
    display: flex;
    justify-content: center; /* Centra las tarjetas horizontalmente */
    /*flex-wrap: wrap;*/ /* Permite que las tarjetas pasen a otra línea si no caben */
    gap: 20px; /* Espacio entre tarjetas (reemplaza margin-right) */
    max-width: 1200px; /* Ancho máximo del contenedor */
    margin: 0 auto; /* Centra el contenedor en la página */
    border:black;
}
/* Reset básico para el efecto */
.class-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 5px solid;
}

    /*.class-card:hover {
        box-shadow: 6px 6px 0 black;
    }*/

.img-container {
    position: relative;
    overflow: hidden;
}

.class-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.class-card:hover img {
    transform: scale(1.05);
}

/* Estilo del wave - Versión mejorada */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='198'%3E%3Cpath fill='%2387CEEB' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z' transform='matrix(-1 0 0 1 1600 0)'/%3E%3C/svg%3E");
    background-size: 50% 100%; /* Añadido para mejor escalado */
    background-repeat: repeat-x; /* Fundamental para animación continua */
    transform: translateY(100%);
    transition: transform 0.7s ease-out;
    z-index: 2;
}

.class-card:hover .wave {
    transform: translateY(0);
    animation: waveAnimation 25s linear infinite;
    box-shadow: 6px 6px 0 black;
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1600px; /*100%*/
    }
}

.class-info {
    padding: 20px;
    position: relative;
    z-index: 3;
    background: #D2B48C;
    color:black;
}


.elegant-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .elegant-btn:hover {
        background: linear-gradient(135deg, #a777e3, #6e8efb);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .elegant-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .elegant-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .elegant-btn:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

/* Para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .container-cards {
        flex-direction: column; /* Apila las tarjetas verticalmente */
        align-items: center; /* Centra las tarjetas */
    }

    .class-card-interactive {
        width: 90% !important; /* Cada tarjeta ocupa casi todo el ancho */
        margin-bottom: 20px; /* Separación entre tarjetas */
        height: auto; /* Ajusta altura automáticamente si lo deseas */
    }

        .class-card-interactive .class-overlay img {
            margin-left: auto !important; /* Centra imagen dentro de la tarjeta */
            display: block;
        }
}

/*Efectos carusel -------------------------------------------------------------------*/
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.carousel-inner img {
    object-fit: cover;
    height: 100vh;
}

.contenido-superpuesto {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 8px black;
    padding-left: 5%;
    padding-right: 5%;
}

/*MODAL -------------------------------------------------------------------*/
/*.modal {
	display: none;*/ /* Oculto por defecto */
	/*position: fixed;
	z-index: 1000;
	left: 0;
	width: 100%;
	height: 80%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
    color:black;
}

.modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 20px;
	border-radius: 8px;
	width: 80%;
	max-width: 500px;
	position: relative;
}

.close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
}*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* pantalla completa */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    color: black;
}

.modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    /* Ajustes importantes */
    max-height: 90vh; /* no sobrepasa el alto de la pantalla */
    overflow-y: auto; /* scroll interno si el contenido es largo */
    box-sizing: border-box;
}
    .modal-content h2 {
        margin-bottom: 2px; /* antes era 20px o más por defecto */
    }

    .modal-content ul {
        margin-top: 0; /* elimina espacio extra entre h2 y ul */
    }
    .close {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}


/* -------------------------------SOL-GIRANDO------------------------------------*/
.contenedor-sol {
    display: flex;
    justify-content: center;
    margin-bottom: 10px; /* separa el sol del h2 */
}
.sol {
    width: 50px;
    height: 50px;
    animation: girar 4s linear infinite;
    transform-origin: center center;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* -------------------------------SOL-GIRANDO------------------------------------*/
