/* --- CONFIGURACIÓN DEL CONTENIDO GENERAL (PADRE) --- */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
    /* Suaviza el movimiento al navegar por la web */
}

/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #05090C;
    color: white;
}

/* Navbar Estilos */
.navbar {
    background-color: #030608;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.logo img {
    height: 45px;
    display: block;
}

/* Enlaces del Menú */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: auto;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

/* El efecto de la línea original */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Lo que pasa al pasar el mouse original */
.nav-menu a:hover {
    color: #ffffff;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* --- ESTILOS DEL BOTÓN HAMBURGUESA (Oculto en escritorio) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    /* Bajamos de 90vh a 70vh */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 5% 40px 5%;
    /* Aumentamos arriba, reducimos mucho abajo */
    overflow: hidden;
    position: relative;
    /* Obligatorio para contener el fondo absoluto */
    background-color: #05090C;
    /* Asegura un fondo oscuro idéntico a tu paleta */
}

/* El lienzo de nodos se expande por completo al fondo */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Capa más profunda */
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    position: relative;
    z-index: 1;
    /* Eleva el contenedor sobre el fondo de nodos */
    pointer-events: none;
    /* Evita que el contenedor invisible bloquee el canvas */
}

/* Contenido de Texto */
.hero-content {
    flex: 1;
    opacity: 0;
    /* Empieza invisible */
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.badge {
    color: #00d1ff;
    background: rgba(0, 209, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Botones */
.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #00d1ff;
    color: #05090C;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-secondary {
    border: 1px solid #334155;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Contenedor principal de visuales */
.hero-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    /* Centrado vertical real */
    min-height: 500px;
    /* Le damos altura suficiente */
    pointer-events: auto;
}

/* Efecto Glow Mejorado */
.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Un gradiente más fuerte para que atraviese el fondo */
    background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, rgba(0, 153, 255, 0.05) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: 1;
    /* Al fondo de todo */
}

.mockups-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajuste de Imágenes Individuales */
.mockups-wrapper img {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

/* --- Laptop (Elemento Base) --- */
/* Laptop: Ahora es el eje central */
.m-laptop {
    position: relative;
    /* Cambiamos a relative para que sea el eje */
    width: 90%;
    /* Un poco más grande para llenar el espacio */
    z-index: 2;
    transform: none;
    /* Eliminamos traslaciones raras */
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- Smartphone (Sobrepuesto) --- */
/* Smartphone: Flotando a la derecha de la laptop */
.m-phone {
    position: absolute;
    width: 30%;
    /* Proporción ideal */
    z-index: 3;
    right: -4%;
    /* Sale un poco de la laptop para dar profundidad */
    top: -50px;
    /* Lo subimos para que se vea la pantalla */
    filter: drop-shadow(-10px 10px 30px rgba(0, 0, 0, 0.8));
    transition: opacity 0.5s ease;
    opacity: 0;
}

.hero-content.active {
    animation: fadeInUp 1s ease-out forwards;
}

.m-laptop.active {
    animation: slideInRight 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
}

.m-phone.active {
    animation: slideInRight 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.4s;
}


.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
    /* Optimiza el rendimiento de la tarjeta gráfica */
}

/* Clase activa: se inyecta vía JavaScript cuando el elemento entra en pantalla */
.fade-in-element.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- SECCIÓN HERO CON VIDEO DE FONDO ABSTRACTO --- */

.video-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #05090C;
    overflow: hidden;
    padding: 80px 0;
    /* Añade espacio arriba y abajo para móviles */
    box-sizing: border-box;
}

/* Contenedor principal con comportamiento Flexbox */
.video-hero-container {
    width: 100%;
    max-width: 1400px;
    /* Volvemos al ancho estándar más compacto */
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.video-hero-image {
    flex: 1;
    min-width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tamaño máximo moderado para que no se vea gigante */
.video-hero-image img {
    width: 100%;
    max-width: 580px;
    /* Reducido de 750px a un término medio ideal */
    height: auto;
    display: block;
}

/* Contenedor rígido del video de fondo */
.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Se mantiene en la capa base */
    pointer-events: none;
    /* Evita que el usuario pueda pausar el video por error */
}

/* El elemento de video estirado proporcionalmente */
.video-bg-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta y ajusta el video sin achatarse ni estirarse */
    object-position: center;
}

/* Capa de protección de contraste (Fusión con tu fondo oscuro) */
.video-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado oscuro para que el video se desvanezca suavemente y el texto blanco resalte */
    background: linear-gradient(90deg, #05090C 5%, rgba(5, 9, 12, 0.6) 60%, #05090C 100%);
    z-index: 2;
    /* Se posiciona justo encima del video */
}

/* --- CONTENIDO FLOTANTE (TEXTOS) --- */
/* Ajuste para que cada columna ocupe el espacio correcto en escritorio */
.video-hero-content {
    flex: 1;
    min-width: 320px;
}

.video-hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 15px 0 20px;
    letter-spacing: -1px;
}

.video-hero-content p {
    color: #cbd5e1;
    /* Gris claro de alta legibilidad sobre el fondo en movimiento */
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
}


/* --- SECCIÓN CARRUSEL VISUALIZADOR --- */
/* --- SECCIÓN Y ENCABEZADOS --- */
.dicom-viewer-section {
    background-color: #05090C;
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.dicom-viewer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dicom-intro {
    text-align: center;
    max-width: 850px;
    margin-bottom: 50px;
}

.dicom-intro h2 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 20px 0;
    line-height: 1.2;
}

.dicom-intro p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- CONTENEDOR DEL CARRUSEL (CORREGIDO PARA IMAGEN COMPLETA) --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Cambiado a 1400px como solicitaste */
    background-color: #030608;
    /* Tono oscuro integrado con el fondo */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* Apila la imagen arriba y el texto abajo */
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Contenedor exclusivo para la captura médica */
.carousel-image-wrapper {
    width: 100%;
    height: calc(100% - 140px);
    /* Deja espacio exacto abajo para el bloque de texto */
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Garantiza que la interfaz médica se muestre completa al 100% */
}

/* --- BLOQUE DE TEXTO INFERIOR EXCLUSIVO (FUERA DE LA IMAGEN) --- */
.carousel-caption {
    position: relative;
    /* Cambiado de absolute a relative para que se posicione abajo */
    width: 100%;
    height: 140px;
    /* Altura fija para la franja informativa */
    padding: 30px 40px;
    box-sizing: border-box;
    background-color: #0b141a;
    /* Fondo gris-azul oscuro idéntico a tu referencia */
    text-align: left;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    /* Línea divisoria sutil */
}

.carousel-caption h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.carousel-caption p {
    color: #94a3b8;
    /* Gris suave de alta lectura */
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 95%;
}



/* --- BOTONES DE FLECHAS FLOTANTES (Solo sobre el área de la imagen) --- */
.carousel-btn {
    position: absolute;
    /* Ajustado para centrarse verticalmente solo sobre la zona de la imagen, no sobre el texto de abajo */
    top: calc(50% - 70px);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: rgba(5, 9, 12, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.carousel-btn:hover {
    background-color: #00d1ff;
    color: #030608;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
}

.carousel-btn.prev {
    left: 25px;
}

.carousel-btn.next {
    right: 25px;
}

.dicom-viewer-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}

/* --- SECCIÓN GESTIÓN DE INFORMES --- */
.reports-management-section {
    background-color: #030608;
    /* Alternamos al tono más oscuro para separar secciones */
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Centra verticalmente el texto respecto a la imagen */
    gap: 60px;
    /* Separación elegante entre columnas */
}

/* Columna de Texto (45% del ancho) */
.reports-content {
    flex: 1;
    min-width: 320px;
}

.reports-content h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.reports-content p {
    margin-top: 20px;
    /* Añade un sutil espacio de separación con el título h2 */
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Lista de características internas sutiles */
.reports-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reports-features-list li {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    font-weight: 500;
}

.reports-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d1ff;
    /* Viñeta cian de tu marca */
    font-weight: 700;
    font-size: 1rem;
    top: -1px;
}

/* Columna de Imagen (55% del ancho para lucir la plantilla) */
.reports-image-wrapper {
    flex: 1.2;
    min-width: 340px;
    display: flex;
    justify-content: center;
}

/* Estilo de la captura con esquinas curvas y sombra para despegarla del fondo */
.report-screenshot-img {
    width: 100%;
    max-width: 650px;
    /* Tamaño máximo controlado en pantallas gigantes */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 209, 255, 0.02);
    display: block;
    transition: transform 0.3s ease;
}

.reports-image-wrapper:hover .report-screenshot-img {
    transform: scale(1.02);
    /* Sutil efecto interactivo al pasar el cursor */
}

.reports-management-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}


/* --- SECCIÓN NOTIFICACIONES WHATSAPP --- */
.whatsapp-notification-section {
    background-color: #05090C; /* Alternamos al fondo base oscuro */
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.whatsapp-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Nivela verticalmente el texto respecto a la captura */
    gap: 50px;
    width: 100%;
}

/* Columna Izquierda: Texto */
.whatsapp-text-content {
    flex: 1;
    min-width: 320px;
}

.whatsapp-text-content h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.whatsapp-text-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.whatsapp-text-content p strong {
    color: #ffffff;
}

/* Lista de ventajas con checks cian */
.whatsapp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whatsapp-features-list li {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    font-weight: 500;
}

.whatsapp-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d1ff; /* Sello cian de tu marca */
    font-weight: 700;
    font-size: 1rem;
    top: -1px;
}

