/* --- VARIABLES & RESET --- */
:root {
    /* Paleta de Colores Eco-Tech */
    --glacier-white: #F8FAFC;
    --deep-abyss: #0B1120;
    --bio-cyan: #06B6D4;
    --bio-cyan-glow: rgba(6, 182, 212, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

::selection {
    background: var(--bio-cyan); /* Tu color turquesa */
    color: #000; /* Texto negro para contraste */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--glacier-white);
    color: var(--deep-abyss);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVEGACIÓN STICKY --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: linear-gradient(rgba(12, 15, 20, 0.90), rgba(12, 15, 20, 0.70), rgba(12, 15, 20, 0.0));
}

/* --- NAVEGACIÓN Y MENÚ DESPLEGABLE (CORREGIDO) --- */

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

/* 1. CORRECCIÓN DE POSICIONAMIENTO: 
   Hacemos que cada 'li' sea el punto de referencia para su menú desplegable */
.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--bio-cyan); 
}


/* ==========================================
   1. REGLAS GLOBALES Y SEGURIDAD
   ========================================== */
html, body {
    overflow-x: hidden !important; /* Evita scrolls horizontales feos */
}

/* Icono de flecha (Aplica a ambos) */
.dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* ==========================================
   2. MUNDO PC: MENÚ GLASSMORPHISM (> 900px)
   ========================================== */
@media (min-width: 901px) {
    /* Ocultamos cosas de celular en la PC */
    .mobile-menu-btn, .mobile-only-link {
        display: none;
    }

    /* Franja mega-menu: aparece debajo del navbar como una barra full-width */
    .dropdown-menu {
        position: fixed;
        top: var(--nav-bottom, 70px);
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 14px 40px;
        background: rgba(11, 17, 32, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        border-radius: 0;
        min-width: unset;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 998;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li { width: auto; }

    .dropdown-menu li a {
        padding: 8px 22px;
        display: block;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 400;
        transition: all 0.2s ease;
        text-align: center;
        white-space: nowrap;
        border-radius: 6px;
        border: 1px solid transparent;
    }

    .dropdown-menu li a:hover {
        background: rgba(6, 182, 212, 0.15);
        color: var(--bio-cyan) !important;
        border-color: rgba(6, 182, 212, 0.3);
    }

    .dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

    /* Navbar recibe el efecto traslúcido al activar cualquier dropdown */
    .navbar.nav-expanded {
        background: rgba(11, 17, 32, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid var(--glass-border);
    }
}


.navbar.scrolled {
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* --- LOGO CON IMAGEN --- */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 2px 0; /* Un poco de aire arriba y abajo */
}

.logo-img {
    height: 80px; /* Altura ideal para desktop */
    width: auto;  /* Mantiene la proporción original */
    object-fit: contain;
    transition: all 0.3s ease;
    
    /* OPCIONAL: Esto vuelve el logo blanco puro para que se vea bien 
       sobre el video oscuro. Si quieres el color original, borra esta línea. 
    filter: brightness(0) invert(1); */
}

/* Ajuste Responsivo para Móviles */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Un poco más pequeño en celulares */
    }
}

/* Ajuste cuando la barra se hace pequeña al hacer scroll (Sticky) */
.navbar.scrolled .logo-img {
    height: 60px; /* Reducción sutil al bajar */
}

.dot { color: var(--bio-cyan); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--bio-cyan); }

.nav-btn {
    border: 1px solid var(--bio-cyan);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--bio-cyan) !important;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bio-cyan);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.nav-btn:hover::before {
    width: 100%;
}

.nav-btn:hover {
    color: white !important;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11,17,32,0.9), rgba(11,17,32,0.1), rgba(11,17,32,0.3));
    z-index: -1;
}


.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* --- BOTÓN DESCUBRE EL FUTURO (Enhanced Glass) --- */
.btn-glass-hero {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;

  /* 1. Mantenemos tu transparencia, pero añadimos el filtro de desenfoque (Glass real) */
  background: rgba(0, 194, 203, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* 2. Borde más definido (2px) para que la forma de la caja no se pierda */
  border: 2px solid rgba(0, 194, 203, 0.8);

  /* 3. Texto Cyan con una sombra oscura para separarlo del fondo */
  color: rgb(0, 194, 203);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);

  font-family: 'Montserrat', sans-serif;
  font-size: 14px; /* Un punto más grande para mayor presencia */
  font-weight: 700; /* Más grueso */
  padding: 14px 28px; 
  border-radius: 4px; /* Mantenemos tu estilo corporativo cuadrado */
  text-decoration: none; 
  white-space: nowrap;
  letter-spacing: 1px; /* Separación un poco más amplia */
  text-transform: uppercase;

  /* 4. Sombra exterior oscura para despegar el botón del fondo desde el inicio */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);

  transition: all 0.3s ease;
}

.btn-glass-hero:hover {
  /* Al pasar el mouse, el cristal se llena más de color y emite un brillo */
  background: rgba(0, 194, 203, 0.5);
  border-color: rgb(0, 194, 203);
  
  /* El texto cambia a blanco puro para máximo contraste al brillar */
  color: #ffffff; 
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  
  /* Brillo hacia afuera (glow) y brillo hacia adentro (inset) */
  box-shadow: 0 10px 25px rgba(0, 194, 203, 0.5), inset 0 0 15px rgba(0, 194, 203, 0.3);
  transform: translateY(-3px);
}

/* reutiliza tu .btn-glass */
.btn-glass {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,194,203,0.2);
  border: 1px solid rgba(0,194,203,0.5);
  color: rgb(0, 194, 203);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 13px 26px; border-radius: 4px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
  letter-spacing: 0.04em;
}

.btn-glass:hover {
    background: rgba(6, 182, 212, 0.5);
    border-color: var(--bio-cyan);
    box-shadow: 0 0 20px var(--bio-cyan-glow);
    transform: translateY(-2px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* --- INNOVATION SECTION --- */
.innovation-section {
    padding: 120px 0;
    background: white;
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.innovation-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--deep-abyss);
    margin: 15px 0 25px;
    line-height: 1.2;
}

.innovation-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.8;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--deep-abyss);
}

