/* ==========================================================================
   ALCON VISUAL ENGINE — SICOAS WebVentas
   Arquitectura visual de élite: Atmósfera, Profundidad 3D y Microfísica
   ========================================================================== */

/* --- 1. Variables y Configuración de Capas --- */
:root {
    --alcon-blue: #519BE9;
    --alcon-coral: #D44A59;
    --alcon-beige: #F0C6A3;
    --alcon-glow-primary: rgba(81, 155, 233, 0.28);
    --alcon-glow-secondary: rgba(212, 74, 89, 0.22);
    --alcon-glass-border: rgba(255, 255, 255, 0.25);
    --alcon-glass-bg: rgba(255, 255, 255, 0.82);
}

/* --- 2. Canvas de Atmósfera de Fondo --- */
.hero {
    position: relative;
    overflow: hidden;
}

.alcon-atmospheric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* --- 3. Tarjetas con Profundidad 3D y Brillo Especular --- */
.mockup-container {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.glass-card,
.mockup-card,
.feature-card,
.roi-card,
.testimonial-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}

/* Brillo especular dinámico que sigue al cursor */
.alcon-specular-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: overlay;
    z-index: 5;
}

/* Capas flotantes del mockup con profundidad Z */
.mockup-slide .float-card.float-1 {
    transform: translateZ(28px);
    box-shadow: 0 12px 35px rgba(81, 155, 233, 0.25);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.mockup-slide .float-card.float-2 {
    transform: translateZ(36px);
    box-shadow: 0 12px 35px rgba(212, 74, 89, 0.2);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

/* --- 4. Resplandor Interactivo en Bordes (Spotlight Glow) --- */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(81, 155, 233, 0.4),
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 4;
}

.feature-card:hover::before {
    opacity: 1;
}

/* --- 5. Microfísica Magnética en Botones CTA --- */
.btn-primary,
.btn-secondary,
.hero-btns .btn {
    position: relative;
    will-change: transform;
    /* Transición controlada en estado de reposo / sombra sin luchar con requestAnimationFrame */
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px var(--alcon-glow-primary);
}

/* --- 6. Optimización Adaptativa / Fallback para Móviles y Accesibilidad --- */
@media (max-width: 992px), (pointer: coarse) {
    .alcon-specular-glare {
        display: none !important;
    }
    
    .glass-card,
    .mockup-card,
    .feature-card {
        transform: none !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .hero-btns .btn {
        transform: none !important;
    }
    
    .alcon-atmospheric-canvas {
        opacity: 0.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alcon-atmospheric-canvas,
    .alcon-specular-glare {
        display: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
