/* ============================================================
   landing.css
   Hoja de estilos dedicada para: index.php
   Generada a partir de los CSS compartidos, respetando el mismo
   orden de cascada que tenia el <head> global.
   Fuentes: index.css, monitoreo.css, nosotros.css
   ============================================================ */

/* ------------------------------------------------------------
   Origen: index.css
   ------------------------------------------------------------ */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    /* --- AQUÍ ESTÁ EL CAMBIO --- */
    justify-content: flex-start;
    padding-left: 5%;  /* Antes era 10%, ahora 5% lo pega más a la orilla */
    padding-right: 5%; /* Ajustamos el derecho igual para mantener equilibrio */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se va al fondo */
    background-color: #15233A; /* Fondo de respaldo por si el video tarda en cargar */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo sin deformarse */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(190deg, rgba(21,35,58,0.9) 0%, rgba(21,35,58,0.6) 30%, rgba(21,35,58,0.3) 50%);
}

.hero-content {
    width: 100%;
    max-width: 80%;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.hero-text-box {
    max-width: 880px; /* 754px necesita la 1a linea del h1; 880 deja holgura */
}

.hero-text-box h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-text-box h1 .highlight {
    color: #187495 !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
    max-width: 720px; /* 677px necesita en una sola linea */
}

.btn-hero-primary {
    display: inline-block;
    background-color: #ffffff; /* Botón blanco resalta mucho sobre fondo oscuro */
    color: #15233A; /* Texto azul oscuro */
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 6rem 0; /* Más espacio arriba/abajo en móvil */
        text-align: center; /* Texto centrado en móvil */
    }

    .video-overlay {
        background: rgba(21,35,58,0.85); /* Fondo más sólido en móvil para legibilidad */
    }

    .hero-text-box {
        margin: 0 auto; /* Centrar la caja */
    }

    .hero-text-box h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.soluciones-section {
    padding: 4rem 0 6rem 0; /* Ajusté el padding general */
    background-color: #F8FAFC;
    text-align: center; /* Asegura que todo el contenido se centre por defecto */
}

.soluciones-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Centrado forzoso del título */
    padding-top: 3rem; /* PADDING TOP SOLICITADO para "Control Total..." */
}

.soluciones-header h2 {
    color: #15233A;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.soluciones-header .subtitle {
    color: #5B5A63;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto; /* Centrar el bloque de texto del subtítulo */
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* FORZAMOS 2 COLUMNAS */
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1000px; /* Limitamos el ancho para que las tarjetas de 2 en 2 no se estiren demasiado */
    margin-left: auto; /* Centrar la rejilla en la pantalla */
    margin-right: auto;
}

.solucion-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* El texto interno de la tarjeta se ve mejor a la izquierda, o cámbialo a center si prefieres */
    border: 1px solid rgba(0,0,0,0.03);
    display: flex; /* Para alinear icono y texto mejor */
    flex-direction: column;
    align-items: flex-start; /* Alinear contenido a la izquierda */
}

.solucion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.solucion-card p {
    color: #5B5A63;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .soluciones-grid {
        grid-template-columns: 1fr;
    }

    .soluciones-header h2 {
        font-size: 2rem;
    }

    .solucion-card {
        align-items: center; /* Centrar contenido interno en móvil */
        text-align: center;
    }
}

.stats-content {
    display: flex;
    justify-content: space-between; /* Separa los elementos a los extremos */
    align-items: center;            /* Centrado vertical perfecto */
    gap: 4rem;                      /* Espacio entre la columna de texto y los números */
    width: 100%;
}

.anerpv-block {
    align-items: flex-start !important;
    text-align: left !important;
}

.img-anerpv-lg {
    max-height: 120px; /* Ajusta este número para cambiar el tamaño */
    width: auto;      /* Mantiene la proporción correcta */
    display: block;
    /* Al no tener background-color, el rectángulo desaparece */
}

@media (max-width: 768px) {
    .img-anerpv-lg {
        max-height: 70px;
    }
}

.anerpv-block .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