/* Columna Derecha: Imagen */
.whatsapp-image-wrapper {
    flex: 1.1;
    min-width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Diseño flotante premium para la simulación del chat/notificación */
.whatsapp-screenshot-img {
    width: 100% !important;
    max-width: 600px; /* Tamaño controlado para que guarde una proporción áurea con el texto */
    height: auto !important;
    display: block;
    object-fit: contain;
    
    /* Efecto interactivo: un sutil movimiento hacia arriba al pasar el cursor */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* --- NUEVO: EFECTO DE DESVANECIMIENTO SUAVE EN LA BASE DEL BRAZO --- */
    -webkit-mask-image: linear-gradient(to bottom, #000000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000000 75%, transparent 100%);
}

.whatsapp-image-wrapper:hover .whatsapp-screenshot-img {
    transform: translateY(-5px) scale(1.02);
}

.whatsapp-notification-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}


/* --- SECCIÓN CÓMO FUNCIONA --- */
.how-it-works-section {
    background-color: #030608;
    /* Tono de fondo alterno para romper la monotonía */
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.how-intro {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px auto;
}


.how-intro h2 {
    font-size: 3rem;
    color: #ffffff;
    margin: 20px 0;
    font-weight: 800;
    line-height: 1.2;
}

.how-intro p {
    color: #94a3b8;
    font-size: 1.15rem;
}

/* Rejilla de 4 columnas en Escritorio */
.how-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Estructura del Hito/Paso */
.how-step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Envoltorio del Icono + Número Flotante */
.how-badge-wrapper {
    position: relative;
    margin-bottom: 25px;
}

/* Cápsula del Icono */
.how-icon-box {
    width: 60px;
    height: 60px;
    background-color: #0b151c;
    /* Fondo estilo tus step-tags */
    border: 1px solid rgba(0, 209, 255, 0.12);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.how-step-card:hover .how-icon-box {
    transform: scale(1.05);
    border-color: rgba(0, 209, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.15);
}

/* Pequeño círculo indicador del número */
.how-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background-color: #00d1ff;
    color: #030608;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #030608;
    /* Crea un anillo de separación visual con el icono */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.how-step-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.how-step-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.how-it-works-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}


/* --- SECCIÓN COMPATIBILIDAD --- */
.compatibility-section {
    background-color: #05090C; /* Fondo oscuro de Nuxmed */
    padding-bottom: 100px;
    width: 100%;
    box-sizing: border-box;
}

.compatibility-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

/* Columna Izquierda: Textos */
.compat-text-side {
    flex: 1;
    min-width: 340px;
}

.compat-text-side h2 {
    font-size: 3rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.compat-lead {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Rejilla de Estándares (2x2) */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
}

.standard-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mini etiquetas (DCM, HL7, etc.) */
.tech-badge {
    background-color: #0b151c;
    border: 1px solid rgba(0, 209, 255, 0.15);
    color: #00d1ff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 209, 255, 0.05);
}

.tech-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

/* Columna Derecha: Cuadrícula de Modalidades */
.compat-grid-side {
    flex: 1.1;
    min-width: 360px;
}

.modalities-title {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 25px 0;
}

/* Matriz 3x3 */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tarjeta de Modalidad */
.modality-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.modality-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 209, 255, 0.01);
    border-color: rgba(0, 209, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 209, 255, 0.05);
}

.mod-acronym {
    color: #00d1ff; /* Cambiado de verde a tu cian de marca */
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mod-name {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modality-card:hover .mod-name {
    color: #ffffff; /* Al pasar el cursor, el texto secundario se ilumina */
}

/* Estilo especial para la tarjeta '+ Y más' */
.plus-card .mod-acronym {
    color: #64748b;
    font-size: 1.6rem;
}
.plus-card:hover .mod-acronym {
    color: #00d1ff;
}

.compatibility-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}



/* --- SECCIÓN MÓDULOS EN DOS COLUMNAS --- */
.modules-section {
    background-color: #05090C;
    /* Fondo oscuro de Nuxmed */
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.modules-header {
    margin-bottom: 40px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto 70px auto;
}

.modules-header h2 {
    font-size: 3rem;
    margin-top: 15px;
}

.modules-header h2 span {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- CONTENEDOR GRID ACTUALIZADO A 3 COLUMNAS --- */
.modules-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Cambio clave: ahora define 3 columnas simétricas en computadoras de escritorio */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Separación uniforme para las tres columnas */
}

/* Tarjeta de Solución Estilo Horizontal */
.module-item-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px 25px;
    /* Reducido sutilmente el padding horizontal para que encaje mejor */
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;

    /* PROPIEDADES NUEVAS: Remueven los estilos nativos de los enlaces */
    text-decoration: none;
    /* Elimina cualquier subrayado extraño del texto */
    cursor: pointer;
    /* Fuerza a que aparezca la mano de clic al pasar el cursor */
}

/* Efecto hover interactivo */
.module-item-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 209, 255, 0.15);
    transform: translateY(-5px);
    /* En 3 columnas, el desplazamiento hacia arriba luce más estilizado */
}

