/* ═══════════════════════════════════════════════════════════════════
   TEMA NAVIDEÑO PREMIUM - MU STRONGER (WINTER FROST, CRIMSON & GOLD)
   Estética invernal de alta calidad:
   - Noche polar azul hielo + Rojo carmesí navideño + Detalles en oro
   - Escarcha y reflejos invernales en tarjetas, stat-boxes y paneles
   - Sin barras toscas ni emojis infantiles
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --aqua:        #7dd3fc !important;
  --aqua-mid:    rgba(125, 211, 252, 0.28) !important;
  --aqua-dim:    rgba(125, 211, 252, 0.10) !important;
  --violet:      #e63946 !important;
  --violet-mid:  rgba(230, 57, 70, 0.26) !important;
  --violet-dim:  rgba(230, 57, 70, 0.10) !important;
  --glow-a:      rgba(125, 211, 252, 0.55) !important;
  --glow-v:      rgba(230, 57, 70, 0.45) !important;

  --bg-void:     #040814 !important;
  --bg-deep:     #071022 !important;
  --bg-base:     #0b162c !important;
  --bg-raise:    #101f3d !important;
  --bg-panel:    rgba(8, 16, 32, 0.84) !important;

  --line-0:      rgba(186, 230, 253, 0.10) !important;
  --line-1:      rgba(186, 230, 253, 0.20) !important;
  --line-2:      rgba(186, 230, 253, 0.34) !important;
  --line-3:      rgba(255, 224, 130, 0.48) !important;

  --t1:          #f8fbff !important;
  --t2:          rgba(226, 238, 255, 0.84) !important;
  --t3:          rgba(186, 210, 240, 0.60) !important;
}

/* ─────────────────────────────────────────────────────────────────
   1. CINTA SUPERIOR NAVIDEÑA (ROJO CARMESÍ + ESCARCHA + ORO)
   ───────────────────────────────────────────────────────────────── */
.xmas-top-ribbon {
  background: linear-gradient(90deg, #0b132b 0%, #5e0b15 24%, #9b111e 50%, #5e0b15 76%, #0b132b 100%);
  border-bottom: 1px solid rgba(186, 230, 253, 0.42);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.78), 0 0 24px rgba(155, 17, 30, 0.42);
  position: relative;
  z-index: 100;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #fff;
}
.xmas-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.xmas-ribbon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  color: #bae6fd;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.85));
  transition: transform 0.25s ease;
}
.xmas-ribbon-icon:hover {
  transform: scale(1.22) rotate(25deg);
}
.xmas-ribbon-text {
  color: #f4f8ff;
  letter-spacing: 0.35px;
}
.xmas-ribbon-text strong.xmas-title {
  color: #ffe58f;
  letter-spacing: 1.4px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
  font-weight: 900;
}
.xmas-ribbon-text strong.xmas-highlight {
  color: #fff;
  background: rgba(255, 215, 0, 0.22);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 229, 143, 0.6);
}
.xmas-ribbon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: linear-gradient(135deg, #ffe082 0%, #ffd54f 45%, #d49b1a 100%);
  color: #1c0608 !important;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 14px rgba(255, 215, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid #fff3b0;
  transition: all 0.25s ease;
}
.xmas-ribbon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.85);
  color: #000 !important;
}

/* ─────────────────────────────────────────────────────────────────
   2. AMBIENTACIÓN INVERNAL GLOBAL (AZUL POLAR + ROJO NAVIDEÑO)
   ───────────────────────────────────────────────────────────────── */
.scene-blob {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.20) 0%, rgba(200, 29, 37, 0.10) 48%, transparent 76%) !important;
}

.topbar {
  background: linear-gradient(180deg, rgba(6, 13, 28, 0.92), rgba(9, 18, 36, 0.86)) !important;
  border-bottom: 1px solid rgba(186, 230, 253, 0.22) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(125, 211, 252, 0.16) !important;
}
.topbar::after {
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.65), rgba(230, 57, 70, 0.65), rgba(255, 215, 0, 0.65), rgba(125, 211, 252, 0.65), transparent) !important;
}
.nav a:hover {
  color: #ffffff !important;
  background: rgba(125, 211, 252, 0.10) !important;
}
.nav a.active {
  color: #7dd3fc !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.65);
}
.nav a.active::after {
  background: linear-gradient(90deg, #7dd3fc, #ffd700) !important;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.9) !important;
}
.nav-cta {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.85), rgba(127, 29, 29, 0.92)) !important;
  border: 1px solid rgba(255, 215, 0, 0.65) !important;
  color: #fffaf0 !important;
  box-shadow: 0 4px 18px rgba(185, 28, 28, 0.4) !important;
}
.nav-cta:hover {
  border-color: #fff3b0 !important;
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.65), 0 0 16px rgba(255, 215, 0, 0.35) !important;
}

/* Hero Section */
.grad {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 30%, #7dd3fc 58%, #ffe082 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 24px rgba(125, 211, 252, 0.45));
}

.hero-badge {
  border-color: rgba(125, 211, 252, 0.45) !important;
  background: linear-gradient(90deg, rgba(14, 42, 78, 0.68), rgba(127, 29, 29, 0.42)) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.22) !important;
  color: #f0f9ff !important;
}
.hero-badge .orb {
  background: #7dd3fc !important;
  box-shadow: 0 0 12px #e0f2fe, 0 0 22px #38bdf8 !important;
}

