/* -------------------- RESET GENERAL -------------------- */
* {
    margin: 0;
    padding: 0;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* -------------------- ESTRUCTURA BASE -------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* -------------------- MAIN -------------------- */
#main {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* -------------------- PARTE 1 -------------------- */
.parte-1 {
    display: flex;
    height: auto;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(120deg, #1a6dcc 0%, #0d4a9e 100%);
    position: relative;
    min-height: 500px;
}

.parte-1 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 1;
}

.parte-1 h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 90%;
    z-index: 2;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .parte-1 h2 {
        font-size: 2.2rem;
        top: 50%;
        left: 50%;
    }
}

/* -------------------- PARTE 2 -------------------- */
.parte-2 {
    text-align: center;
    padding: 70px 30px;
    background-color: #fff;
}

.parte-2 h2 {
    font-size: 2.5rem;
    color: #1a6dcc;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.parte-2 h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
}

.parte-2 .texto p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.niveles {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.niveles>div {
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: all 0.9s ease;
    background: #fff;
    border-top: 5px solid #228B22;
}

.niveles img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tarjeta-texto {
    padding: 20px 15px;
    font-weight: 700;
    color: #0c0c0c;
    font-size: 1.3rem;
    background: #ffd900da;
}

.inicial {
    border-top-color: #ff9800;
}

.primaria {
    border-top-color: #4caf50;
}

.niveles>div:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.niveles>div:hover img {
    transform: scale(1.05);
}

/* -------------------- PARTE 3 (CLAVE PARA TI) -------------------- */
.parte-3 {
    background: linear-gradient(120deg, #e0f0ff 0%, #f0f8ff 100%);
    padding: 80px 20px;
}

.seccion-educativa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.imagenes {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-shrink: 0;
    perspective: 1000px;
}

.imagenes img {
    width: 300px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg) translateZ(0);
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

.imagenes img:last-child {
    transform: rotate(8deg) translateZ(0);
}

.imagenes:hover img:first-child {
    transform: rotate(-3deg) translateZ(0);
}

.imagenes:hover img:last-child {
    transform: rotate(5deg) translateZ(0);
}

.contenido {
    max-width: 600px;
    flex: 1;
    min-width: 280px;
}

.contenido h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #0d4a9e;
    position: relative;
    display: inline-block;
}

.contenido h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background: #ffd700;
    border-radius: 3px;
}

.contenido ul {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.8;
    margin-top: 30px;
}

.contenido ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contenido ul li:hover {
    transform: translateX(10px);
}

.contenido ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: #1a6dcc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* RESPONSIVE PARTE-3 */
@media (max-width: 768px) {
    .contenido h2 {
        font-size: 2.2rem;
    }

    .contenido ul {
        font-size: 1.1rem;
    }
}

/* -------------------- ASIDE -------------------- */
#aside {
    background-color: #fff;
}

.franja-inferior {
    background: linear-gradient(135deg, #1a6dcc 0%, #0d4a9e 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.franja-inferior::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.franja-inferior::after {
    content: "";
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.franja-inferior h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.franja-inferior p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.boton-reserva {
    background: #ffd700;
    color: #0d4a9e;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.boton-reserva:hover {
    background: #ffdf33;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parte-2,
.parte-3,
.franja-inferior {
    animation: fadeIn 1s ease-out;
}

/* Efectos de transición para imágenes */
.niveles img,
.imagenes img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Sombras más suaves */
.niveles>div,
.imagenes img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Mejor contraste para texto */
.contenido ul li,
.parte-2 .texto p {
    color: #2c3e50;
}


/* -------------------- whatsapp -------------------- */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-button:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Etiqueta emergente */
.whatsapp-button::after {
    content: "Comunícate con nosotros";
    position: absolute;
    top: -45px;
    right: 0;
    background: #075E54;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .whatsapp-button::after {
        font-size: 14px;
        top: -40px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .whatsapp-button::after {
        font-size: 12px;
        top: -35px;
        padding: 6px 10px;
        border-radius: 20px;
    }
}