/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #10264d;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

.contenedor {
    width: min(1180px, 90%);
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    width: 100%;
    background: white;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow:
        0 3px 15px
        rgba(0, 0, 0, 0.05);
}

.header-contenido {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;
    align-items: center;

    gap: 12px;
}

.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;

    color: #68b237;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 7px;

    margin-top: 6px;
}



/* =====================================================
   4. MENÚ DE NAVEGACIÓN
   Diseño igual a la imagen de Newton School
===================================================== */

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Botones del menú */

.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 16px;
    border: none;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.90);
    color: #10264d;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;

    box-shadow: 0 3px 12px rgba(15, 42, 86, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Página activa */

.menu a.activo {
    background: rgba(255, 255, 255, 0.96);
    color: #0878d1;
}

/* Efecto al pasar el cursor */

.menu a:hover {
    background: #ffffff;
    color: #0878d1;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(15, 42, 86, 0.10);
}

/* Encabezado cuando la página baja */

.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: #ffffff;
    color: #0878d1;
}

.header.scrolled .menu a.activo:hover {
    background: #f4f9fd;
    color: #0878d1;
}



/* =====================================================
   PORTADA NOSOTROS
===================================================== */

.portada-nosotros {
    position: relative;

    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    margin-bottom: 0;

    background:
        radial-gradient(
            circle at 10% 25%,
            rgba(255, 216, 72, 0.35) 0 55px,
            transparent 57px
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(255, 255, 255, 0.16) 0 80px,
            transparent 82px
        ),

        linear-gradient(
            120deg,
            #0878d1 0%,
            #1596dd 45%,
            #65b332 100%
        );
}


/* DECORACIÓN SUPERIOR */

.portada-nosotros::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -100px;
    top: -150px;

    border-radius: 50%;

    border:
        35px solid
        rgba(255, 255, 255, 0.12);
}


/* ONDA INFERIOR */

.portada-nosotros::after {
    content: "";

    position: absolute;

    left: -5%;
    bottom: -68px;

    width: 110%;
    height: 110px;

    background: #f3faff;

    border-radius:
        50% 50% 0 0 /
        75% 75% 0 0;
}


/* TÍTULO NOSOTROS */

.portada-nosotros h1 {
    position: relative;

    z-index: 5;

    color: white;

    font-size: 48px;
    font-weight: 900;

    text-align: center;

    letter-spacing: -1px;

    margin-bottom: 25px;

    text-shadow:
        0 4px 10px
        rgba(0, 0, 0, 0.18);
}


/* PEQUEÑA LÍNEA AMARILLA */

.portada-nosotros h1::after {
    content: "";

    display: block;

    width: 75px;
    height: 6px;

    margin:
        14px auto 0;

    background: #ffd447;

    border-radius: 10px;
}


/* =====================================================
   NUESTRA HISTORIA
===================================================== */

.historia {
    position: relative;

    overflow: hidden;

    padding:
        80px 0 100px;

    background:
        linear-gradient(
            180deg,
            #f3faff 0%,
            #ffffff 50%,
            #f6fbed 100%
        );
}


/* DECORACIÓN IZQUIERDA */

.historia::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    left: -130px;
    top: 130px;

    border-radius: 50%;

    background:
        rgba(8, 120, 209, 0.07);
}


/* DECORACIÓN DERECHA */

.historia::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -150px;
    bottom: 40px;

    border-radius: 50%;

    background:
        rgba(101, 179, 50, 0.08);
}


/* CONTENIDO */

.historia-contenido {
    position: relative;

    z-index: 2;

    max-width: 1050px;

    display: grid;

    grid-template-columns:
        0.95fr 1.05fr;

    align-items: center;

    gap: 60px;
}


/* =====================================================
   FOTO DE NUESTRA HISTORIA
===================================================== */

.historia-imagen {
    position: relative;

    width: 100%;
}


/* DECORACIÓN DETRÁS DE FOTO */

.historia-imagen::before {
    content: "";

    position: absolute;

    width: 95%;
    height: 92%;

    left: -18px;
    bottom: -18px;

    background:
        linear-gradient(
            135deg,
            #0878d1,
            #65b332
        );

    border-radius:
        35px 35px 80px 35px;

    transform:
        rotate(-3deg);

    opacity: 0.20;
}


