/* =========================================
   1. VARIABLES Y RESET BÁSICO
========================================= */
:root {
    --color-primary-dark: #071527; 
    --color-accent-neon1: #C7E02D; 
    --color-accent-neon: #777777;
    --color-bg-light: #F8F9FA;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    
    --border-radius-lg: 24px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }
body, html { 
    background-color: #FFFFFF; 
    color: var(--color-text-main); 
    overflow-x: hidden; /* Failsafe obligatorio contra el scroll horizontal */
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Placeholders para imágenes faltantes o rotas */
img {
    max-width: 100%;
    height: auto;
    color: transparent; 
    display: block;
}

a {
    text-decoration: none;
    color: inherit; /* Evita que el navegador ponga los enlaces en azul */
} 
/* =========================================
   2. TIPOGRAFÍA, BOTONES Y ANIMACIONES
========================================= */
.highlight { color: var(--color-accent-neon1); font-size: 8rem; font-weight: 800; line-height: 1; letter-spacing: -3px; }
.highlight-text { color: var(--color-accent-neon); font-size: 1.5rem; font-weight: 800; }

.section-title {
    text-align: center; font-size: 1.2rem; font-weight: 700; margin: 80px 0 40px 0; color: var(--color-text-main); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.line-accent { width: 40px; height: 3px; background-color: var(--color-accent-neon); display: block; }

.btn-primary { background: var(--color-primary-dark); color: white; padding: 12px 24px; border-radius: var(--border-radius-sm); border: none; cursor: pointer; font-weight: bold;}
.btn-dark { background: var(--color-primary-dark); color: white; padding: 16px 32px; border-radius: 50px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: bold;}
.btn-icon { background: white; border: 1px solid #E0E0E0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center;}
.btn-icon:hover { border-color: var(--color-primary-dark); background: var(--color-bg-light);}

/* Clases utilitarias de animación scroll */
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* --- Motor de Animación Base --- */
.anim-hidden {
    opacity: 0;
    transform: translateY(40px); /* Un desplazamiento mayor acentúa el efecto de entrada */
    /* 0.8s es la DURACIÓN de la animación. Auméntalo a 1s si lo quieres aún más lento */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sistema de Retrasos en Cascada (Delays) --- */
/* Los valores están en incrementos de 0.2 segundos (200ms) para un flujo continuo */
.delay-100 { transition-delay: 0.2s; }
.delay-200 { transition-delay: 0.4s; }
.delay-300 { transition-delay: 0.6s; }
.delay-400 { transition-delay: 0.8s; } /* En caso de que agregues una quinta tarjeta */

/* =========================================
   3. HEADER Y NAVEGACIÓN
========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; position: relative; background: #FFF; z-index: 100;
}
.navbar .logo img { width: 150px; min-height: 40px; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--color-primary-dark); cursor: pointer; }

.navbar nav ul { display: flex; gap: 40px; list-style: none; }
.navbar nav a { text-decoration: none; color: var(--color-text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.navbar nav a:hover, .navbar nav a.active { color: var(--color-primary-dark); border-bottom: 2px solid var(--color-primary-dark); padding-bottom: 4px; }

/* =========================================
   4. SLIDER PRINCIPAL (FULL VIEWPORT)
========================================= */
.main-slider {
    position: relative; width: 100%; margin: 0; border-radius: 0; overflow: hidden; box-shadow: none;
}
.slider-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide {
    min-width: 100%; 
    height: calc(100vh - 80px); /* Ocupa el alto total menos la altura del header */
}
.slide picture, .slide img, .slide picture img { width: 100%; height: 100%; display: block; object-fit: cover; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--color-primary-dark); transition: background 0.3s, color 0.3s; z-index: 10;
}
.slider-btn:hover { background: var(--color-primary-dark); color: #FFFFFF; }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* =========================================
   5. SECCIONES PRINCIPALES
========================================= */
/* --- Hero Section --- */
.hero { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; /* Esta es la regla matemática que alinea el texto y la imagen verticalmente */
    gap: 40px; 
    min-height: 60vh; 
    padding-top: 40px; 
}

.hero-content h1 { margin-bottom: 10px; }
.hero-content h2 { font-size: 2rem; margin-bottom: 30px; color: var(--color-text-main); font-weight: 600; }

.hero-image {
    display: flex;
    justify-content: flex-end; /* Obliga a la imagen a pegarse al borde derecho */
    width: 100%;
}

.hero-image img { 
    width: 100%; 
    max-width: 500px; /* Limita el crecimiento para que no aplaste al texto */
    height: auto; /* Respeta estrictamente la proporción original sin generar aire vertical */
    object-fit: contain; 
    display: block;
    margin: 0; /* Elimina cualquier margen residual que la empuje hacia abajo */
}

/* Grid de Productos */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 60px; }
.products-subgrid { display: grid; grid-template-rows: 1fr 1fr; gap: 30px; }
.card { background: var(--color-bg-light); border-radius: var(--border-radius-lg); padding: 40px; position: relative; overflow: hidden; }
.product-main { display: flex; flex-direction: column; justify-content: space-between; min-height: 600px; }
.product-sub { display: flex; align-items: center; justify-content: space-between; min-height: 285px; }
/* =========================================
   NUEVA REGLA PARA F300 (TAMAÑO Y ANCLAJE INFERIOR)
   ========================================= */
.product-main img { 
    width: 90%;        /* Le damos permiso para ocupar casi todo el ancho de su tarjeta */
    max-width: 450px;  /* Límite holgado para que sea grande pero no se desborde en pantallas enormes */
    height: auto; 
    
    /* CRÍTICO: Posicionamiento */
    margin-top: auto;  /* Al estar en una columna flex, esto empuja la imagen obligatoriamente hacia el fondo */
    margin-bottom: 0;  /* Asegura que no haya márgenes fantasma debajo */
    margin-left: auto; /* Centrado horizontal */
    margin-right: auto;/* Centrado horizontal */
    
    display: block;
    object-fit: contain;
}
.product-sub img { width: 75%; min-height: 200px; }
.sub-content { width: 50%; }

/* Proceso de Afiliación */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.step { position: relative; padding: 0 10px; }
/* El conector punteado (Recalculado para el nuevo centro) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px; /* La mitad exacta del nuevo círculo de 120px */
    right: -50%;
    width: 100%;
    height: 2px;
    border-top: 2px dashed #D1D5DB; 
    z-index: 1;
}

/* Círculo contenedor más grande */
.step-icon {
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #F3F4F6;
    /* Agrega solo esta línea a tu regla .step-icon que ya modificamos antes */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- Efecto de interacción (Hover) para el Proceso de Afiliación --- */
.step:hover .step-icon {
    transform: translateY(-8px); /* Levanta el ícono hacia arriba */
    box-shadow: 0 12px 25px rgba(0,0,0,0.08); /* Profundiza la sombra para dar el efecto de flotar */
    border-color: var(--color-accent-neon); /* (Opcional) Pinta el borde con tu color neón para resaltar */
}

/* Ícono interno escalado proporcionalmente */
.step-icon img {
    width: 80px;
    min-height: 80px;
    border-radius: 0;
}
.step h4 { font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.step p { font-size: 0.9rem; color: var(--color-text-muted); }


/* Soporte y Reparación */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-card { background: #FFFFFF; border: 1px solid #F3F4F6; border-radius: var(--border-radius-sm); padding: 20px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.support-card:hover { transform: translateY(-5px); }
.support-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bg-blue { background-color: #E0E7FF; } .bg-green { background-color: #DCFCE7; } .bg-purple { background-color: #F3E8FF; }
.support-icon img { width: 30px; min-height: 30px; background: transparent; }
.support-info h4 { font-size: 1rem; margin-bottom: 5px; }
.support-info p { font-size: 0.8rem; color: var(--color-text-muted); }
.support-card .btn-icon { margin-left: auto; }

/* Nuestros Nuevos Modelos */


/* =========================================
   SECCIÓN: NUESTROS MODELOS (CORRECCIÓN GRADIENTE Y FONO BLANCO)
   ========================================= */
.new-models-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff !important; /* Forzado a blanco puro, elimina fondo gris */
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

/* 1. Tarjeta unificada sin sombras grises */
.model-card {
    position: relative;
    height: 410px; /* Altura simétrica ideal */
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
    background-color: #ffffff !important; /* Fondo blanco absoluto */
    box-shadow: none !important; /* ELIMINADO: Quita cualquier box-shadow gris residual */
    
    /* Sistema de levitación limpia */
    animation: flotar-modelo 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Desfase orgánico para el movimiento */
.model-card:nth-child(1) { animation-delay: 0.0s; }
.model-card:nth-child(2) { animation-delay: 0.5s; }
.model-card:nth-child(3) { animation-delay: 1.0s; }
.model-card:nth-child(4) { animation-delay: 1.5s; }

/* Control estricto de interacciones: cero sombras */
.model-card:hover {
    box-shadow: none !important; /* Garantiza que no aparezca sombra en mouse over */
    transform: translateY(-4px); 
}

/* 2. Ajuste de la imagen */
.model-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.model-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.model-card:hover .model-img-wrapper img {
    transform: scale(1.04); /* Zoom sutil del lente */
}

/* 3. El Overlay: Corregido estrictamente abajo (bottom) */
.model-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32%; /* REDUCIDO: Se limita solo a la base de la tarjeta, no a la mitad */
    background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.85) 0%, 
                rgba(0, 0, 0, 0.4) 50%, 
                rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    padding-bottom: 45px; /* Espacio de seguridad para la acción inferior */
}

/* Texto blanco asentado correctamente */
.model-overlay h3 {
    color: #ffffff !important;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 4. Acción inferior flotante e integrada */
.model-action {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    background: transparent !important; /* Sin bloques de color de fondo */
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.model-action i {
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

.model-card:hover .model-action i {
    transform: translateX(5px);
}

/* =========================================
   FÍSICA DE BALANCEO CONTINUO
   ========================================= */
@keyframes flotar-modelo {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsividad */
@media (max-width: 992px) {
    .models-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .model-card { height: 360px; }
}
@media (max-width: 576px) {
    .models-grid { grid-template-columns: 1fr; }
}


/* =========================================
   FÍSICA DE LEVITACIÓN (KEYFRAMES)
   ========================================= */
@keyframes flotar-modelo {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); } /* Altura de levitación */
    100% { transform: translateY(0px); }
}

/* Adaptabilidad Móvil */
@media (max-width: 992px) {
    .models-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
}
@media (max-width: 576px) {
    .models-grid { grid-template-columns: 1fr; }
    .model-img-wrapper { height: 250px; }
}


/* =========================================
   6. FOOTER Y EXTRAS
========================================= */
.site-footer { background-color: #F8F9FA; padding: 60px 0 20px 0; border-top: 1px solid #E5E7EB; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { width: 160px; min-height: 40px; margin-bottom: 20px; }

.social-icons { display: flex; gap: 18px; margin-top: 10px; }
.social-icons a { color: var(--color-text-main); font-size: 1.3rem; text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; display: flex; align-items: center; justify-content: center; }
.social-icons a:hover { color: var(--color-primary-dark); transform: translateY(-3px); }

.footer-links h4, .footer-contact h4 { margin-bottom: 20px; color: var(--color-text-main); font-size: 1rem; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--color-text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-primary-dark); }

.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; color: var(--color-text-muted); line-height: 1.5; }
.footer-contact i { font-size: 1.1rem; color: var(--color-text-main); margin-top: 4px; width: 20px; text-align: center; flex-shrink: 0; }

/* --- Carrusel Infinito de Bancos (Marquee) --- */
.footer-banks-marquee {
    width: 100%;
    overflow: hidden; /* Vital: Oculta los logos que salen de los bordes de la pantalla */
    padding: 30px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 20px;
    background: transparent;
    display: flex;
}

.marquee-track {
    display: flex;
    width: max-content; /* El track se expande para contener ambos sets */
    animation: scroll-marquee 35s linear infinite; /* 35 segundos de rotación, lineal y para siempre */
}

/* Opcional pero buena UX: Pausa la animación si el usuario pone el cursor encima */
.marquee-track:hover {
    animation-play-state: paused;
}


.marquee-set {
    display: flex;
    align-items: center;
    /* Eliminamos el 'gap' y el 'padding-right' para evitar el colapso del renderizado */
}

.marquee-set img {
    height: 40px;
    width: auto;
    min-height: 40px;
    background: transparent;
    object-fit: contain;
    flex-shrink: 0; 
    
    /* Solución de fuerza bruta: Margen derecho garantizado para cada logo */
    margin-right: 60px; 
    
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

/* Efecto hover interactivo */
.marquee-set img:hover {
    filter: grayscale(0%) opacity(1); /* Vuelve al color original */
    transform: scale(1.1); /* Efecto de zoom sutil */
}

/* El motor matemático de la animación */
@keyframes scroll-marquee {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); /* Como los dos sets miden lo mismo, mover el 50% crea un bucle perfecto */
    }
}

/* --- Ajuste Móvil para el Carrusel --- */
@media (max-width: 768px) {
    .marquee-set {
        gap: 40px;
        padding-right: 40px;
    }
    .marquee-set img {
        height: 30px; /* Logos ligeramente más pequeños en teléfonos */
        min-height: 30px;
    }
}

.footer-bottom { text-align: center; color: var(--color-text-muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--color-text-muted); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Botón Flotante WhatsApp */
.float-wa { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15); z-index: 1000; transition: transform 0.3s; text-decoration: none; }
.float-wa:hover { transform: scale(1.1); }
.float-wa i { font-size: 2.2rem; color: #FFFFFF; }


/* =========================================
   7. RESPONSIVE DESIGN (MEDIA QUERIES CONSOLIDADAS)
========================================= */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    /* Header comprimido */
    .navbar { flex-direction: row; justify-content: space-between; padding: 12px 15px; }
    .navbar .logo img { width: 120px; }
    .nav-actions { gap: 12px; }
    .nav-actions .btn-primary { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }
    .menu-toggle { display: block; padding: 0; }
    
    /* Menú Desplegable */
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #FFFFFF; box-shadow: 0 10px 15px rgba(0,0,0,0.1); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
    .nav-menu.active { max-height: 300px; }
    .nav-menu ul { flex-direction: column; gap: 0; padding: 20px; }
    .nav-menu li { width: 100%; text-align: center; margin-bottom: 15px; }

    /* Ajuste de Secciones */
    .hero { grid-template-columns: 1fr; text-align: center; }
    .support-grid { grid-template-columns: 1fr; }
    .models-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-banks { justify-content: center; }

    /* Centrado de la imagen del producto en dispositivos móviles */
  .hero-image {
        justify-content: center; /* Centra la imagen debajo del texto en móviles */
        margin-top: 30px;
    }
}

/* Teléfonos y pantallas pequeñas */
@media (max-width: 768px) {
    /* Desactivar línea del proceso */
    .process-steps { grid-template-columns: 1fr; gap: 40px; }
    .step:not(:last-child)::after { display: none; }

    /* Apilar Grid de Productos a 1 columna estricta */
    .products-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
    .product-main { min-height: auto; }
    .product-main, .product-sub { text-align: center; align-items: center; }
    .product-sub { flex-direction: column; justify-content: center; min-height: auto; }
    .sub-content { width: 100%; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center;}
    /* NUEVA REGLA PARA F300 */
    .product-main img { 
    width: 100%; 
    max-width: 280px; /* Límite estricto para que no se vuelva gigante */
    height: auto; 
    min-height: auto; /* Anula el error anterior */
    margin: 20px auto 0 auto; 
    display: block;
    object-fit: contain;
}
    
    .product-sub img { width: 80%; min-height: auto; margin-top: 15px; }
    
    /* Controles del Slider reducidos */
    .slider-btn { width: 35px; height: 35px; font-size: 1rem; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* Teléfonos extra pequeños */
@media (max-width: 576px) {
    .models-grid { grid-template-columns: 1fr; }
    .float-wa { bottom: 20px; left: 20px; width: 50px; height: 50px; }
    .float-wa i { font-size: 1.8rem; }
}

/* --- Ajuste Móvil para el Carrusel --- 
    .marquee-set img {
        height: 30px; 
        min-height: 30px;
        margin-right: 40px;  Reducimos la separación para que quepan mejor en teléfonos 
    }*/


/* =========================================
   8. POP UP BANNER
========================================= */

/* --- Popup Promocional --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 21, 39, 0.85); /* Fondo oscuro semitransparente */
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; 
    transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    position: relative; width: 90%; max-width: 600px;
    background: #FFF; border-radius: var(--border-radius-lg); 
    overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.95); 
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 15px; right: 15px; z-index: 20;
    background: #FFF; border: none; width: 35px; height: 35px; 
    border-radius: 50%; cursor: pointer; font-size: 1.2rem; 
    color: var(--color-primary-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.modal-close:hover { transform: scale(1.1); color: red; }

/* Mini-slider interno del modal */
.modal-slider { position: relative; width: 100%; overflow: hidden; }
.modal-track { display: flex; transition: transform 0.4s ease-in-out; }
.modal-slide { min-width: 100%; aspect-ratio: 1 / 1; /* Cuadrado para que funcione en móvil y desktop */ }
.modal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; color: var(--color-primary-dark); z-index: 10;
}
.modal-btn:hover { background: var(--color-primary-dark); color: #FFF; }
.m-prev { left: 10px; } .m-next { right: 10px; }

/* =========================================
   9. HR SEPARADOR
========================================= */


/* --- Separador Minimalista Premium --- */
hr.chic-separator {
    border: 0;
    height: 1px;
    /* Degradado: Transparente en los bordes, azul oscuro al 15% en el centro */
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(7,21,39,0.15), rgba(0,0,0,0));
    margin: 80px auto; /* 80px de aire respirable arriba y abajo */
    width: 85%; /* Nunca debe tocar los bordes de la pantalla */
    position: relative;
    overflow: visible; /* Vital para que el punto central no se recorte */
}

/* El punto de acento central */
hr.chic-separator::after {
    content: '';
    position: absolute;
    top: -3px; /* Compensa la altura matemática para quedar exactamente en el medio */
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background-color: var(--color-accent-neon);
    border-radius: 50%;
    /* Un resplandor levísimo para asentar el color neón */
    box-shadow: 0 0 6px rgba(199, 224, 45, 0.4); 
}

/* Reducimos el margen en móviles para que no quede tanto espacio en blanco */
@media (max-width: 768px) {
    hr.chic-separator {
        margin: 50px auto;
        width: 90%;
    }
}


/* =========================================
   ESTRUCTURA DEL HERO CON VIDEO
========================================= */

/* 1. El Contenedor Padre */
.hero-video-section {
    position: relative; /* Vital: Atrapa a los elementos absolutos en su interior */
    width: 100%;
    min-height: 85vh; /* Ocupará el 85% del alto de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Corta cualquier excedente del video */
    background-color: #071527; /* Color de rescate por si el video falla */
    isolation: isolate; /* Fuerza la creación de un nuevo contexto de apilamiento Z */
}

/* 2. El Video (Forzado a comportarse como fondo) */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Matemáticamente recorta el video para llenar el 100% sin deformarse */
    z-index: -2; /* Lo hunde al fondo absoluto */
}

/* 3. La Capa de Contraste (Overlay) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado azul oscuro semi-transparente */
    background: linear-gradient(135deg, rgba(7, 21, 39, 0.85) 0%, rgba(7, 21, 39, 0.5) 100%);
    z-index: -1; /* Se coloca sobre el video (-2) pero debajo del texto (1) */
}

/* 4. El Texto Frontal */
.hero-content {
    position: relative;
    z-index: 1; /* Se asegura de estar por encima del overlay y el video */
    text-align: center;
    width: 100%;
}

.hero-content .highlight {
    color: #FFFFFF;
    font-size: 4rem; /* Ajusta según necesidad */
    font-weight: 800;
    margin-bottom: 15px;
    /* Doble validación de lectura: Sombra paralela dura */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); 
}

.hero-content .highlight-text {
    color: #F8F9FA;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .hero-content .highlight { font-size: 2.5rem; }
    .hero-content .highlight-text { font-size: 1.2rem; }
}


.product-image-container {
    aspect-ratio: 4 / 5; /* O la proporción que mejor se adapte a los POS */
    width: 100%;
    overflow: hidden;
}

/* formulario y mapa */
/* Contenedor principal sin márgenes para abarcar todo el viewport */
.split-contacto-wrapper {
    display: flex;
    flex-wrap: wrap; /* Permite que colapse en móviles */
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* --- MITAD IZQUIERDA --- */
.split-mitad-izquierda {
    width: 50%;
    /* Reemplaza con la ruta de tu imagen de fondo */
    background-image: url('img/upload.png'); 
    background-size: cover;
    background-position: center; /* Ajusta a 'left center' si el POS queda oculto */
    background-color: #111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el formulario en este 50% de la pantalla */
    padding: 60px 40px; /* Espaciado de seguridad */
    box-sizing: border-box;
}

/* Filtro oscuro sutil sobre la imagen para legibilidad */
.split-mitad-izquierda::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Tarjeta de formulario con estilo Glassmorphism idéntico a tu referencia */
.contacto-tarjeta-flotante {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px; /* Limita el ancho del formulario para que no se estire */
    background: rgba(17, 17, 17, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.contacto-tarjeta-flotante h3 { margin-top: 0; font-size: 26px; margin-bottom: 10px; }
.contacto-tarjeta-flotante p { font-size: 14px; color: #ccc; margin-bottom: 25px; }

/* Inputs estructurados */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #ccc; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: #d11a2a;
    outline: none;
    background: rgba(0, 0, 0, 0.8);
}

.btn-enviar {
    background-color: #d11a2a;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.3s;
    width: auto;
}
.btn-enviar:hover { background-color: #a01420; }

/* --- MITAD DERECHA (MAPA) --- */
.split-mitad-derecha {
    width: 50%;
    min-height: 500px; /* Garantiza que el mapa tenga presencia */
    display: flex;
}

/* Eliminar bordes nativos del iframe para un encaje Edge-to-Edge perfecto */
.split-mitad-derecha iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* --- RESPONSIVIDAD --- */
/* Un diseño 50/50 se rompe en pantallas pequeñas. A los 900px pasamos a 100% */
@media (max-width: 900px) {
    .split-mitad-izquierda, 
    .split-mitad-derecha {
        width: 100%;
    }
    .split-mitad-izquierda {
        padding: 40px 20px;
    }
    .split-mitad-derecha {
        min-height: 400px;
    }
}


/* 1. Fuerza la visibilidad del texto ingresado por el usuario */
.input-group input, 
.input-group textarea {
    color: #ffffff !important; /* Fuerza el color de la fuente */
    background-color: rgba(17, 17, 17, 0.8) !important; /* Un fondo sólido para asegurar contraste */
}

/* 2. Neutraliza el autocompletado de Chrome para que no arruine tu diseño */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover, 
.input-group input:-webkit-autofill:focus, 
.input-group textarea:-webkit-autofill,
.input-group textarea:-webkit-autofill:hover,
.input-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important; /* Mantiene tu texto en blanco */
    -webkit-box-shadow: 0 0 0px 1000px #222222 inset !important; /* Sobrescribe el fondo blanco de Google */
    transition: background-color 5000s ease-in-out 0s; /* Evita parpadeos de color */
}

/* =========================================
   NOSOTROS
========================================= */

/* === VARIABLES DE LUJO MINIMALISTA === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5; /* Gris suave para un contraste limpio */
    --text-main: #111111;
    --text-muted: #555555;
    --accent-red: #B81D22; /* Rojo de marca refinado */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === RESET DE ESTILOS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === HERO SECTION === */

/* === HERO EXCLUSIVO PARA NOSOTROS === */
.hero-nosotros {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Llama a tu imagen de nosotros */
    background-image: url('img/hero_nosotros.webp'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Filtro oscuro para legibilidad (Overlay) */
.hero-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Oscurece la imagen un 45% */
    z-index: 1;
}

/* Contenedor del texto */
.hero-nosotros .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 2rem;
}

/* Tipografía del Hero Nosotros */
.hero-nosotros h1 {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-nosotros p {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f7;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-nosotros {
        height: 50vh;
    }
    .hero-nosotros h1 {
        font-size: 3rem;
    }
    .hero-nosotros p {
        font-size: 1.2rem;
    }
}

/* === MAQUETACIÓN Y CONTENEDORES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.split-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.split-section p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    font-weight: 300;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.placeholder-img:hover {
    transform: scale(1.02);
}

/* Modificadores para invertir orden en desktop y mantener zig-zag */
.img-left .content-block {
    order: 2;
}
.img-left .img-block {
    order: 1;
}

/* === SECCIÓN DE CARDS === */
.cards-section {
    background-color: var(--bg-secondary);
    padding: 8rem 2rem;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* === CLASES BASE PARA REVEAL (SCROLL) === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estado activo inyectado por JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para efectos en cascada */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* === ADAPTACIÓN MÓVIL === */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .img-left .content-block, .img-left .img-block {
        order: unset;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   SERVICIOS
========================================= */

/* === VARIABLES === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9fa;
    --bg-dark: #111111;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent-red: #B81D22;
    --border-color: #e5e7eb;
    --font-main: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-main); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }

/* === HERO === */
.hero {
    height: 40vh;
    background: linear-gradient(rgba(17,17,17,0.8), rgba(17,17,17,0.8)), url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&q=80') center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: #cccccc; max-width: 600px; margin: 0 auto; }

/* === CARDS SECTION === */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--bg-primary); border: 1px solid var(--border-color); padding: 3rem 2rem; text-align: center; transition: all 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); border-color: var(--text-main); }
.card h3 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 500; }
.card p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; min-height: 60px; }

/* === BOTONES === */
.btn-outline { display: inline-block; padding: 0.8rem 2rem; border: 1px solid var(--text-main); color: var(--text-main); text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s; }
.btn-outline:hover { background: var(--text-main); color: white; }
.modern-form .btn-primary { 
    width: 100%; 
    padding: 1rem; 
    background-color: #B81D22; 
    color: white; 
    border: none; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.modern-form .btn-primary:hover {
    background-color: #9a171c;
}
.btn-primary:hover { background: #9a171c; }
.btn-secondary { background: var(--text-main); color: white; border: none; padding: 1rem; cursor: pointer; }

/* === BANNER TALLER === */
.taller-banner { background: var(--bg-secondary); padding: 6rem 2rem; text-align: center; }
.taller-banner h2 { font-size: 2.5rem; font-weight: 400; margin-bottom: 1rem; }
.taller-banner p { max-width: 700px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }

/* === GRID TALLER (FORM & ACCORDION) === */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.form-container h3, .info-container h3 { margin-bottom: 2rem; font-weight: 400; font-size: 1.8rem; }

/* FORMS */
.modern-form .input-group { margin-bottom: 1.5rem; }
.modern-form .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.modern-form input, .modern-form select { width: 100%; padding: 1rem; border: none; border-bottom: 1px solid var(--border-color); background: transparent; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.modern-form input:focus, .modern-form select:focus { outline: none; border-bottom-color: var(--accent-red); }
.checkbox-group { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.85rem; color: var(--text-muted); }

/* SEARCH BOX */
.mt-4 { margin-top: 4rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.search-box { display: flex; gap: 0.5rem; }
.search-box input { flex: 1; padding: 1rem; border: 1px solid var(--border-color); }


/* ==========================================================================
   1. ACORDEÓN ORIGINAL (Estilo Minimalista exclusivo para Servicios)
   ========================================================================== */
.accordion-item { 
    border-bottom: 1px solid var(--border-color); 
    background: transparent; 
    border-radius: 0; 
    margin-bottom: 0; 
    border-left: none;
    border-right: none;
    border-top: none;
}

.accordion-header { 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    padding: 1.5rem 0; 
    font-size: 1.1rem; 
    font-weight: 500; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: var(--text-main); 
}

.accordion-header:hover {
    background: transparent;
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out; 
    background: transparent;
}

/* El padding crítico que se había perdido en la página de servicios */
.accordion-content p, .accordion-content ul { 
    padding-bottom: 1.5rem; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.clean-list { list-style: none; }
.clean-list li { margin-bottom: 0.5rem; }
.warning-text { color: var(--accent-red); font-size: 0.85rem; margin-top: 1rem; }


/* ==========================================================================
   2. SCOPE ESTRICTO: FICHA TÉCNICA (Cajas cerradas para F300/F310)
   ========================================================================== */
.ficha-tecnica-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ficha-tecnica-accordion .accordion-item {
    background-color: #f8f9fa;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 0; /* Controlado por el gap del padre */
}

.ficha-tecnica-accordion .accordion-header {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
}

.ficha-tecnica-accordion .accordion-header:hover {
    background-color: #f1f3f5;
}

.ficha-tecnica-accordion .accordion-content {
    background-color: #ffffff;
}

.ficha-tecnica-accordion .accordion-body {
    padding: 0 20px 20px 20px;
}

.specs-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.specs-list-simple li {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.specs-list-simple li:last-child {
    margin-bottom: 0;
}

.specs-list-simple strong {
    color: #111111;
}

.ficha-tecnica-accordion .accordion-item.activo .chevron-icon {
    transform: rotate(180deg);
    color: #003366;
}

/* =========================================
   PRODUCTOS
========================================= */

/* === VARIABLES === */
:root {
    --bg-white: #ffffff;
    --bg-light: #f5f5f7; /* Gris Apple */
    --bg-dark: #000000;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --accent-red: #B81D22;
    --link-blue: #0066cc; /* Estilo clásico de enlaces tech */
    --font-main: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* === CONTENEDORES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-white { background-color: var(--bg-white); color: var(--text-dark); }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-dark { background-color: var(--bg-dark); color: var(--bg-white); }
.text-light p { color: #a1a1a6; } /* Texto secundario en fondos oscuros */

/* === HERO SECTION === */
.products-hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background-color: var(--bg-light);
}
.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.products-hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* === SHOWCASE DE PRODUCTOS (ZIG-ZAG) === */
.product-showcase {
    padding: 8rem 0;
    display: flex;
    align-items: center;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Manejo del zig-zag */
.img-left .product-visual { order: 1; }
.img-left .product-info { order: 2; }

/* === TIPOGRAFÍA DE PRODUCTO === */
.product-title {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.product-desc {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* === BOTONES Y ENLACES === */
.product-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* === ENLACE PREMIUM MINIMALISTA (BLINDADO CONTRA :VISITED) === */
.link-primary,
.link-primary:visited,
.link-primary:active {
    color: #111111; /* Fuerza el negro puro sin importar si ya fue visitado */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

/* Si tienes la variante para fondos oscuros (F600), blinda esa también: */
.bg-dark .link-primary,
.bg-dark .link-primary:visited,
.light-link,
.light-link:visited {
    color: #f5f5f7;
}
.link-primary:hover .arrow { transform: translateX(5px); }
.link-primary .arrow { transition: transform 0.3s ease; }

.btn-buy {
    background-color: var(--accent-red);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px; /* Bordes redondeados modernos */
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-buy:hover { background-color: #9a171c; }

/* Variantes para fondo oscuro (F600) */
.light-link { color: #2997ff; }
.light-btn { background-color: #ffffff; color: #000000; }
.light-btn:hover { background-color: #e0e0e0; }

/* === PLACEHOLDERS DE IMAGEN === */
.mockup-placeholder {
    width: 100%;
    height: 500px;
    background-color: #e8e8ed;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.dark-placeholder {
    background-color: #1d1d1f;
    color: #424245;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* === ANIMACIONES (REVEAL) === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .img-left .product-visual, .img-left .product-info { order: unset; }
    .product-desc { margin: 0 auto 2.5rem; }
    .product-actions { justify-content: center; }
    .product-title { font-size: 3.5rem; }
}


/* =========================================
   PRODUCTOS F20
========================================= */


/* === VARIABLES & RESET === */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --accent-red: #B81D22;
    --border-color: #d2d2d7;
    --font-main: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background: var(--bg-main); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }

/* === STICKY NAV (BARRA DE COMPRA) === */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-content h2 { font-size: 1.2rem; font-weight: 600; }
.btn-buy-small { background: var(--text-dark); color: white; padding: 0.5rem 1.2rem; border-radius: 20px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.3s; }
.btn-buy-small:hover { background: var(--accent-red); }

/* === HERO SECTION === */
.hero-product { padding: 6rem 2rem 0; text-align: center; background: var(--bg-alt); overflow: hidden; }
.hero-text h1 { font-size: 5rem; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.hero-text p { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 3rem; }
.hero-image-container { display: flex; justify-content: center; }
.mockup-hero { width: 800px; height: 500px; background: #e8e8ed; border-radius: 40px 40px 0 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.2rem; }

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .mockup-hero {
        height: 250px;
        padding-top: 50px;
    }
}



/* === SECCIÓN SPECS Y 360 === */
.tech-specs-section { padding: 8rem 2rem; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }

/* 360 Viewer */
.viewer-360-container { background: var(--bg-alt); padding: 3rem; border-radius: 30px; }
.model-placeholder { height: 400px; background: #ffffff; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.viewer-controls { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.control-btn { background: white; border: 1px solid var(--border-color); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.control-btn:hover { background: var(--text-dark); color: white; border-color: var(--text-dark); }

/* Especificaciones Listado */
.specs-content h2 { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 3rem; line-height: 1.1; }
.specs-list { list-style: none; margin-bottom: 3rem; }
.specs-list li { border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.specs-list strong { font-size: 1.2rem; font-weight: 600; }
.specs-list span { color: var(--text-muted); font-size: 1.1rem; line-height: 1.5; }

.btn-buy-large { display: inline-block; background: var(--accent-red); color: white; padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-size: 1.1rem; font-weight: 500; transition: background 0.3s; }
.btn-buy-large:hover { background: #9a171c; }

/* === VIDEO SECTION === */
.video-section { padding: 6rem 0; background: #000; color: white; }
.video-section h2 { font-size: 3.5rem; font-weight: 600; margin-bottom: 1rem; }
.subtitle { font-size: 1.5rem; color: #a1a1a6; margin-bottom: 4rem; }

.custom-video-wrapper { position: relative; max-width: 1000px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
#f20-video { width: 100%; display: block; }
.video-controls-overlay { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); padding: 0.8rem 1.5rem; border-radius: 30px; opacity: 0; transition: opacity 0.3s ease; }
.custom-video-wrapper:hover .video-controls-overlay { opacity: 1; }
.vid-btn { background: none; border: none; color: white; font-size: 1rem; cursor: pointer; font-weight: 500; padding: 0.5rem 1rem; border-radius: 20px; transition: background 0.2s; }
.vid-btn:hover { background: rgba(255,255,255,0.2); }

/* === ANIMACIONES TIPO APPLE === */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }

.reveal { transform: translateY(40px); }
.reveal-up { transform: translateY(80px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.9) translateY(50px); }

.reveal.active, .reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }
.reveal-scale.active { opacity: 1; transform: scale(1) translateY(0); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .split-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-text h1 { font-size: 3.5rem; }
    .specs-content h2 { font-size: 2.5rem; }
}

/*==========================================
    HERO DE PRODUCTOS 
==========================================*/

/* === HERO CON IMAGEN DE FONDO === */
.hero-imagen-fondo {
    position: relative;
    width: 100%;
    height: 60vh; /* Ocupa el 60% del alto de la pantalla */
    min-height: 400px; /* Altura mínima de seguridad */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Configuración de la imagen */
    background-image: url('img/f20-productos.webp'); /* Enlaza tu imagen aquí */
    background-size: cover; /* Cubre todo el espacio sin deformarse */
    background-position: center center; /* Centra la parte más importante */
    background-repeat: no-repeat;
}

/* El filtro oscuro para garantizar la legibilidad del texto blanco */
.hero-imagen-fondo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Ajusta el 0.4 si lo quieres más oscuro o claro */
    z-index: 1; /* Lo pone por encima de la imagen */
}

/* === CONTENIDO DEL TEXTO === */
.hero-imagen-fondo .hero-content {
    position: relative;
    z-index: 2; /* Lo pone por encima del filtro oscuro */
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-imagen-fondo h1 {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Da un extra de contraste */
}

.hero-imagen-fondo p {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f7; /* Un blanco ligeramente apagado para no competir con el título */
    line-height: 1.4;
}

/* =========================================
   ESTRUCTURA BASE Y ESCRITORIO
========================================= */
.hero-imagen-fondo-afiliacion {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 400px;
    display: flex;
    /* Cambio clave: Empujamos el contenedor de texto hacia arriba */
    align-items: flex-start; 
    justify-content: center;
    /* Espaciado para que el texto no toque el borde del navegador */
    padding-top: 10px; 
    
    background-image: url('img/f600_productos.webp');
    background-size: cover;
    /* Cambio clave: Anclamos la imagen del POS al fondo inferior */
    background-position: center bottom; 
    background-repeat: no-repeat;
    color: #f5f5f7;
}

/* Ajustes tipográficos para Desktop */
.hero-imagen-fondo-afiliacion .hero-content {
    position: relative;
    z-index: 2;
    text-align: center; /*
    max-width: 10px; */
    padding: 0 2rem;
}

.hero-imagen-fondo-afiliacion h1 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-imagen-fondo-afiliacion p {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

/* =========================================
   RESPONSIVE (DISPOSITIVOS MÓVILES)
========================================= */
@media (max-width: 768px) {
    .hero-imagen-fondo-afiliacion {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        padding: 100px 20px 60px 20px; /* Más espacio arriba para el menú y abajo para respirar */
        min-height: 450px; /* Aumentamos la altura mínima para albergar el párrafo cómodamente */
        background-position: center bottom; 
        position: relative; /* Asegura el anclaje del overlay */
    }

    /* CAPA OVERLAY: Se activa únicamente en móvil */
    .hero-imagen-fondo-afiliacion::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Usamos el azul oscuro de tu marca (#071527) con 65% de opacidad */
        background-color: rgba(7, 21, 39, 0.65); 
        z-index: 1; /* Se ubica por encima del fondo */
    }

    /* CONTENEDOR DE TEXTO: Lo movemos al frente */
    .hero-imagen-fondo-afiliacion .hero-content {
        position: relative;
        z-index: 2; /* Obliga al texto a estar POR ENCIMA del overlay oscuro */
        margin-top: 0;
        width: 100%;
        text-align: center;
    }

    .hero-imagen-fondo-afiliacion h1 {
        font-size: 2.5rem; 
        margin-bottom: 1rem; /* Espacio sutil antes del párrafo */
        color: #ffffff !important; 
    }
    
    /* REAPARICIÓN Y ESTILO DEL PÁRRAFO EN MÓVIL */
    .hero-imagen-fondo-afiliacion p {
        display: block; /* Forzamos que se muestre */
        font-size: 1.1rem; /* Tamaño optimizado para pantallas táctiles */
        line-height: 1.5;
        color: #e3e3e7; /* Blanco ligeramente grisáceo para mejorar la armonía visual */
        max-width: 500px;
        margin: 0 auto;
    }
}



/* =========================================
   CORRECCIÓN: BLINDAJE DEL BOTÓN DEL HEADER
========================================= */
.nav-actions .btn-primary {
    background-color: var(--color-primary-dark);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    width: auto;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-actions .btn-primary:hover {
    background-color: #040a14; /* Tono ligeramente más oscuro para el hover */
}


/* ======================================
     ANIMACION IMAGEN PRODUCTO 
========================================*/

/* === CONTENEDOR PRINCIPAL === */
.product-hero-tilt {
    display: block;
    width: 100%;
    max-width: 700px; /* Imagen mucho más grande */
    margin: 0 auto;
    perspective: 1500px; /* Perspectiva profunda para imágenes grandes */
    text-decoration: none;
    cursor: pointer;
}

/* === ELEMENTO CON MOVIMIENTO 3D === */
.tilt-element {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Fluidez al seguir el mouse */
}

/* Retorno al estado original al quitar el mouse */
.product-hero-tilt:not(:hover) .tilt-element {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotateX(0deg) rotateY(0deg) !important;
}

/* === IMAGEN DEL PRODUCTO === */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateZ(80px); /* Sale agresivamente hacia el usuario */
    
    /* Sombra inteligente que sigue la silueta del PNG transparente */
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Intensificamos la sombra al hacer hover para dar sensación de levitación */
.product-hero-tilt:hover .hero-img {
    filter: drop-shadow(0 45px 60px rgba(0, 0, 0, 0.25));
}

/* === DESTELLO DE LUZ DILUIDO === */
.glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luz mucho más suave al no tener una tarjeta blanca debajo */
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 60%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transform: translateZ(85px); /* Por encima de la imagen */
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-hero-tilt:hover .glare {
    opacity: 1;
}

/*=================================
    ENLACE TEXTO
=================================*/

/* === ENLACE PREMIUM MINIMALISTA === */
.link-primary {
    color: #111111; /* Negro puro, máxima sofisticación */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

/* Animación fluida de la flecha */
.link-primary .arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.1rem;
}

/* Línea inferior oculta que actúa como subrayado dinámico */
.link-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Inicia invisible */
    height: 1px; /* Grosor ultra fino para mantener el minimalismo */
    background-color: #111111;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interacción Hover */
.link-primary:hover .arrow {
    transform: translateX(6px); /* Separa la flecha del texto */
}

.link-primary:hover::after {
    width: 100%; /* Dibuja la línea completa al hacer hover */
}

/* Variante para el F600 (que tiene fondo negro) */
.bg-dark .link-primary, 
.light-link {
    color: #f5f5f7;
}

.bg-dark .link-primary::after, 
.light-link::after {
    background-color: #f5f5f7;
}


/* =========================================
   FÍSICA 3D PARA LA CUADRÍCULA DEL HOME
========================================= */

/* El contenedor mantiene el tamaño de la cuadrícula y da la perspectiva 
.home-tilt-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    perspective: 1200px;
}*/

/* Blinda el contenedor clickeable del Home */
.home-tilt-wrapper, 
.home-tilt-wrapper:visited {
    text-decoration: none;
    color: inherit; /* Hereda el color natural del texto interno */
}

/* La tarjeta física que se inclina (Fondo más oscuro y menos alta) */
.home-tilt-inner {
    position: relative;
    width: 100%; /*
    height: 100%; */
    background-color: #E6E6EA; /* Gris ligeramente más oscuro para mejor contraste */
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem; /* Reducción de 2.5rem a 1.5rem para acortar la altura */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column; /*
    justify-content: space-between; */
}

/* Ajuste de la imagen para que no estire la tarjeta verticalmente */
.home-tilt-img {
    max-width: 75%; /* Ligeramente más pequeña para compensar el nuevo espacio */
    margin: 1rem auto 0; /* Reducción del margen superior de 2rem a 1rem */
    display: block;
    transform: translateZ(60px);
    transition: transform 0.3s ease;
}

/* Estado de reposo */
.home-tilt-wrapper:not(:hover) .home-tilt-inner {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    transform: rotateX(0deg) rotateY(0deg) !important;
}

.home-tilt-wrapper:hover .home-tilt-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Separación en el eje Z (Profundidad) */
.home-tilt-meta {
    transform: translateZ(30px);
    z-index: 2;
}

/* Destello Dinámico */
.home-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8), transparent 50%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translateZ(70px);
    transition: opacity 0.3s ease;
    z-index: 3;
}

.home-tilt-wrapper:hover .home-glare {
    opacity: 1;
}

/* Ajuste del botón para que parezca botón aunque sea un span */
.btn-icon {
    display: inline-block;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.home-tilt-wrapper:hover .btn-icon {
    background: var(--color-accent-neon1);
    color: var(--color-primary-dark);
}

/* Controla la altura total de la sección del grid */
.products-grid {
    padding-top: 3rem; /* Reducido para que empiece antes */
    padding-bottom: 3rem; 
    gap: 1.5rem; /* Reduce la separación entre la tarjeta grande y las pequeñas */
}

/* =========================================
   HERO EXCLUSIVO PARA SERVICIOS
========================================= */
.hero-servicios {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Enlace a tu nueva imagen. Verifica si está dentro de la carpeta img/ */
    background-image: url('img/hero_servicios.webp'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Filtro oscuro para asegurar la legibilidad del texto */
.hero-servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Nivel de oscurecimiento del 45% */
    z-index: 1;
}

/* Contenedor del texto */
.hero-servicios .hero-content {
    position: relative;
    z-index: 2; /* Por encima del filtro oscuro */
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 2rem;
}

/* Tipografía */
.hero-servicios h1 {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-servicios p {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f7;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-servicios {
        height: 50vh;
    }
    .hero-servicios h1 {
        font-size: 3rem;
    }
    .hero-servicios p {
        font-size: 1.2rem;
    }
}


/* =========================================
   BOTÓN ESTILO SERVICIOS PARA LOS EQUIPOS POS (HOME)
========================================= */
.home-tilt-wrapper .btn-card-outline,
.home-tilt-wrapper:link .btn-card-outline,
.home-tilt-wrapper:visited .btn-card-outline,
.home-tilt-wrapper:active .btn-card-outline {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border: 1px solid #111111 !important;
    background-color: transparent !important;
    color: #111111 !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

/* Efecto al pasar el mouse por la tarjeta */
.home-tilt-wrapper:hover .btn-card-outline {
    background-color: #111111 !important;
    color: #ffffff !important;
}

/* =========================================
   BLINDAJE DE TARJETAS DE MODELOS (HOME)
========================================= */

/* El enlace que envuelve todo */
.model-card, 
.model-card:link, 
.model-card:visited, 
.model-card:active {
    display: block;
    text-decoration: none !important;
    color: #111111 !important; /* Fuerza negro puro */
    transition: transform 0.3s ease;
}

/* Efecto hover elegante */
.model-card:hover {
    transform: translateY(-5px);
}

/* El texto de "Ver detalle" (que ya tiene la clase link-primary) */
.model-card .link-primary,
.model-card .link-primary:link,
.model-card .link-primary:visited {
    color: #111111 !important;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Asegurar que la flecha sea negra también */
.model-card .fa-arrow-right-long {
    color: #111111 !important;
}

/* =========================================
   ESTRUCTURA: NUESTROS NUEVOS MODELOS
========================================= */
.new-models-section {

    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: #111111;
}

/* Cuadrícula de 4 columnas adaptable */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* La tarjeta física */
.model-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden; /* Failsafe: Evita que la imagen rompa la caja */
}

/* Contenedor estricto para la imagen */
.model-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px; /* Altura uniforme para todos los equipos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* LA IMAGEN: Solución al desbordamiento masivo */
.model-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta la imagen dentro de los 250px sin cortarla */
    transition: transform 0.4s ease;
}

/* Zoom sutil al pasar el mouse */
.model-card:hover .model-img-wrapper img {
    transform: scale(1.08);
}

/* El texto que dice "F20", "F300" (Para que no estorbe) */
.model-overlay {
    position: absolute; /*
    top: -10px; */
    left: 0;
}

.model-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

/* Alineación del botón "Ver detalle" */
.model-card .model-action.link-primary {
    justify-content: center; /* Centra el botón en la base de la tarjeta */
    width: 100%;
    margin-top: auto; /* Empuja el botón siempre hacia abajo */
}

/* =========================================
   VISOR 360 RESPONSIVO (CANVAS)
========================================= */
#360viewer {
    width: 100% !important; /* Fuerza a ocupar el ancho de su caja padre */
    max-width: 458px; /* Limita el crecimiento para que no se pixele en pantallas gigantes */
    height: auto !important; /* Mantiene la proporción cuadrada perfecta */
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto 2rem auto;
    background-color: transparent; /* Elimina el fondo blanco quemado de tu CSS anterior */
    cursor: grab;
    border-radius: 20px;
}

#360viewer:active {
    cursor: grabbing; /* Feedback visual premium al arrastrar */
}

/* ================================
    ICONOS AFILIACION
==================================*/

/* Contenedor general y fondo para resaltar el efecto */
.proceso-afiliacion {
    background-color: #f8f9fa; /* Crítico: No usar blanco puro o el vidrio no se notará */
    padding: 60px 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.titulo-seccion {
    font-size: 1.2rem;
    color: #1d2129;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Estructura de la línea de tiempo */
.linea-tiempo {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.paso {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* El efecto Glassmorphism aplicado al contenedor del ícono */
.glass-icon-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    
    /* Configuración del "Vidrio" */
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    z-index: 2;
}

/* Estilos de Font Awesome dentro del vidrio */
.glass-icon-container i {
    font-size: 32px;
    color: #003366; /* Azul corporativo, cámbialo al hex exacto de tu paleta */
}

/* Textos */
.paso h3 {
    font-size: 1.1rem;
    color: #1d2129;
    margin-bottom: 10px;
}

.paso h3 span {
    color: #888; /* Número del paso sutil */
    margin-right: 5px;
}

.paso p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    max-width: 220px;
}




/* =========================================
   1. EFECTO HOVER (CSS PURO)
   ========================================= */
.glass-icon-container {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                background 0.3s ease;
}

.paso:hover .glass-icon-container {
    transform: translateY(-8px); /* Eleva el vidrio */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); /* Sombra más profunda */
    background: rgba(255, 255, 255, 0.6); /* Aclara ligeramente el vidrio */
}

.paso:hover .glass-icon-container i {
    transform: scale(1.1); /* Agranda el ícono levemente */
    transition: transform 0.3s ease;
}


/* =========================================
   2. ESTADOS DE ANIMACIÓN DE APARICIÓN
   ========================================= */
/* Estado inicial (oculto y desplazado hacia abajo) */
.paso {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado final (aplicado vía JS) */
.paso.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto en cascada (Staggering) para que aparezcan uno por uno */
.paso:nth-child(1) { transition-delay: 0.1s; }
.paso:nth-child(2) { transition-delay: 0.25s; }
.paso:nth-child(3) { transition-delay: 0.4s; }
.paso:nth-child(4) { transition-delay: 0.55s; }

/* =========================================
   AJUSTE DE ESCALA PARA F600 (FORMATO HORIZONTAL)
   ========================================= */
.products-subgrid a:nth-child(2) .home-tilt-img {
    width: 82%;        /* Reducido para dar espacio y cumplir con tu boceto */
    max-width: 82%;    
    margin-top: 1.5rem; /* Lo empuja sutilmente hacia el centro vertical */
    transform: translateZ(60px); /* Eliminamos el scale() fijo para evitar desbordes */
}

/* Efecto de zoom dinámico preservado solo al interactuar */
.products-subgrid a:nth-child(2):hover .home-tilt-img {
    transform: translateZ(60px) scale(1.06); 
}

/* =========================================
   AJUSTE DE ESCALA PARA F310 (TARJETA SUPERIOR)
   ========================================= */
.products-subgrid a:nth-child(1) .home-tilt-img {
    width: 95%;        /* Anula el límite global del 75% */
    max-width: 95%;    /* Permite que la imagen crezca a los lados */
    margin-top: -10px; /* Desplaza la imagen levemente hacia arriba para compensar el peso visual */
    transform: translateZ(60px);
}

/* Efecto de levitación/zoom exclusivo para esta tarjeta */
.products-subgrid a:nth-child(1):hover .home-tilt-img {
    transform: translateZ(60px) scale(1.05);
}

/* =========================================
   AJUSTE DE ESCALA PARA LOGOS DE ALIADOS/SERVICIOS
   ========================================= */
/* Reemplaza '.logos-contenedor' por el nombre real de tu clase */
.logos-contenedor img {
    max-width: 180px; /* Aumenta el límite de ancho (probablemente estaba en 100px o 120px) */
    height: 120px;     /* Aumenta la altura disponible */
    width: 100%;      /* Permite que ocupe el espacio disponible hasta el max-width */
    object-fit: contain; /* CRÍTICO: Evita que el logo se estire o se aplaste */
    margin: 0 auto;   /* Mantiene el logo centrado en su tarjeta */
    display: block;
}

/* =========================================
   DISEÑO ACORDEÓN: FICHA TÉCNICA (F300)
   ========================================= 
.ficha-tecnica-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background-color: #f8f9fa;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden; /* Vital para que el contenido no se desborde al cerrar 
}

/* El botón que acciona el panel 
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f1f3f5;
}

.header-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title i {
    color: #003366; /* Azul corporativo 
    font-size: 1.2rem;
}

/* Animación del ícono de flecha 
.chevron-icon {
    color: #888888;
    transition: transform 0.3s ease;
}

/* El contenedor que se oculta/muestra 
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-body {
    padding: 0 20px 20px 20px;
}

/* Estilos de la lista interna 
.specs-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.specs-list-simple li {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.specs-list-simple li:last-child {
    margin-bottom: 0;
}

.specs-list-simple strong {
    color: #111111;
}

/* =========================================
   ESTADOS ACTIVOS (Clases inyectadas por JS)
   ========================================= 
.accordion-item.activo .chevron-icon {
    transform: rotate(180deg); /* Voltea la flecha 
    color: #003366;
}

/*============================================
    CORRECCIÓN DE OVERFLOW DE 360 
  ==========================================*/
/* Obliga al visor 360 a adaptarse al ancho de la pantalla sin deformarse */
canvas, 
.contenedor-visor-360 { 
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Estructura base (Desktop) */
.product-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* El visor y la descripción toman proporciones adecuadas */
.product-layout .visor-section {
    flex: 1 1 50%; /* Ocupa el 50% en escritorio */
    min-width: 0;  /* Previene que flexbox se desborde con el canvas */
}

.product-layout .description-section {
    flex: 1 1 50%;
    min-width: 0;
}

/* El punto de quiebre crítico (Mobile & Tablets) */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column; /* Apila los elementos verticalmente */
    }
    
    .product-layout .visor-section,
    .product-layout .description-section {
        width: 100%; /* Ambos elementos toman el 100% del ancho en móvil */
        flex: none;
    }
}




/* 1. Reset básico para ambos (sin márgenes invasivos) */
.accordion-item {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 0;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 2. El contenido de SERVICIOS (Limpio y directo) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Aplicamos padding solo al contenido directo de SERVICIOS */
.accordion-content p, .accordion-content ul {
    padding: 0 0 20px 0;
    color: #666;
}

/* 3. Aislamiento para la FICHA TÉCNICA (Productos) */
/* Solo se aplica cuando el acordeón está dentro de este contenedor */
.ficha-tecnica-accordion .accordion-item {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.ficha-tecnica-accordion .accordion-body {
    padding: 15px; /* Padding específico para la ficha técnica */
}

/* ===============================
    CARD NOSOTROS
 ===========================*/

 /* === SECCIÓN DE CARDS (NOSOTROS) === */
.cards-section {
    padding: 6rem 2rem;
    background-color: #f8f9fa;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Estilos de cada tarjeta */
.card {
    background: #ffffff;
    padding: 2.5rem 1.8rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: #B81D22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.card p {
    color: #555;
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;   /* Fuerza una columna en móviles */
        gap: 1.8rem;
        padding: 0 10px;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
}

/* =========================================
   PROCESO DE AFILIACIÓN - ICONOS CON ANIMACIÓN
========================================= */

.proceso-afiliacion {
    background-color: #f8f9fa;
    padding: 80px 20px 60px;
    text-align: center;
}

.titulo-seccion {
    font-size: 1.9rem;
    color: #071527;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.linea-tiempo {
    display: flex;
    justify-content: center;
    gap: 45px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.paso {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.paso.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-icon-container {
    width: 92px;
    height: 92px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 25px rgba(7, 21, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-icon-container i {
    font-size: 40px;
    color: #071527;
    transition: transform 0.4s ease;
}

.paso:hover .glass-icon-container {
    transform: translateY(-12px);
    box-shadow: 0 18px 40px rgba(7, 21, 39, 0.15);
}

.paso:hover .glass-icon-container i {
    transform: scale(1.12);
}

.paso h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
}

.paso p {
    color: #555;
    line-height: 1.55;
    max-width: 230px;
}

/* Responsive */
@media (max-width: 992px) {
    .linea-tiempo { gap: 35px; }
}

@media (max-width: 768px) {
    .linea-tiempo {
        flex-direction: column;
        align-items: center;
    }
    .paso {
        margin-bottom: 45px;
    }
}

/* ============================
    BOTON WHATSAPP
===========================*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Color oficial de WhatsApp */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* =========================================
   FORMULARIO DE CONTACTO (SERVICIOS)
========================================= */
.formulario-contacto {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: var(--border-radius-lg, 24px);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0,0,0,0.05));
    border: 1px solid #f0f0f0;
}

.formulario-contacto .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.formulario-contacto label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary-dark, #071527);
    letter-spacing: 0.3px;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto textarea {
    width: 100%;
    padding: 16px;
    background-color: #f5f5f7; /* Gris claro sutil estilo Apple */
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: #1d1d1f;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Estado de foco elegante sin outlines ruidosos */
.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    background-color: #ffffff;
    border-color: var(--color-primary-dark, #071527);
    box-shadow: 0 0 0 4px rgba(7, 21, 39, 0.05);
    outline: none;
}

/* Fijar comportamiento de redimensión del textarea */
.formulario-contacto textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de envío unificado */
.formulario-contacto .btn-enviar {
    width: 100%;
    padding: 16px 32px;
    background-color: var(--color-primary-dark, #071527);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(7, 21, 39, 0.15);
}

.formulario-contacto .btn-enviar:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.formulario-contacto .btn-enviar:disabled {
    background-color: #a1a1a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Adaptabilidad móvil */
@media (max-width: 576px) {
    .formulario-contacto {
        padding: 30px 20px;
        margin: 20px auto;
        border-radius: 16px;
    }
}

/* =========================================
   ESTILOS Y CORRECCIÓN ESTRUCTURAL DE VIDEO
   ========================================= */

/* 1. Solución para Desktop: Obliga al contenedor a ocupar el 50% del espacio disponible */
.content-video {
    flex: 1 1 50%; 
    min-width: 350px; /* Evita el colapso extremo visto en tu captura */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Expansión del reproductor nativo */
.content-video video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #000000;
    object-fit: cover;
}

/* 3. Corrección Crítica para Responsive (Móvil) */
@media (max-width: 800px) {
    /* Usamos :has() para detectar el contenedor padre de tu HTML original 
       y forzarlo a apilar los elementos verticalmente (texto arriba, video abajo) */
    *:has(> .content-video),
    *:has(> .content-text) {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center; /* Centra el texto para mejor lectura en móvil */
    }

    .content-video {
        min-width: 100%;
        margin-top: 1rem;
    }

    .content-video video {
        max-width: 100%;
    }
}

/* =========================================
   ESTILOS DEL BOTÓN PDF
   ========================================= */
.btn-descarga-pdf {
    display: inline-block;
    background-color: #b91d22;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    text-align: center;
    border: none;
}

.btn-descarga-pdf:hover {
    background-color: #99161a;
}

/* =========================================
   LAYOUT: TARJETAS DE VIDEOS VERTICALES INDEPENDIENTES
   ========================================= */

.grid-videos-verticales {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start; /* Alinea los títulos en la parte superior */
    width: 100%;
}

/* Contenedor individual para cada video y su texto */
.tarjeta-video {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Centramos el texto para mantener simetría */
}

.tarjeta-video .titulo-producto {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tarjeta-video .desc-producto {
    margin-bottom: 1.5rem;
    max-width: 90%;
}

/* Control del reproductor dentro de la tarjeta */
.tarjeta-video video {
    width: 100%;
    max-width: 280px; 
    aspect-ratio: 9/16; /* Proporción vertical nativa */
    object-fit: cover;
    border-radius: 8px; /* Mantiene la consistencia visual con tu diseño */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #000000;
    margin-bottom: 1.5rem; /* Separación con el botón */
}

/* Comportamiento Responsive para Móviles */
@media (max-width: 800px) {
    .grid-videos-verticales {
        flex-direction: column;
        gap: 60px; /* Mayor separación entre los dos bloques de video en móvil */
    }

    .tarjeta-video {
        width: 100%;
    }
    
    .tarjeta-video video {
        max-width: 320px; /* Permite que el video sea un poco más grande en móviles */
    }
}