.tech-list i {
    color: var(--bio-cyan);
    font-size: 1.5rem;
}

.innovation-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-card {
    background: var(--deep-abyss);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
}

.tech-card i {
    font-size: 3rem;
    color: var(--bio-cyan);
}

.tech-card h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* 1. Evitamos que la web tenga scroll horizontal por el tamaño de la imagen */
.innovation-section {
    overflow: hidden; 
    padding: 100px 0;
}

@media (min-width: 780px) {
    /* 1. Hacemos que la columna visual no limite al hijo */
    .innovation-visual {
        overflow: visible !important; 
        display: flex;
        justify-content: flex-end; /* Alinea la imagen a la derecha del contenedor */
    }

    /* 2. El frame crece al 180% o 200% y se desplaza */
    .service-frame.rental-impact {
        width: 130% !important; /* Si pones 200% asegúrate de tener buen margen */
        max-width: none !important;
        transform: translateX(15%); /* La empujamos un poco a la derecha para que "sangre" hacia afuera */
        z-index: 10;
        box-shadow: 0 40px 80px rgba(0,0,0,0.5);
        border-radius: 30px;
    }

    /* 3. Ajustamos el texto para que no se vea aplastado */
    .innovation-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 100px;
    }
}

/* 4. En móviles volvemos a la normalidad */
@media (max-width: 1199px) {
    .service-frame.rental-impact {
        width: 100% !important;
        transform: none !important;
    }
}

/* Ajuste de la etiqueta para que flote sobre el 200% */
.floating-tag {
    z-index: 30; /* Por encima de la imagen y el texto */
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
}

/* =========================================
   PRODUCTOS / SISTEMAS DE VANGUARDIA
   ========================================= */
.products-section {
    padding: 100px 0;
    background: var(--glacier-white);
    overflow: hidden;
}

/* --- ENCABEZADOS --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    color: var(--bio-cyan);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--deep-abyss);
    margin-top: 10px;
}

.section-subtitle {
    color: #383e47;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- MECÁNICA DEL CARRUSEL (Mantenida intacta) --- */
.carousel-container {
    width: 100%;
    overflow-x: auto; 
    overflow-y: hidden;
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem; /* Espacio para las sombras en el hover */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    
    /* Ocultar scrollbar */
    &::-webkit-scrollbar { display: none; }
    -ms-overflow-style: none;  
    scrollbar-width: none;  

    /* Máscara de desvanecimiento */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-container:active,
.carousel-container.dragging {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    align-items: stretch; /* Asegura que todas las tarjetas midan lo mismo */
}

/* --- LAS FICHAS TÉCNICAS (Tarjetas Evolucionadas) --- */
.product-card {
    min-width: 380px; /* Un poco más ancho para que el texto respire bien */
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-8px); /* Elevación sutil y técnica */
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

/* --- ESCENARIO DE LA IMAGEN --- */
.card-image {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

/* Línea de escaneo Bio-Cyan interactiva */
.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--bio-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
}

.product-card:hover .card-image::after {
    transform: scaleX(1);
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15));
    
    /* Evita que se arrastren accidentalmente */
    -webkit-user-drag: none;
    user-select: none;
}

.product-card:hover .product-img {
    transform: scale(1.08); /* Zoom técnico al apuntar */
}

/* --- TEXTO DE LA FICHA --- */
.card-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--deep-abyss);
    font-weight: 700;
}

.card-info p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bio-cyan), #0891b2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
    border-color: var(--bio-cyan);
}

.service-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--deep-abyss);
    margin-bottom: 15px;
}

.service-card > p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bio-cyan);
    font-weight: bold;
}

/* =========================================
   NUESTROS PILARES - DIAGRAMA INTEGRADO (NO CARDS)
   ========================================= */

