
/* =========================================================
   NEWTON SCHOOL - PÁGINA DE CONTACTO
   CSS ORDENADO Y SIN DUPLICADOS
========================================================= */


/* =========================================================
   1. ESTILOS GENERALES
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #10264d;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    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;
}

main,
.contacto {
    background: transparent;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.contenedor {
    width: min(1180px, 90%);
    margin: auto;
}


/* =========================================================
   2. HEADER Y MENÚ DE NAVEGACIÓN
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 3px 15px rgba(16, 38, 77, 0.06);
}

.header-contenido {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.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: 900;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-nombre span {
    display: block;
    margin-top: 6px;
    color: #65b332;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 7px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 30px;
    color: #172842;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease;
}

.menu a:hover {
    color: #0878d1;
    background: #edf8ff;
}

/* Página activa: Contacto */

.menu a.activo {
    color: #0878d1 !important;
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(16, 38, 77, 0.06);
}

.menu a.activo:hover {
    color: #0878d1 !important;
    background: #edf8ff !important;
}


/* =========================================================
   3. SECCIÓN PRINCIPAL DE CONTACTO
========================================================= */

.contacto {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 85px);
    padding: 85px 0 105px;

    background: transparent;
}


/* Decoración izquierda */

.contacto::before {
    content: "";
    position: absolute;
    left: -160px;
    bottom: 50px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(8, 120, 209, 0.06);
}


/* Decoración derecha */

.contacto::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -60px;
    width: 250px;
    height: 250px;
    border: 35px solid rgba(101, 179, 50, 0.06);
    border-radius: 50%;
}


/* =========================================================
   4. DISTRIBUCIÓN DEL CONTENIDO
========================================================= */

.contacto-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 75px;
    align-items: center;
}

.contacto-texto {
    position: relative;
}


/* =========================================================
   5. SUBTÍTULO Y TÍTULO PRINCIPAL
========================================================= */

.subtitulo-contacto {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 30px;

    color: #0878d1;
    background: #e4f4ff;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;

    box-shadow: 0 5px 15px rgba(8, 120, 209, 0.08);
}

.contacto-texto h1 {
    position: relative;
    margin-bottom: 25px;

    color: #10264d;

    font-size: 55px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
}

.contacto-texto h1 span {
    position: relative;
    display: inline-block;
    color: #65b332;
}


/* Subrayado amarillo */

.contacto-texto h1 span::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: -8px;
    width: 75%;
    height: 6px;
    border-radius: 20px;
    background: #ffd447;
    transform: rotate(-1deg);
}


/* =========================================================
   6. DESCRIPCIÓN DE CONTACTO
========================================================= */

.descripcion-contacto {
    max-width: 540px;
    margin-bottom: 38px;

    color: #536984;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   7. TARJETAS CON LOS DATOS DE CONTACTO
========================================================= */

.datos-contacto {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dato {
    position: relative;
    overflow: hidden;
    padding: 20px 25px 20px 28px;

    border-left: 5px solid #0878d1;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: 0 8px 25px rgba(16, 38, 77, 0.07);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Colores de cada tarjeta */

.dato:nth-child(2) {
    border-left-color: #65b332;
}

.dato:nth-child(3) {
    border-left-color: #ffd447;
}


/* Círculos decorativos */

.dato::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(8, 120, 209, 0.07);
}

.dato:nth-child(2)::after {
    background: rgba(101, 179, 50, 0.10);
}

.dato:nth-child(3)::after {
    background: rgba(255, 212, 71, 0.18);
}


/* Efecto al pasar el cursor */

.dato:hover {
    transform: translateX(7px);
    box-shadow: 0 13px 30px rgba(16, 38, 77, 0.11);
}


/* Títulos */

.dato h3 {
    margin-bottom: 7px;
    color: #0878d1;
    font-size: 17px;
    font-weight: 800;
}

.dato:nth-child(2) h3 {
    color: #5ca62f;
}

.dato:nth-child(3) h3 {
    color: #d89e00;
}


/* Información */

.dato p {
    color: #536984;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   8. TARJETA DEL FORMULARIO
========================================================= */

.contacto-formulario {
    position: relative;
    overflow: hidden;
    padding: 45px;

    border: 1px solid rgba(8, 120, 209, 0.08);
    border-radius: 35px 35px 70px 35px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: 0 20px 50px rgba(16, 38, 77, 0.11);
}


/* Línea superior azul, verde y amarilla */

.contacto-formulario::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;

    background: linear-gradient(
        90deg,
        #0878d1 0%,
        #0878d1 33%,
        #65b332 33%,
        #65b332 66%,
        #ffd447 66%,
        #ffd447 100%
    );
}


/* Círculos decorativos */

.contacto-formulario::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 32px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd447;

    box-shadow:
        -30px 12px 0 rgba(101, 179, 50, 0.75),
        3px 35px 0 rgba(8, 120, 209, 0.65);
}


/* =========================================================
   9. TÍTULO Y DESCRIPCIÓN DEL FORMULARIO
========================================================= */

.contacto-formulario h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;

    color: #10264d;
    font-size: 31px;
    font-weight: 900;
}