.stats-grid {
    width: 55%;               /* El resto del espacio para los números */
    display: flex;            /* Mantiene los números en línea horizontal */
    justify-content: space-around; /* Los distribuye equitativamente */
    gap: 1rem;
    margin-top: 0 !important; /* Limpieza de márgenes */
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .stats-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        width: 100%;
        justify-content: center;
        gap: 3rem;
    }
}

.cta-section {
    background-color: #ffffff; /* Fondo Blanco */
    padding: 6rem 0;
    text-align: center;
    /* Opcional: una línea sutil arriba si quieres separarlo de los logos */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cta-content h2 {
    font-size: 2.8rem; /* Un poco más grande para impactar en blanco */
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #15233A; /* Azul Oscuro (El color que hemos usado) */
}

.btn-cta-white {
    background-color: transparent; /* Fondo transparente */
    color: #15233A; /* Texto azul */
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #15233A; /* Borde Azul Oscuro */
    border-radius: 30px; /* O 50px si lo prefieres redondo como el switch */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-white:hover {
    background-color: #15233A; /* Al pasar mouse se rellena de azul */
    color: #ffffff; /* Texto blanco */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 35, 58, 0.15);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro transparente */
    z-index: 9999; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Efecto borroso detrás */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #ffffff;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #5B5A63;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: #000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info angosta, Form ancho */
}

.modal-info {
    background-color: #15233A;
    color: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #38bdf8; /* Azul cyan */
}

.modal-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.info-item strong {
    display: block; font-size: 0.9rem; color: #fff;
}

.info-item p {
    margin: 0; font-size: 0.9rem;
}

@media (max-width: 992px) {
    .stats-content {
        flex-direction: column; /* Cambia a columna: uno arriba del otro */
        text-align: center;     /* Centra todo en móvil */
        gap: 3rem;
    }

    .anerpv-block {
        align-items: center !important; /* Centra el logo ANERPV */
        text-align: center !important;
    }

    .stats-grid {
        width: 100%;            /* Ancho completo */
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;        /* Si no caben, bajan */
    }
}

.stats-section {
    padding: 4rem 0 6rem 0;
    background-color: #ffffff;
}

.stats-card {
    background-color: #111827;
    background-image: linear-gradient(145deg, #15233A 0%, #0a101a 100%);
    border-radius: 20px;
    /* CAMBIO 1: Más espacio a los lados (8%) para que no se pegue al borde */
    padding: 4rem 6%;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 95%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem; /* Separación saludable entre las dos columnas */
    width: 100%;
}

.stats-header {
    width: 45%;
    /* CAMBIO 2: Centrado INTERNO de los elementos */
    text-align: center !important;
    align-items: center !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.stats-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem; /* Un poco más de espacio antes del logo */
    color: #fff;
    padding: 0;
}

.anerpv-block {
    display: flex;
    flex-direction: row !important; /* CAMBIO CLAVE: Fila, no columna */
    align-items: center !important; /* Alineación vertical perfecta */
    justify-content: center;        /* Todo centrado */
    flex-wrap: wrap;                /* Permite que el registro baje a la siguiente línea */
    gap: 1rem;                      /* Espacio entre el texto "Asociados..." y el Logo */
    width: 100%;
}

.anerpv-block .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 0 !important; /* Quitamos margen inferior para que se alinee bien */
    white-space: nowrap;         /* Que no se rompa el texto */
}

.img-anerpv-lg {
    max-height: 100px;
    width: auto;
    display: block;
}

.registro-dgsp {
    width: 100%;                /* Ocupa todo el ancho disponible */
    text-align: center;         /* Centrado */
    color: #ffffff !important;
    font-size: 0.8rem;
    margin-top: 8px;            /* Un poco de aire arriba */
    opacity: 0.8;
}

.stats-grid {
    width: 50%;
    display: flex;
    justify-content: space-between; /* Distribución uniforme */
    align-items: flex-start; /* Alineados arriba para que se vean parejos */
    gap: 1rem;
    margin-top: 0 !important;
}

.stat-item {
    text-align: center;
    min-width: 100px;
    /* Opcional: Si quieres bordes entre números, se agregan aquí */
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1;
    /* CAMBIO CLAVE: Prohibido romper línea */
    white-space: nowrap !important;
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.4;
    max-width: 150px; /* Evita que el texto se estire demasiado */
    margin: 0 auto;
}

@media (max-width: 992px) {
    .stats-card {
        padding: 3rem 2rem; /* Padding normal en móvil */
    }

    .stats-content {
        flex-direction: column;
        gap: 3rem;
    }

    .stats-header {
        width: 100%;
    }

    .stats-grid {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: center; /* Mantiene el texto centrado verticalmente */
        height: auto; /* Permite que crezca si el texto es largo */
        min-height: 500px;
        padding: 4rem 5%; /* Un poco de aire arriba/abajo */
    }

    .hero-content {
        align-items: flex-start !important; /* Alinea los items flex a la izquierda */
    }

    .hero-text-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 90%; /* Damos más espacio al texto en pantallas chicas */
    }

    .video-overlay {
        background: linear-gradient(
        230deg,
        rgba(21,35,58,0.58) 0%,    /* Casi sólido a la izquierda */
        rgba(21,35,58,0.65) 50%,   /* Se empieza a desvanecer pasando la mitad */
        rgba(21,35,58,0.1) 80%    /* Transparente a la derecha */
        ) !important;
    }

    .hero-text-box h1 {
        font-size: 2.2rem !important; /* Bajamos de 3.5rem a 2.2rem */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem !important; /* Bajamos de 1.25rem a 1.1rem */
        max-width: 100%;
    }

    .btn-hero-primary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: auto; /* Deja que el botón tenga su tamaño natural */
    }
}

