

/* Base */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0215;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2E0438, #5C0C70);
    border-radius: 5px;
    border: 2px solid #0f0215;
}

::-webkit-scrollbar-thumb:hover {
    background: #FACC53;
}

/* Glassmorphism Refinado (Premium Look) */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glassmorphism Oscuro (Ajustado a más transparente según solicitud) */
.glass-panel-dark {
    background: rgba(0, 0, 0, 0.35); /* Bajado de 0.5 a 0.35 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-panel:hover {
    border-color: rgba(250, 204, 83, 0.3); /* Nova Primary Color Low Opacity */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Card Hover Effect */
.hover-card:hover {
    transform: translateY(-5px);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to right, #FACC53, #fff, #FACC53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.text-shadow-gold {
    text-shadow: 0 0 20px rgba(250, 204, 83, 0.4);
}

/* Play Button Hover Transition */
.play-overlay:active .play-button-inner {
    transform: scale(0.95);
}

.play-button-inner {
    transition: transform 0.2s ease-out;
}

/* Optimize rendering */
* {
    text-rendering: optimizeLegibility;
}

/* FAQ Transition Helpers */
.faq-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* --- ANIMACIONES DE SCROLL (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO MINIMIZED STATE (Initial State) --- */
#hero-grid.hero-minimized {
    transform: scale(0.6) translateY(15vh);
    opacity: 0.9;
}

/* Mobile Specific "En Fila" Override */
@media (max-width: 1024px) {
    #hero-grid.hero-minimized {
        /* Quitamos grid-template-columns: 1fr 1fr para que sea stack vertical */
        /* Ajustamos escala y posición */
        transform: scale(0.55) translateY(5vh);
        gap: 1.5rem; /* Separación visual en modo pequeño */
    }
}

/* Click Overlay for Minimized State */
#minimized-click-layer {
    display: none;
}
#hero-grid.hero-minimized #minimized-click-layer {
    display: block;
}

/* Background Dimming Class (Requested: Opaque lightly with purple tint) */
.bg-dimmed-purple {
    background-color: rgba(92, 12, 112, 0.25) !important; /* Low purple tint */
    opacity: 0.8 !important; /* Higher opacity on the gradient/color layer to dim the image behind it */
    backdrop-filter: grayscale(30%); /* Optional: desaturates bg slightly for focus */
}

/* Delays para elementos en grid */
.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* Fondo animado sutil */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* --- ANIMACIÓN BOTÓN SLIDER --- */
@keyframes pulse-gold-attention {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 rgba(250, 204, 83, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: translateY(-50%) scale(1.15); /* Aumenta tamaño */
        box-shadow: 0 0 25px rgba(250, 204, 83, 0.5); /* Glow amarillo */
        border-color: rgba(250, 204, 83, 0.8); /* Borde amarillo */
        background-color: rgba(250, 204, 83, 0.1);
        color: #FACC53; /* Icono amarillo */
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 rgba(250, 204, 83, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.btn-attention {
    animation: pulse-gold-attention 2s infinite ease-in-out;
}

/* Detener animación al hacer hover o focus para no molestar */
.btn-attention:hover, .btn-attention:focus {
    animation: none;
    transform: translateY(-50%) scale(1.1);
    border-color: #FACC53;
    color: #FACC53;
}