/* Caja de Iconos Oscuros */
.module-icon-box {
    width: 46px;
    height: 46px;
    background-color: #0b151c;
    border: 1px solid rgba(0, 209, 255, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.module-item-card:hover .module-icon-box {
    border-color: rgba(0, 209, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.15);
}

/* Estructuración del Texto */
.module-info-text {
    display: flex;
    flex-direction: column;
}

.module-info-text h3 {
    color: #ffffff;
    font-size: 1.2rem;
    /* Ligeramente más compacto para equilibrar las 3 columnas */
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.module-info-text p {
    color: #94a3b8;
    font-size: 0.9rem;
    /* Adaptado el tamaño para mantener la legibilidad */
    line-height: 1.6;
    margin: 0;
}

.modules-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}



/* SECCION DE SOLUCIONES EN CARRUSEL */
.features {
    padding: 40px 5% 40px 5%;
    /* Reducimos el padding superior de 100px a 40px */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;

}

.features-header {
    margin-bottom: 40px;
    /* Reducimos también este margen interno */
}

.features-header h2 {
    font-size: 2.5rem;
    margin-top: 15px;
}

.features-header h2 span {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.slider-wrapper {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 70px 55px;
}

.slider-wrapper .swiper-pagination-bullet {
    background: #fff;
    height: 15px;
    width: 15px;
}

.slider-wrapper .swiper-slide-button {
    color: #fff;
    margin-top: -50px;
    transition: 0.2s ease;
}

.slider-wrapper .swiper-slide-button:hover {
    color: #00d1ff;
    margin-top: -50px;
}

.swiper-slide {
    height: auto;
    /* Permite que el slide crezca */
    display: flex;
    /* Activa flexbox */
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    padding: 30px;
    min-height: max-content;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    /* <--- Centra el título y el párrafo */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* <--- Centra el contenido si usas Flex */
    flex-grow: 1;
}

.feature-icon-container svg {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-icon-container {
    background: rgba(0, 209, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin: 0 auto 25px;
    /* <--- El 'auto' en los lados centra el cuadro */
    border: 1px solid rgba(0, 209, 255, 0.2);
}

.feature-card:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.6));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 290px;
    /* <--- Limita un poco el ancho para que el texto centrado se vea mejor */
    margin: 0 auto;
}

.feature-card:hover .feature-icon-container {
    background: rgba(0, 209, 255, 0.2);
    border-color: #00d1ff;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

/* Aplicamos la animación solo al contenedor del icono de Informes */
/* Puedes añadir una clase extra llamada 'pulse-active' a ese contenedor */
.feature-icon-container.pulse-active {
    animation: pulse-glow 2s infinite;
    border-color: rgba(0, 209, 255, 0.6);
    background: rgba(0, 209, 255, 0.15);
}

/* Opcional: Hacer que el pulso sea más intenso cuando el usuario pasa el mouse */
.feature-card:hover .pulse-active {
    animation-duration: 1s;
    /* El pulso se acelera al hacer hover */
}

.features::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}


/* --- SECCIÓN MODELOS DE IMPLEMENTACIÓN --- */
.infra-section {
    background-color: #030608;
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.infra-intro {

    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}


.infra-intro h2 {
    font-size: 3rem;
    color: #ffffff;
    margin: 20px 0;
    font-weight: 800;
    line-height: 1.2;
}

.infra-intro p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Contenedor Grid */
.infra-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* Hace que todas las tarjetas tengan la misma altura */
}

/* Tarjeta Base */
.infra-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 45px 35px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

/* Tarjeta Destacada (On-Premise) */
.infra-card.featured {
    background: rgba(0, 209, 255, 0.02);
    border: 1px solid rgba(0, 209, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.infra-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 255, 0.25);
}

/* Badge Superior de la Tarjeta Destacada */
.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    color: #030608;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 209, 255, 0.3);
}

/* Envoltorio de Iconos */
.infra-icon-wrapper {
    width: 46px;
    height: 46px;
    background-color: #0b151c;
    border: 1px solid rgba(0, 209, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.infra-card h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.infra-subtitle {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.infra-subtitle.text-cyan {
    color: #00d1ff;
}

.infra-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Listado con checks verdes/cian */
.infra-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.infra-list li {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-weight: 500;
}

/* Ícono Check personalizado */
.infra-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d1ff;
    /* Manteniendo tu cian de marca en lugar de verde */
    font-weight: 700;
    font-size: 1.1rem;
    top: -2px;
}

/* Texto explicativo inferior (italics) */
.infra-footer-text {
    margin-top: auto;
    /* Empuja el texto al fondo de la tarjeta */
    color: #64748b;
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.5;
}

.infra-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}

/* --- SECCIÓN ZIG-ZAG COMPLETA --- */
.benefits-zigzag {
    width: 100%;
    background-color: #05090C;
    /* Fondo oscuro de tu marca */
    overflow: hidden;
}

.benefits-intro {
    text-align: center;
    padding: 80px 5% 40px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-intro h2 {
    font-size: 3rem;
    margin: 15px 0;
    color: white;
}

.benefits-intro h2 span {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.benefits-intro p {
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* --- ELEMENTO ZIGZAG EN PANTALLA COMPLETA --- */
.zigzag-item {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    width: 100%;
    min-height: 100vh;
    /* Ocupa toda la pantalla */
    margin-bottom: 0;
    /* Eliminado para transiciones continuas de pantalla */
    padding: 0 8%;
    box-sizing: border-box;
}

/* --- BLOQUE DE TEXTO --- */
.zigzag-content {
    grid-column: 1 / 6;
    /* Ocupa de la columna 1 a la 5 (deja la 6 libre como espacio en blanco) */
    z-index: 3;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding-right: 40px;
    /* Empuja el texto lejos de la imagen derecha */
}

/* Inversión de Texto para el efecto Reverse */
.zigzag-item.reverse .zigzag-content {
    grid-column: 8 / 13;
    /* Ocupa de la columna 8 a la 12 (deja la 7 libre como espacio en blanco) */
    padding-right: 0;
    /* Resetea el padding derecho */
    padding-left: 40px;
    /* Empuja el texto lejos de la imagen izquierda */
}

/* Clases de animación nativas de tu script */
.zigzag-item.reveal-visible .zigzag-content,
.zigzag-item.active .zigzag-content {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.step-tag {
    color: #00d1ff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.zigzag-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
}

.zigzag-content p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 1.15rem;
}

/* --- CONTENEDOR DE IMAGEN (50% de la pantalla con degradado) --- */
.zigzag-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    /* Por defecto se alinea a la derecha */
    width: 50%;
    /* Ocupa exactamente la mitad de la pantalla */
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Invierte la posición de la imagen en los elementos reverse */
.zigzag-item.reverse .zigzag-bg-container {
    right: auto;
    left: 0;
    /* Pasa a la izquierda */
}

.zigzag-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Empieza invisible */

    /* Efecto inicial recomendado: Desplazada 40px hacia la derecha y un poco más pequeña */
    transform: translateX(40px) scale(1.03);

    /* Transición ultra suave con una curva de velocidad elegante (Cubic Bezier) */
    transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Estado inicial inverso: La imagen de la izquierda entra desde el lado izquierdo */
.zigzag-item.reverse .zigzag-bg-img {
    transform: translateX(-40px) scale(1.03);
}

/* --- ESTADO ACTIVO (Se activa automáticamente al hacer scroll) --- */
/* Vinculamos la animación a las clases que ya maneja tu JavaScript de scroll */
.zigzag-item.reveal-visible .zigzag-bg-img,
.zigzag-item.active .zigzag-bg-img {
    opacity: 0.5;
    /* Sube a su opacidad final (puedes probar 0.6 o 0.7 si la quieres más viva) */
    transform: translateX(0) scale(1);
    /* Regresa a su posición y tamaño natural */
}

/* --- MÁSCARAS DE DEGRADADO (Efecto difuminado 50/50) --- */

/* Difuminado para imágenes a la derecha (desvanece de derecha a izquierda hacia el centro) */
.zigzag-item .zigzag-bg-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Empieza el desvanecimiento desde el borde izquierdo (0%) de la imagen de forma muy suave */
    background: linear-gradient(90deg, #05090C 0%, transparent 40%, transparent 100%);
    z-index: 2;
}

/* Difuminado para imágenes a la izquierda (Caso de Seguridad) */
.zigzag-item.reverse .zigzag-bg-container::after {
    /* Invierte el degradado para que se desvanezca suavemente hacia la derecha */
    background: linear-gradient(-90deg, #05090C 0%, transparent 40%, transparent 100%);
}

/* Línea divisoria decorativa opcional entre pantallas */
.benefits-zigzag::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.15), transparent);
}

/* --- SECCIÓN DE CLIENTES --- */
.trusted-clients-section {
    border-top: 1px solid rgba(0, 209, 255, 0.08);
    background-color: #030608;
    /* El tono más oscuro de tu marca */
    padding: 60px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Texto introductorio en gris suave */
.clients-title {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Distribución horizontal de los logos */
.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Espaciado amplio y elegante entre logos */
    flex-wrap: wrap;
}

/* Contenedor individual para homogeneizar los logos */
.client-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    max-width: 200px;
}

/* Efecto visual: los logos se integran en monocromo y se iluminan al pasar el cursor */
.client-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7) opacity(0.5);
    transition: all 0.3s ease;
}

.client-logo-img.is-png-compact {
    height: 70px;
    /* Al ser más altos o circulares, necesitan más altura para nivelar el peso visual */
}

/* Al pasar el cursor, el logo toma su color original o se envuelve en un brillo cian */
.client-logo-wrapper:hover .client-logo-img {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.04);
}


/* --- SECCIÓN DE CUMPLIMIENTO CON FONDO OSCURO NUXMED --- */
.compliance-section {
    background-color: #05090C;
    /* Fondo oscuro original */
    padding: 100px 5%;
    width: 100%;
    box-sizing: border-box;
    /* Línea divisoria superior muy fina para separar secciones */
    border-top: 1px solid rgba(0, 209, 255, 0.08);
}

.compliance-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* --- BLOQUE INFORMATIVO (TEXTO CLARO) --- */
.compliance-info {
    flex: 1;
    max-width: 500px;
}

.compliance-info h2 {
    font-size: 2.8rem;
    color: #ffffff;
    /* Texto blanco puro */
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.compliance-info p {
    color: #94a3b8;
    /* Gris azulado de tu paleta actual */
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Botón de Acción Cian/Azul de Marca */
.btn-compliance {
    display: inline-block;
    background-color: #00d1ff;
    /* El azul cian de tu marca */
    color: #05090C;
    /* Texto oscuro para contraste */
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.2);
}

.btn-compliance:hover {
    background-color: #ffffff;
    color: #05090C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- REJILLA DE TARJETAS ESTILO NEÓN/GLASSMORPHISM --- */
.compliance-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 160px);
    gap: 20px;
    justify-content: center;
}

/* Tarjeta Oscura Semitransparente */
.compliance-card {
    background: rgba(255, 255, 255, 0.03);
    /* Fondo sutilmente más claro que el fondo general */
    width: 160px;
    height: 160px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    /* Borde gris transparente por defecto */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    /* Efecto cristal */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Efecto Iluminación Hover */
.compliance-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 209, 255, 0.02);
    border-color: rgba(0, 209, 255, 0.4);
    /* Se ilumina con el cian de tu marca */
    box-shadow: 0 10px 25px -5px rgba(0, 209, 255, 0.15);
}

/* Ajuste de imágenes internas */
.badge-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Opcional: Hace que los logos no integrados brillen mejor en pantallas oscuras */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}


.main-footer {
    background-color: #030608;
    /* Un tono aún más oscuro que el fondo */
    padding: 70px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-info p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-top: 0;
    /* Elimina variaciones de margen superior */
    margin-bottom: 25px;
    /* Margen idéntico hacia abajo para ambas columnas */
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    /* Elimina sangrías del navegador */
    margin: 0;
    /* Sincroniza el inicio superior exacto */
}

.footer-links li {
    /* Cambiado a 15px para que coincida exactamente con el gap de Conéctate */
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00d1ff;
}

/* Estilos de Contacto y Facebook */
.footer-contact {
    display: flex;
    flex-direction: column;
    /* Quitamos el 'gap' general para que no empuje el título <h4> */
}

.social-icon-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #94a3b8;
    margin-bottom: 15px;
    /* Reemplaza al gap, dando un espaciado idéntico a un <li> */
    transition: all 0.3s ease;
}

.social-icon-link:last-child {
    margin-bottom: 0;
}

.social-icon-link:hover {
    color: #ffffff;
}

.contact-icon {
    flex-shrink: 0;
    /* Evita que el icono se deforme */
    transition: transform 0.3s ease;
}

.social-icon-link:hover .contact-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(0, 209, 255, 0.5));
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 13px;
}



.whatsapp-btn-img {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    /* Ajusta el tamaño según prefieras */
    height: auto;
    z-index: 10000;
    transition: transform 0.3s ease;
}