/* Botones Principales (Rojo Navideño Imperial + Borde Oro / Escarcha) */
.btn-primary {
  background: linear-gradient(180deg, #e63946 0%, #c81d25 55%, #8f1119 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1.5px solid rgba(255, 224, 130, 0.85) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(200, 29, 37, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  transition: all 0.25s ease !important;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: linear-gradient(180deg, #f24c58 0%, #d62828 55%, #a1141d 100%) !important;
  box-shadow: 0 10px 32px rgba(230, 57, 70, 0.72), 0 0 18px rgba(255, 215, 0, 0.4) !important;
  color: #fff !important;
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(14, 28, 54, 0.84) 0%, rgba(8, 16, 32, 0.94) 100%) !important;
  border: 1.5px solid rgba(125, 211, 252, 0.38) !important;
  color: #f0f9ff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
  transition: all 0.25s ease !important;
}
.btn-ghost:hover {
  transform: translateY(-2px) !important;
  border-color: #7dd3fc !important;
  background: linear-gradient(180deg, rgba(20, 44, 82, 0.92) 0%, rgba(11, 22, 44, 0.98) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35) !important;
}

/* Stat-Boxes con efecto escarcha invernal en el borde superior */
.stat-box {
  background: linear-gradient(160deg, rgba(12, 24, 48, 0.90) 0%, rgba(6, 12, 26, 0.96) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-top: 2px solid rgba(224, 242, 254, 0.72) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.68), inset 0 3px 10px rgba(186, 230, 253, 0.12) !important;
  transition: all 0.25s ease !important;
}
.stat-box:hover {
  border-color: #7dd3fc !important;
  border-top-color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.32) !important;
  transform: translateY(-3px) !important;
}
.stat-box .lbl {
  color: #bae6fd !important;
  letter-spacing: 0.16em !important;
  font-weight: 600 !important;
}
.stat-box .val {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.55) !important;
  font-weight: 800 !important;
}

/* Paneles y Market */
.card, .panel, .portal-wrap {
  background: linear-gradient(180deg, rgba(11, 21, 42, 0.90) 0%, rgba(6, 12, 24, 0.96) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-top: 2px solid rgba(224, 242, 254, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.80), 0 0 28px rgba(56, 189, 248, 0.10) !important;
  border-radius: 18px !important;
}
.portal-block-title {
  color: #e0f2fe !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.45) !important;
}
.portal-market-item {
  background: rgba(186, 230, 253, 0.04) !important;
  border: 1px solid rgba(125, 211, 252, 0.16) !important;
}
.portal-market-item:hover {
  background: rgba(200, 29, 37, 0.16) !important;
  border-color: rgba(255, 215, 0, 0.45) !important;
}
.pmi-cur {
  color: #ffe082 !important;
  font-weight: 800 !important;
}

/* Badges de Tienda */
.shop-card .badge, .badge-bf, .shop-card-badge {
  background: linear-gradient(135deg, #e63946 0%, #9b111e 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: 1px solid #ffe082 !important;
  box-shadow: 0 2px 14px rgba(214, 40, 40, 0.65) !important;
}

/* ─────────────────────────────────────────────────────────────────
   3. SECCIÓN GALERÍA DE VIDEOS Y MODAL REPRODUCTOR
   ───────────────────────────────────────────────────────────────── */
.media-gallery-section {
  padding: 54px 0 36px;
  position: relative;
  z-index: 2;
}
.media-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.media-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.media-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(11, 21, 42, 0.82);
  color: #e2efff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.media-filter-btn:hover,
.media-filter-btn.is-active {
  background: linear-gradient(135deg, #e63946, #9b111e);
  color: #fff;
  border-color: #ffe082;
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.45);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.media-card {
  background: linear-gradient(180deg, rgba(12, 24, 48, 0.92), rgba(7, 13, 26, 0.98));
  border: 1.5px solid rgba(125, 211, 252, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: #7dd3fc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.82), 0 0 26px rgba(56, 189, 248, 0.28);
}
.media-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #112240 0%, #050a14 100%);
  overflow: hidden;
  cursor: pointer;
}
.media-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.media-card:hover .media-thumb-video {
  transform: scale(1.03);
  filter: brightness(0.95);
}
.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.52) 100%);
}
.media-play-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #9b111e);
  color: #ffffff;
  border: 2px solid #ffe082;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(230, 57, 70, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.media-card:hover .media-play-circle {
  transform: scale(1.1);
  box-shadow: 0 0 38px rgba(255, 215, 0, 0.85);
}
.media-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 14, 28, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.media-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1.2;
}
.media-card-desc {
  font-size: 13px;
  color: rgba(216, 232, 250, 0.76);
  line-height: 1.5;
}
.media-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: #7dd3fc;
  font-family: 'JetBrains Mono', monospace;
}

.media-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 16, 0.90);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-modal-backdrop.is-open {
  display: flex;
}
.media-modal-box {
  width: min(920px, 100%);
  background: #071022;
  border: 1.5px solid rgba(125, 211, 252, 0.55);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), 0 0 42px rgba(56, 189, 248, 0.22);
}
.media-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(10, 20, 40, 0.96);
}
.media-modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #e0f2fe;
}
.media-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-modal-close:hover {
  background: #c81d25;
  border-color: #ffe082;
}
.media-modal-player {
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-modal-player video,
.media-modal-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}
