
/* =====================================================
   NEWTON SCHOOL HUACHO
   CSS PRINCIPAL COMPLETO
   Colores: azul, verde y blanco
===================================================== */


/* =====================================================
   1. CONFIGURACIÓN GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #10264d;
    background: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

.contenedor {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =====================================================
   2. HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: transparent;
    box-shadow: none;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.header-contenido {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =====================================================
   3. LOGO DEL HEADER
===================================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.logo-imagen {
    width: 68px;
    height: 68px;

    object-fit: contain;
}

.logo-nombre h2 {
    color: #10264d;

    font-size: 25px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 1px;
}

.logo-nombre span {
    display: block;

    margin-top: 6px;

    color: #68b237;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 7px;
}


/* =====================================================
   4. MENÚ DE NAVEGACIÓN
===================================================== */

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;
}

.menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 15px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.82);
    color: #10264d;

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Página activa antes de bajar */

.menu a.activo {
    background: rgba(255, 255, 255, 0.96);
    color: #0878d1;
}


/* Efecto hover */

.menu a:hover {
    background: #ffffff;
    color: #0878d1;

    transform: translateY(-2px);
}


/* Menú después de bajar */

.header.scrolled .menu a {
    background: #ffffff;
    color: #172842;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.header.scrolled .menu a:hover {
    background: #f4f9fd;
    color: #0878d1;
}

.header.scrolled .menu a.activo {
    background: #0878d1;
    color: #ffffff;
}

.header.scrolled .menu a.activo:hover {
    background: #075fa5;
    color: #ffffff;
}


/* =====================================================
   5. BOTÓN DEL MENÚ MÓVIL
===================================================== */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;
    padding: 9px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: none;
    border-radius: 10px;

    background: #0878d1;
    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 3px;

    background: #ffffff;
    border-radius: 3px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-toggle:hover {
    background: #075fa5;
}


/* =====================================================
   6. BANNER / CARRUSEL PRINCIPAL
===================================================== */

.banner-slider {
    position: relative;

    width: 100%;
    height: 500px;

    overflow: hidden;

    background: #ffffff;
}

.banner-slide {
    position: absolute;
    inset: 0;

    z-index: 1;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.banner-slide.activo {
    z-index: 2;

    opacity: 1;
    visibility: visible;
}

.banner-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =====================================================
   7. DESVANECIDO INFERIOR DEL BANNER
===================================================== */

.banner-slide::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 90px;

    background: linear-gradient(
        to bottom,
        rgba(101, 179, 50, 0) 0%,
        rgba(101, 179, 50, 0.05) 30%,
        rgba(101, 179, 50, 0.16) 65%,
        rgba(101, 179, 50, 0.28) 100%
    );

    pointer-events: none;
}


/* =====================================================
   8. OLA VERDE DEL BANNER
===================================================== */

.banner-slider::before {
    content: "";

    position: absolute;

    left: -3%;
    bottom: -38px;

    width: 106%;
    height: 115px;

    z-index: 6;

    background: #59b82f;

    clip-path: polygon(
        0% 42%,
        8% 52%,
        16% 57%,
        25% 52%,
        34% 42%,
        43% 35%,
        52% 38%,
        61% 47%,
        70% 55%,
        79% 52%,
        88% 40%,
        95% 34%,
        100% 39%,
        100% 100%,
        0% 100%
    );

    pointer-events: none;
}


/* Ola verde clara */

.banner-slider::after {
    content: "";

    position: absolute;

    left: -3%;
    bottom: -82px;

    width: 106%;
    height: 145px;

    z-index: 7;

    background: linear-gradient(
        to bottom,
        #a9dd78 0%,
        #b8e590 35%,
        #ccecad 65%,
        rgba(222, 244, 203, 0) 100%
    );

    clip-path: polygon(
        0% 34%,
        8% 27%,
        17% 25%,
        26% 30%,
        35% 39%,
        44% 45%,
        53% 43%,
        62% 35%,
        71% 29%,
        80% 31%,
        89% 39%,
        96% 43%,
        100% 40%,
        100% 100%,
        0% 100%
    );

    pointer-events: none;
}