@media (max-width: 1024px) {
    .stats-card {
        padding: 2rem 1.5rem !important; /* Mucho menos relleno (antes era 4rem) */
        width: 92% !important; /* Un poco más ancha para aprovechar pantalla */
    }

    .stats-header h2 {
        font-size: 1.6rem !important; /* Bajamos de 2.2rem */
        margin-bottom: 1.5rem !important;
    }

    .stats-content {
        flex-direction: column !important; /* Título arriba, números abajo */
        gap: 2rem !important; /* Bajamos de 3rem/4rem a solo 2rem */
    }

    .stats-header,
.stats-grid {
        width: 100% !important;
    }

    .stats-grid {
        display: flex !important;
        flex-direction: row !important; /* Lado a lado en tablet */
        justify-content: space-around !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 2.2rem !important; /* Bajamos de 3rem */
    }

    .stat-label {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        flex-direction: column !important; /* AQUÍ LOS PONEMOS VERTICALES */
        gap: 1.5rem !important; /* Espacio pequeño entre cada dato */
        align-items: center !important;
    }

    .stat-item {
        width: 100%;
        /* Opcional: Una línea sutil para separar cada dato en vertical */
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

.btn-cta-white {
    font-family: 'Outfit', sans-serif !important;
}

@media (max-width: 1024px) {
    .cta-content h2 {
        font-size: 1.8rem !important; /* Tamaño controlado */
        padding: 0 1rem;
        line-height: 1.2;
    }

    .btn-cta-white {
        padding: 0.9rem 2.5rem !important;
        font-size: 1rem !important;
    }

    .modal-container {
        width: 95% !important;
        max-width: 500px !important; /* Limitamos el ancho para que en Tablet no se vea estirado */
        max-height: 90vh !important;
        overflow-y: auto !important; /* Scroll si el teclado tapa algo */
    }

    .modal-grid {
        display: block !important; /* Ya no es grid, es un bloque simple */
    }

    .modal-info {
        display: none !important; /* Adiós a la barra oscura en móvil */
    }

    .modal-close {
        top: 10px !important;
        right: 15px !important;
        color: #333 !important; /* Oscuro para contraste */
        font-size: 2rem !important;
        z-index: 20 !important;
    }
}


/* ------------------------------------------------------------
   Origen: monitoreo.css
   ------------------------------------------------------------ */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.mon-human-section {
    background-color: #ffffff;
    padding: 3rem 0 6rem 0; /* Un poco de aire arriba y abajo */
    width: 100%;
}

.mon-human-content {
    width: 100%;
    /* Aseguramos que el contenedor base esté centrado */
    display: flex;
    justify-content: center;
}

.mon-typewriter-text {
    /* 1. Estilos de Texto */
    font-size: 2.2rem;
    color: #15233A;
    font-weight: 700;
    line-height: 1.4;
    min-height: 3.5em; /* Reserva espacio para que no salte */
    /* 2. CENTRADO Y ANCHO (La solución) */
    text-align: center;      /* Centra las letras dentro de la caja */
    width: 100%;             /* Ocupa el ancho disponible... */
    max-width: 80%;          /* ...pero solo hasta el 80% como pediste */
    margin: 0 auto;          /* Centra la caja horizontalmente */
    display: block;
}

.mon-human-section .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #187495;
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

.mon-human-section .texto-resaltado {
    color: #187495;
    font-weight: 800;
}

@media (max-width: 768px) {
    .mon-typewriter-text {
        font-size: 1.4rem;
        max-width: 95%; /* En celular usamos más espacio */
    }
}


/* ------------------------------------------------------------
   Origen: nosotros.css
   ------------------------------------------------------------ */
.nosotros-trust {
    padding: 6rem 0;
    background-color: #f8fafc; /* Fondo ligeramente gris para separar secciones */
}

.nosotros-trust .contenedor {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

.trust-header {
    max-width: 800px;
    margin: 0 auto 4rem auto; /* "auto" a los lados centra el bloque */
    text-align: center;       /* Esto centra el texto y el subtítulo */
}

.trust-header h2 {
    font-size: 2.5rem;
    color: #15233A;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.trust-header p {
    font-size: 1.1rem;
    color: #5B5A63;
    line-height: 1.6;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Imagen | 50% Lista */
    gap: 5rem;
    align-items: center; /* Alineación superior para que la lista crezca hacia abajo */
}

.trust-img-col img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    min-height: 500px; /* Altura para igualar la lista visualmente */
}

.trust-list-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Espacio entre items */
}

.trust-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start; /* Icono alineado arriba */
}

