/* ==========================================================================
   HALLOWEEN SEASONAL THEME - AC DATA SYSTEM
   (Remover este archivo y su script al finalizar la temporada de Halloween)
   ========================================================================== */

:root {
    --hw-orange: #ff7518;
    --hw-orange-dark: #d9480f;
    --hw-orange-glow: rgba(255, 117, 24, 0.45);
    --hw-purple-dark: #180828;
    --hw-purple: #4c1d95;
    --hw-purple-glow: rgba(124, 58, 237, 0.35);
    --hw-green: #10b981;
}

/* 1. BARRA SUPERIOR HALLOWEEN */
.halloween-topbar {
    background: linear-gradient(90deg, #180828 0%, #3b0764 30%, #ea580c 50%, #3b0764 70%, #180828 100%);
    background-size: 200% auto;
    animation: hwGradientShift 8s ease infinite;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(234, 88, 12, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@keyframes hwGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.halloween-topbar .hw-badge {
    background: #ff7518;
    color: #180828;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 117, 24, 0.8);
    animation: hwPulse 1.8s infinite;
}

@keyframes hwPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 117, 24, 0.8); }
    50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(255, 117, 24, 1); }
}

.halloween-topbar .hw-coupon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed #ffedd5;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.halloween-topbar .hw-coupon-btn:hover {
    background: #ff7518;
    color: #180828;
    border-color: #ff7518;
    transform: translateY(-1px);
}

.halloween-topbar-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.halloween-topbar-close:hover {
    color: #fff;
}

/* 2. TELARAÑAS EN LAS ESQUINAS */
.hw-web-corner-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.65;
    transition: opacity 0.3s;
}

.hw-web-corner-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.65;
    transform: scaleX(-1);
    transition: opacity 0.3s;
}

/* ARAÑA COLGANTE ANIMADA */
.hw-hanging-spider {
    position: fixed;
    top: -30px;
    left: 65px;
    width: 28px;
    height: 160px;
    z-index: 999;
    pointer-events: none;
    animation: hwSpiderDrop 7s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes hwSpiderDrop {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(50px) rotate(4deg); }
    50% { transform: translateY(30px) rotate(-4deg); }
    75% { transform: translateY(65px) rotate(2deg); }
}

/* 3. LOGO DECORADO DECORACIÓN HALLOWEEN */
.logo-icon-wrapper {
    position: relative;
}

.hw-witch-hat {
    position: absolute;
    top: -16px;
    left: -10px;
    width: 32px;
    height: 32px;
    pointer-events: none;
    transform: rotate(-15deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: hwHatFloat 3s ease-in-out infinite;
}

@keyframes hwHatFloat {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-2px); }
}

/* 4. BOTONES Y BADGES CON ESTILO HALLOWEEN */
.promo-badge, .discount-badge {
    background: linear-gradient(135deg, #ff7518 0%, #c2410c 100%) !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.promo-badge::before {
    content: "🎃 ";
}

/* Glow en botón principal del hero y añadir al carrito al pasar el mouse */
.hero-carousel .btn-primary:hover, .btn-add-cart:hover {
    box-shadow: 0 0 20px var(--hw-orange-glow) !important;
    border-color: #ff7518 !important;
}

/* 5. MASCOTA FLOTANTE INTERACTIVA (LOTTIE / WIDGET) */
.hw-floating-mascot {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hw-floating-mascot:hover {
    transform: scale(1.08) translateY(-4px);
}

.hw-mascot-speech {
    background: #180828;
    color: #ffedd5;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #ff7518;
    white-space: nowrap;
    animation: hwSpeechBounce 2.5s infinite;
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes hwSpeechBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hw-mascot-icon-wrapper {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(255, 117, 24, 0.3) 0%, rgba(24, 8, 40, 0.85) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 117, 24, 0.5), inset 0 0 10px rgba(255, 117, 24, 0.4);
    border: 2px solid #ff7518;
    animation: hwGlowPulse 2.5s infinite;
}

@keyframes hwGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 117, 24, 0.4), inset 0 0 8px rgba(255, 117, 24, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 117, 24, 0.8), inset 0 0 15px rgba(255, 117, 24, 0.6); }
}