.contacto-formulario > p {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin-bottom: 28px;

    color: #6b7b8f;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   10. CAMPOS DEL FORMULARIO
========================================================= */

.campo {
    position: relative;
    z-index: 2;
    margin-bottom: 19px;
}


/* Etiquetas */

.campo label {
    display: block;
    margin-bottom: 8px;

    color: #10264d;
    font-size: 14px;
    font-weight: 800;
}


/* Inputs, listas y área de mensaje */

.campo input,
.campo select,
.campo textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;

    border: 1.5px solid #dce7ef;
    border-radius: 14px;
    outline: none;

    background: #f8fbfd;
    color: #40546c;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Texto de ayuda */

.campo input::placeholder,
.campo textarea::placeholder {
    color: #9aa9b9;
}


/* Campo seleccionado */

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #0878d1;
    background: #ffffff;

    box-shadow: 0 0 0 4px rgba(8, 120, 209, 0.09);
}


/* Área de mensaje */

.campo textarea {
    min-height: 115px;
    resize: vertical;
}


/* Lista desplegable */

.campo select {
    cursor: pointer;
}


/* =========================================================
   11. BOTÓN ENVIAR
========================================================= */

.btn-enviar {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 16px 25px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(135deg, #0878d1, #1596dd);
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(8, 120, 209, 0.20);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn-enviar:hover {
    background: linear-gradient(135deg, #075fa5, #0878d1);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(8, 120, 209, 0.28);
}

.btn-enviar:active {
    transform: translateY(0);
}


/* =========================================================
   12. FOOTER
========================================================= */

.footer {
    position: relative;
    margin-top: 0;
    padding-top: 95px;

    background: #65b332;
    color: #ffffff;
}


/* Onda 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%;
}


/* Contenido */

.footer-contenido {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 70px;
    padding-bottom: 60px;
}


/* Columnas */

.footer-columna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.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.7;
}


/* =========================================================
   13. MARCA Y LOGO 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;
    border-radius: 0;
}

.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;
}


/* Descripción */

.footer-descripcion {
    max-width: 340px;
    margin-bottom: 25px;

    color: #ffffff;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   14. REDES SOCIALES
========================================================= */

.redes-sociales {
    display: flex;
    gap: 12px;
}

.red-social {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: #ffffff;
    color: #65b332;

    font-size: 22px;
    font-weight: bold;

    transition: transform 0.3s ease, background 0.3s ease;
}

.red-social:hover {
    transform: translateY(-4px);
    background: #f1f9ff;
}


/* =========================================================
   15. DATOS DE CONTACTO DEL FOOTER
========================================================= */

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.contacto-icono {
    flex-shrink: 0;
    width: 30px;
    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;
}


/* =========================================================
   16. BOTÓN FLOTANTE DE WHATSAPP
========================================================= */

.whatsapp-flotante {
    position: absolute;
    right: 35px;
    bottom: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    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;
}


/* =========================================================
   17. COPYRIGHT
========================================================= */

.footer-copyright {
    padding: 20px;
    background: #559c28;
    text-align: center;
}

.footer-copyright p {
    color: #ffffff;
    font-size: 14px;
}


/* =========================================================
   18. RESPONSIVE PARA TABLETS
========================================================= */

@media (max-width: 1000px) {

    .menu {
        gap: 4px;
    }

    .menu a {
        padding: 10px 11px;
        font-size: 12px;
    }
}


@media (max-width: 900px) {

    .contacto {
        padding: 65px 0 85px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contacto-texto {
        max-width: 700px;
        margin: auto;
    }

    .contacto-texto h1 {
        font-size: 44px;
    }

    .contacto-formulario {
        width: 100%;
        max-width: 700px;
        margin: auto;
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }
}


/* =========================================================
   19. RESPONSIVE PARA CELULARES
========================================================= */

@media (max-width: 650px) {

    .contacto {
        padding: 50px 0 70px;
    }

    .contacto-grid {
        gap: 40px;
    }

    .subtitulo-contacto {
        padding: 9px 16px;
        font-size: 11px;
    }

    .contacto-texto h1 {
        font-size: 36px;
    }

    .descripcion-contacto {
        font-size: 15px;
    }

    .dato {
        padding: 18px 20px;
    }

    .contacto-formulario {
        padding: 35px 24px;
        border-radius: 25px 25px 50px 25px;
    }

    .contacto-formulario h2 {
        font-size: 26px;
    }

    .contacto-formulario::after {
        display: none;
    }

    .campo input,
    .campo select,
    .campo textarea {
        padding: 13px 14px;
    }

    .footer {
        padding-top: 80px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .whatsapp-flotante {
        right: 20px;
        bottom: 80px;
        width: 55px;
        height: 55px;
    }
}


/* ===== IMAGEN DE MATRÍCULA EN PRIMER PLANO ===== */

.banner-matricula {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 25px;
    margin: 25px 0 30px;
    overflow: visible;
}

/* Fondo decorativo detrás de la imagen */
.banner-matricula::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 88%;
    height: 88%;
    left: 3%;
    bottom: 1%;
    border-radius: 40px 40px 70px 40px;
    background: linear-gradient(145deg, #dff3ff, #eaf8df);
    transform: rotate(-4deg);
}

/* Imagen por delante del fondo */
.imagen-admision {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    border: 4px solid #ffffff;
    border-radius: 24px;
    object-fit: contain;
    box-shadow:
        0 12px 28px rgba(16, 38, 77, 0.18),
        0 0 0 2px #0878d1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor */
.imagen-admision:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 35px rgba(16, 38, 77, 0.22),
        0 0 0 2px #65b332;
}

/* Adaptación para celulares */
@media (max-width: 650px) {
    .banner-matricula {
        padding: 18px;
        margin: 20px 0 25px;
    }

    .imagen-admision {
        max-width: 100%;
        border-width: 3px;
        border-radius: 18px;
    }

    .banner-matricula::before {
        width: 90%;
        height: 85%;
        left: 3%;
    }
}