.icon-circle {
    flex-shrink: 0; /* Evita que el círculo se aplaste */
    width: 60px;
    height: 60px;
    background-color: #e2e8f0; /* Gris suave de fondo */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #15233A; /* Color del Icono */
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.trust-item:hover .icon-circle {
    background-color: #187495; /* Azul al pasar el mouse */
    color: #ffffff;
    transform: scale(1.1);
}

.trust-content h4 {
    font-size: 1.2rem;
    color: #15233A;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trust-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 3rem;
    }

    .trust-img-col {
        order: -1; /* Mantiene la imagen arriba en móvil, o quítalo para que vaya abajo */
    }

    .trust-header h2 {
        font-size: 2rem;
    }
}

.ns-clientes-section {
    padding: 5rem 0;       /* Espaciado arriba y abajo */
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05); /* Línea sutil arriba para separar */
}

.ns-clientes-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto; /* Centrado y margen abajo */
}

.ns-clientes-header h2 {
    font-size: 2.2rem;
    color: #15233A;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ns-clientes-header p {
    font-size: 1.1rem;
    color: #5B5A63;
}

.ns-logos-grid {
    display: flex;
    justify-content: center; /* Centrar todos los logos en el contenedor */
    align-items: center;     /* Alinear verticalmente */
    flex-wrap: wrap;         /* Si no caben, bajan a la siguiente línea */
    gap: 3rem;               /* Espacio entre logos */
    max-width: 1200px;
    margin: 0 auto;
}

.ns-logo-item img {
    max-height: 60px;    /* Altura máxima uniforme */
    max-width: 160px;    /* Ancho máximo para que no se vean gigantes */
    width: auto;         /* Mantiene proporción */
    /* Efecto Elegante: Blanco y negro y semitransparente */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ns-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05); /* Pequeño zoom al pasar el mouse */
}