.whatsapp-btn-img img {
    width: 100%;
    height: auto;
    display: block;
    /* Un toque de sombra para que resalte sobre el fondo oscuro */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

/* Efecto de Pulso (opcional, para llamar la atención) */
.whatsapp-btn-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25d366;
    /* El verde de WhatsApp */
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn-img:hover {
    transform: scale(1.1);
    /* Se agranda un poco al pasar el mouse */
}

/* --- ESTILOS PARA PÁGINAS INDIVIDUALES DE TEXTO --- */

.legal-page-wrapper {
    background-color: #05090C;
    /* El color oscuro de tu logo */
    width: 100%;
    min-height: 80vh;
    /* Asegura espacio suficiente si el texto es corto */
    padding: 90px 5% 40px 5%;
    /* Padding alto arriba para que el navbar fijo no tape el título */
    box-sizing: border-box;
}

.legal-content {
    max-width: 1200px;
    /* Ancho óptimo europeo para lectura de párrafos largos */
    margin: 0 auto;
    /* Centra el bloque en la pantalla */
    text-align: justify;
    /* Alineación limpia justificada */
}

.legal-badge {
    color: #00d1ff;
    /* El azul cian de NUXMED */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.legal-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 700;
}

.legal-content h2 {
    color: #00d1ff;
    /* Usamos el cian de NUXMED para resaltar las secciones */
    font-size: 1.3rem;
    margin-top: 35px;
    /* Espacio extra arriba para separarlo del bloque anterior */
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Párrafos estándar */
.legal-content p {
    color: #94a3b8;
    /* Texto gris claro/suave para lectura prolongada */
    font-size: 1.05rem;
    line-height: 1.8;
    /* Espaciado interlineal cómodo */
    margin-bottom: 25px;
    /* Separación uniforme entre párrafos */
}

.legal-content p strong {
    color: #ffffff;
    /* Resalta los títulos internos como 'Servicio de Almacenamiento' en blanco */
    font-weight: 600;
}

/* Primer párrafo resaltado opcional */
.legal-content .legal-highlight {
    color: #e2e8f0;
    /* Un tono más cercano al blanco puro */
    font-size: 1.15rem;
    line-height: 1.8;
}


/* --- DISEÑO COMPLETO: PÁGINA AGENDA TU DEMOSTRACIÓN --- */
/* --- DISEÑO DE CONTACTO CON CENTRADO VERTICAL ABSOLUTO Y FONDO --- */

.contact-page-wrapper {
    background-color: #05090C;
    width: 100%;
    min-height: 100vh;
    /* Sigue tomando toda la pantalla */
    display: flex;
    align-items: center;
    /* Mantiene el cálculo del eje vertical */
    justify-content: center;
    position: relative;
    /* REDUCIMOS padding superior a 60px para ganar espacio arriba */
    padding: 40px 8% 40px 8%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- IMAGEN DE FONDO A LA DERECHA CON DEGRADADO --- */
.contact-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* Ocupa la mitad derecha de la pantalla */
    height: 100%;
    /* Reemplaza 'tu-imagen-medica.jpg' por tu archivo real */
    background-image: url('contactus.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* Opacidad controlada para el tema oscuro */
    z-index: 1;
    pointer-events: none;
}

/* Difuminado de la imagen hacia el formulario (Derecha a Izquierda) */
.contact-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Desvanece la imagen con el color oscuro #05090C conforme se acerca al centro */
    background: linear-gradient(90deg, #05090C 0%, rgba(5, 9, 12, 0.4) 60%, transparent 100%);
    z-index: 2;
}

/* --- REJILLA DEL CONTENIDO --- */
.contact-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Mantiene el formulario en el lado izquierdo libre */
    position: relative;
    z-index: 3;
    /* Asegura que el formulario quede por encima del fondo */
}

.contact-left-panel {
    width: 100%;
    max-width: 580px;
    /* COMPENSACIÓN: Desplazamos todo el bloque hacia arriba restando margen inferior */
    margin-top: -80px;
}

.contact-heading h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    /* Más pegado a la descripción */
}

.contact-heading p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 25px;
    /* Reducido para que el formulario suba inmediatamente */
}

/* --- CAMPOS Y FILAS (Sometidos a la estructura compartida) --- */
.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    width: 50%;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 18px;
    width: 100%;
    position: relative;
}

.contact-left-panel .form-group input,
.select-wrapper select {
    width: 100%;
    background-color: #0c1319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    height: 52px;
}

.contact-left-panel .form-group input:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: #00d1ff;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.12);
}

/* --- CONTENEDOR DE DOS CAMPOS POR FILA --- */
.form-row {
    display: flex;
    gap: 16px;
    /* Espacio de separación horizontal entre teléfono y correo */
    width: 100%;
    margin-bottom: 0;
    /* Dejamos que los .form-group internos controlen el espacio inferior */
}

/* Forzamos a que los dos elementos dentro de la fila midan exactamente el 50% cada uno */
.form-row .form-group {
    flex: 1;
    margin-bottom: 18px;
    /* Mantiene la separación vertical con el campo Nombre */
}



/* Inputs estándar de texto y correo */
.contact-left-panel .form-group input {
    width: 100%;
    background-color: #0c1319;
    /* Gris oscuro para contraste */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.message-field-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.message-field-wrapper textarea {
    width: 100%;
    min-height: 100px;
    /* Altura inicial óptima y cómoda para la vista */
    background-color: #0c1319;
    /* Gris oscuro idéntico a tus otros inputs */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    /* Hereda la tipografía de NUXMED */
    box-sizing: border-box;
    resize: vertical;
    /* Permite al usuario estirarlo solo hacia abajo, impidiendo que rompa el layout horizontal */
    transition: all 0.3s ease;
}

/* Sincronización del color del placeholder */
.message-field-wrapper textarea::placeholder {
    color: #475569;
}

/* Destello cian de marca al hacer clic interno */
.message-field-wrapper textarea:focus {
    outline: none;
    border-color: #00d1ff;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.12);
}

/* Modificación visual de placeholders */
.contact-left-panel .form-group input::placeholder {
    color: #475569;
    /* Tono de tu placeholder original */
}

.contact-left-panel .form-group input:focus {
    outline: none;
    border-color: #00d1ff;
    /* Destello cian de marca */
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.12);
}


/* --- MENÚS DESPLEGABLES (SELECT) --- */
.select-wrapper {
    display: flex;
}

.select-wrapper select {
    width: 100%;
    background-color: #0c1319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Oculta la flecha nativa */
    transition: all 0.3s ease;
}

/* Sincroniza color de opción oculta con los placeholders */
.select-wrapper select:invalid,
.select-wrapper select option[value=""] {
    color: #475569;
}

.select-wrapper select option {
    background-color: #0c1319;
    color: #ffffff;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #00d1ff;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.12);
}

.select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 11px;
    pointer-events: none;
}

/* --- BOTÓN COMPACTO IZQUIERDO --- */
.btn-submit-demo {
    background-color: #00d1ff;
    /* Azul cian brillante */
    color: #05090C;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    align-self: flex-start;
    /* Forzar alineación a la izquierda */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 209, 255, 0.15);
}

.btn-submit-demo:hover {
    background-color: #ffffff;
    color: #05090C;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

/* --- BLOQUE DERECHO: IMAGEN / MOCKUPS --- */
.contact-right-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.demo-mockups-wrapper {
    width: 100%;
    max-width: 520px;
}

.demo-devices-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Estado de alertas */
.status-box {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* --- CORRECCIÓN FORZADA DE TEMA OSCURO PARA INTL-TEL-INPUT --- */

/* Forzar variables nativas de la librería para todo el contenedor */
.iti {
    --iti-dropdown-bg: #0c1319 !important;
    /* Fondo oscuro para la lista de países */
    --iti-dropdown-text: #ffffff !important;
    /* Texto de nombres en blanco puro */
    --iti-dropdown-hover-bg: #1e293b !important;
    /* Fondo gris al pasar el mouse por encima */
    --iti-search-input-bg: #070b0e !important;
    /* Fondo de la barra interna de búsqueda 'Search' */
    --iti-search-input-text: #ffffff !important;
    /* Texto que escribe el usuario al buscar */
    --iti-border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- AJUSTES FINALES DE DISEÑO Y ALINEACIÓN --- */

/* 1. Separar el icono de búsqueda del texto 'Search' */
.iti__search-input {
    /* Desplaza el texto hacia la derecha para que no choque con la lupa */
    padding-left: 36px !important;
}


/* --- BARRA DE DESPLAZAMIENTO OSCURA PARA EL DESPLEGABLE DE PAÍSES --- */

/* Soporte moderno (Chrome, Safari, Firefox, Edge) */
.iti__country-list,
.iti__dropdown-content {
    scrollbar-width: thin;
    /* Hace la barra más delgada y elegante */
    scrollbar-color: #475569 #0c1319;
    /* [Color del tirador] [Color del fondo] */
}

/* Soporte específico para motores WebKit (Chrome, Safari, Opera) */
.iti__country-list::-webkit-scrollbar,
.iti__dropdown-content::-webkit-scrollbar {
    width: 6px;
    /* Ancho sutil para que no ocupe demasiado espacio */
}

/* El fondo por donde se desliza la barra */
.iti__country-list::-webkit-scrollbar-track,
.iti__dropdown-content::-webkit-scrollbar-track {
    background: #0c1319;
    /* Mismo color oscuro del fondo del menú */
    border-radius: 0 6px 6px 0;
    /* Redondeado en las esquinas derechas */
}

/* El tirador o barra que se mueve al arrastrar */
.iti__country-list::-webkit-scrollbar-thumb,
.iti__dropdown-content::-webkit-scrollbar-thumb {
    background: #475569;
    /* Gris oscuro para el tirador */
    border-radius: 10px;
}

/* Cambio de color al pasar el cursor sobre la barra */
.iti__country-list::-webkit-scrollbar-thumb:hover,
.iti__dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #00d1ff;
    /* Se ilumina en cian de NUXMED al pasar el mouse */
}


/* --- ENCABEZADO SUPERIOR SOBRE NOSOTROS --- */
.about-hero-header {
    text-align: center;
    max-width: 850px;
    margin: 40px auto 60px auto;
    padding: 0 5%;
    /* Evita que el texto toque los bordes del móvil */
    box-sizing: border-box;
}

.about-hero-header h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin: 20px 0;
    font-weight: 800;
    line-height: 1.2;
}

.cyan-highlight {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-lead {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- BLOQUE DE HISTORIA (MÁXIMA ADAPTACIÓN) --- */
.about-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 100px auto;
    gap: 60px;
    padding: 0 5%;
    /* Añadido padding lateral de seguridad para móviles */
    box-sizing: border-box;
    width: 100%;
}

.about-history-content {
    flex: 1.2;
    width: 100%;
    /* Asegura que tome el espacio correcto sin desbordar */
}

/* Alineación limpia del tag en escritorio */
.about-history-content .step-tag {
    display: inline-block;
}

.about-history-content h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 700;
    line-height: 1.2;
}

.about-history-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-history-content p strong {
    color: #ffffff;
}

/* Columna de la tarjeta derecha */
.about-history-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nueva clase exclusiva para el logo: más grande, limpia y sin bordes */
.about-history-logo {
    width: 100%;
    max-width: 480px; /* Incrementado para que tenga un tamaño imponente en PC */
    height: auto;
    object-fit: contain;
    display: block;
    /* Eliminamos sombras pesadas y fondos para que flote sola sobre el fondo negro de la web */
}

/* --- SECCIÓN MISIÓN, VISIÓN Y VALORES --- */
.mvv-section {
    width: 100%;
    padding: 60px 5%;
    box-sizing: border-box;
    background-color: #05090C;
    /* Mismo fondo de tu sección */
}

.mvv-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas en escritorio */
    gap: 30px;
}

