/* NC Comex — estilos del sitio. Medidas tomadas del sitio original. */

@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat.woff2) format('woff2'); }

:root {
    --azul: #005192;
    --azul-claro: #7fa1f8;
    --marino: #193b5d;
    --gris: #eaeaea;
    --crema: #fcfcf7;
    --barra: #213d4b;
    --texto: #202020;
    --titulos: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: var(--texto);
    font-family: Poppins, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3, p { margin: 0; }

.contenedor { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.contenedor.angosto { max-width: 820px; }
.centrado { text-align: center; }

.seccion { padding: 60px 0; }
.seccion-blanca { background: #fff; }
.seccion-gris { background: var(--gris); }

.titulo-azul {
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.5;
    color: var(--azul);
    text-align: center;
}

/* Textos largos con párrafos: los espacios entre párrafos son párrafos vacíos, como en el original */
.texto-largo ul, .texto-largo ol, .acordeon-texto ul, .acordeon-texto ol { margin: 0; padding-left: 32px; }

/* ---------- Cabecera ---------- */

/* La barra con logo y menú queda fija arriba al bajar; la franja del idioma se va con el scroll */
.cabecera { position: sticky; top: 0; z-index: 100; box-shadow: rgba(0, 0, 0, .25) 0 3px 11px; }
.modo-edicion .cabecera { position: relative; }

.barra-idioma { position: relative; z-index: 101; background: var(--barra); display: flex; justify-content: flex-end; padding: 8px 6px; }
.idioma { position: relative; }
.idioma a { display: block; padding: 2px 4px; }
.idioma-otro { position: absolute; top: 100%; right: 0; visibility: hidden; opacity: 0; transition: opacity .15s; }
.idioma:hover .idioma-otro, .idioma:focus-within .idioma-otro { visibility: visible; opacity: 1; }

.barra-principal {
    background: var(--crema);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 90px;
}
.logo img { width: 294px; height: auto; }

.menu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: center; }
.menu li + li::before { content: '|'; font-weight: 700; color: #000; }
.menu a {
    display: block;
    padding: 0 15px;
    color: #000;
    font-weight: 400;
    letter-spacing: .03em;
    text-decoration: none;
    line-height: 34px;
}
.menu a > span { display: inline-block; border-bottom: 2px solid transparent; line-height: 1.5; padding-bottom: 2px; }
.menu a:hover, .menu a.activo { color: var(--azul); }
.menu a.activo > span { border-bottom-color: var(--azul); }

/* Botón ☰ (solo en celular) */
.menu-boton {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.menu-boton span { display: block; height: 2px; background: #000; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héroes con foto de fondo ---------- */

.hero {
    position: relative;
    background-size: cover;
    background-position: 50% 50%;
    color: #fff;
    text-align: center;
    padding: 150px 60px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-contenido { position: relative; max-width: 1017px; margin: 0 auto; }
.hero h1 {
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 45px;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 11px 0 8px;
}
.hero-servicio, .hero-contacto { padding: 120px 60px; }

.boton {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
}
.boton-hero {
    min-width: 205px;
    padding: 15px 30px;
    margin-top: 27px;
    background: var(--azul);
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s;
}
.boton-hero:hover { background: transparent; }

.boton-borde {
    display: block;
    width: fit-content;
    min-width: 330px;
    max-width: 100%;
    margin: 10px auto;
    padding: 20px 30px;
    border: 1px solid var(--azul);
    color: var(--marino);
    font-size: 15px;
    font-weight: 400;
    transition: background-color .2s, color .2s;
}
.boton-borde:hover { background: var(--azul); color: #fff; }

/* ---------- Redes sociales ---------- */

.redes { display: flex; flex-wrap: wrap; gap: 6px; }
.redes a { display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.redes svg { fill: currentColor; }
.redes-claras { justify-content: center; margin-bottom: 4px; }
.redes-claras a { width: 44px; height: 44px; border: 3px solid #fff; color: #fff; }
.redes-claras svg { width: 22px; height: 22px; }
.redes-oscuras { margin-top: 14px; gap: 9px; }
.redes-oscuras a { width: 38px; height: 38px; background: #000; color: #fff; }
.redes-oscuras svg { width: 19px; height: 19px; }

/* ---------- Inicio ---------- */

.intro { padding: 90px 0; }
.texto-intro { margin-top: 8px; text-align: center; line-height: 2; color: #000; }

.natalia { padding: 60px 0; }
.banner-marca { aspect-ratio: 1186 / 437; background-size: cover; background-position: 50% 50%; }
.natalia-columnas { display: flex; gap: 30px; margin-top: 50px; }
.natalia-foto { flex: 0 0 41.666%; display: flex; flex-direction: column; align-items: center; }
.natalia-foto img { width: 255px; height: 255px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin-top: 4px; }
.natalia-texto { flex: 1; line-height: 2; }

.por-que .titulo-azul { margin: 15px 0 50px; line-height: 1.2; }
.lista-check { display: flex; gap: 50px; max-width: 1186px; margin: 0 auto; }
.lista-check ul { flex: 1; list-style: none; margin: 0; padding: 0 0 0 30px; }
.lista-check li { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 18px; }
.check { flex: 0 0 40px; width: 40px; height: 40px; fill: var(--azul); }
.lista-check p { padding-top: 6px; max-width: 450px; }

.impulsamos { padding: 40px 0 20px; scroll-margin-top: 110px; }
.caja-azul { background: var(--azul); padding: 70px 90px; }
.caja-azul h2 {
    max-width: 605px;
    margin: 0 auto;
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 33px;
    line-height: 1.5;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

.servicios .titulo-azul { line-height: 1.2; }
.pestanas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin: 20px auto 30px;
    padding: 0 80px;
    background: var(--azul);
}
.pestanas a {
    padding: 12px 15px;
    margin-right: 15px;
    color: var(--crema);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .03em;
    text-decoration: none;
}
.pestanas a:hover { text-decoration: underline; }

.acordeon { list-style: none; max-width: 651px; margin: 0 auto; padding: 0; }
.acordeon-item { margin-bottom: 10px; }
.acordeon-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--azul-claro);
    color: #fff;
    cursor: pointer;
}
.acordeon-titulo h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.acordeon-flecha {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--azul-claro);
    transition: transform .2s;
}
.acordeon-flecha svg { width: 18px; height: 18px; }
.acordeon-texto { display: none; padding: 20px; background: #fff; border: 1px solid var(--azul-claro); border-top: 0; }
.acordeon-item.abierto .acordeon-texto { display: block; }
.acordeon-item.abierto .acordeon-flecha { transform: rotate(180deg); }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; padding-top: 30px; }
.galeria-foto { height: 520px; background-size: cover; background-position: 50% 50%; }

/* ---------- Páginas de servicio ---------- */

.servicio-detalle { padding: 50px 0 60px; }
.servicio-titulo {
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.5;
    text-align: center;
    color: var(--marino);
}
.pagina-coordinacion .servicio-titulo { color: #000; }
.servicio-intro { margin: 24px 0 30px; text-align: center; color: var(--azul); line-height: 2; }
.servicio-cuerpo { margin-bottom: 30px; }
.video { padding: 15px 0; }
.video video { display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin: 0 auto; background: #000; }

/* ---------- Contacto ---------- */

.aliado-columnas { display: flex; align-items: center; gap: 50px; }
.aliado-texto { flex: 1; }
.aliado-texto h2 {
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--azul);
}
.aliado-destacado { margin: 48px 0 12px; font-size: 20px; color: #000; max-width: 560px; }
.aliado-texto p:last-child { font-weight: 400; color: #000; max-width: 560px; }
.aliado-foto { flex: 0 0 40%; }
.aliado-foto img { width: 100%; aspect-ratio: 500 / 440; object-fit: cover; }

.form-contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin-top: 20px; }
.campo { display: flex; flex-direction: column; gap: 3px; }
.campo-ancho { grid-column: 1 / -1; }
.campo input, .campo textarea {
    width: 100%;
    border: 1px solid var(--azul-claro);
    border-radius: 32px;
    padding: 0 16px;
    font: 400 16px Poppins, Arial, sans-serif;
    color: #000;
    background: #fff;
}
.campo input { height: 40px; }
.campo textarea { height: 80px; padding: 10px 16px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--azul); outline-offset: 1px; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-enviar { text-align: center; margin-top: 10px; }
.boton-enviar {
    min-width: 272px;
    padding: 14px 30px;
    border: 0;
    background: var(--azul);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.boton-enviar:disabled { opacity: .6; cursor: wait; }
.form-mensaje { display: none; margin-top: 16px; }
.form-mensaje.visible { display: block; }
.form-error { color: #b42318; }
.mapa { display: block; width: 100%; height: 300px; border: 0; margin-top: 40px; }

/* ---------- Política ---------- */

.politica { padding: 200px 0; }

/* ---------- Pie ---------- */

.pie { background: var(--gris); padding-top: 70px; }
.pie-columnas { display: flex; gap: 36px; }
.pie-izq { flex: 0 0 calc(58.33% - 18px); }
.pie-der { flex: 1; }
.pie-titulo {
    font-family: var(--titulos);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--azul);
}
.pie-subtitulo { font-size: 24px; color: #000; }
.pie-etiqueta { color: var(--azul); margin-top: 6px; }
.pie-etiqueta strong { color: var(--azul); }
.pie-grande { font-size: 20px; color: #000; margin-bottom: 18px; }
.pie-grande a, .pie-contactos a { text-decoration: none; }
.pie-grande a:hover, .pie-contactos a:hover { text-decoration: underline; }
.pie-contactos { margin-bottom: 24px; }
.pie-contactos ul { margin: 0; padding-left: 32px; }
.pie-linea { border: 0; border-top: 1px solid #202020; margin: 40px 0 30px; }
.pie-abajo { padding-bottom: 120px; }
.pie-copyright {
    background: #1f1f1f;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 32px;
}
.pie-copyright a { text-decoration: none; }
.pie-copyright a:hover { text-decoration: underline; }

.whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 50;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, .2) 0 4px 12px;
}
.whatsapp-flotante svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Animaciones de títulos ---------- */

/* El título del hero aparece al cargar; el resto al entrar en pantalla (clase puesta por sitio.js) */
@keyframes titulo-entrada {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.hero h1 { animation: titulo-entrada .9s ease-out .15s both; }

.titulo-animado { opacity: 0; transform: translateY(18px); transition: opacity .8s ease-out, transform .8s ease-out; }
.titulo-animado.visible { opacity: 1; transform: none; }

.modo-edicion .hero h1 { animation: none; }
.modo-edicion .titulo-animado { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
    .hero h1 { animation: none; }
    .titulo-animado { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
    .barra-principal { padding: 20px 40px; }
    .logo img { width: 220px; }
    .menu a { padding: 0 10px; font-size: 15px; }
}

/* ---------- Celular ---------- */

@media (max-width: 767px) {
    .contenedor { padding: 0 20px; }
    .seccion { padding: 45px 0; }
    .titulo-azul, .servicio-titulo { font-size: 30px; }

    .barra-idioma { padding: 6px; }
    .barra-principal { position: relative; padding: 10px 12px 10px 16px; }
    .logo img { width: 160px; }
    .menu-boton { display: flex; }
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--crema);
        border-top: 1px solid rgba(0, 0, 0, .08);
        box-shadow: rgba(0, 0, 0, .2) 0 8px 12px;
    }
    .menu.abierto { display: block; }
    .menu ul { flex-direction: column; align-items: center; padding: 8px 0 12px; }
    .menu li + li::before { content: none; }
    .menu a { padding: 0 20px; font-size: 15px; line-height: 46px; }
    .impulsamos { scroll-margin-top: 70px; }

    .hero, .hero-servicio, .hero-contacto { padding: 80px 20px; }
    .hero h1 { font-size: 28px; }
    .redes-claras a { width: 40px; height: 40px; }
    .redes-claras svg { width: 20px; height: 20px; }

    .intro { padding: 60px 0; }
    .natalia { padding: 40px 0; }
    .natalia-columnas { flex-direction: column; gap: 20px; margin-top: 30px; }
    .natalia-foto { flex: none; }
    .natalia-texto { text-align: center; }

    .lista-check { flex-direction: column; gap: 0; }
    .lista-check ul { padding: 0; }
    .lista-check li { gap: 16px; }
    .por-que .titulo-azul { margin-bottom: 30px; }

    .caja-azul { padding: 45px 20px; }
    .caja-azul h2 { font-size: 24px; }

    .pestanas { flex-direction: column; align-items: center; padding: 6px 20px; }
    .pestanas a { margin: 0; font-size: 15px; padding: 8px 10px; text-align: center; }
    .acordeon-titulo { padding: 14px 16px; }
    .acordeon-titulo h3 { font-size: 15px; }

    .galeria { grid-template-columns: 1fr; }
    .galeria-foto { height: 300px; }

    .boton-borde { min-width: 0; width: 100%; }

    .aliado-columnas { flex-direction: column; gap: 30px; }
    .aliado-texto { text-align: center; }
    .aliado-texto h2 { font-size: 25px; }
    .aliado-destacado { margin-top: 24px; font-size: 16px; }
    .aliado-foto { flex: none; width: 100%; }

    .form-contacto { grid-template-columns: 1fr; }
    .boton-enviar { width: 100%; min-width: 0; }

    .politica { padding: 60px 0; }

    .pie { padding-top: 50px; text-align: center; }
    .pie-columnas { flex-direction: column; gap: 10px; }
    .pie-izq { flex: none; }
    .pie-titulo { font-size: 28px; }
    .pie-subtitulo { font-size: 19px; }
    .pie-grande { font-size: 16px; }
    .redes-oscuras { justify-content: center; margin-bottom: 20px; }
    .pie-contactos ul { list-style-position: inside; padding: 0; }
    .pie-abajo { padding-bottom: 60px; }
    .pie-copyright { text-align: center; padding: 20px; }

    .whatsapp-flotante { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .whatsapp-flotante svg { width: 30px; height: 30px; }
}
