/**
 * Sistema de Temas Estacionales y Tokens CSS - Gigared Centro
 * Soporta: Estándar (Azul), Navidad (Rojo/Verde/Dorado), Fiestas Patrias y Aniversario.
 */

:root, [data-theme="estandar"] {
    --theme-primary: #0284c7;
    --theme-primary-hover: #0369a1;
    --theme-accent: #f59e0b;
    --theme-bg: radial-gradient(circle at top right, #0c4a6e 0%, #030712 100%);
    --theme-card-bg: rgba(255, 255, 255, 0.04);
    --theme-card-border: rgba(255, 255, 255, 0.1);
    --theme-badge-bg: rgba(14, 165, 233, 0.15);
    --theme-badge-text: #38bdf8;
    --theme-ticket-active: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    --theme-ticket-inactive: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --theme-ticket-notch: #0c4a6e;
    --theme-btn-gradient: linear-gradient(310deg, #2152ff 0%, #21d4fd 100%);
}

[data-theme="navidad"] {
    --theme-primary: #dc2626;
    --theme-primary-hover: #b91c1c;
    --theme-accent: #facc15;
    --theme-bg: radial-gradient(circle at top right, #14532d 0%, #020617 100%);
    --theme-card-bg: rgba(255, 255, 255, 0.05);
    --theme-card-border: rgba(220, 38, 38, 0.25);
    --theme-badge-bg: rgba(220, 38, 38, 0.18);
    --theme-badge-text: #fca5a5;
    --theme-ticket-active: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --theme-ticket-inactive: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --theme-ticket-notch: #14532d;
    --theme-btn-gradient: linear-gradient(310deg, #dc2626 0%, #facc15 100%);
}

[data-theme="fiestas_patrias"] {
    --theme-primary: #e11d48;
    --theme-primary-hover: #be123c;
    --theme-accent: #ffffff;
    --theme-bg: radial-gradient(circle at top right, #881337 0%, #030712 100%);
    --theme-card-bg: rgba(255, 255, 255, 0.04);
    --theme-card-border: rgba(225, 29, 72, 0.25);
    --theme-badge-bg: rgba(225, 29, 72, 0.15);
    --theme-badge-text: #fda4af;
    --theme-ticket-active: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
    --theme-ticket-inactive: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --theme-ticket-notch: #881337;
    --theme-btn-gradient: linear-gradient(310deg, #e11d48 0%, #f43f5e 100%);
}

[data-theme="aniversario"] {
    --theme-primary: #d97706;
    --theme-primary-hover: #b45309;
    --theme-accent: #fbbf24;
    --theme-bg: radial-gradient(circle at top right, #312e81 0%, #020617 100%);
    --theme-card-bg: rgba(255, 255, 255, 0.05);
    --theme-card-border: rgba(245, 158, 11, 0.25);
    --theme-badge-bg: rgba(245, 158, 11, 0.15);
    --theme-badge-text: #fde68a;
    --theme-ticket-active: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    --theme-ticket-inactive: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --theme-ticket-notch: #312e81;
    --theme-btn-gradient: linear-gradient(310deg, #d97706 0%, #fbbf24 100%);
}

/* Efecto de Nieve Acelerado por GPU */
.festive-snow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.8;
    will-change: transform;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(15px, 105vh, 0);
    }
}

/* Accesibilidad Estricta: Respetar reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .festive-snow-layer {
        display: none !important;
    }
}

/* Clases Utilitarias Reactivas al Tema Activo */
.btn-theme {
    background: var(--theme-btn-gradient, linear-gradient(310deg, #2152ff 0%, #21d4fd 100%)) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28) !important;
    color: #ffffff !important;
    opacity: 0.95;
}

.btn-theme:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.text-theme-primary {
    color: var(--theme-primary, #0284c7) !important;
}

.text-theme-accent {
    color: var(--theme-accent, #f59e0b) !important;
}

.badge-theme {
    background-color: var(--theme-badge-bg, rgba(14, 165, 233, 0.15)) !important;
    color: var(--theme-badge-text, #38bdf8) !important;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
}

.form-control-theme {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    min-height: 46px;
}

.form-control-theme:focus {
    border-color: var(--theme-primary, #0284c7) !important;
    box-shadow: 0 0 0 3px var(--theme-badge-bg, rgba(14, 165, 233, 0.2)) !important;
    outline: none !important;
}