.hw-mascot-icon-wrapper dotlottie-player,
.hw-mascot-icon-wrapper lottie-player {
    width: 52px;
    height: 52px;
}

/* 6. MURCIÉLAGOS VOLANDO AMBIENTALES */
.hw-bat {
    position: fixed;
    pointer-events: none;
    z-index: 998;
    opacity: 0;
    animation: hwBatFly 14s linear infinite;
}

@keyframes hwBatFly {
    0% {
        transform: translate(-50px, 120px) scale(0.6) rotate(15deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    45% {
        transform: translate(45vw, 60px) scale(0.8) rotate(-10deg);
        opacity: 0.9;
    }
    50% {
        transform: translate(50vw, 70px) scale(0.85) rotate(5deg);
    }
    90% { opacity: 0.8; }
    100% {
        transform: translate(105vw, 20px) scale(0.6) rotate(15deg);
        opacity: 0;
    }
}

/* 7. MODAL DE CUPÓN HALLOWEEN */
.hw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 6, 25, 0.75);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hw-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.hw-modal-card {
    background: #180828;
    color: #fff;
    border: 2px solid #ff7518;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 35px rgba(255, 117, 24, 0.4);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hw-modal-overlay.active .hw-modal-card {
    transform: scale(1);
}

.hw-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.hw-modal-close:hover {
    color: #ff7518;
}

.hw-coupon-box {
    background: rgba(255, 117, 24, 0.12);
    border: 2px dashed #ff7518;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hw-coupon-code {
    font-size: 22px;
    font-weight: 900;
    color: #ff7518;
    letter-spacing: 3px;
    font-family: monospace;
}

.hw-copy-btn {
    background: #ff7518;
    color: #180828;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.hw-copy-btn:hover {
    background: #ffa05c;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hw-web-corner-left, .hw-web-corner-right {
        width: 80px;
        height: 80px;
    }
    .hw-hanging-spider {
        left: 20px;
    }
    .halloween-topbar {
        font-size: 12px;
        padding: 8px 12px;
    }
    .hw-floating-mascot {
        bottom: 85px;
        left: 15px;
    }
    .hw-mascot-icon-wrapper {
        width: 52px;
        height: 52px;
    }
}


/* ==========================================================================
   8. DEGRADADO SUTIL NARANJA - HEADER Y FONDO DE PÁGINA
   (Conserva la luminosidad y base blanca con un toque cálido/otoño muy leve)
   ========================================================================== */
body {
    background-color: #fbfaf8 !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 138, 43, 0.08) 0%, rgba(255, 180, 100, 0.03) 45%, transparent 70%),
        linear-gradient(180deg, #fff8f2 0%, #fffcf9 350px, #fbf7f4 800px, #f7f6f5 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

.main-header.new-style-header {
    background: linear-gradient(180deg, #ffffff 0%, #fffcf8 45%, #fff2e4 100%) !important;
    border-bottom: 1px solid rgba(251, 146, 60, 0.28) !important;
    box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
}


/* ==========================================================================
   ACTUALIZACIÓN ESTACIONAL: TELARAÑAS VISIBLES Y DEGRADADO NARANJA REALZADO
   ========================================================================== */

/* 1. DEGRADADO NARANJA REALZADO EN HEADER (Blanco arriba con degradado cálido visible abajo) */
.main-header.new-style-header {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 35%, #fed7aa 80%, #fdba74 100%) !important;
    border-bottom: 2px solid #f97316 !important;
    box-shadow: 0 4px 25px rgba(249, 115, 22, 0.22) !important;
}

/* 2. DEGRADADO NARANJA EN FONDO DE PÁGINA (Base blanca con aura estacional naranja visible) */
body {
    background-color: #faf9f7 !important;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(251, 146, 60, 0.22) 0%, rgba(254, 215, 170, 0.12) 45%, transparent 75%),
        linear-gradient(180deg, #ffedd5 0%, #fff7ed 220px, #fffcf9 550px, #ffffff 1100px) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* 3. TELARAÑAS DE ALTA VISIBILIDAD EN TODA LA PÁGINA */
.hw-web-corner-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 220px !important;
    height: 220px !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0.92 !important;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2)) !important;
    transition: opacity 0.3s;
}

.hw-web-corner-right {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 220px !important;
    height: 220px !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0.92 !important;
    transform: scaleX(-1) !important;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2)) !important;
    transition: opacity 0.3s;
}