.philosophy-section {
    padding: 100px 0;
    /* Mantenemos fondo Deep Abyss, pero añadimos textura técnica de fondo */
    background: 
        linear-gradient(rgba(6, 182, 212, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.02) 1px, transparent 1px),
        var(--deep-abyss, #0B1120);
    background-size: 40px 40px, 40px 40px, auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

/* Encabezado Principal */
.philosophy-section h2 {
    color: #ffffff;
    font-size: 2.8rem;
}

/* --- EL CONTENEDOR INTEGRADO (NO CARDS) --- */
.integrated-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Unimos las secciones */
    max-width: 1000px;
    margin: 60px auto 0;
    
    /* EFECTO GLASSMORPHISM ÚNICO (Una sola pieza) */
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Divisores técnicos sutiles (cian degradado) */
.pillar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%; right: 0;
    width: 1px; height: 70%;
    background: linear-gradient(transparent, rgba(6, 182, 212, 0.3), transparent);
}

/* ELEMENTOS INDIVIDUALES */
.pillar-item {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

/* Micro-interacción técnica al tocar */
.pillar-item:hover {
    background: rgba(6, 182, 212, 0.03);
}

/* --- ICONOS Y TÍTULOS --- */
.pill-header {
    margin-bottom: 25px;
}

.pill-header .pill-icon {
    font-size: 2.8rem;
    color: var(--bio-cyan, #06b6d4); /* Tu color exacto */
    margin-bottom: 15px;
    /* Pequeño resplandor tipo LED */
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.pill-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

/* --- CONTENIDO DE TEXTO --- */
.pill-content p {
    color: #94a3b8; /* Gris azulado técnico */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- LA LISTA DE VALORES --- */
.pill-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.pill-content ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reemplazamos la flecha por un punto de agua técnico (gota) */
.pill-content ul li::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--bio-cyan);
    border-radius: 50% 50% 50% 5px; /* Forma de gota orientada a 45 grados */
    transform: rotate(-45deg);
    display: block;
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.4);
}

/* Responsivo para móviles */
@media (max-width: 900px) {
    .integrated-pillars {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 40px;
    }
    
    /* Divisores horizontales en móvil */
    .pillar-item:not(:last-child)::after {
        top: auto; bottom: 0; left: 15%;
        width: 70%; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    }
}

/* =========================================
   RESPONSIVO MÓVIL - CARRUSEL DE PRODUCTOS
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ajuste del contenedor principal */
    .carousel-container {
        padding-left: 1.5rem; /* Menos espacio en blanco a la izquierda */
        /* Reducimos el área de desvanecimiento para que no borre el texto */
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    /* 2. Tamaño de la tarjeta más ergonómico */
    .product-card {
        min-width: 280px; /* Más angosta para encajar en el celular */
        max-width: 280px;
    }

    /* 3. Escenario de la imagen más compacto */
    .card-image {
        height: 220px; /* Reducimos la altura para que no ocupe toda la pantalla */
        padding: 20px 15px;
    }

    /* 4. Ajustes de tipografía y espaciado */
    .card-info {
        padding: 20px; /* Menos relleno para aprovechar el espacio */
    }

    .card-info h3 {
        font-size: 1.2rem; /* Título ligeramente más pequeño */
        margin-bottom: 8px;
    }

    .card-info p {
        font-size: 0.9rem; /* Texto descriptivo más compacto */
        line-height: 1.5;
    }
}

/* =========================================
   SECCIÓN DE IMPACTO - PUREZA Y SOLIDEZ
   ========================================= */

.impact-section {
    background-color: #0B1120; /* Fondo Deep Abyss para contraste total */
    padding: 100px 0;
    position: relative;
    /* Un borde superior muy sutil para separar secciones */
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stat-box {
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

/* LÍNEAS DIVISORIAS (El toque de diseño premium) */
/* Crea una línea vertical difuminada entre los números */
.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -15px;
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.3), transparent);
}

/* LOS NÚMEROS DEL CONTADOR */
.stat-box h3.counter {
    font-size: 5rem; /* Números grandes y con autoridad */
    font-weight: 700;
    color: var(--bio-cyan); /* El color del agua pura */
    margin: 0 0 10px 0;
    line-height: 1;
    font-family: var(--font-heading), sans-serif;
    /* Un resplandor levísimo para que no se vea como texto plano */
    text-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

/* EL TEXTO DESCRIPTIVO */
.stat-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Cambiamos las líneas de verticales a horizontales */
    .stat-box:not(:last-child)::after {
        top: auto;
        bottom: -25px;
        right: 20%;
        width: 60%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(6, 182, 212, 0.3), transparent);
    }
}

/* =========================================
   MURAL DE LOGOS (Casos de Éxito)
   ========================================= */

.logos-mural-layout {
    padding: 40px 0;
    background-color: #ffffff; /* Fondo blanco limpio para resaltar los logos */
}

/* --- LA CUADRÍCULA EXPANSIVA --- */
.mural-logos-grid {
    display: grid;
    /* 3 columnas iguales que ocupan todo el ancho disponible */
    grid-template-columns: repeat(3, 1fr); 
    /* Espaciado generoso e industrial */
    gap: 40px 20px; 
    max-width: 1100px; /* Ancho máximo para que no se desparrame en pantallas 4K */
    margin: 0 auto;
    align-items: center; /* Centrado vertical de los logos */
}

/* Contenedor individual de cada logo */
.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px; /* Altura fija para uniformidad */
    padding: 10px;
    transition: all 0.3s ease;
}

/* Estilo de la imagen del logo */
.logo-item img {
    max-width: 100%;
    max-height: 100%; /* No permite que el logo supere los 80px de alto */
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene la proporción sin recortar */
    
    /* Efecto corporativo premium: Grayscale y opacidad */
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* El Efecto Hover: Color y brillo */
.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08); /* Pequeño efecto de acercamiento */
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .mural-logos-grid {
        /* En celular, cambiamos a 2 columnas para que no se vean muy amontonados */
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 20px;
    }
    
    .logo-item {
        height: 60px; /* Un poco más bajitos en móvil */
    }
}

/**==========================================**/

/* --- FOOTER --- */
footer {
    padding: 40px;
    text-align: center;
    background: #050911;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* --- FOOTER MODERNO --- */
.site-footer {
    background-color: #050911; /* Casi negro, muy elegante */
    color: #94a3b8; /* Gris azulado para texto secundario */
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    /* Crea columnas automáticas de mínimo 250px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 40px;
    margin-bottom: 60px;
}

/* Títulos de Columnas */
.footer-col h4 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Logo en Footer */
.footer-logo {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-desc {
    line-height: 1.6;
    max-width: 300px;
    text-align: center; /* Centra el texto por dentro */
    margin: 0 auto 25px auto; /* Centra la caja entera (Arriba 0, Lados Auto, Abajo 25px) */
}

/* Asegurarnos de que las redes también estén centradas entre sí */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre los circulitos */
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--bio-cyan);
    color: #0B1120;
    transform: translateY(-3px);
}

/* Enlaces del Footer */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--bio-cyan);
    padding-left: 5px; /* Pequeño desplazamiento al pasar mouse */
}

/* Lista de Contacto */
.contact-list {
    list-style: none;
    padding: 0; /* 1. Quitamos el espacio invisible de la izquierda */
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center; /* Centra verticalmente (ícono con texto) */
    justify-content: center; /* 2. ESTA ES LA CLAVE: Centra horizontalmente todo el renglón */
    gap: 12px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--bio-cyan);
    font-size: 1.2rem;
}

/* Ubicación */
.address-text {
    line-height: 1.6;
    margin-bottom: 15px;
}

.map-link {
    color: var(--bio-cyan);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.map-link:hover {
    text-decoration: underline;
}

/* Barra inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* Responsivo para Footer */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* --- MODAL DE CONTACTO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 9, 17, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: var(--bio-cyan); }

.modal-header h2 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 10px;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