/* FOTO */

.historia-imagen > img {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 350px;

    object-fit: cover;

    border:
        6px solid white;

    border-radius:
        35px 35px 80px 35px;

    box-shadow:
        0 18px 40px
        rgba(16, 38, 77, 0.15);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* HOVER FOTO */

.historia-imagen > img:hover {
    transform:
        translateY(-7px)
        rotate(1deg);

    box-shadow:
        0 25px 50px
        rgba(16, 38, 77, 0.20);
}


/* =====================================================
   LOGO DEBAJO DE FOTO
===================================================== */

.historia-logo {
    position: relative;

    z-index: 3;

    width: fit-content;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin:
        30px auto 0;

    padding:
        12px 24px;

    background: white;

    border-radius: 25px;

    box-shadow:
        0 8px 25px
        rgba(16, 38, 77, 0.08);
}

.historia-logo > img {
    width: 80px;
    height: 80px;

    object-fit: contain;

    background: transparent;
}

.historia-marca h2 {
    color: #10264d;

    font-size: 29px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: 1px;

    margin: 0;
}

.historia-marca span {
    display: block;

    color: #65b332;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 7px;

    margin-top: 7px;
}


/* =====================================================
   TEXTO NUESTRA HISTORIA
===================================================== */

.historia-texto {
    position: relative;

    padding:
        38px 38px 35px;

    background:
        rgba(255, 255, 255, 0.96);

    border-radius:
        30px;

    border-bottom:
        6px solid #65b332;

    box-shadow:
        0 15px 40px
        rgba(16, 38, 77, 0.09);
}


/* DECORACIÓN AMARILLA */

.historia-texto::before {
    content: "";

    position: absolute;

    right: 30px;
    top: 25px;

    width: 17px;
    height: 17px;

    background: #ffd447;

    border-radius: 50%;

    box-shadow:
        27px 13px 0 #65b332,
        8px 37px 0 #0878d1;
}


/* TÍTULO */

.historia-texto h2 {
    position: relative;

    color: #0878d1;

    font-size: 35px;
    font-weight: 900;

    margin-bottom: 22px;

    padding-bottom: 12px;
}


/* LÍNEA DEBAJO DEL TÍTULO */

.historia-texto h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 65px;
    height: 5px;

    background: #65b332;

    border-radius: 10px;
}


/* PÁRRAFOS */

.historia-texto p {
    color: #465b73;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 17px;

    text-align: justify;
}

.historia-texto p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   PROPÓSITO - MISIÓN - VISIÓN
===================================================== */

.identidad-newton {
    position: relative;

    overflow: hidden;

    padding:
        90px 0 110px;

    background:
        linear-gradient(
            135deg,
            #edf8ff 0%,
            #ffffff 45%,
            #f3faeb 100%
        );
}


/* CÍRCULO DECORATIVO */

.identidad-newton::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -200px;
    bottom: -160px;

    border-radius: 50%;

    background:
        rgba(8, 120, 209, 0.06);
}


/* CÍRCULO VERDE */

.identidad-newton::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -160px;
    top: 50px;

    border-radius: 50%;

    background:
        rgba(101, 179, 50, 0.07);
}


/* CONTENIDO */

.identidad-contenido {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 0.90fr;

    gap: 60px;

    align-items: center;

    max-width: 1100px;
}


/* =====================================================
   TARJETAS PROPÓSITO / MISIÓN / VISIÓN
===================================================== */