/* Estilo Premium para las Tarjetas */
.mvv-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 40px 30px;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alineado a la izquierda como tu imagen */
    text-align: left;
}

/* Efecto hover interactivo cian */
.mvv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.05);
}

/* Contenedor de Iconos (Estilo Píldora/Círculo Tecnológico) */
.mvv-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: #0b151c;
    /* Fondo a juego con tus step-tags */
    border: 1px solid rgba(0, 209, 255, 0.15);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 209, 255, 0.1);
}

.mvv-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.mvv-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Lista de Valores única */
.mvv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mvv-list li {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

/* Viñeta personalizada con el punto cian */
.mvv-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d1ff;
    font-weight: bold;
}

.mvv-list li:last-child {
    margin-bottom: 0;
}

/* --- ESTILOS DE LA LÍNEA DE TIEMPO INTERACTIVA --- */
.timeline-section {
    background-color: #05090C;
    padding: 100px 5%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.timeline-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.timeline-intro h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-top: 15px;
    font-weight: 700;
}

/* Contenedor principal de los hitos */
.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Eje central con degradado de color cian */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 209, 255, 0.1) 0%, #00d1ff 20%, #0099ff 80%, rgba(0, 153, 255, 0.1) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* Bloques individuales */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 70px;
    box-sizing: border-box;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alineaciones alternadas para simular la estructura de la imagen */
.timeline-item.left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