/* --- AJUSTE ESPECÍFICO PARA EL TEXTAREA --- */
.input-group textarea {
    resize: none; /* Elimina la esquina arrastrable */
    height: 120px; /* Le da una buena altura fija inicial */
    font-family: inherit; /* Asegura que no cambie la tipografía base */
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    outline: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:focus,
.input-group textarea:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--bio-cyan);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--bio-cyan);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--bio-cyan);
    color: var(--deep-abyss);
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--bio-cyan-glow);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .innovation-visual {
        grid-template-columns: 1fr;
    }
    
    .tech-card:first-child {
        grid-column: 1;
    }
}


.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1fb355;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #126e36;
}

/**
Ajustes para estilos del mapa en el footer, para que se integre mejor con el diseño oscuro y moderno del sitio.
*/

.map-frame {
    width: 100%;
    height: 180px; /* Altura compacta para footer */
    border: 0;
    border-radius: 12px;
    margin-top: 15px;
    /* Filtro para volver el mapa oscuro y azulado */
    filter: grayscale(100%) invert(92%) hue-rotate(180deg) contrast(85%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.map-frame:hover {
    filter: none; /* Al pasar el mouse se ve a color normal */
    opacity: 1;
}

/* =========================================
   FAQ - ESTILO INGENIERÍA DE PUREZA
   ========================================= */

.faq-section {
    padding: 100px 0;
    /* Cambiamos el gris claro por un degradado profundo */
    background: linear-gradient(180deg, #0B1120 0%, #070b14 100%);
    position: relative;
}

.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    /* Efecto Glassmorphism */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    margin-bottom: 20px;
    border-radius: 12px;
    /* Borde sutil que parece metal pulido */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

/* Hover: Iluminación Bio-Cyan */
.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item summary {
    padding: 25px 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Indicador Técnico (Reemplaza al + simple) */
.faq-item summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--bio-cyan);
    border-bottom: 2px solid var(--bio-cyan);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    margin-left: 20px;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--bio-cyan);
}

.faq-item[open] summary {
    color: var(--bio-cyan);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    top: 30px;
}

.faq-item p {
    padding: 25px 30px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1rem;
    /* Animación de aparición suave */
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BARRA DE ALIADOS (VALIDACIÓN) --- */
.partners-strip {
    background-color: #02040a; /* Un tono más oscuro que el fondo normal para contrastar */
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Línea sutil separadora */
    text-align: center;
    position: relative;
    z-index: 10; /* Para que quede por encima si hay elementos flotando */
}

.partners-title {
    color: #fdfdfd; /* Gris azulado discreto */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.logos-grid {
    display: flex;
    justify-content: center; /* Centrados horizontalmente */
    align-items: center;     /* Centrados verticalmente */
    gap: 50px;               /* Espacio entre logos */
    flex-wrap: wrap;         /* Si la pantalla es chica, que bajen de renglón */
}

.logos-grid img {
    height: 30px;            /* Altura fija */
    width: auto;
    
    /* --- EL TRUCO PARA BLANCO PURO --- */
    /* 1. brightness(0): Vuelve el logo negro sólido. */
    /* 2. invert(1): Invierte el negro a blanco puro. */
    filter: brightness(0) invert(1); 
    
    opacity: 0.3;            /* Subí un poco la opacidad para que el blanco resalte bien sobre fondo oscuro */
    transition: all 0.4s ease;
    cursor: pointer;
}

/* ESTADO HOVER: Se encienden */
.logos-grid img:hover {
    opacity: 1;              /* Opacidad total */
    transform: scale(1.3);   /* Crecen ligeramente */
    
    /* --- Efecto de iluminasion neon --- */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--bio-cyan));
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .logos-grid {
        gap: 30px;
    }
    .logos-grid img {
        height: 25px; /* Un poco más chicos en móvil */
    }
}



/* --- BARRA DE SCROLL PERSONALIZADA (WEBKIT) --- */

/* 1. El ancho total de la barra */
::-webkit-scrollbar {
    width: 8px; /* Más delgada que la normal (que suele ser 17px) */
    background-color: #02040a; /* Mismo color de fondo que tu sitio */
}

/* 2. El carril (fondo de la barra) */
::-webkit-scrollbar-track {
    background: #02040a; 
}

/* 3. El "pulgar" (la parte que se mueve) */
::-webkit-scrollbar-thumb {
    background: #334155; /* Un gris azulado oscuro (Slate-700) */
    border-radius: 4px; /* Bordes redondeados */
    border: 2px solid #02040a; /* Un pequeño borde para que parezca "flotando" */
}

/* 4. Efecto al pasar el mouse por encima o arrastrar */
::-webkit-scrollbar-thumb:hover {
    background: var(--bio-cyan); /* ¡Se ilumina con tu color corporativo! */
    box-shadow: 0 0 10px var(--bio-cyan); /* Pequeño brillo neon */
}

/* --- PRELOADER CINEMATOGRÁFICO --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #02040a; /* Fondo negro profundo */
    z-index: 99999; /* Por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 240px; /* Tamaño del logo */
    animation: pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5)); /* Brillo Cyan */
}

/* Animación de respiración */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Barra de progreso visual */
.loading-bar {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--bio-cyan);
    box-shadow: 0 0 10px var(--bio-cyan);
    animation: loadProgress 2s ease-in-out forwards;
}

/* Simulación de carga rápida */
@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Clase para ocultar el preloader */
.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 100px; /* A la derecha de la pantalla */
    width: 40px;
    height: 40px;
    /* --- ESTILO GLACIAR --- */
    /* Fondo oscuro azulado (Slate) traslúcido para contraste en fondos blancos */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0; /* Oculto al inicio */
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--bio-cyan);
    color: black;
}