@media (max-width: 900px) {
    .ns-clientes-header h2 {
        font-size: 2rem !important; /* Reducido de 2.2rem */
        line-height: 1.2;
    }

    .ns-clientes-header p {
        font-size: 1rem !important; /* Reducido de 1.1rem */
        padding: 0 1rem; /* Un poco de margen lateral para que no pegue a los bordes */
    }

    .ns-logos-grid {
        gap: 2rem;
    }

    .ns-logo-item img {
        max-height: 50px; /* Tamaño optimizado */
        max-width: 130px;
    }
}

@media (max-width: 1024px) {
    .trust-img-col {
        display: none !important;
    }

    .trust-grid {
        grid-template-columns: 1fr !important; /* 1 sola columna */
        gap: 0 !important;
    }

    .trust-list-col {
        width: 100% !important;
    }
}

.trust-item:hover .icon-circle {
    background-color: #dbeafe !important; /* Un azul MUY clarito (casi gris) */
    color: #15233A !important;            /* El icono MANTIENE su color oscuro original */
    transform: translateY(-5px) !important; /* Solo sube un poquito, no se hace gigante */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; /* Sombra suave */
}


/* ------------------------------------------------------------
   Reglas nuevas (clases que no existian en ningun CSS del sitio)
   ------------------------------------------------------------ */

/* Hero: botonera secundaria (no existia en el sitio) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-hero-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 30px;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: #ffffff;
    color: #15233A;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .hero-actions {
        gap: 0.75rem;
    }
    .btn-hero-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Modal: bloque de datos de contacto */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Modal: forms.js agrega la clase .show (no .active).
   Soportamos ambas para que el modal se vea sin depender de index.js */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

/* ------------------------------------------------------------
   Franja 1025-1200px: la caja del hero se encoge con el viewport
   pero el h1 sigue a 3.5rem, y "activo" volveria a quedar solo.
   Bajamos un paso la tipografia en ese rango.
   ------------------------------------------------------------ */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hero-text-box h1 {
        font-size: 2.8rem;
    }
}

/* ------------------------------------------------------------
   Seccion 2 ("No solo vigilamos tu carga..."): tarjetas .solucion-card
   tomadas de index.css. El .icon-circle de esta hoja viene de
   nosotros.css (ver "owner") y no trae el margen inferior ni el
   tamano de icono que la tarjeta necesita.
   ------------------------------------------------------------ */
.solucion-card .icon-circle {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.solucion-card p strong {
    display: block;
    color: #15233A;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* Aqui el h2 es una frase larga, no un titulo corto como en index.php. */
.soluciones-header h2 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .soluciones-header h2 {
        font-size: 1.6rem;
    }
}

/* Aqui son 6 tarjetas, no 4: tres columnas y todas de la misma altura
   (index.css las deja en 2x2 y con alto variable por fila). */
.soluciones-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    max-width: 1200px;
}

.solucion-card {
    height: 100%;
    padding: 2.25rem 1.75rem;
}

