/* ==========================================================================
   EDA SYSTEM · Tema Navideño "Christmas Beauty Luxury"
   Solo efectos y animaciones (sin textos). Capa visual desacoplada:
   todo vive bajo .theme-christmas. Se controla con config/theme.php.
   ========================================================================== */

.theme-christmas {
    --xmas-champagne: #C8A96B;
    --xmas-champagne-soft: rgba(200, 169, 107, 0.35);
    --xmas-warm-white: #FFFDF9;
    --xmas-beige: #F4EBE4;
    --xmas-rose: #D9A7B0;
    --xmas-pine: #234338;
    --xmas-burgundy: #722F3E;
    --xmas-charcoal: #303030;
}

/* ---------- Guirnalda de luces (inyectada por christmas.js) ---------- */
.theme-christmas .xmas-lights {
    position: relative;
    height: 34px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    background: url('ornaments/wire.svg') repeat-x 0 0 / 264px 30px;
    margin: 0 0 4px;
    z-index: 1;
}
.theme-christmas .xmas-lights--header {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    overflow: visible;
    z-index: 5;
}
.theme-christmas .xmas-lights i {
    position: absolute;
    width: 9px;
    height: 14px;
    margin-left: -4.5px;
    border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
    background: var(--c, #FFE9B8);
    box-shadow: 0 0 8px 2px var(--c, #FFE9B8), 0 0 18px 4px color-mix(in srgb, var(--c, #FFE9B8) 45%, transparent);
    animation: xmas-bulb 2.6s ease-in-out infinite;
}
.theme-christmas .xmas-lights i::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 1px;
    background: #3a3a3a;
}
.theme-christmas .xmas-lights i::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 2px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}
@keyframes xmas-bulb {
    0%, 100% { opacity: 0.55; filter: brightness(0.85); }
    45%      { opacity: 1;    filter: brightness(1.25); }
}

/* ---------- Esferas colgantes con vaivén (solo web pública, pantallas amplias) ---------- */
.theme-christmas .xmas-bauble {
    position: absolute;
    top: 0;
    width: 28px;
    height: calc(var(--len, 50px) + 30px);
    margin-left: -14px;
    transform-origin: 50% 0;
    animation: xmas-swing 5s ease-in-out infinite alternate;
    display: none;
    pointer-events: none;
}
.theme-christmas .xmas-bauble::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: var(--len, 50px);
    background: linear-gradient(var(--xmas-champagne), rgba(200, 169, 107, 0.4));
}
.theme-christmas .xmas-bauble b {
    position: absolute;
    left: 0;
    top: var(--len, 50px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 7%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 50% 55%, var(--c) 0%, var(--c2) 100%);
    box-shadow: inset -4px -6px 9px rgba(0, 0, 0, 0.28), inset 3px 3px 6px rgba(255, 255, 255, 0.22), 0 6px 14px rgba(0, 0, 0, 0.28);
}
.theme-christmas .xmas-bauble b::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 9px;
    height: 6px;
    margin-left: -4.5px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(#E8D5A3, #B08F4C);
}
@keyframes xmas-swing {
    from { transform: rotate(-5deg); }
    to   { transform: rotate(5deg); }
}
@media (min-width: 1100px) {
    .theme-christmas .xmas-bauble { display: block; }
}

/* ---------- Sidebar del panel (solo acentos visuales) ---------- */
.theme-christmas .side {
    border-right-color: var(--xmas-champagne-soft);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15), inset -1px 0 0 rgba(200, 169, 107, 0.22);
    background:
        url('ornaments/branch.svg') no-repeat right -26px bottom 56px / 150px auto,
        linear-gradient(180deg, #221a1f 0%, #171215 100%);
}
.theme-christmas .side .brand::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, var(--xmas-champagne), transparent);
    opacity: 0.7;
}
.theme-christmas .side .nav:hover { background: rgba(217, 167, 176, 0.16); }
.theme-christmas .side .nav.active {
    border-left: 3px solid var(--xmas-champagne);
    box-shadow: 0 4px 15px rgba(148, 80, 102, 0.4), inset 0 0 0 1px rgba(200, 169, 107, 0.25);
}

/* ---------- Barras y navegación móvil del panel ---------- */
.theme-christmas .top {
    border-color: var(--xmas-champagne-soft);
    box-shadow: 0 4px 20px rgba(200, 169, 107, 0.12);
}
.theme-christmas .mobile-app-header {
    border-bottom: 1px solid var(--xmas-champagne-soft);
    box-shadow: 0 2px 14px rgba(200, 169, 107, 0.2);
}
.theme-christmas .mobile-bottom-dock { border-top: 1px solid var(--xmas-champagne-soft); }
.theme-christmas .mobile-drawer { border-top: 2px solid var(--xmas-champagne); }
.theme-christmas .main .card { box-shadow: 0 4px 18px rgba(114, 47, 62, 0.06); }

/* ---------- Web pública (landing del cliente) ---------- */
.theme-christmas .topbar-sub { border-bottom: 1px solid var(--xmas-champagne-soft); }
.theme-christmas .header {
    border-bottom: 1px solid var(--xmas-champagne-soft);
    box-shadow: 0 4px 20px rgba(200, 169, 107, 0.16);
}
.theme-christmas .footer { border-top: 3px solid var(--xmas-champagne); }

/* Ramas de pino en las esquinas del hero (detrás del contenido) */
.theme-christmas .hero::before,
.theme-christmas .hero::after {
    content: "";
    position: absolute;
    top: 0;
    width: clamp(120px, 24vw, 330px);
    aspect-ratio: 1 / 1;
    background: url('ornaments/branch.svg') no-repeat 0 0 / contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    transform-origin: 0 0;
    animation: xmas-sway 7s ease-in-out infinite alternate;
}
.theme-christmas .hero::before { left: 0; }
.theme-christmas .hero::after  { right: 0; transform: scaleX(-1); transform-origin: 50% 0; animation-name: xmas-sway-r; animation-delay: -3s; }
@keyframes xmas-sway   { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@keyframes xmas-sway-r { from { transform: scaleX(-1) rotate(-1.2deg); } to { transform: scaleX(-1) rotate(1.2deg); } }

/* Destello champagne que cruza el botón principal */
.theme-christmas .btn-hero-reserve { position: relative; overflow: hidden; }
.theme-christmas .btn-hero-reserve::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: xmas-shine 5.5s ease-in-out infinite;
}
@keyframes xmas-shine {
    0%, 60% { left: -60%; }
    100%    { left: 140%; }
}
.theme-christmas .product-card:hover {
    box-shadow: 0 14px 34px rgba(200, 169, 107, 0.28), 0 0 0 1px rgba(200, 169, 107, 0.45);
}

/* ---------- Capa de nieve / destellos (canvas) ---------- */
.xmas-snow-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;               /* debajo de header, dock, drawer, modales y avisos */
    pointer-events: none;
}

/* ---------- Accesibilidad e impresión ---------- */
@media (prefers-reduced-motion: reduce) {
    .theme-christmas .xmas-lights i,
    .theme-christmas .xmas-bauble,
    .theme-christmas .hero::before,
    .theme-christmas .hero::after,
    .theme-christmas .btn-hero-reserve::after { animation: none !important; }
    .theme-christmas .hero::after { transform: scaleX(-1); }
    .theme-christmas .btn-hero-reserve::after { display: none; }
    .xmas-snow-layer { display: none !important; }
}
@media print {
    .theme-christmas .xmas-lights,
    .theme-christmas .xmas-bauble,
    .theme-christmas .hero::before,
    .theme-christmas .hero::after,
    .xmas-snow-layer { display: none !important; }
}