/* Círculos conectores */
.timeline-dot {
    position: absolute;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: #030608;
    border: 3px solid #00d1ff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.6);
    transition: all 0.3s ease;
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

/* Bloque de Textos */
.timeline-date {
    display: block;
    color: #00d1ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.timeline-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Interacción sutil con el cursor */
.timeline-item:hover .timeline-dot {
    background-color: #00d1ff;
    transform: scale(1.2);
}

/* --- DISEÑO DE ETIQUETAS ESTILO PÍLDORA (STEP-TAGS) --- */
.step-tag {
    display: inline-block;
    background-color: #0b151c;
    /* Fondo azul oscuro muy sutil */
    color: #00d1ff;
    /* El cian característico de tu marca */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 24px;
    /* Margen interno para darle forma de píldora alargada */
    border-radius: 50px;
    /* Bordes completamente redondeados */
    border: 1px solid rgba(0, 209, 255, 0.08);
    /* Borde sutil cian para dar profundidad */
    margin-bottom: 20px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.02);
    /* Sutil iluminación interna */
}

/* --- SECCIÓN CTA FINAL (NOSOTROS) --- */
/* --- SECCIÓN CTA FINAL OSCURA Y TECNOLÓGICA --- */
.about-cta-section {
    width: 100%;
    /* Degradado ultra profundo: combina el negro de fondo con destellos cian oscuros */
    background: linear-gradient(135deg, #030608 0%, #002b3d 50%, #05090C 100%);
    padding: 100px 5%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Línea divisoria superior e inferior muy sutil para dar estructura */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Efecto de resplandor ambiental cian en el centro para dar profundidad radial */
.about-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.about-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-cta-container h2 {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-cta-container p {
    color: #94a3b8;
    font-size: 1.15rem;
    margin: 0 0 40px 0;
    font-weight: 400;
}


/* Botón estilizado con el cian de tu marca */
.btn-about-cta {
    display: inline-block;
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    color: #030608;
    /* Texto oscuro para máxima legibilidad sobre el cian */
    text-decoration: none;
    padding: 15px 38px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    /* Cambiado a píldora para hacer juego con tus step-tags */
    box-shadow: 0 4px 20px rgba(0, 209, 255, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Efecto hover interactivo */
.btn-about-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 209, 255, 0.4);
    filter: brightness(1.1);
    /* Hace que el botón brille ligeramente más */
}



/* --- SECCIÓN CASOS DE ÉXITO --- */
.success-stories-section {
    background-color: #030608; /* Fondo ultra oscuro */
    padding: 100px 5%;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}



.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

/* Columna Izquierda: Texto y Logos */
.stories-text-side {
    flex: 1;
    min-width: 340px;
}

.stories-text-side h2 {
    font-size: 3.2rem !important; /* Incrementado para darle máxima presencia visual */
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.15; /* Ajuste sutil de interlineado para que luzca compacto y moderno */
    letter-spacing: -0.5px;
}

.stories-text-side h2 span {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stories-lead {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Caja contenedora de testimonios */
.story-testimonial-box {
    position: relative;
    min-height: 160px; /* Evita saltos bruscos de layout al cambiar de texto */
    margin-bottom: 40px;
}

.testimonial-tab {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.testimonial-tab.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    color: #ffffff;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.testimonial-author {
    display: block;
    color: #00d1ff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* CARRUSEL DE LOGOS (CONTENEDOR HORIZONTAL AUTOMÁTICO) */
.logos-carousel-wrapper {
    width: 100%;
    overflow-x: auto; /* Permite scroll infinito/arrastre si agregas 20 logos más adelante */
    scrollbar-width: none; /* Oculta barra en Firefox */
    padding-bottom: 10px;
}

.logos-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome/Safari */
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Botones que envuelven los logos */
.logo-nav-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    min-width: 130px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-nav-btn img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0.6) opacity(0.5);
    transition: all 0.3s ease;
}

.logo-nav-btn img.is-png-compact {
    height: 45px; /* Compensa tamaño de Stella Maris y Tezza */
}

/* Estado del logo seleccionado o en hover */
.logo-nav-btn:hover, .logo-nav-btn.active {
    border-color: rgba(0, 209, 255, 0.3);
    background: rgba(0, 209, 255, 0.02);
}

.logo-nav-btn:hover img, .logo-nav-btn.active img {
    filter: grayscale(0) brightness(1) opacity(1);
}

/* COLUMNA DERECHA: CUADRO DE IMÁGENES */
.stories-visual-side {
    flex: 1.1;
    min-width: 360px;
    display: flex;
    justify-content: center;
}

.gallery-master-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    /* 1. Incrementado de 460px a 540px para alinearse perfectamente con la cabecera y el título */
    height: 540px; 
    background-color: #000000; /* Fondo negro puro para que las imágenes verticales se integren limpiamente */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Envoltorios de galería por cliente */
.client-gallery-wrapper {
    display: none;
    width: 100%;
    height: 100%;
}

.client-gallery-wrapper.active {
    display: block;
}

/* Estructura de slides de imagen */
.gallery-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

.gallery-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important; /* Fuerza al navegador a calcular el alto real del slide */
}

.gallery-slide img {
    width: 100%;
    height: calc(100% - 90px); /* Deja espacio exacto abajo para la leyenda */
    object-fit: contain;
}

/* LEYENDA EXPLICATIVA INFERIOR (SACADA DE LA IMAGEN) */
.gallery-legend {
    width: 100%;
    height: 90px;
    background-color: #0b141a; /* Fondo idéntico a tu carrusel superior */
    padding: 15px 25px;
    box-sizing: border-box;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* MINIFLECHAS PARA PASAR LAS IMÁGENES DEL CLIENTE */
.inner-gallery-btn {
    position: absolute;
    top: calc(50% - 45px) !important;/* Centrado exacto solo en el área de la imagen */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(5, 9, 12, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding-bottom: 4px;
}

.inner-gallery-btn:hover {
    background-color: #00d1ff;
    color: #030608;
}

.inner-gallery-btn.prev { left: 15px; }
.inner-gallery-btn.next { right: 15px; }


/* --- SECCIÓN LEGAL SENAPI --- */
.senapi-legal-section {
    background-color: #05090C; /* El fondo oscuro de Nuxmed */
    padding: 50px 5%;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.senapi-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Alinea ambas columnas arriba */
    gap: 60px;
}

/* Bloques de Columnas */
.senapi-text-block, 
.senapi-geo-block {
    flex: 1;
    min-width: 340px;
}

.senapi-container h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.senapi-container p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.senapi-container p strong {
    color: #ffffff;
}

/* --- CUADRO DE RESOLUCIÓN DESTACADO --- */
.senapi-resolution-box {
    background: rgba(0, 209, 255, 0.01);
    border: 1px solid rgba(0, 209, 255, 0.12);
    border-radius: 16px;
    padding: 30px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.res-label {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
}

.res-number {
    display: block;
    color: #00d1ff; /* El cian vibrante */
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.senapi-resolution-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #94a3b8;
}

/* --- LISTA DE PAÍSES COMUNIDAD ANDINA --- */
.can-countries-grid {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Organiza los países en una cuadrícula de 2x2 */
    gap: 25px;
}

.can-countries-grid li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.can-bullet {
    color: #00d1ff;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
}

.can-countries-grid li strong {
    color: #ffffff;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
}

.can-countries-grid li p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #64748b;
    margin: 0;
}

.can-legal-note {
    font-style: italic;
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.6;
}



/* --- SECCIÓN LEGAL SENAPI INDEX --- */
.senapi-section-index {
    background-color: #05090C; /* El fondo oscuro de Nuxmed */
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.senapi-index-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Centra verticalmente la tarjeta con el texto */
    gap: 60px; /* Separación elegante entre columnas */
}

/* Columna de Texto Izquierda */
.senapi-index-text {
    flex: 1.2;
    min-width: 340px;
}

.senapi-index-text h2 {
    font-size: 3rem;
    color: #ffffff;
    margin: 15px 0 25px 0;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.senapi-index-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.senapi-index-text p strong {
    color: #ffffff;
}

/* Envoltorio del botón */
.senapi-action-box {
    margin-top: 35px;
    display: flex;
    align-items: center; /* Alineación vertical perfecta */
    gap: 25px; /* Espacio de separación entre el botón y el logo */
    flex-wrap: wrap; /* Permite que se apilen en pantallas muy pequeñas */
}

.btn-senapi-more {
    display: inline-block;
    background: transparent;
    color: #00d1ff;
    border: 1px solid rgba(0, 209, 255, 0.25);
    text-decoration: none;
    padding: 13px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Evita que el botón se comprima */
}

.btn-senapi-more:hover {
    background: linear-gradient(90deg, #00d1ff, #0099ff);
    color: #030608;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 209, 255, 0.25);
}

/* Contenedor del sello */
.bolivia-seal-wrapper {
    display: flex;
    align-items: center;
    height: 45px; /* Altura controlada para que sea un detalle elegante y sutil */
}

/* Estilo de la imagen del sello: se integra estéticamente con el modo oscuro */
.bolivia-seal-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Mantiene los colores originales del escudo (rojo, amarillo, verde), pero integrados con un 65% de opacidad para que se vea elegante en el fondo negro */
    filter: none; 
    opacity: 0.65; 
    transition: all 0.3s ease;
}

/* Al pasar el cursor sobre la zona, el vector toma el 100% de fuerza visual */
.senapi-action-box:hover .bolivia-seal-img {
    opacity: 1;
    transform: scale(1.05); /* Sutil efecto de crecimiento */
}


/* Columna de Tarjeta Derecha */
.senapi-index-card-side {
    flex: 0.8;
    min-width: 320px;
    display: flex;
    justify-content: center;
}

/* Tarjeta de Resolución (Idéntica a la captura de pantalla enviada) */
.senapi-resolution-card {
    background-color: #030608; /* Fondo sutil más oscuro */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-align: left;
}

.senapi-resolution-card:hover {
    border-color: rgba(0, 209, 255, 0.15);
    transform: scale(1.02);
}

.res-card-label {
    display: block;
    color: #475569; /* Gris oscuro para la etiqueta */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.res-card-number {
    display: block;
    color: #00d1ff; /* Tu cian característico */
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.senapi-resolution-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #94a3b8;
}

.senapi-section-index::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
    margin: 0 auto 40px;
    /* Crea una línea de luz muy fina entre secciones */
}


/* Responsivo para Móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Muestra la hamburguesa */
    }

    /* Transformación de tu .nav-menu en cortina lateral */
    .nav-menu {
        position: fixed;
        top: 80px;
        /* Despliega justo debajo de la navbar */
        right: -100%;
        /* Oculto inicialmente a la derecha */
        width: 100%;
        /* Ocupa todo el ancho en móviles */
        height: calc(100vh - 80px);
        /* Ajusta el alto descontando la barra superior */
        background-color: #030608;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 50px;
        /* Mayor separación entre enlaces para pantallas táctiles */
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    /* Estado activo controlado por JavaScript */
    .nav-menu.is-open {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
        /* Aumenta legibilidad en móviles */
    }

    /* --- ANIMACIÓN EN "X" PARA LA HAMBURGUESA --- */
    .menu-toggle.is-open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #00d1ff;
    }

    .menu-toggle.is-open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #00d1ff;
    }

    .features-header h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .social-icon-link {
        justify-content: center;
    }

    .dicom-intro h2 {
        font-size: 2.2rem;
    }

    .carousel-container {
        height: 400px;
        border-radius: 16px;
    }

    .carousel-caption {
        padding: 40px 20px 20px 20px;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .modules-grid-container {
        /* Forzamos a que sea estrictamente UNA columna vertical */
        grid-template-columns: 1fr !important;
        display: grid !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .module-item-card {
        /* Hacemos que la tarjeta abarque todo el ancho disponible */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

        /* Ajuste de dirección para que no se estruje el icono a la izquierda */
        flex-direction: row !important;
        align-items: flex-start !important;
        padding: 24px 20px !important;
    }

    .module-info-text {
        width: 100% !important;
        text-align: left !important;
        /* Mantiene la lectura alineada a la izquierda */
    }

    .module-info-text h3 {
        font-size: 1.2rem !important;
        white-space: normal !important;
        /* Evita que el título se corte en una sola línea */
    }

    .module-info-text p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .slider-wrapper {
        margin: 0 10px 40px;
    }

    .slider-wrapper .swiper-slide-button {
        display: none;
    }

    .whatsapp-btn-img {
        bottom: 20px;
        right: 20px;
        width: 55px;
    }

    /* 1. Modificar el bloque del zigzag a una sola columna */
    .zigzag-item,
    .zigzag-item.reverse {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 6%;
        /* Reducimos márgenes laterales para ganar espacio */
        text-align: center;
    }

    /* 2. Expandir el texto para que ocupe todo el ancho disponible */
    .zigzag-content,
    .zigzag-item.reverse .zigzag-content {
        grid-column: auto;
        /* Rompemos el sistema de 12 columnas */
        width: 100%;
        padding-left: 0;
        /* Eliminamos los desfases de escritorio */
        padding-right: 0;
        z-index: 3;
        /* Lo mantenemos firmemente sobre la imagen */
    }

    /* Ajuste de tipografía para pantallas pequeñas */
    .zigzag-content h2 {
        font-size: 2.3rem;
        /* Reducimos el título para que no salte en demasiadas líneas */
        margin-bottom: 15px;
    }

    .zigzag-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 3. Hacer que la imagen ocupe el 100% del fondo de la pantalla */
    .zigzag-bg-container {
        width: 100% !important;
        /* Ya no ocupa el 50%, toma todo el ancho */
        height: 100%;
        left: 0 !important;
        /* Forzamos alineación completa */
        right: 0 !important;
    }

    .zigzag-bg-img {
        opacity: 0.25;
        /* Reducimos la opacidad a la mitad para que el texto blanco sea 100% legible */
    }

    /* 4. Cambiar el degradado para que proteja el texto desde abajo hacia arriba */
    .zigzag-item .zigzag-bg-container::after,
    .zigzag-item.reverse .zigzag-bg-container::after {
        background: linear-gradient(0deg, #05090C 0%, rgba(5, 9, 12, 0.7) 50%, #05090C 100%);
    }

    /* 5. Ajustar la introducción */
    .benefits-intro h2 {
        font-size: 2.2rem;
    }

    .compliance-section {
        padding: 60px 6%;
        /* Sincronizado con el padding de 6% de tu zigzag */
    }

    .compliance-info h2 {
        font-size: 2rem;
        /* Sincronizado con tu .features-header h2 */
    }

    .compliance-grid {
        grid-template-columns: repeat(2, 140px);
        /* Reducimos un poco el ancho de la celda */
        gap: 15px;
    }

    .compliance-card {
        width: 140px;
        height: 140px;
        padding: 15px;
        /* Más espacio libre para los logotipos */
    }

    .legal-page-wrapper {
        padding-top: 100px;
        /* Menor espacio superior en móviles */
    }

    .legal-content h1 {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .legal-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .contact-page-wrapper {
        align-items: flex-start;
        /* Permite el flujo vertical natural */
        padding: 10px 6% 10px 6%;
        /* Mayor espacio arriba para que el navbar no pise el título */
        min-height: 100vh;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        /* Una sola columna vertical estricta */
        justify-items: center;
        width: 100%;
    }

    .contact-left-panel {
        max-width: 100%;
        /* El panel se expande para usar todo el ancho útil */
        margin-top: 0;
        /* Eliminamos el margen negativo de escritorio que aplasta el título */
        text-align: center;
    }

    /* --- ROMPER FILAS: CADA CAMPO EN SU PROPIA LÍNEA --- */
    .form-row {
        flex-direction: column;
        /* Cambia de horizontal a vertical */
        gap: 0;
        width: 100%;
    }

    .form-row .form-group {
        width: 100% !important;
        /* Forzamos a que ocupen el 100% de la pantalla */
        flex: none;
        margin-bottom: 18px;
        /* Espaciado vertical idéntico al resto de los campos */
    }

    /* Asegurar que las cajas de texto midan exactamente igual */
    .contact-left-panel .form-group input,
    .select-wrapper select,
    .iti input[type="tel"] {
        width: 100% !important;
        font-size: 1rem;
        /* Tamaño de letra idóneo para pantallas táctiles */
    }

    /* Títulos e introducciones adaptadas */
    .contact-heading h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    /* Botón estirado para mejor usabilidad táctil */
    .btn-submit-demo {
        align-self: stretch;
        /* Ocupa todo el ancho del formulario */
        width: 100% !important;
        max-width: 100%;
        padding: 16px;
        font-size: 1rem;
    }

    /* Ocultamos la imagen de fondo en pantallas muy pequeñas para garantizar el rendimiento */
    .contact-bg-overlay {
        display: none;
    }

    .video-hero-container {
        flex-direction: column;
        text-align: center;
        /* Centra los textos en móviles */
    }

    /* Oculta por completo el contenedor y la imagen SVG */
    .video-hero-image {
        display: none !important;
    }

    /* Opcional: Centra el botón si es necesario al estar en modo columna */
    .video-hero-content {
        width: 100%;
    }

    .video-hero-content h1 {
        font-size: 2.2rem;
    }

    .trusted-clients-section {
        padding: 45px 5%;
    }

    .clients-title {
        margin-bottom: 30px;
        font-size: 0.8rem;
    }

    .clients-grid {
        gap: 40px;
        /* Reduce la separación en pantallas pequeñas */
    }

    .client-logo-wrapper {
        height: 45px;
        /* Reducción de escala para smartphones */
        width: calc(50% - 20px);
        /* Coloca los logos en cuadrícula de 2x2 en móviles */
    }

    /* En móviles, dejamos los logos ligeramente más visibles por defecto ya que no hay hover */
    .client-logo-img {
        filter: grayscale(1) brightness(0.9) opacity(0.75);
    }

    .timeline-intro h2 {
        font-size: 2.2rem;
    }

    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 45px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 13px;
        right: auto;
        top: 6px;
    }

    .about-cta-section {
        padding: 70px 6%;
    }

    .about-cta-container h2 {
        font-size: 1.9rem;
    }

    .about-cta-container p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .btn-about-cta {
        width: 100%;
        /* El botón se expande a lo ancho en móviles para facilitar el clic */
        box-sizing: border-box;
        padding: 16px 20px;
    }

     /* 1. Fuerza a la sección y a su contenedor a no dejar salir nada de los bordes */
    .success-stories-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important; /* Corta de raíz cualquier desborde fantasma */
        padding: 60px 4% !important; /* Espaciado elegante en los bordes del teléfono */
        box-sizing: border-box !important;
    }

    .stories-container {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 35px !important;
    }

    /* 2. Control elástico de la columna de texto */
    .stories-text-side {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. REDUCCIÓN DEL TÍTULO: Evita que palabras largas como "Transformando" rompan la pantalla */
    .stories-text-side h2 {
        font-size: 1.9rem !important; /* Tamaño óptimo para smartphones de 350px */
        line-height: 1.2 !important;
        word-wrap: break-word !important; /* Permite cortar la palabra si el móvil es extremadamente enano */
        white-space: normal !important;
    }

    /* 4. Ajuste para los párrafos y testimonios */
    .stories-lead, 
    .testimonial-quote {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        width: 100% !important;
        max-width: 100% !important;
    }


}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    /* Centrar todo el contenedor de texto */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centra el badge y el H1 */
        margin-bottom: 10px !important;
    }

    /* Centrar el párrafo descriptivo */
    .hero-content p {
        margin: 0 auto 35px;
        /* El 'auto' en los lados es clave para centrarlo */
        max-width: 600px;
        /* Evita que las líneas sean demasiado largas */
    }

    /* Centrar los botones */
    .hero-btns {
        display: flex;
        justify-content: center;
        /* Alinea los botones al centro horizontalmente */
        gap: 15px;
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        min-height: 250px;
        /* Espacio suficiente para los dispositivos */
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: 0px !important;
    }

    .mockups-wrapper {
        position: relative;
        width: 100%;
        max-width: 500px;
        /* Evita que crezca demasiado en tablets */
        height: 250px;
        margin: 0 auto;
    }

    /* Centramos la laptop de forma simple sin transformaciones raras */
    .m-laptop {
        width: 85% !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        right: auto !important;
        bottom: auto !important;
    }

    /* Posicionamos el smartphone flotando a la derecha de la laptop */
    .m-phone {
        width: 22% !important;
        right: 2% !important;
        top: 10% !important;
        /* Ajusta esto para subir/bajar el celular */
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .compatibility-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .compat-text-side h2 {
        font-size: 2.3rem;
    }

    .reports-container {
        flex-direction: column;
        /* Apila el texto arriba y la imagen abajo en teléfonos */
        text-align: center;
        gap: 40px;
    }

    .reports-content h2 {
        font-size: 2.2rem;
    }

    .reports-content p {
        font-size: 1.05rem;
    }

    .reports-features-list {
        display: inline-block;
        /* Centra el bloque de la lista en móviles */
        text-align: left;
        /* Mantiene los checks alineados a su izquierda */
    }

    .report-screenshot-img {
        max-width: 100%;
        /* Aprovecha todo el ancho del smartphone */
    }

    .modules-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Baja a 2 columnas en iPads o laptops pequeñas */
        gap: 25px;
    }


    .how-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 en tabletas */
        gap: 50px 30px;
    }

    .infra-container {
        grid-template-columns: 1fr;
        /* Una columna por fila */
        gap: 40px;
    }

    .infra-intro h2 {
        font-size: 2.3rem;
    }

    .infra-card {
        padding: 40px 25px;
    }

    .zigzag-item,
    .zigzag-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        margin-bottom: 100px;
    }

    .zigzag-content h2 {
        font-size: 2.5rem;
    }

    .huge-icon {
        width: 180px;
        height: 180px;
    }

    .slider-wrapper {
        margin: 0 10px 40px;
    }

    /* --- Integración Cumplimiento (Tablets) --- */
    .compliance-container {
        flex-direction: column;
        /* Apila el texto arriba y los logos abajo */
        text-align: center;
        gap: 40px;
    }

    .compliance-info {
        max-width: 100%;
    }

    .compliance-info h2 {
        font-size: 2.3rem;
        /* Sincronizado con tus tamaños de títulos en tablets */
    }

    .compliance-grid {
        /* Pasa a 2 columnas para no apretar los logos de forma horizontal */
        grid-template-columns: repeat(2, 160px);
    }

    .contact-page-wrapper {
        align-items: flex-start;
        /* Permite el flujo vertical natural */
        padding: 10px 6% 10px 6%;
        /* Mayor espacio arriba para que el navbar no pise el título */
        min-height: 100vh;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        /* Una sola columna vertical estricta */
        justify-items: center;
        width: 100%;
    }

    .contact-left-panel {
        max-width: 100%;
        /* El panel se expande para usar todo el ancho útil */
        margin-top: 0;
        /* Eliminamos el margen negativo de escritorio que aplasta el título */
        text-align: center;
    }

    /* --- ROMPER FILAS: CADA CAMPO EN SU PROPIA LÍNEA --- */
    .form-row {
        flex-direction: column;
        /* Cambia de horizontal a vertical */
        gap: 0;
        width: 100%;
    }

    .form-row .form-group {
        width: 100% !important;
        /* Forzamos a que ocupen el 100% de la pantalla */
        flex: none;
        margin-bottom: 18px;
        /* Espaciado vertical idéntico al resto de los campos */
    }

    /* Asegurar que las cajas de texto midan exactamente igual */
    .contact-left-panel .form-group input,
    .select-wrapper select,
    .iti input[type="tel"] {
        width: 100% !important;
        font-size: 1rem;
        /* Tamaño de letra idóneo para pantallas táctiles */
    }

    /* Títulos e introducciones adaptadas */
    .contact-heading h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    /* Botón estirado para mejor usabilidad táctil */
    .btn-submit-demo {
        align-self: stretch;
        /* Ocupa todo el ancho del formulario */
        width: 100% !important;
        max-width: 100%;
        padding: 16px;
        font-size: 1rem;
    }

    /* Ocultamos la imagen de fondo en pantallas muy pequeñas para garantizar el rendimiento */
    .contact-bg-overlay {
        display: none;
    }

    .video-hero-section {
        padding: 100px 0 60px 0;
    }

    .video-hero-container {
        padding: 0 6%;
        /* Sincronizado con tus márgenes móviles del formulario y zigzag */
    }

    .video-hero-content {
        max-width: 100%;
        text-align: center;
        /* Se centra en móviles junto con el resto del sitio */
    }

    .video-hero-content .btn-left-aligned {
        align-self: center;
        width: 100%;
        max-width: 280px;
    }

    /* Ajustamos el degradado para móviles: De abajo hacia arriba */
    .video-overlay-layer {
        background: linear-gradient(0deg, #05090C 30%, rgba(5, 9, 12, 0.7) 100%);
    }

    .video-hero-container {
        /* Cambiado a 'column' para que el texto vaya arriba y la imagen abajo */
        flex-direction: column;
        text-align: center;
        gap: 45px;
        /* Un poco más de espacio de separación */
    }

    .video-hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .video-hero-image img {
        /* Forzamos a que el SVG use el 95% del ancho de la pantalla móvil */
        width: 95%;
        /* Evitamos que se haga más pequeña de 450px en pantallas verticales */
        min-width: 450px;
        max-width: 100%;
        height: auto;
    }

    /* Si el móvil es muy estrecho (ej. iPhone), permitimos scroll horizontal sutil */
    .video-hero-image {
        overflow-x: auto;
        padding-bottom: 10px;
        /* Oculta la barra de scroll estética si lo prefieres */
        scrollbar-width: none;
    }

    .video-hero-image::-webkit-scrollbar {
        display: none;
    }

    .about-hero-header h1 {
        font-size: 2.4rem;
        /* Escala tipográfica adaptada para pantallas verticales */
    }

    .about-lead {
        font-size: 1.05rem;
        /* Ajuste sutil de lectura */
    }

    .about-history-row {
        flex-direction: column;
        /* Apila el texto y la tarjeta visual */
        gap: 40px;
        margin-bottom: 60px;
        text-align: center;
        /* Centra todo el bloque de historia en móviles */
    }

    .about-history-content h2 {
        font-size: 1.9rem;
        /* Reduce el tamaño del título h2 para que no rompa renglón abruptamente */
        margin-top: 10px;
    }

    .about-history-content p {
        font-size: 1rem;
        text-align: left;
        /* Mantiene la lectura del párrafo justificada a la izquierda para mayor comodidad visual */
    }

    .brand-visual-card {
        padding: 30px;
        /* Compacta la tarjeta en pantallas pequeñas */
    }

    .mvv-container {
        grid-template-columns: 1fr;
        /* Cambia a una sola columna en tabletas y móviles */
        gap: 25px;
    }

    .mvv-card {
        padding: 35px 25px;
        align-items: center;
        /* Centra los elementos dentro de la tarjeta en móviles */
        text-align: center;
    }

    .mvv-icon-wrapper {
        margin-bottom: 20px;
    }

    .mvv-list li {
        padding-left: 0;
    }

    .mvv-list li::before {
        display: none;
        /* Quitamos la viñeta lateral para que el texto centrado quede estético */
    }

    .stories-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 4%; /* Margen de seguridad para que el texto no toque el borde */
        box-sizing: border-box;
    }

    .stories-visual-side {
        width: 100% !important; /* Fuerza a la columna derecha a usar todo el ancho */
        display: flex;
        justify-content: center;
    }

    /* CONTENEDOR DEL CARRUSEL EN MÓVILES */
    .gallery-master-container {
        width: 100% !important; /* Deja de usar píxeles rígidos y pasa a porcentaje fluido */
        max-width: 100% !important;
        height: 380px !important; /* Reducción de altura idónea para pantallas verticales */
        box-sizing: border-box;
    }

    .gallery-slide img {
        width: 100% !important;
        height: calc(100% - 85px) !important; /* Recalcula el espacio de la leyenda en móvil */
        object-fit: contain; /* Sigue garantizando que las fotos se vean completas */
    }

    /* Reducción de la franja informativa inferior en smartphones */
    .gallery-legend {
        height: 85px !important;
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
    }

    /* Ajuste de posición de las miniflechas para que no estorben */
    .inner-gallery-btn {
        top: calc(50% - 42px) !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.2rem !important;
    }
    
    .inner-gallery-btn.prev { left: 10px !important; }
    .inner-gallery-btn.next { right: 10px !important; }

    .senapi-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .senapi-container h2 {
        font-size: 2.2rem;
    }

    .senapi-index-container {
        flex-direction: column; /* Apila el texto arriba y la tarjeta abajo */
        gap: 45px;
        text-align: center;
    }
    
    .senapi-index-text h2 {
        font-size: 2.2rem;
    }

    .senapi-resolution-card {
        max-width: 100%; /* Toma todo el ancho en celulares */
        padding: 30px 25px;
    }
    
    .senapi-action-box {
        flex-direction: column; /* Se apilan de forma vertical en teléfonos */
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .btn-senapi-more {
        width: 100%;
        text-align: center;
    }

    .senapi-action-box {
        flex-direction: column; /* Se apilan de forma vertical en teléfonos */
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .btn-senapi-more {
        width: 100%;
        text-align: center;
    }
    
    .bolivia-seal-wrapper {
        height: 40px; /* Un poco más compacto en smartphones */
    }

    .whatsapp-section-container {
        flex-direction: column; /* Apila el texto arriba y el celular abajo */
        text-align: center;
        gap: 40px;
    }

    .whatsapp-screenshot-img {
        max-width: 340px; /* Se compacta de forma elegante en pantallas de smartphones */
        margin: 0 auto;
    }
    
    .whatsapp-text-content h2 {
        font-size: 2.2rem;
    }
    
    .whatsapp-text-content p {
        font-size: 1.05rem;
    }
    
    .whatsapp-features-list {
        display: inline-block;
        text-align: left; /* Mantiene alineada la lista de checks internos */
    }

}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
        /* Título más legible en pantallas pequeñas */
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-btns {
        flex-direction: column;
        /* Apila los botones si la pantalla es muy angosta */
        align-items: center;
    }

    .hero-btns a {
        width: 100%;
        /* Los botones ocupan todo el ancho disponible */
        max-width: 280px;
        /* Pero con un límite para que no se vean gigantes */
        text-align: center;
    }

    .mockups-wrapper {
        height: 200px;
    }

    .m-laptop {
        width: 95% !important;
    }

    .m-phone {
        width: 28% !important;
        right: 0% !important;
        top: 10% !important;
    }

    .modalities-grid {
        grid-template-columns: repeat(2, 1fr); /* Pasa a 2 columnas en teléfonos estrechos */
        gap: 15px;
    }
    
    .standards-grid {
        grid-template-columns: 1fr; /* Los estándares se apilan verticalmente en móvil */
        gap: 15px;
    }

    .how-container {
        grid-template-columns: 1fr;
        /* 1 columna limpia en teléfonos */
        gap: 40px;
    }

    .how-intro h2 {
        font-size: 2.2rem;
    }

    .slider-wrapper {
        margin: 0 10px 40px;
    }

    /* --- Integración Cumplimiento (Móviles Pequeños) --- */
    .compliance-grid {
        /* Los cuadros se estiran proporcionalmente al 100% de la pantalla divididos en 2 columnas */
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .compliance-card {
        width: auto;
        /* Permite que el grid controle el tamaño exacto */
        height: 130px;
    }

    .btn-compliance {
        width: 100%;
        /* Sincronizado con la lógica de tus botones del hero */
        max-width: 280px;
        text-align: center;
    }

    .contact-page-wrapper {
        align-items: flex-start;
        /* Permite el flujo vertical natural */
        padding: 10px 6% 10px 6%;
        /* Mayor espacio arriba para que el navbar no pise el título */
        min-height: 100vh;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        /* Una sola columna vertical estricta */
        justify-items: center;
        width: 100%;
    }

    .contact-left-panel {
        max-width: 100%;
        /* El panel se expande para usar todo el ancho útil */
        margin-top: 0;
        /* Eliminamos el margen negativo de escritorio que aplasta el título */
        text-align: center;
    }

    /* --- ROMPER FILAS: CADA CAMPO EN SU PROPIA LÍNEA --- */
    .form-row {
        flex-direction: column;
        /* Cambia de horizontal a vertical */
        gap: 0;
        width: 100%;
    }

    .form-row .form-group {
        width: 100% !important;
        /* Forzamos a que ocupen el 100% de la pantalla */
        flex: none;
        margin-bottom: 18px;
        /* Espaciado vertical idéntico al resto de los campos */
    }

    /* Asegurar que las cajas de texto midan exactamente igual */
    .contact-left-panel .form-group input,
    .select-wrapper select,
    .iti input[type="tel"] {
        width: 100% !important;
        font-size: 1rem;
        /* Tamaño de letra idóneo para pantallas táctiles */
    }

    /* Títulos e introducciones adaptadas */
    .contact-heading h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    /* Botón estirado para mejor usabilidad táctil */
    .btn-submit-demo {
        align-self: stretch;
        /* Ocupa todo el ancho del formulario */
        width: 100% !important;
        max-width: 100%;
        padding: 16px;
        font-size: 1rem;
    }

    /* Ocultamos la imagen de fondo en pantallas muy pequeñas para garantizar el rendimiento */
    .contact-bg-overlay {
        display: none;
    }

}

/* Ajustamos el tamaño del marco contenedor del carrusel para darle proporciones balanceadas */
@media (min-width: 992px) {
    .carousel-container {
        height: 750px;
        /* Altura ideal en pantallas grandes para que luzca imponente */
    }
}

/* --- ADAPTACIÓN RESPONSIVA MEJORADA --- */
@media (max-width: 992px) {
    .carousel-container {
        height: 580px;
    }

    .carousel-image-wrapper {
        height: calc(100% - 160px);
    }

    .carousel-caption {
        height: 160px;
        padding: 25px 25px;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        top: calc(50% - 80px);
    }
}

@media (max-width: 576px) {
    .dicom-intro h2 {
        font-size: 2.2rem;
    }

    .carousel-container {
        height: 480px;
        border-radius: 16px;
    }

    .carousel-image-wrapper {
        height: calc(100% - 180px);
    }

    .carousel-caption {
        height: 180px;
        padding: 20px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
        top: calc(50% - 90px);
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .can-countries-grid {
        grid-template-columns: 1fr; /* Pasa a lista vertical de una columna en teléfonos angostos */
        gap: 20px;
    }
}


@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Definimos la animación del pulso */
@keyframes pulse-glow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 209, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 209, 255, 0);
    }
}

/* 1. Aparecer suavemente (Fade In) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Entrada desde la derecha (Para los mockups) */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translate(-50%, -20%);
        /* Ajustado para el centrado de móvil */
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}