@media (max-width: 1024px) {
    .soluciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .soluciones-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

/* ------------------------------------------------------------
   Seccion "Por que confiar": .trust-v2 marca la version de landing.
   La imagen recortada (pantallas-blocatorv3-wide.webp) ya viene en
   16:9 sin las bandas negras del original, asi que el min-height de
   nosotros.css sobra. El bloque .exp-* y el CTA son nuevos.
   ------------------------------------------------------------ */
.trust-v2 .trust-img-col img {
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.trust-v2 .trust-grid {
    gap: 4rem;
    align-items: center;
}

.trust-v2 .trust-list-col {
    gap: 2rem;
}

.trust-v2 .trust-header h2 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.exp-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.exp-number {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.9;
    color: #187495;
    letter-spacing: -3px;
}

.exp-label {
    display: flex;
    flex-direction: column;
}

.exp-label-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #15233A;
    line-height: 1.1;
}

.exp-label-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.trust-cta {
    margin-top: 0.5rem;
}

.btn-trust {
    display: inline-block;
    background-color: #187495;
    color: #ffffff;
    padding: 0.9rem 2.25rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-trust:hover {
    background-color: #15233A;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .exp-number {
        font-size: 3.5rem;
    }
    .exp-label-main {
        font-size: 1.25rem;
    }
}

/* Iconos de la lista de confianza:
   - .fa-stack (escudo + mano superpuestos) necesita bajar su font-size
     para que el escudo mida lo mismo que un icono suelto de 1.5rem.
   - El mapa de Mexico es un SVG propio (assets/img/iconos/mexico.svg,
     generado desde datos de Natural Earth, dominio publico). Al ser una
     silueta apaisada necesita mas ancho que un glifo para pesar igual. */
.icon-circle .fa-stack {
    font-size: 0.85rem;
    line-height: inherit;
}

.icon-mexico {
    display: block;
    width: 2.1rem;
}

.icon-mexico svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Marca "(opcional)" dentro de un <label>: no debe competir con la etiqueta. */
.label-opcional {
    font-weight: 400;
    font-size: 0.85em;
    color: #94a3b8;
}

/* ------------------------------------------------------------
   Boton "Ver mas" de las tarjetas + popup de detalle.
   Clases nuevas: no existen en ningun CSS del sitio. El popup es
   independiente del de contacto (#contactModal) para no heredar su
   layout de dos columnas.
   ------------------------------------------------------------ */
.btn-ver-mas {
    margin-top: auto;
    padding: 1.25rem 0 0 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #187495;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.btn-ver-mas:hover {
    color: #15233A;
    gap: 0.8rem;
}

.detalle-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detalle-overlay.show {
    opacity: 1;
}

.detalle-container {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem 2.5rem 2.5rem;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.detalle-overlay.show .detalle-container {
    transform: translateY(0);
}

.detalle-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.25s ease;
}

.detalle-close:hover {
    color: #15233A;
}

.detalle-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #15233A;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.detalle-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #187495;
    margin: 1.75rem 0 0.6rem 0;
}

.detalle-body p {
    color: #5B5A63;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
}

.detalle-body ul {
    margin: 0 0 1rem 0;
    padding-left: 1.15rem;
}

.detalle-body li {
    color: #5B5A63;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0.65rem;
}

.detalle-body li strong {
    color: #15233A;
}

.detalle-body ul ul {
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.detalle-cta {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: #187495;
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.detalle-cta:hover {
    background-color: #15233A;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .detalle-container {
        padding: 2.75rem 1.5rem 2rem;
        max-height: 90vh;
    }
    .detalle-body h3 {
        font-size: 1.3rem;
    }
}

/* ------------------------------------------------------------
   Hero: el degradado de index.css se queda en 0.3 de opacidad a
   partir del 50% de altura, justo donde cae el bloque de texto
   (48%-78% de alto, mitad izquierda), asi que sobre los frames
   claros del video el h1 azul y el subtitulo se perdian.
   Lo sustituimos por dos capas: una horizontal que oscurece el
   lado del texto y otra vertical que cierra arriba y abajo.
   Solo aplica a landing.php; index.php conserva el original.
   ------------------------------------------------------------ */
.hero-section .video-overlay {
    background:
        linear-gradient(90deg, rgba(21, 35, 58, 0.85) 0%, rgba(21, 35, 58, 0.55) 50%, rgba(21, 35, 58, 0.1) 90%),
        linear-gradient(180deg, rgba(21, 35, 58, 0.65) 0%, rgba(21, 35, 58, 0.3) 35%, rgba(21, 35, 58, 0.75) 100%);
}

/* En movil el texto se centra, asi que la capa horizontal estorba. */
@media (max-width: 768px) {
    .hero-section .video-overlay {
        background: linear-gradient(180deg, rgba(21, 35, 58, 0.75) 0%, rgba(21, 35, 58, 0.55) 40%, rgba(21, 35, 58, 0.8) 100%);
    }
}

/* "Nuestros Clientes" y el CTA del formulario son los dos de fondo blanco,
   asi que el border-top de .cta-section (heredado de index.css) solo deja una
   raya suelta en medio. Fuera. */
.cta-section {
    border-top: none;
}

/* Misma razon arriba: la frase de "protegemos vidas" tambien es blanca, asi
   que el border-top de .ns-clientes-section (de nosotros.css) sobra. */
.ns-clientes-section {
    border-top: none;
}