.identidad-texto {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* TARJETA */

.identidad-bloque {
    position: relative;

    overflow: hidden;

    background: white;

    padding:
        27px 30px 27px 35px;

    border-radius: 22px;

    border-left:
        6px solid #0878d1;

    box-shadow:
        0 10px 28px
        rgba(16, 38, 77, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* SEGUNDA TARJETA */

.identidad-bloque:nth-child(2) {
    border-left-color: #65b332;
}


/* TERCERA TARJETA */

.identidad-bloque:nth-child(3) {
    border-left-color: #ffd447;
}


/* CÍRCULO DECORATIVO */

.identidad-bloque::after {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    right: -35px;
    top: -35px;

    border-radius: 50%;

    background:
        rgba(8, 120, 209, 0.07);
}

.identidad-bloque:nth-child(2)::after {
    background:
        rgba(101, 179, 50, 0.09);
}

.identidad-bloque:nth-child(3)::after {
    background:
        rgba(255, 212, 71, 0.16);
}


/* HOVER */

.identidad-bloque:hover {
    transform:
        translateX(8px);

    box-shadow:
        0 15px 35px
        rgba(16, 38, 77, 0.13);
}


/* TÍTULOS */

.identidad-bloque h2 {
    color: #0878d1;

    font-size: 27px;
    font-weight: 900;

    margin-bottom: 12px;
}

.identidad-bloque:nth-child(2) h2 {
    color: #5ca72d;
}

.identidad-bloque:nth-child(3) h2 {
    color: #e0a900;
}


/* TEXTO */

.identidad-bloque p {
    color: #465b73;

    font-size: 15px;

    line-height: 1.75;

    text-align: justify;
}


/* =====================================================
   IMÁGENES PROPÓSITO / MISIÓN / VISIÓN
===================================================== */

.identidad-imagenes {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* FONDO DECORATIVO */

.identidad-imagenes::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 95%;

    right: -20px;
    top: 20px;

    border-radius: 35px;

    background:
        linear-gradient(
            145deg,
            rgba(8, 120, 209, 0.12),
            rgba(101, 179, 50, 0.13)
        );
}


/* IMÁGENES */

.identidad-imagenes img {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 245px;

    object-fit: cover;

    border:
        5px solid white;

    border-radius:
        30px;

    box-shadow:
        0 12px 30px
        rgba(16, 38, 77, 0.12);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* PRIMERA FOTO */

.identidad-imagenes img:first-child {
    border-radius:
        30px 70px 30px 30px;
}


/* SEGUNDA FOTO */

.identidad-imagenes img:last-child {
    border-radius:
        30px 30px 70px 30px;
}


/* HOVER */

.identidad-imagenes img:hover {
    transform:
        translateY(-7px);

    box-shadow:
        0 20px 40px
        rgba(16, 38, 77, 0.18);
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 900px) {

    .historia-contenido {
        grid-template-columns: 1fr;

        max-width: 700px;

        gap: 45px;
    }

    .historia-imagen > img {
        height: 380px;
    }

    .historia-texto h2 {
        text-align: center;
    }

    .historia-texto h2::after {
        left: 50%;

        transform:
            translateX(-50%);
    }

    .identidad-contenido {
        grid-template-columns: 1fr;

        max-width: 700px;

        gap: 45px;
    }

    .identidad-imagenes img {
        height: 300px;
    }
}


/* =====================================================
   RESPONSIVE - CELULAR
===================================================== */

@media (max-width: 650px) {

    /* HEADER */

    .header-contenido {
        min-height: 75px;
    }

    .logo-imagen {
        width: 55px;
        height: 55px;
    }

    .logo-nombre h2 {
        font-size: 20px;
    }

    .logo-nombre span {
        font-size: 10px;

        letter-spacing: 5px;
    }


    /* MENÚ */

    .menu {
        display: none;
    }


    /* PORTADA */

    .portada-nosotros {
        min-height: 180px;
    }

    .portada-nosotros h1 {
        font-size: 37px;

        margin-bottom: 15px;
    }

    .portada-nosotros::after {
        bottom: -75px;

        height: 105px;
    }


    /* HISTORIA */

    .historia {
        padding:
            60px 0 75px;
    }

    .historia-contenido {
        width: 90%;

        gap: 40px;
    }

    .historia-imagen > img {
        height: 270px;

        border-radius:
            25px 25px 55px 25px;
    }

    .historia-imagen::before {
        border-radius:
            25px 25px 55px 25px;
    }

    .historia-logo {
        padding:
            10px 18px;
    }

    .historia-logo > img {
        width: 65px;
        height: 65px;
    }

    .historia-marca h2 {
        font-size: 23px;
    }

    .historia-marca span {
        font-size: 10px;

        letter-spacing: 5px;
    }

    .historia-texto {
        padding:
            30px 25px;
    }

    .historia-texto h2 {
        font-size: 28px;
    }

    .historia-texto p {
        font-size: 14px;

        line-height: 1.75;
    }


    /* PROPÓSITO MISIÓN VISIÓN */

    .identidad-newton {
        padding:
            65px 0 80px;
    }

    .identidad-contenido {
        width: 90%;

        gap: 40px;
    }

    .identidad-bloque {
        padding:
            25px 23px 25px 28px;
    }

    .identidad-bloque h2 {
        font-size: 24px;
    }

    .identidad-bloque p {
        font-size: 14px;
    }

    .identidad-imagenes img {
        height: 240px;
    }
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    position: relative;

    background: #65b332;

    color: white;

    margin-top: 0;

    padding-top: 95px;
}


/* =====================================================
   ONDA SUPERIOR FOOTER
===================================================== */

.footer-onda {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 55px;

    background: white;

    border-radius:
        0 0 50% 50% /
        0 0 100% 100%;
}


/* =====================================================
   CONTENIDO FOOTER
===================================================== */

.footer-contenido {
    display: grid;

    grid-template-columns:
        1.2fr 0.8fr 1fr;

    gap: 70px;

    padding-bottom: 60px;
}


/* =====================================================
   COLUMNAS FOOTER
===================================================== */

.footer-columna {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-columna h3 {
    color: white;

    font-size: 24px;

    margin-bottom: 20px;
}

.footer-columna > a {
    color: white;

    font-size: 15px;

    margin-bottom: 12px;

    transition:
        opacity 0.3s ease;
}

.footer-columna > a:hover {
    opacity: 0.7;
}


/* =====================================================
   LOGO 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;

    border-radius: 0;
}

.footer-marca h2 {
    color: white;

    font-size: 34px;

    line-height: 1;

    letter-spacing: 1px;
}

.footer-marca span {
    display: block;

    color: white;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 8px;

    margin-top: 7px;
}


/* =====================================================
   DESCRIPCIÓN FOOTER
===================================================== */

.footer-descripcion {
    max-width: 340px;

    color: white;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* =====================================================
   REDES SOCIALES
===================================================== */

.redes-sociales {
    display: flex;

    gap: 12px;
}

.red-social {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    color: #65b332;

    border-radius: 50%;

    font-size: 22px;
    font-weight: bold;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.red-social:hover {
    transform:
        translateY(-4px);

    background: #f1f9ff;
}


/* =====================================================
   CONTACTO FOOTER
===================================================== */

.contacto-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 18px;
}

.contacto-icono {
    width: 30px;

    font-size: 23px;
}

.contacto-item strong {
    display: block;

    color: white;

    font-size: 17px;

    margin-bottom: 5px;
}

.contacto-item p {
    color: white;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 5px;
}


/* =====================================================
   WHATSAPP
===================================================== */

.whatsapp-flotante {
    position: absolute;

    right: 35px;
    bottom: 85px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;

    color: white;

    border-radius: 50%;

    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: white;
}


/* =====================================================
   COPYRIGHT
===================================================== */

.footer-copyright {
    background: #559c28;

    text-align: center;

    padding: 20px;
}

.footer-copyright p {
    color: white;

    font-size: 14px;
}


/* =====================================================
   FOOTER RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .footer-contenido {
        grid-template-columns:
            1fr 1fr;

        gap: 45px;
    }
}

@media (max-width: 650px) {

    .footer {
        padding-top: 80px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .whatsapp-flotante {
        right: 20px;
        bottom: 80px;

        width: 55px;
        height: 55px;
    }
}
/* ==========================================
   BOTÓN HAMBURGUESA - NOSOTROS
========================================== */

@media (max-width: 750px) {

    .header .header-contenido {
        position: relative;
    }

    .header .header-contenido .menu-toggle {
        display: flex !important;
        flex: 0 0 44px;

        width: 44px !important;
        height: 44px !important;
        min-width: 44px;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        padding: 9px !important;

        background: #edf8ff !important;
        border: none !important;
        border-radius: 10px;

        visibility: visible !important;
        opacity: 1 !important;

        position: relative;
        z-index: 1001;

        cursor: pointer;
    }

    .header .header-contenido .menu-toggle span {
        display: block !important;

        width: 22px !important;
        height: 2px !important;
        min-height: 2px;

        flex: 0 0 2px;

        background: #10264d !important;
        border-radius: 3px;
    }
}

@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;
    }
}