/* --- IOT DEEP DIVE SECTION --- */
.iot-section {
    padding: 120px 0;
    /* Fondo oscuro pero un poco más claro que el negro total para contraste */
    background: linear-gradient(to right, #0f172a, #1e293b); 
    color: white;
    overflow: hidden;
}

.iot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.iot-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.iot-content p {
    font-size: 1.1rem;
    color: #94a3b8; /* Gris azulado claro */
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Lista de características con iconos */
.iot-list {
    list-style: none;
    margin-bottom: 40px;
}

.iot-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-box {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--bio-cyan);
}

.iot-list h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.iot-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- VENTANA DE NAVEGADOR (BROWSER MOCKUP) --- */
.browser-window {
    background: #0B1120;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg); /* Ligera inclinación 3D */
    transition: transform 0.5s ease;
}

.browser-window:hover {
    transform: perspective(1000px) rotateY(0deg); /* Se endereza al pasar el mouse */
}

.browser-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.browser-address {
    margin-left: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    width: 100%;
}

.browser-body {
    position: relative;
    line-height: 0; /* Elimina espacio extra debajo de la imagen */
}

.dashboard-img {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente azulado para integrar la foto con tu marca */
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.1), rgba(11, 17, 32, 0.4));
    pointer-events: none;
}

/* RESPONSIVO */
@media (max-width: 960px) {
    .iot-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .browser-window {
        transform: none; /* Quitamos el 3D en tablets/móviles */
        margin-top: 20px;
    }
}

@media (min-width: 1920px) {
    .iot-content h2 { font-size: 3.5rem; }
}

/* =========================================
   METODOLOGÍA - ESTILO "LABORATORIO DE PRECISIÓN"
   ========================================= */