/* =====================================================
   9. FLECHAS DEL BANNER
===================================================== */

.banner-flechas {
    position: absolute;

    right: 8%;
    bottom: 55px;

    z-index: 20;

    display: flex;
    gap: 12px;
}

.banner-flechas button {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #65b332;
    color: #ffffff;

    font-size: 28px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.banner-flechas button:hover {
    background: #0878d1;
    transform: scale(1.08);
}


/* =====================================================
   10. HERO PRINCIPAL
===================================================== */

.hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: linear-gradient(
        to bottom,
        #c7eba7 0%,
        #d7f0bd 6%,
        #e4f5d3 12%,
        #eff9e8 19%,
        #f7fcf4 27%,
        #ffffff 38%,
        #ffffff 65%,
        #f4fbed 100%
    );
}


/* Brillo suave del fondo */

.hero::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 250px;

    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(101, 179, 50, 0.16),
        rgba(101, 179, 50, 0.05) 45%,
        transparent 75%
    );

    pointer-events: none;
}


/* Contenido principal */

.hero-contenido {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 0.95fr 1.05fr;

    align-items: center;
    gap: 70px;

    padding-top: 100px;
    padding-bottom: 70px;
}


/* =====================================================
   11. TEXTO DEL HERO
===================================================== */

.hero-texto {
    position: relative;
    z-index: 5;
}

.subtitulo {
    margin-bottom: 24px;

    color: #0873c9;

    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    margin-bottom: 28px;

    color: #10264d;

    font-size: clamp(48px, 5vw, 76px);
    font-weight: 800;

    line-height: 1.04;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: #65b332;
}

.descripcion {
    max-width: 620px;

    margin-bottom: 35px;

    color: #536984;

    font-size: 17px;
    line-height: 1.8;
}


/* =====================================================
   12. BOTONES DEL HERO
===================================================== */

.hero-botones {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 15px;
}

.btn-principal,
.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 25px;

    border: 2px solid #0878d1;
    border-radius: 30px;

    background: #ffffff;
    color: #0878d1;

    font-size: 14px;
    font-weight: bold;
    text-align: center;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-principal:hover,