.hw-web-corner-bottom-left {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 170px !important;
    height: 170px !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0.85 !important;
    transform: scaleY(-1) !important;
    filter: drop-shadow(0 -3px 8px rgba(0, 0, 0, 0.15)) !important;
}

.hw-web-corner-bottom-right {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 170px !important;
    height: 170px !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0.85 !important;
    transform: scale(-1, -1) !important;
    filter: drop-shadow(0 -3px 8px rgba(0, 0, 0, 0.15)) !important;
}

.hw-web-side-left {
    position: fixed !important;
    top: 45% !important;
    left: 0 !important;
    width: 90px !important;
    height: 160px !important;
    pointer-events: none !important;
    z-index: 9998 !important;
    opacity: 0.8 !important;
    filter: drop-shadow(2px 0 6px rgba(0,0,0,0.15)) !important;
}

.hw-web-side-right {
    position: fixed !important;
    top: 55% !important;
    right: 0 !important;
    width: 90px !important;
    height: 160px !important;
    pointer-events: none !important;
    z-index: 9998 !important;
    opacity: 0.8 !important;
    transform: scaleX(-1) !important;
    filter: drop-shadow(2px 0 6px rgba(0,0,0,0.15)) !important;
}

/* ARAÑA COLGANTE ANIMADA */
.hw-hanging-spider {
    position: fixed !important;
    top: 0 !important;
    left: 90px !important;
    width: 42px !important;
    height: 200px !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    animation: hwSpiderDropNew 8s ease-in-out infinite !important;
    transform-origin: top center !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)) !important;
}

.hw-hanging-spider-right {
    position: fixed !important;
    top: 0 !important;
    right: 120px !important;
    width: 36px !important;
    height: 180px !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    animation: hwSpiderDropRight 9s ease-in-out infinite 1.5s !important;
    transform-origin: top center !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)) !important;
}

@keyframes hwSpiderDropNew {
    0%, 100% { transform: translateY(-40px) rotate(0deg); }
    30% { transform: translateY(40px) rotate(6deg); }
    50% { transform: translateY(15px) rotate(-5deg); }
    75% { transform: translateY(55px) rotate(3deg); }
}

@keyframes hwSpiderDropRight {
    0%, 100% { transform: translateY(-30px) rotate(0deg); }
    35% { transform: translateY(45px) rotate(-7deg); }
    60% { transform: translateY(20px) rotate(4deg); }
    80% { transform: translateY(50px) rotate(-3deg); }
}

/* RESPONSIVE TELARAÑAS */
@media (max-width: 768px) {
    .hw-web-corner-left, .hw-web-corner-right {
        width: 130px !important;
        height: 130px !important;
    }
    .hw-web-corner-bottom-left, .hw-web-corner-bottom-right {
        width: 100px !important;
        height: 100px !important;
    }
    .hw-web-side-left, .hw-web-side-right {
        display: none !important;
    }
    .hw-hanging-spider {
        left: 30px !important;
        width: 32px !important;
    }
    .hw-hanging-spider-right {
        display: none !important;
    }
}