.methodology-section {
    padding: 100px 0;
    background-color: #ffffff;
    /* El "aire diferente": Una cuadrícula de plano de ingeniería ultra-sutil */
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

/* --- 1. VISTA DE ESCRITORIO --- */
.desktop-timeline-wrapper {
    display: block;
    max-width: 900px;
    margin: 70px auto 0;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* La línea de conexión (Tubería limpia) */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

/* LAS GOTAS (Nodos) */
.timeline-dot {
    width: 65px;
    height: 65px;
    background: transparent; 
    border: none; 
    color: #94a3b8; /* Gris azulado para los inactivos */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px; /* Centrado óptico de la tipografía */
    transition: all 0.3s ease;
}

/* La forma de la gota */
.timeline-dot::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Sombra base para que despeguen del plano */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Hover suave */
.timeline-dot:hover {
    color: var(--bio-cyan);
}
.timeline-dot:hover::before {
    border-color: rgba(6, 182, 212, 0.4);
    transform: rotate(45deg) scale(1.05);
}

/* ESTADO ACTIVO (El Efecto Pulso de Agua) */
.timeline-dot.active {
    color: #ffffff; /* Número blanco */
}

.timeline-dot.active::before {
    background: var(--bio-cyan);
    border-color: var(--bio-cyan);
    transform: rotate(45deg) scale(1.15);
    /* Animación de pulso expansivo */
    animation: cyanRipple 2s infinite;
}

@keyframes cyanRipple {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* PANTALLA DE INFORMACIÓN (Estilo Tarjeta Premium Flotante) */
.timeline-info-display {
    text-align: center;
    background: #ffffff; /* Blanco puro */
    padding: 50px 40px;
    border-radius: 24px;
    border: none; /* Quitamos el borde gris aburrido */
    /* Sombra profunda y elegante que da la sensación de flotar */
    box-shadow: 0 20px 50px rgba(11, 17, 32, 0.06);
    min-height: 200px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Detalle técnico: Línea Cyan superior en el panel */
.timeline-info-display::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), transparent);
}

.timeline-info-display h3 {
    font-family: var(--font-heading);
    color: var(--deep-abyss, #0B1120);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.timeline-info-display p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.fade-text {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. VISTA MÓVIL (Minimalista) --- */
.mobile-cards-grid {
    display: none; 
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .desktop-timeline-wrapper { display: none; }
    .mobile-cards-grid { display: grid; }

    .step-card {
        background: #ffffff;
        border: none; /* Sin bordes, solo sombras */
        border-radius: 16px;
        padding: 30px 25px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        position: relative;
        transition: transform 0.3s ease;
    }

    .step-card:active {
        transform: scale(0.98);
    }

    .step-card h3 { color: var(--deep-abyss); margin-bottom: 10px; font-size: 1.3rem;}
    .step-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6;}
    
    .step-number {
        width: 45px;
        height: 45px;
        background: #f8fafc;
        color: var(--bio-cyan);
        border: 2px solid rgba(6, 182, 212, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-weight: 700;
        font-size: 1.2rem;
    }
    
    .step-number.success { 
        background: var(--bio-cyan); 
        color: #ffffff;
        border-color: var(--bio-cyan);
        box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    }
}

/* =========================================
   SECCIÓN DE EQUIPO - IDENTIDAD TÉCNICA
   ========================================= */

.team-section {
    padding: 100px 0;
    background: #0B1120; /* Fondo Deep Abyss */
}

.team-section .section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.team-section h2 {
    color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* LA TARJETA DEL PERFIL */
.team-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--bio-cyan);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* CONTENEDOR DE LA FOTO */
.profile-pic {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
}

/* LA FOTO (Blanco y negro por defecto) */
.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(110%);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
}

.team-card:hover .profile-pic img {
    filter: grayscale(0%) contrast(100%);
    border-color: #0B1120;
}

/* ANILLO DE RADAR (Efecto Vanguardista) */
.tech-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: spin 15s linear infinite;
    transition: all 0.4s ease;
}

.team-card:hover .tech-ring {
    border-color: var(--bio-cyan);
    border-style: solid;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    animation-duration: 5s; /* Gira más rápido al hacer hover */
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* TEXTOS DEL PERFIL */
.team-info h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.tech-role {
    display: block;
    color: var(--bio-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* BOTÓN DE LINKEDIN */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--bio-cyan);
    color: #0B1120;
    transform: scale(1.1);
    border-color: var(--bio-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/**AJUSTES PARA PANTALLAS MUY GRANDES (4K) - OPTIMIZACIÓN DE ESPACIOS Y TIPOGRAFÍA


@media (min-width: 2560px) {
    /* 1. Contenedor principal más ancho *
    .container {
        max-width: 1600px; 
    }

    /* 2. Textos de Hero *
    .hero-content h1 {
        font-size: 8rem; 
    }
    
    .btn-glass {
                font-size: 2.25rem;
    }

    .nav-links a{
        font-size: 2.25rem;
    }

        .logo-img {
        height: 205px;
    }

    .hero-content p {
        font-size: 3.5rem;
        max-width: 1500px;
    }

    /* 3. Títulos de Secciones *
    .innovation-text h2, 
    .section-header h2 {
        font-size: 3.5rem;
    }

    /* 4. Textos descriptivos *
    .innovation-text p, 
    .service-card > p,
    .card-info p,
    .testimonial-text {
        font-size: 1.25rem;
    }

    /* 5. Gaps y espacios *
    .innovation-grid,
    .services-grid,
    .testimonials-grid,
    .footer-grid {
        gap: 60px;
    }

    /* 6. Agrandar iconos y contadores *
    .stat-box h3 {
        font-size: 5.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .tech-card i {
        font-size: 4rem;
    }
    
    /* 7. Ajuste sutil del logo *
    .logo-img {
        height: 95px;
    }
}
*/



/* --- SECCIÓN LÍNEAS DE NEGOCIO (Estilo Precisión Industrial) --- */
.financial-section {
    padding: 100px 0;
    background-color: #f8fafc; /* Mantenemos tu fondo claro */
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    /* align-items: stretch obliga a que todas las tarjetas tengan la misma altura, se ve mucho más pro */
    align-items: stretch; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base de la Tarjeta Evolucionada */
.financial-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    /* Sombra más limpia y técnica, menos "mancha gris" */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* Borde con un ligerísimo toque de tu color cyan */
    border: 1px solid rgba(6, 182, 212, 0.1); 
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer; /* Cambia el cursor para indicar que es un enlace */
}

/* --- CONTENEDOR DEL BOTÓN DENTRO DE LA TARJETA --- */
.card-action-wrapper {
    margin-top: auto; /* Empuja el botón siempre hasta el fondo de la tarjeta */
    padding-top: 25px;
    /* Una línea divisoria muy sutil para separar la información de la acción */
    border-top: 1px solid #e2e8f0; 
    position: relative;
    z-index: 10; /* Asegura que este elemento intercepte el clic antes que la tarjeta */
}

/* --- EL BOTÓN DE ACCIÓN (Dentro del Card) --- */
.card-action-btn {
    display: flex;
    justify-content: space-between; /* Texto a la izquierda, flecha a la derecha */
    align-items: center;
    width: 100%; /* Botón de ancho completo para que sea fácil de presionar en celular */
    background: #f8fafc; /* Fondo gris muy clarito por defecto */
    color: var(--deep-abyss, #0B1120);
    padding: 14px 20px;
    border-radius: 8px; /* Un poco más cuadrado para mantener el look industrial */
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
}

/* La interacción al pasar el mouse por el botón */
.card-action-btn:hover {
    background: var(--bio-cyan); /* Se llena de tu color principal */
    color: #ffffff; /* Texto blanco para resaltar */
    border-color: var(--bio-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

/* Animación de la flecha al hacer hover */
.card-action-btn i {
    transition: transform 0.3s ease;
}

.card-action-btn:hover i {
    transform: translateX(4px); /* La flecha da un pequeño empujón */
}

/* Micro-interacción: Línea de escaneo superior (Aparece al pasar el mouse) */
.financial-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 3px;
    background: var(--bio-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

/* Hover: La tarjeta se "enciende" */
.financial-card:hover {
    transform: translateY(-8px);
    /* El resplandor cambia a Cyan para unificar la marca */
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.08); 
    border-color: rgba(6, 182, 212, 0.3);
}

.financial-card:hover::before {
    transform: scaleX(1); /* Despliega la línea superior */
}

/* --- TARJETA DESTACADA (RENTA - OPEX) --- */
.financial-card.featured {
    border: 2px solid var(--bio-cyan);
    transform: scale(1.03); 
    z-index: 2;
    /* Resplandor permanente para denotar que es la opción estrella */
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.1); 
}

.financial-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
}

/* --- CONTENIDO INTERNO --- */
/* Asegúrate de tener un div wrapper para el texto dentro de la tarjeta */
.financial-card-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Empuja el botón o enlace siempre hacia el fondo */
}

/* Reemplazando las palomitas verdes por Cyan */
.financial-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.financial-card-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
}

/* La palomita personalizada */
.financial-card-content ul li::before {
    content: '✓'; 
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bio-cyan);
    font-weight: 900;
}

/* Enlaces de Acción (Cotizar póliza ->) */
.financial-cta {
    margin-top: auto; /* Siempre al fondo */
    color: var(--bio-cyan);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.financial-cta:hover {
    gap: 15px; /* La flecha dispara a la derecha */
    color: #048a9f;
}

/*=======================================================*/

/* Etiqueta OPEX (Sticker Azul) */
.opex-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--bio-cyan);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 16px;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Imagen de Cabecera */
.card-image-header {
    height: 200px; /* Altura fija para uniformidad */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorte inteligente */
    transition: transform 0.5s ease;
}

.financial-card:hover .card-image-header img {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

/* Cuerpo de la Tarjeta */
.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--deep-abyss);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.card-body p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Listas con Palomitas */
.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    margin-top: auto; /* Empuja la lista hacia abajo */
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.check-list i {
    font-size: 1.1rem;
    margin-top: 2px;
    font-weight: bold;
}

/* Colores de las palomitas */
.green-checks i {
    color: #10b981; /* Verde éxito */
}

.blue-checks i {
    color: var(--bio-cyan); /* Tu azul corporativo */
}

/* Enlaces (Call to Action) */
.card-link {
    text-decoration: none;
    color: var(--bio-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
    margin-top: 10px;
}

.card-link.highlight {
    color: #0891b2; /* Un tono un poco más oscuro para la tarjeta destacada */
}

.card-link:hover {
    gap: 10px;
    text-decoration: underline;
}

/* =========================================
   RESPONSIVO - TARJETAS FINANCIERAS / NEGOCIO
   ========================================= */
@media (max-width: 768px) {
    /* 1. Forzamos la grilla a una sola columna perfectamente centrada */
    .financial-grid {
        grid-template-columns: 1fr;
        justify-items: center; /* Obliga a los elementos a ir al centro */
        gap: 40px; /* Un poco más de aire entre tarjetas hacia abajo */
        padding: 0 15px; /* Margen de seguridad para los bordes del celular */
    }

    /* 2. Controlamos el tamaño de la tarjeta para que no se desborde */
    .financial-card {
        width: 100%;
        max-width: 380px; /* Tamaño ideal para que se vea proporcionada en móviles */
        margin: 0 auto; /* Centrado absoluto */
    }

    /* 3. Ajuste de la tarjeta destacada (El que ya tenías, optimizado) */
    .financial-card.featured {
        transform: none; /* Quitamos el zoom base en móvil para evitar recortes */
        /* Quitamos los margins top/bottom porque el 'gap' de la grilla ya hace ese trabajo */
        border-width: 2px; /* Mantenemos el borde grueso para que siga destacando */
    }
    
    /* Mantenemos un hover muy sutil en móvil (el usuario interactúa tocando) */
    .financial-card.featured:hover {
        transform: translateY(-4px); 
    }
}
























*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0a1628; font-family: 'Inter', sans-serif; color: #cdd6e8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #00c2cb;
  border: 1px solid rgba(0,194,203,0.4);
  padding: 5px 13px; border-radius: 2px;
}

.btn-glass:hover { background: rgba(0,194,203,0.22); transform: translateY(-1px); }

/* ════════════════════════════════
   SERVICIOS   — pega esto en style.css
════════════════════════════════ */
.services-section-v2 {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.services-section-v2::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,194,203,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,203,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.services-section-v2::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,203,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* header */
.sv2-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  position: relative; z-index: 1;
}

.sv2-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; color: #fff; line-height: 1.1; margin-top: 16px;
}
.sv2-header h2 em { font-style: italic; font-weight: 400; color: #00c2cb; }

.sv2-subtitle {
  font-size: 14px; color: #5c7299;
  max-width: 260px; text-align: right; line-height: 1.7;
}

/* divisor */
.sv2-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, #00c2cb, transparent);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

/* lista */
.sv2-list {
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}

.sv2-row {
  display: grid;
  grid-template-columns: 52px 260px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  transition: background 0.3s ease;
  cursor: default;
}
.sv2-row:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.sv2-row:hover { background: rgba(0,194,203,0.05); }

/* número */
.sv2-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #5c7299; letter-spacing: 0.08em;
}

/* icono + nombre */
.sv2-title-wrap { display: flex; align-items: center; gap: 14px; }

.sv2-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(0,194,203,0.25);
  border-radius: 8px;
  background: rgba(0,194,203,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.sv2-row:hover .sv2-icon {
  border-color: #00c2cb;
  background: rgba(0,194,203,0.14);
}
.sv2-icon i { font-size: 20px; color: #00c2cb; }

.sv2-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 600;
  color: #fff; letter-spacing: -0.01em;
}

/* descripción */
.sv2-desc {
  font-size: 13.5px; color: #5c7299;
  line-height: 1.65; max-width: 420px;
  transition: color 0.3s;
}
.sv2-row:hover .sv2-desc { color: #8a9fc2; }

/* tags */
.sv2-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.sv2-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #5c7299;
  border: 1px solid rgba(255,255,255,0.09);
  padding: 4px 10px; border-radius: 3px;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.sv2-row:hover .sv2-tag { color: #00c2cb; border-color: rgba(0,194,203,0.35); }

/* barra inferior */
.sv2-bottom {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
}
.sv2-bottom-text { font-size: 14px; color: #5c7299; max-width: 380px; line-height: 1.65; }

/* responsive */
@media (max-width: 960px) {
  .sv2-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
  }
  .sv2-num        { grid-row: 1; grid-column: 1; align-self: center; }
  .sv2-title-wrap { grid-row: 1; grid-column: 2; }
  .sv2-desc       { grid-row: 2; grid-column: 2; max-width: 100%; }
  .sv2-tags       { grid-row: 3; grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sv2-header   { grid-template-columns: 1fr; }
  .sv2-subtitle { text-align: left; max-width: 100%; }
  .sv2-bottom   { flex-direction: column; align-items: flex-start; }
  .services-section-v2 { padding: 80px 0 100px; }
}


/* --- ESTILO PARA TARJETA QUE OCUPA TODO EL ANCHO --- */

/* 1. Estado por defecto (Celulares y Pantalla Dividida) 
      Se comporta exactamente igual que sus tarjetas hermanas */
.card-wide {
    grid-column: auto;
    flex-direction: column; /* Obligamos a que sea vertical */
}

.card-wide .card-image-header {
    width: 100%;
    height: 200px; /* Conserva la altura original de la foto */
    min-height: auto;
}

.card-wide .card-body {
    width: 100%;
    padding: 30px; /* El espaciado normal */
}

.card-wide .check-list {
    display: flex;
    flex-direction: column;
}

/* 2. SOLO en monitores grandes (Laptops y Escritorio completos) */
@media (min-width: 1024px) { 
    .card-wide {
        grid-column: 1 / -1; /* Ocupa toda la fila inferior */
        flex-direction: row; /* Imagen a la izquierda, texto a la derecha */
        align-items: stretch;
    }

    .card-wide .card-image-header {
        width: 40%;
        height: auto;
        min-height: 100%;
    }

    .card-wide .card-body {
        width: 60%;
        padding: 40px 50px;
        justify-content: center;
    }

    .card-wide .check-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}

/* Solo se activa en Tablets (entre 601px y 992px) */
@media (min-width: 690px) and (max-width: 1000px) {
    .card-wide-tablet {
        grid-column: 1 / -1; /* Ocupa todo el ancho disponible en la fila 2 */
        flex-direction: row; /* Diseño horizontal */
        align-items: stretch;
    }

    .card-wide-tablet .card-image-header {
        width: 40%;
        height: auto;
        min-height: 100%;
    }

    .card-wide-tablet .card-body {
        width: 60%;
        padding: 30px 40px;
        justify-content: center;
    }

    .card-wide-tablet .check-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
    }
}








/* Rejilla interna de cada pestaña (Texto | Imagen) */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.panel-info h3 {
    font-size: 1.8rem;
    color: var(--deep-abyss, #0B1120);
    margin-bottom: 15px;
}

.panel-info p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}

.panel-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .tab-buttons {
        grid-template-columns: 1fr; /* Apila los botones hacia abajo */
    }
    .panel-grid {
        grid-template-columns: 1fr; /* Apila el texto y la imagen */
    }
    .tab-btn.active::after {
        left: 0; top: 0; width: 4px; height: 100%; /* La línea pasa a la izquierda */
    }
    .tab-content-wrapper {
        padding: 25px 20px;
    }
    .panel-image img {
        height: 250px;
    }
}



/* =========================================
   SISTEMA DE PESTAÑAS (LÍNEAS DE NEGOCIO)
   ========================================= */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 20px;
    font-family: var(--font-heading, 'Montserrat');
    font-weight: 700;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.tab-btn i { font-size: 1.3rem; }
.tab-btn:hover { color: var(--deep-abyss, #0B1120); background: #f1f5f9; }

/* Botón Activo */
.tab-btn.active {
    background: #ffffff;
    color: var(--bio-cyan);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bio-cyan);
}

/* Área de contenido */
.tab-content-wrapper { padding: 40px; }

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.panel-info h3 { font-size: 1.8rem; color: #0B1120; margin-bottom: 15px; }
.panel-info p { color: #475569; line-height: 1.6; margin-bottom: 25px; }

@media (max-width: 768px) {
    .tab-buttons { grid-template-columns: 1fr; }
    .panel-grid { grid-template-columns: 1fr; }
    .tab-btn.active::after { left: 0; top: 0; width: 4px; height: 100%; }
    .tab-content-wrapper { padding: 25px 20px; }
}


/* Contenedor circular (El Tanque) */
.water-circle {
    position: relative;
    width: 140px;
    height: 140px;
    background-color: rgba(6, 182, 212, 0.1);
    border: 4px solid #06b6d4; /* Color Cian Hydrovec */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

/* Estilo base de las olas */
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background-color: #06b6d4;
    left: -50%;
    top: 100%; /* Empieza vacío */
    border-radius: 42%; /* El secreto de la forma de la ola */
    transition: all 1s ease;
}

/* Animación de Llenado y Rotación */
.wave-one {
    animation: 
        fill-level 4s ease-out forwards, 
        rotate-wave 7s linear infinite;
    z-index: 1;
    opacity: 1;
}

.wave-two {
    animation: 
        fill-level 4.5s ease-out forwards, 
        rotate-wave 10s linear infinite;
    z-index: 1;
    opacity: 0.5;
    border-radius: 38%; /* Diferente curva para que no se encimen */
}

/* El ícono de la palomita */
.check-icon {
    position: relative;
    z-index: 2; /* Siempre por encima del agua */
    font-size: 5rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Keyframes: Aquí es donde se mueve */
@keyframes fill-level {
    0% { top: 100%; }
    100% { top: 35%; } /* Qué tan lleno quieres el tanque (35% es ideal) */
}

@keyframes rotate-wave {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.water-box-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* Contenedor de burbujas */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1; /* Entre las olas y el icono */
}

/* Estilo de cada burbuja */
.bubbles span {
    position: absolute;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: bubble-rise infinite linear;
}

/* Posiciones y tamaños variados para naturalidad */
.bubbles span:nth-child(1) { left: 20%; width: 8px; height: 8px; animation-duration: 3s; animation-delay: 1s; }
.bubbles span:nth-child(2) { left: 45%; width: 12px; height: 12px; animation-duration: 4s; animation-delay: 0.5s; }
.bubbles span:nth-child(3) { left: 70%; width: 6px; height: 6px; animation-duration: 2.5s; animation-delay: 2s; }
.bubbles span:nth-child(4) { left: 10%; width: 10px; height: 10px; animation-duration: 5s; animation-delay: 1.5s; }
.bubbles span:nth-child(5) { left: 80%; width: 14px; height: 14px; animation-duration: 3.5s; animation-delay: 0.2s; }

/* Animación: Subir y desaparecer */
@keyframes bubble-rise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0);
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        /* Suben hasta el nivel donde llega el agua */
        bottom: 70%; 
        opacity: 0;
        transform: translateX(15px); /* Movimiento lateral sutil */
    }
}




.iot-flow-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.vertical-path {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 0;
}

/* Tubería de datos central */
.central-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

/* El pulso que simula agua o datos bajando */
.liquid-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bio-cyan), transparent);
    animation: flow-down 4s infinite linear;
}

.flow-item {
    display: flex;
    align-items: center;
    width: 50%;
    margin-bottom: 80px;
    position: relative;
}

.flow-item.left {
    padding-right: 60px;
    text-align: right;
    justify-content: flex-end;
}

.flow-item.right {
    margin-left: 50%;
    padding-left: 60px;
}

/* El círculo del icono que se pega a la línea */
.flow-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #0B1120;
    color: var(--bio-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 0 8px #fff; /* Crea un espacio blanco alrededor */
}

.left .flow-icon { right: -25px; }
.right .flow-icon { left: -25px; }

.step-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--bio-cyan);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.flow-text h4 {
    font-size: 1.4rem;
    color: #0B1120;
    margin-bottom: 10px;
}

.flow-text p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes flow-down {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .central-line { left: 20px; }
    .flow-item { width: 100%; margin-left: 0 !important; padding-left: 60px !important; text-align: left !important; justify-content: flex-start; }
    .left .flow-icon, .right .flow-icon { left: -5px; right: auto; }
}