.btn-secundario:hover {
    background: #0878d1;
    color: #ffffff;

    transform: translateY(-4px);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   13. IMAGEN DEL HERO
===================================================== */

.hero-imagen {
    position: relative;

    min-width: 0;
    min-height: 530px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Forma decorativa de fondo */

.forma-fondo {
    position: absolute;

    width: min(510px, 95%);
    height: 480px;

    background: #e4f3fc;

    border-radius: 55% 45% 50% 45% / 45% 55% 45% 55%;

    transform: rotate(-8deg);

    z-index: 1;
}


/* Imagen */

.imagen-contenedor {
    position: relative;
    z-index: 2;

    width: min(530px, 100%);
    height: 480px;

    overflow: hidden;

    border-radius: 48% 52% 45% 55% / 45% 45% 55% 55%;

    box-shadow: 0 20px 50px rgba(15, 54, 92, 0.12);
}

.imagen-contenedor img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =====================================================
   14. DECORACIONES DEL HERO
===================================================== */

.decoracion {
    position: absolute;
    z-index: 4;

    border-radius: 20px;
}

.decoracion-azul {
    top: 65px;
    left: 70px;

    width: 17px;
    height: 42px;

    background: #0873c9;

    transform: rotate(-55deg);
}

.decoracion-verde {
    top: 40px;
    left: 110px;

    width: 17px;
    height: 42px;

    background: #69b832;

    transform: rotate(-35deg);
}


/* =====================================================
   15. MENSAJE FLOTANTE DEL HERO
===================================================== */

.mensaje-flotante {
    position: absolute;
    z-index: 5;

    left: 5px;
    bottom: 15px;

    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 300px;
    max-width: calc(100% - 10px);

    padding: 19px 22px;

    background: #ffffff;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
}

.mensaje-icono {
    flex-shrink: 0;
    font-size: 30px;
}

.mensaje-flotante strong {
    display: block;

    margin-bottom: 5px;

    color: #0873c9;
    font-size: 17px;
}

.mensaje-flotante span {
    color: #6b7b8f;
    font-size: 14px;
}


/* =====================================================
   16. FORMACIÓN INTEGRAL
===================================================== */

.formacion {
    padding: 70px 0 80px;

    background: #ffffff;

    overflow: hidden;
}

.formacion-titulo {
    margin-bottom: 12px;

    color: #0873c9;

    font-size: 42px;
    font-weight: 800;
    text-align: center;
}

.formacion-titulo span {
    color: #65b332;
}

.formacion-descripcion {
    max-width: 650px;

    margin: 0 auto 40px;

    color: #536984;

    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}


/* =====================================================
   17. CARRUSEL DE FORMACIÓN
===================================================== */

.carrusel {
    position: relative;

    display: flex;
    align-items: center;

    gap: 20px;
}

.carrusel-contenedor {
    min-width: 0;
    width: 100%;

    overflow: hidden;
}

.carrusel-pista {
    display: flex;
    align-items: stretch;

    gap: 22px;

    transition: transform 0.5s ease;
    will-change: transform;
}

.carrusel-item {
    flex: 0 0 calc((100% - 44px) / 3);

    min-width: 0;
    height: 280px;

    overflow: hidden;

    border-radius: 18px;

    background: #f4f9fd;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.carrusel-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.carrusel-item:hover img {
    transform: scale(1.05);
}


/* =====================================================
   18. FLECHAS DEL CARRUSEL
===================================================== */

.carrusel-flecha {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #0878d1;
    color: #ffffff;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.carrusel-flecha:hover {
    background: #65b332;
    transform: scale(1.08);
}


/* =====================================================
   19. PUNTOS DEL CARRUSEL
===================================================== */

.carrusel-puntos {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 30px;
}

.punto {
    width: 11px;
    height: 11px;

    padding: 0;

    border: 2px solid #0878d1;
    border-radius: 50%;

    background: #ffffff;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.punto.activo {
    width: 28px;
    border-radius: 10px;

    background: #0878d1;
}


/* =====================================================
   20. NUESTRA SEDE
===================================================== */

.sedes {
    padding: 70px 0 80px;

    background: #f4fbed;
}

.sedes-titulo {
    margin-bottom: 10px;

    color: #10264d;

    font-size: 42px;
    font-weight: 800;
    text-align: center;
}

.sedes-titulo span {
    color: #65b332;
}

.sedes-descripcion {
    margin-bottom: 40px;

    color: #536984;

    font-size: 16px;
    text-align: center;
}


/* =====================================================
   21. TARJETA DE LA SEDE
===================================================== */

.sede-unica {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 30px;

    background: #ffffff;

    border-radius: 18px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.sede-unica h3 {
    margin-bottom: 10px;

    color: #0873c9;
    font-size: 25px;
}

.sede-unica p {
    margin-bottom: 20px;

    color: #536984;
    font-size: 16px;
}


/* =====================================================
   22. MAPA
===================================================== */

.mapa {
    width: 100%;
    height: 400px;

    overflow: hidden;

    border-radius: 14px;
    background: #e4f3fc;
}

.mapa iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =====================================================
   23. FOOTER
===================================================== */

.footer {
    position: relative;

    margin-top: 0;
    padding-top: 95px;

    background: #65b332;
    color: #ffffff;
}


/* Onda blanca superior */

.footer-onda {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 55px;

    background: #ffffff;

    border-radius: 0 0 50% 50% / 0 0 100% 100%;

    pointer-events: none;
}


/* Contenido */

.footer-contenido {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr 1fr;

    gap: 55px;

    padding-bottom: 60px;
}


/* =====================================================
   24. COLUMNAS DEL FOOTER
===================================================== */

.footer-columna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.footer-columna h3 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 24px;
}

.footer-columna > a {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 15px;

    transition: opacity 0.3s ease;
}

.footer-columna > a:hover {
    opacity: 0.75;
}


/* =====================================================
   25. MARCA DEL FOOTER
===================================================== */

.footer-marca {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.footer-logo {
    width: 75px;
    height: 75px;

    object-fit: contain;

    background: transparent;
    border: none;
}

.footer-marca h2 {
    color: #ffffff;

    font-size: 34px;
    line-height: 1;
    letter-spacing: 1px;
}

.footer-marca span {
    display: block;

    margin-top: 7px;

    color: #ffffff;

    font-size: 14px;
    font-weight: bold;
    letter-spacing: 8px;
}


/* =====================================================
   26. DESCRIPCIÓN DEL FOOTER
===================================================== */

.footer-descripcion {
    max-width: 340px;

    margin-bottom: 25px;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.7;
}


/* =====================================================
   27. REDES SOCIALES
===================================================== */

.redes-sociales {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.red-social {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #65b332;

    font-size: 21px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.red-social:hover {
    transform: translateY(-4px);

    background: #f1f9ff;
    color: #0878d1;
}


/* =====================================================
   28. CONTACTO DEL FOOTER
===================================================== */

.contacto-item {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 18px;
}

.contacto-icono {
    flex-shrink: 0;

    width: 30px;

    color: #ffffff;

    font-size: 23px;
}

.contacto-item strong {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;
    font-size: 17px;
}

.contacto-item p {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* =====================================================
   29. BOTÓN FLOTANTE DE WHATSAPP
===================================================== */

.whatsapp-flotante {
    position: absolute;

    right: 35px;
    bottom: 85px;

    z-index: 50;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;
    color: #ffffff;

    font-size: 35px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.10);
    background: #1ebe5d;
}

.whatsapp-flotante i {
    color: #ffffff;
}


/* =====================================================
   30. COPYRIGHT
===================================================== */

.footer-copyright {
    padding: 20px;

    background: #559c28;

    text-align: center;
}

.footer-copyright p {
    color: #ffffff;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   31. TABLET
===================================================== */

@media (max-width: 1050px) {

    .header-contenido {
        gap: 12px;
    }

    .menu {
        gap: 4px;
    }

    .menu a {
        padding: 10px 9px;
        font-size: 12px;
    }

    .logo {
        gap: 8px;
    }

    .logo-imagen {
        width: 58px;
        height: 58px;
    }

    .logo-nombre h2 {
        font-size: 21px;
    }

    .logo-nombre span {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .hero-contenido {
        grid-template-columns: 1fr;
        gap: 35px;

        padding-top: 100px;

        text-align: center;
    }

    .hero-texto {
        max-width: 760px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(45px, 6vw, 65px);
    }

    .descripcion {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-botones {
        justify-content: center;
    }

    .hero-imagen {
        width: 100%;
        max-width: 650px;

        margin: 0 auto;
    }

    .decoracion-azul {
        left: 10%;
    }

    .decoracion-verde {
        left: 17%;
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}


/* =====================================================
   32. TABLET PEQUEÑA Y MENÚ MÓVIL
===================================================== */

@media (max-width: 750px) {

    .contenedor {
        width: 92%;
    }

    .header-contenido {
        min-height: 75px;
    }

    .logo-imagen {
        width: 52px;
        height: 52px;
    }

    .logo-nombre h2 {
        font-size: 20px;
    }

    .logo-nombre span {
        font-size: 10px;
        letter-spacing: 5px;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .menu {
        display: none;
    }

    /* El menú se abre mediante movil.js */

    .menu.abierto {
        position: absolute;

        top: 75px;
        left: 4%;
        right: 4%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 8px;
        padding: 15px;

        background: #ffffff;

        border: 1px solid #e6edf4;
        border-radius: 14px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .menu.abierto a,
    .header.scrolled .menu.abierto a {
        display: flex;
        justify-content: flex-start;

        padding: 13px 15px;

        border-radius: 8px;

        background: #f4f9fd;
        color: #10264d;

        font-size: 14px;

        box-shadow: none;

        transform: none;
    }

    .menu.abierto a.activo,
    .header.scrolled .menu.abierto a.activo {
        background: #0878d1;
        color: #ffffff;
    }

    .menu.abierto a:hover,
    .header.scrolled .menu.abierto a:hover {
        background: #e8f4ff;
        color: #0878d1;
    }

    .menu.abierto a.activo:hover,
    .header.scrolled .menu.abierto a.activo:hover {
        background: #075fa5;
        color: #ffffff;
    }


    /* Banner */

    .banner-slider {
        height: 330px;
    }

    .banner-slide img {
        object-position: center;
    }

    .banner-slider::before {
        bottom: -45px;
        height: 80px;
    }

    .banner-slider::after {
        bottom: -60px;
        height: 85px;
    }

    .banner-flechas {
        right: 20px;
        bottom: 45px;

        gap: 8px;
    }

    .banner-flechas button {
        width: 38px;
        height: 38px;

        font-size: 21px;
    }


    /* Hero */

    .hero {
        min-height: auto;
    }

    .hero-contenido {
        padding-top: 75px;
        padding-bottom: 55px;

        gap: 25px;
    }

    .subtitulo {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .hero h1 {
        margin-bottom: 20px;

        font-size: clamp(38px, 8vw, 48px);
        letter-spacing: -1px;
    }

    .descripcion {
        margin-bottom: 25px;

        font-size: 15px;
        line-height: 1.7;
    }

    .hero-botones {
        gap: 10px;
    }

    .btn-principal,
    .btn-secundario {
        padding: 13px 18px;
        font-size: 13px;
    }

    .hero-imagen {
        min-height: 400px;
    }

    .imagen-contenedor {
        width: 100%;
        max-width: 450px;
        height: 360px;
    }

    .forma-fondo {
        width: 90%;
        height: 350px;
    }

    .decoracion-azul {
        top: 35px;
        left: 10%;
    }

    .decoracion-verde {
        top: 15px;
        left: 19%;
    }

    .mensaje-flotante {
        left: 50%;
        bottom: 0;

        min-width: 0;
        width: min(320px, 95%);

        padding: 14px 16px;

        transform: translateX(-50%);
    }

    .mensaje-flotante strong {
        font-size: 15px;
    }

    .mensaje-flotante span {
        font-size: 12px;
    }


    /* Formación */

    .formacion {
        padding: 50px 0 60px;
    }

    .formacion-titulo {
        font-size: 32px;
    }

    .formacion-descripcion {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .carrusel {
        gap: 8px;
    }

    .carrusel-pista {
        gap: 15px;
    }

    .carrusel-item {
        flex: 0 0 100%;
        height: 260px;
    }

    .carrusel-flecha {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }

    .carrusel-puntos {
        margin-top: 22px;
    }


    /* Sede */

    .sedes {
        padding: 50px 0;
    }

    .sedes-titulo {
        font-size: 34px;
    }

    .sedes-descripcion {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .sede-unica {
        padding: 18px;
    }

    .sede-unica h3 {
        font-size: 22px;
    }

    .mapa {
        height: 300px;
    }


    /* Footer */

    .footer {
        padding-top: 80px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 35px;

        padding-bottom: 45px;
    }

    .footer-columna h3 {
        font-size: 22px;
    }

    .footer-logo {
        width: 65px;
        height: 65px;
    }

    .footer-marca h2 {
        font-size: 29px;
    }

    .footer-descripcion {
        max-width: 100%;
    }

    .whatsapp-flotante {
        position: fixed;

        right: 18px;
        bottom: 20px;

        width: 54px;
        height: 54px;

        font-size: 31px;
    }

    .footer-copyright {
        padding: 18px 60px 18px 18px;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}


/* =====================================================
   33. CELULARES PEQUEÑOS
===================================================== */

@media (max-width: 400px) {

    .logo {
        gap: 6px;
    }

    .logo-imagen {
        width: 44px;
        height: 44px;
    }

    .logo-nombre h2 {
        font-size: 17px;
    }

    .logo-nombre span {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .banner-slider {
        height: 270px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-imagen {
        min-height: 330px;
    }

    .imagen-contenedor {
        height: 290px;
    }

    .forma-fondo {
        height: 280px;
    }

    .mensaje-flotante {
        padding: 12px;
        gap: 10px;
    }

    .mensaje-icono {
        font-size: 25px;
    }

    .hero-botones {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-principal,
    .btn-secundario {
        width: 100%;
    }

    .carrusel-item {
        height: 220px;
    }

    .mapa {
        height: 250px;
    }

    .whatsapp-flotante {
        right: 14px;
        bottom: 14px;

        width: 50px;
        height: 50px;
    }
}


/* =====================================================
   34. ACCESIBILIDAD: MOVIMIENTO REDUCIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (min-width: 901px) {
    .header .header-contenido {
        width: 90%;
        max-width: none;
        margin-inline: auto;
        gap: 20px;
    }

    .header .menu {
        margin-left: auto;
        flex-shrink: 0;
        gap: 8px;
    }

    .header .menu a {
        padding: 12px 15px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .header .menu a,
    .header .menu a:hover,
    .header .menu a.activo,
    .header .menu a.activo:hover {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
    }
}

/* =====================================================
   GALERÍA DE MOMENTOS
===================================================== */

.galeria {
    padding: 66px 0 74px;
    background: #fff;
    text-align: center;
}

.galeria-entrada {
    padding: 54px 0;
    background: #f7fbfd;
    text-align: center;
}

.galeria-volver {
    display: inline-block;
    margin-top: 20px;
    color: #0873c9;
    font-weight: 700;
}

.galeria-etiqueta {
    margin-bottom: 8px;
    color: #0084a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.galeria-titulo {
    margin-bottom: 10px;
    color: #111;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
}

.galeria-titulo span {
    color: #f30c61;
}

.galeria-descripcion {
    max-width: 540px;
    margin: 0 auto 28px;
    color: #858585;
    font-size: 14px;
    line-height: 1.6;
}

.galeria-filtros {
    display: flex;
    max-width: 1100px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 30px;
    padding: 12px;
    background: linear-gradient(135deg, #0b3f91 0%, #1d63b7 100%);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
}

.galeria-filtro {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #edf0f3;
    color: #173b69;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(35, 76, 120, .08);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.galeria-filtro-icono {
    width: 20px;
    text-align: center;
    color: #1886d1;
    font-size: 19px;
}

.galeria-filtro.filtro-todo .galeria-filtro-icono {
    color: #ffffff;
}

.galeria-filtro-mas-grupo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.galeria-filtro[hidden] {
    display: none;
}

.galeria-filtro:hover,
.galeria-filtro.activo {
    background: #55b300;
    color: #ffffff;
    border-color: #55b300;
    transform: translateY(-1px);
}

.galeria-filtro:hover .galeria-filtro-icono,
.galeria-filtro.activo .galeria-filtro-icono {
    color: #ffffff;
}

.galeria-filtros-mas,
.galeria-filtros-menos {
    background: #ffffff;
    color: #173b69;
    border: 1px solid #55b300;
}

.galeria-filtros-mas .galeria-filtro-icono,
.galeria-filtros-menos .galeria-filtro-icono {
    color: #1886d1;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.galeria-albumes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.galeria-album[hidden] {
    display: none;
}

.galeria-album-titulo {
    margin: 0 0 14px;
    color: #17212b;
    font-size: 22px;
    font-weight: 700;
}

.galeria-ver-mas {
    display: block;
    margin: 18px auto 0;
    padding: 11px 26px;
    border: 0;
    border-radius: 999px;
    background: #00afd0;
    color: #071e2a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.galeria-ver-mas:hover {
    transform: translateY(-2px);
    background: #00c0df;
}

.galeria-ver-mas[hidden] {
    display: none;
}

.galeria-tarjeta {
    position: relative;
    display: block;
    height: 205px;
    overflow: hidden;
    border-radius: 17px;
    background: #edf4f7;
    box-shadow: 0 4px 10px rgba(15, 35, 55, .12);
    text-align: left;
}

.galeria-tarjeta[hidden] {
    display: none;
}

.galeria-cargar-mas,
.galeria-cargar-menos {
    margin-top: 24px;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: #00afd0;
    color: #071e2a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
    transition: transform .2s ease, background .2s ease;
}

.galeria-cargar-mas:hover,
.galeria-cargar-menos:hover {
    transform: translateY(-2px);
    background: #00c0df;
}

.galeria-cargar-mas[hidden],
.galeria-cargar-menos[hidden] {
    display: none;
}

.galeria-tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.galeria-miniatura-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.galeria-tarjeta:hover img {
    transform: scale(1.05);
}

.galeria-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 38px 14px 13px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.galeria-caption span {
    display: block;
    margin-bottom: 4px;
    color: #00c3e3;
    font-size: 9px;
    letter-spacing: .7px;
}

.galeria-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #00afd0;
    color: #fff;
    font-size: 17px;
}

.galeria-pie {
    margin: 30px 0 12px;
    color: #858585;
    font-size: 13px;
}

.galeria-boton {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 13px 25px;
    border-radius: 999px;
    background: #00afd0;
    color: #071e2a;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
    transition: transform .2s ease, background .2s ease;
}

.galeria-boton:hover {
    transform: translateY(-2px);
    background: #00c0df;
}

@media (max-width: 750px) {
    .galeria {
        padding: 52px 0 60px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .galeria-tarjeta {
        height: 180px;
    }

    .galeria-filtros {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        border-radius: 18px;
    }

    .galeria-filtro {
        padding-inline: 13px;
    }
}

@media (max-width: 420px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-tarjeta {
        height: 220px;
    }
}

.galeria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 15, 25, .92);
}

.galeria-lightbox.abierto {
    display: flex;
}

.galeria-lightbox-contenido {
    position: relative;
    display: flex;
    max-width: min(1100px, 100%);
    max-height: 100%;
    align-items: center;
    justify-content: center;
}

.galeria-lightbox-imagen {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    border-radius: 8px;
}

.galeria-lightbox-video {
    width: min(1100px, calc(100vw - 48px));
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.galeria-lightbox-video-local {
    width: min(1100px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border-radius: 8px;
    background: #000;
}

.galeria-lightbox-video[hidden],
.galeria-lightbox-video-local[hidden],
.galeria-lightbox-imagen[hidden] {
    display: none;
}

.galeria-lightbox-cerrar {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00afd0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .galeria-lightbox {
        padding: 16px;
    }

    .galeria-lightbox-imagen {
        max-height: calc(100vh - 32px);
    }

    .galeria-lightbox-video {
        width: calc(100vw - 32px);
    }

    .galeria-lightbox-video-local {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
    }

    .galeria-lightbox-cerrar {
        top: -14px;
        right: -8px;
    }
}
/* =====================================
   FONDO GENERAL - NEWTON SCHOOL
   ===================================== */

html {
    min-height: 100%;
    background: #F5FAFF;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            ellipse at 0% 18%,
            rgba(91, 177, 245, 0.18),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 100% 38%,
            rgba(101, 190, 52, 0.13),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 0% 75%,
            rgba(105, 190, 240, 0.15),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 100% 90%,
            rgba(102, 190, 48, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #EAF6FF 0%,
            #FFFFFF 35%,
            #F4FAFF 65%,
            #F3FAEC 100%
        );

    background-attachment: fixed;
}

/* Ondas decorativas institucionales */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse 75% 12% at 50% -5%,
            rgba(5, 65, 130, 0.13),
            transparent 75%
        ),
        radial-gradient(
            ellipse 65% 10% at 0% 42%,
            rgba(94, 190, 45, 0.12),
            transparent 75%
        ),
        radial-gradient(
            ellipse 70% 12% at 100% 68%,
            rgba(45, 148, 220, 0.11),
            transparent 75%
        ),
        radial-gradient(
            ellipse 80% 12% at 50% 105%,
            rgba(93, 184, 43, 0.15),
            transparent 75%
        );
}

/* Mantener el contenido por encima del fondo */
body > * {
    position: relative;
}

/* Fondo institucional visible en todas las secciones de la página inicial */
html,
body {
    background-color: transparent;
}

main,
main section,
.galeria,
.galeria-entrada,
.bienvenida,
.seccion {
    background: transparent !important;
}
