/* ==============================================
   ONE PLAY MORE – EDICIÓN PREMIUM
   ============================================== */

/* Escala global un poco más compacta (tamaño "por defecto" en vez de grande) */
html {
  font-size: 15px;
}

/* ----- VARIABLES ----- */
:root {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --text: #1e1e1e;
  --text-light: #6c6c6c;
  --border: #eaeaea;
  --primary: #6a4c9c;
  --primary-light: #8a6cb8;
  --primary-dark: #4a3768;
  --accent: #d4af37;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.02);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.05);
  --transition: all 0.2s ease;
  /* Tipografía: Inter para títulos/marca (impacto), Poppins para lectura (cómoda y redondeada) */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Tipografía especial solo para títulos/subtítulos de banners (más impacto visual) */
  --font-banner-title: 'Anton', 'Inter', sans-serif;
  --font-banner-subtitle: 'Barlow Condensed', 'Poppins', sans-serif;
}

/* ----- MODO OSCURO ----- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-alt: #1a1a1a;
    --text: #e0e0e0;
    --text-light: #a0a0a0;
    --border: #2a2a2a;
    --primary: #8a6cb8;
    --primary-light: #a07fd0;
    --primary-dark: #5a3e82;
    --white: #1a1a1a;
  }
}

/* ----- RESET ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Marca / títulos / navegación / precios / botones grandes: siguen en Inter
   (impacto visual, mayúsculas, letter-spacing). Todo lo demás (párrafos,
   descripciones, pie de página) hereda Poppins del body. */
h1, h2, h3, h4, h5, h6,
.logo-area, .slogan,
.section-title,
.category-btn, .dropdown-toggle, .subcategory-btn,
.btn-carousel,
.hero-label, .hero-title, .hero-btn,
.product-title,
.current-price, .old-price,
.mega-menu-title {
  font-family: var(--font-heading);
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==============================================
   HEADER
   ============================================== */
/* ==============================================
   BARRA DE ANUNCIOS (arriba del header)
   ============================================== */
.announcement-bar {
  display: none; /* se activa por JS si hay mensajes */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 0.55rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

.announcement-text a {
  color: white;
  text-decoration: none;
}

.announcement-text a:hover {
  text-decoration: underline;
}

.announcement-nav {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.announcement-nav:hover {
  color: white;
}

@media (max-width: 600px) {
  .announcement-bar {
    font-size: 0.68rem;
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
}

.site-header {
  background-color: #0a0a0a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-top {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
}

.slogan {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 0.9rem;
}

/* ==============================================
   SEARCH BAR – PREMIUM REDESIGN
   ============================================== */
.search-container {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-container input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 400;
  padding: 0.6rem 3.2rem 0.6rem 1.1rem;
  letter-spacing: 0.3px;
  outline: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-container input::placeholder {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.search-container input:focus {
  background: rgba(255,255,255,0.11);
  border-color: rgba(138,108,184,0.7);
  box-shadow: 0 0 0 3px rgba(106,76,156,0.18), 0 0 16px rgba(106,76,156,0.12);
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: var(--primary-light);
}

/* ==============================================
   CART ICON – PREMIUM REDESIGN
   ============================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.cart-icon:hover {
  background: rgba(106,76,156,0.25);
  border-color: rgba(138,108,184,0.5);
  transform: translateY(-1px);
}

.cart-icon-wrapper {
  position: relative;
  font-size: 1.15rem;
  color: white;
  line-height: 1;
}

.cart-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.cart-divider {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

.cart-total-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #0a0a0a;
  letter-spacing: 0;
}

/* ==============================================
   CATEGORY NAV – PREMIUM REDESIGN
   ============================================== */
.header-bottom {
  background: rgba(255,255,255,0.03);
  overflow: visible;
}

.header-bottom .header-container {
  padding: 0;
  min-height: 46px;
  overflow: visible;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  align-items: stretch;
  height: 46px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;   /* CLAVE: sin esto, un hijo flex nunca se encoge y empuja toda la página */
  flex: 1 1 auto;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav .category-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.main-nav .category-btn:hover {
  color: white;
  background: rgba(255,255,255,0.04);
}

.main-nav .category-btn.active {
  color: white;
  border-bottom-color: var(--primary-light);
  background: rgba(138,108,184,0.08);
}

/* Botones minimalistas: solo ícono, con tooltip nativo (title). Para Inicio/Todos/Ofertas/Novedades/Encargo */
/* Este padding compacto (sin espacio vertical) es para el ícono chico de la
   barra horizontal de escritorio. Sin este @media, también se aplicaba en
   el menú móvil y hacía que estas 4 filas (Todos/Ofertas/Novedades/Encargo)
   se vieran más bajitas que el resto de filas del menú (Aprende, Pokémon
   TCG, etc.), que sí usan el padding normal de fila completa. */
@media (min-width: 769px) {
  .nav-icon-btn {
    padding: 0 0.7rem !important;
    font-size: 0.85rem !important;
  }
}



/* ==============================================
   DROPDOWN – REDESIGN
   ============================================== */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  height: 100%;
}

.dropdown-main {
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-main .category-btn {
  border-bottom: 2px solid transparent;
  height: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  cursor: pointer;
  transition: color 0.2s ease;
  height: 100%;
}

.dropdown-toggle:hover {
  color: rgba(255,255,255,0.7);
}

.dropdown-toggle i {
  transition: transform 0.25s ease;
}

.dropdown.open .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;          /* Cambia de calc(100% + 1px) a 100% */
  left: 0;
  background: #141414;
  min-width: 190px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--primary);
  z-index: 2000;      /* Muy alto, por encima del modal (que tiene 2000) */
  overflow: visible;  /* No hidden, para que no recorte */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content .subcategory-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: left;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-content .subcategory-btn:last-child {
  border-bottom: none;
}

.dropdown-content .subcategory-btn:hover {
  background: rgba(106,76,156,0.25);
  color: white;
  padding-left: 1.6rem;
}

.dropdown-content a.subcategory-btn {
  text-decoration: none;
}

/* ==============================================
   MEGA-MENÚ EN GRID (ej. Pokémon TCG por expansión)
   ============================================== */
.dropdown--mega {
  position: static; /* deja que el mega-menú se centre respecto al header, no al botón */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(880px, 94vw);
  max-height: min(75vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.dropdown--mega:hover .mega-menu,
.dropdown--mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.mega-menu-inner {
  padding: 1.6rem 1.8rem 1.8rem;
}

.mega-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}

.mega-menu-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
  margin-bottom: 1.3rem;
}

/* Fila de accesos rápidos (ej. Cartas Estándar / Ilustraciones Raras) arriba
   del mega-menú de dos niveles, antes de llegar a las eras */
.mega-menu-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-badge--pill {
  height: auto;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.mega-menu-badge--pill .mega-menu-badge-fallback {
  position: static;
}

/* Pestañas de era (Scarlet & Violet, Sword & Shield...) del mega-menú de Cartas */
.mega-menu-era-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.mega-menu-era-tab {
  position: relative;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  transform: skewX(-14deg);
  overflow: hidden;
  z-index: 0;
}

.mega-menu-era-tab span {
  display: inline-block;
  transform: skewX(14deg);
}

.mega-menu-era-tab::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: rgba(106, 76, 156, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.mega-menu-era-tab:hover,
.mega-menu-era-tab.active {
  color: white;
  border-color: var(--primary);
}

.mega-menu-era-tab:hover::before,
.mega-menu-era-tab.active::before {
  transform: scaleX(1);
}

.mega-menu-era-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.mega-menu-empty {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  padding: 1rem 0;
  grid-column: 1 / -1;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}

.mega-menu-badge {
  position: relative;
  height: 78px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(106,76,156,0.35), rgba(20,20,20,0.9));
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mega-menu-badge:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(106,76,156,0.55), rgba(20,20,20,0.9));
}

.mega-menu-badge-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mega-menu-badge-fallback {
  font-family: var(--font-banner-title);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    border-top: none;
    box-shadow: none;
  }
  .dropdown--mega:hover .mega-menu,
  .dropdown--mega.open .mega-menu {
    transform: none;
  }
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================================
   PÁGINA "APRENDE A JUGAR"
   ============================================== */

/* --- Hero --- */
.learn-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1226 55%, #241638 100%);
  color: white;
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}

.learn-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.learn-hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(138,108,184,0.15);
  border: 1px solid rgba(138,108,184,0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}

.learn-hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.learn-hero-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.8rem;
}

.learn-hero-btn {
  display: inline-block;
  text-decoration: none;
}

.learn-hero-art {
  position: relative;
  height: 320px;
}

.learn-hero-card {
  position: absolute;
  width: 58%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: cover;
}

.learn-hero-card--1 {
  top: 0;
  right: 10%;
  transform: rotate(-6deg);
  z-index: 1;
}

.learn-hero-card--2 {
  bottom: 0;
  right: -2%;
  transform: rotate(8deg);
  z-index: 2;
  border: 3px solid rgba(255,255,255,0.1);
}

/* --- Lecciones --- */
.learn-lessons {
  scroll-margin-top: 140px;
  padding: 3rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.learn-lesson {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 5.5rem;
}

.learn-lesson:last-child {
  margin-bottom: 0;
}

.learn-lesson--reverse {
  direction: rtl;
}
.learn-lesson--reverse > * {
  direction: ltr;
}

.learn-lesson-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.learn-lesson-text h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text);
}

.learn-lesson-text p,
.learn-lesson-body {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.learn-lesson-body ul,
.learn-lesson-body ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.learn-lesson-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.learn-lesson-body li:last-child {
  margin-bottom: 0;
}

.learn-lesson-body strong {
  color: var(--text);
}

.learn-lesson-btn {
  display: inline-block;
  text-decoration: none;
  background: #1a1a1a;
  color: white;
  padding: 0.85rem 1.8rem;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.learn-lesson-btn:hover {
  background: var(--primary);
}

.learn-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0a0a0a;
}

.learn-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- CTA de cierre --- */
.learn-closing-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.learn-closing-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.learn-closing-cta p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}

.learn-closing-cta .btn {
  display: inline-block;
  text-decoration: none;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
}

.learn-closing-cta .btn:hover {
  background: var(--accent);
  color: white;
}

@media (max-width: 900px) {
  .learn-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .learn-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .learn-hero-art {
    height: 240px;
    margin-top: 1rem;
  }
  .learn-lesson,
  .learn-lesson--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .learn-lesson-video {
    order: -1;
  }
}

@media (max-width: 600px) {
  .learn-hero {
    padding: 2.8rem 0 4.5rem;
  }
  .learn-hero-text h1 {
    font-size: 1.9rem;
  }
}

/* ==============================================
   HAMBURGER MENU
   ============================================== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  padding: 0 8px;
  z-index: 1001;
  transition: background 0.2s;
}

.hamburger-menu:hover {
  background: rgba(255,255,255,0.12);
}

.hamburger-menu span {
  width: 100%;
  height: 1.5px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==============================================
   CART MODAL – PREMIUM REDESIGN
   ============================================== */
.modal-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  color: #e8e8e8;
  border-left: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  overflow: hidden;
}

/* Cart header */
.modal-cart > h2 {
  padding: 1.4rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.modal-cart > h2 i {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.modal-cart .close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-cart .close:hover {
  color: white;
}

/* Cart items container */
#cartItemsContainer {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#cartItemsContainer::-webkit-scrollbar {
  width: 4px;
}
#cartItemsContainer::-webkit-scrollbar-track {
  background: transparent;
}
#cartItemsContainer::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* Cart items */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s ease;
}

.cart-item:hover {
  background: rgba(255,255,255,0.02);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  flex-shrink: 0;
}

.cart-item-options {
  margin-bottom: 0.5rem;
}

.cart-option {
  display: inline-block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  letter-spacing: 0.3px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: rgba(106,76,156,0.3);
  border-color: rgba(138,108,184,0.5);
  color: white;
}

.cart-qty {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  min-width: 22px;
  text-align: center;
}

.cart-remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.cart-remove-btn:hover {
  color: #ff6b6b;
  background: rgba(255,107,107,0.1);
}

/* Cart total */
.cart-total {
  padding: 1rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}

.cart-total p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#cartSubtotal {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0;
}

.cart-discount-row {
  color: #4ade80 !important;
}

#cartDiscountAmount {
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0;
}

.cart-final-total-row {
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 0.5rem;
  color: white !important;
}

#cartFinalTotal {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 0;
}

/* ── Cupón ── */
.cart-coupon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem 0;
  flex-shrink: 0;
}

.cart-coupon #couponCodeInput {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-coupon #couponCodeInput::placeholder {
  text-transform: none;
  color: rgba(255,255,255,0.35);
  letter-spacing: normal;
}

.cart-coupon #couponCodeInput:focus {
  outline: none;
  border-color: var(--primary-light);
}

.btn-coupon-apply {
  padding: 0.6rem 1.1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-coupon-apply:hover {
  background: var(--primary-light);
}

.coupon-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 6px;
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.coupon-chip .coupon-chip-code {
  flex: 1;
  text-transform: uppercase;
}

.coupon-chip button {
  background: none;
  border: none;
  color: #4ade80;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.1rem 0.4rem;
}

.coupon-chip button:hover {
  color: white;
}

/* Nota: los productos en preventa nunca participan de cupones/descuentos.
   Se muestra debajo del cupón aplicado cuando el carrito mezcla preventa
   con productos elegibles. */
.coupon-preventa-note {
  display: none;
  flex-basis: 100%;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.2rem;
}

.coupon-preventa-note i {
  color: var(--primary-light);
  margin-right: 0.2rem;
}

/* Badge "Preventa" junto al nombre del producto en el carrito */
.cart-item-preventa-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(138,108,184,0.18);
  color: var(--primary-light);
  vertical-align: middle;
  margin-left: 0.3rem;
  white-space: nowrap;
}

/* Cart buttons */
.cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.6rem 1.4rem;
  flex-shrink: 0;
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem;
  background: #1a3a27;
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-whatsapp:hover {
  background: #1f4530;
  border-color: rgba(37,211,102,0.5);
  transform: translateY(-1px);
}

.btn-whatsapp i {
  font-size: 1rem;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(106,76,156,0.35);
}

/* Empty cart state */
#cartItemsContainer p {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ==============================================
   CARRUSEL
   ============================================== */
.carousel-section {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.carousel-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.1) 70%, transparent 100%);
  z-index: 1;
}

/* Slides con video o YouTube: el medio llena siempre el mismo tamaño fijo
   del carrusel (450px desktop / 280px móvil, definido arriba) y se recorta
   con object-fit:cover, así no hace falta crear versiones distintas para
   PC y celular: el mismo archivo se adapta solo. */
.carousel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0a0a0a;
}

.carousel-media--youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* el click sigue yendo a la slide, no al iframe */
}

.carousel-media--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 500px;
  padding: 0 5%;
}

.carousel-content h3,
.carousel-split-text h3 {
  font-family: var(--font-banner-title);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.carousel-content p,
.carousel-split-text p {
  font-family: var(--font-banner-subtitle);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 1.8rem;
  opacity: 0.85;
}

/* ==============================================
   BANNERS DE VIDEO/YOUTUBE — LAYOUT DIVIDIDO
   Evita las franjas negras de forzar un video 16:9
   a lo ancho de todo el banner: el video vive en su
   propio marco 16:9 contenido, al lado del texto.
   ============================================== */
.carousel-slide--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0 4%;
  background: linear-gradient(135deg, #14101f 0%, #1f1730 55%, #251a3a 100%);
  cursor: pointer;
}

.carousel-slide--split::before {
  display: none; /* no hace falta el degradado oscuro: el texto ya no va sobre el video */
}

.carousel-split-text {
  position: relative;
  z-index: 2;
  color: white;
  flex: 1 1 46%;
  max-width: 460px;
}

.carousel-split-media {
  flex: 1 1 46%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 54%;
}

.carousel-video-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #0a0a0a;
}

.carousel-video-frame .carousel-media,
.carousel-video-frame .carousel-media--youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .carousel-slide--split {
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 5%;
    gap: 1rem;
    height: auto !important;
  }
  .carousel-split-text,
  .carousel-split-media {
    max-width: 100%;
    flex: none;
    width: 100%;
  }
  .carousel-split-text {
    text-align: center;
  }
  .carousel-video-frame {
    max-width: 100%;
  }
}

.btn-carousel {
  display: inline-block;
  padding: 0.65rem 2rem;
  background: transparent;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border-radius: 3px;
}

.btn-carousel:hover {
  background: white;
  color: #0a0a0a;
  border-color: white;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 20;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  background: rgba(106,76,156,0.7);
  transform: translateY(-50%) scale(1.05);
}

.prev { left: 16px; }
.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  border-radius: 2px;
}

.dot.active {
  background: white;
  width: 40px;
}

/* ==============================================
   PRODUCTS
   ============================================== */
.section-title {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
}

.products-section {
  margin-top: 2rem;
  scroll-margin-top: 140px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-alt);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -8px rgba(106, 76, 156, 0.2);
}

.product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-info {
  padding: 1rem 0 0.5rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.product-category {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.2rem;
}

.product-price .old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-right: 0.5rem;
  font-weight: 400;
}

.quick-view-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0;
  margin-top: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.quick-view-btn:hover {
  color: var(--primary);
}

/* ==============================================
   MODALS (base + product)
   ============================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10,10,10,0.88);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-alt);
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
}

.close:hover {
  color: var(--primary);
}

/* ==============================================
   CHECKOUT MODAL
   ============================================== */
.modal-checkout {
  max-width: 600px;
}

.checkout-step { }

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.shipping-option,
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
}

.payment-instructions {
  padding: 0.8rem;
  background: rgba(106,76,156,0.08);
  border-left: 2px solid var(--primary);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.order-summary {
  padding: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.btn-success {
  background: #1b7a3e;
  color: white;
  padding: 0.9rem 1.5rem;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 1rem;
  width: 100%;
  transition: var(--transition);
}

.btn-success:hover {
  background: #22964c;
}

/* ── Nuevo: elegir canal de confirmación + pantalla de éxito ── */
.checkout-confirm-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 1.2rem 0 0.6rem;
}

.checkout-success {
  text-align: center;
}

.checkout-success-icon {
  font-size: 3rem;
  color: #22964c;
  margin-bottom: 0.5rem;
}

.checkout-success-orderid {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.checkout-reminder {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-top: 0.8rem;
}

.checkout-reminder i {
  font-size: 1.2rem;
  color: var(--primary-light, var(--primary));
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checkout-reminder strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.checkout-reminder p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.checkout-reminder--warning {
  background: rgba(255, 180, 60, 0.1);
  border-color: rgba(255, 180, 60, 0.3);
}

.checkout-reminder--warning i {
  color: #ffb43c;
}

.checkout-reminder--info {
  background: rgba(106, 76, 156, 0.12);
  border-color: rgba(106, 76, 156, 0.35);
}

.btn {
  padding: 0.9rem 1.5rem;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 0.6rem;
  width: 100%;
  transition: var(--transition);
}

/* ==============================================
   TOAST
   ============================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #1a1a1a;
  color: white;
  padding: 0.75rem 1.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.toast:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
  margin: 3rem auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 600;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.9rem;
}

.hero-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  border: 1px solid var(--primary);
  border-radius: 4px;
}

.hero-btn:hover {
  background: transparent;
  color: var(--primary);
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background-color: #080808;
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-link-highlight {
  color: var(--primary-light) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-highlight:hover {
  color: white !important;
}

.footer-logo {
  height: 35px;
  width: auto;
  margin-bottom: 0.8rem;
}

.footer-description {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: rgba(255,255,255,0.45);
  font-size: 1.1rem;
  transition: var(--transition);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}

.social-links a:hover {
  color: white;
  border-color: rgba(138,108,184,0.5);
  background: rgba(106,76,156,0.2);
}

.payment-methods {
  margin-top: 0.5rem;
}

.payment-methods h4 {
  margin-bottom: 0.6rem;
}

.payment-methods i {
  font-size: 1.5rem;
  margin-right: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}

/* ==============================================
   MODAL PRODUCT DETAIL
   ============================================== */
.modal-product .product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.modal-product .product-gallery {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.modal-product .product-image-container {
  width: 100%;
  max-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

.modal-product .main-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.modal-product .thumbnail-list {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-product .thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}

.modal-product .thumbnail:hover { opacity: 1; }

.modal-product .thumbnail.active {
  border-color: var(--primary);
  opacity: 1;
}

.modal-product .product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-product .product-detail-info h3 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0;
}

.modal-product .product-category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.product-detail-price-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.product-detail-price-container .old-price,
#modalOriginalPrice {
  text-decoration: line-through !important;
  color: var(--text-light) !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  opacity: 0.7;
}

.product-detail-price-container .current-price,
#modalCurrentPrice {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
}

.modal-product .product-detail-info p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.modal-product .attribute-selector {
  margin-bottom: 0.8rem;
}

.modal-product .attribute-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-product .attribute-selector select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  cursor: pointer;
}

.modal-product .attribute-selector select:focus {
  border-color: var(--primary);
  outline: none;
}

.modal-product .quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.modal-product .quantity-selector label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-product .quantity-selector input {
  width: 80px;
  padding: 0.8rem;
  text-align: center;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg-alt);
  transition: var(--transition);
}

.modal-product .quantity-selector input:focus {
  border-color: var(--primary);
  outline: none;
}

.modal-product .btn-add-cart {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 4px;
}

.modal-product .btn-add-cart:hover {
  background: transparent;
  color: var(--primary);
}

/* Quick view */
.quick-view-modal .quick-view-image-container {
  width: 100%;
  max-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.quick-view-modal .quick-view-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.quick-view-modal .quick-view-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quick-view-modal .quick-view-details h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.quick-view-modal .attribute-selector { margin: 0.5rem 0; }
.quick-view-modal .quantity-selector { margin: 0.5rem 0 1rem; }
.quick-view-modal .btn-add-cart { padding: 0.8rem; font-size: 0.85rem; }

.product-includes {
  margin: 0.8rem 0 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-includes strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.product-includes ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.product-includes li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-light);
}

/* ==============================================
   PACK LOADER
   ============================================== */
.pack-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 1px;
  grid-column: 1 / -1;
}

/* ==============================================
   SCROLL ANIMATIONS
   ============================================== */
.product-card.animate-in {
  opacity: 0;
  transform: translateY(20px);
}

.product-card.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .slogan {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    order: -1;
  }

  .search-container {
    max-width: 100%;
    flex: 1;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100vh;
    background: #0f0f0f;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 0 2rem;
    gap: 0;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1100;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    display: flex !important;
    flex-wrap: nowrap;
    height: 100%;
    overflow-x: visible;
  }

  .main-nav.open {
    left: 0;
  }

  .nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1099;
    display: none;
  }

  .nav-overlay.open {
    display: block;
  }

  .main-nav .category-btn {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 0.9rem 1.4rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-left: 2px solid transparent;
    border-right: none;
    border-top: none;
    height: auto;
    letter-spacing: 1.2px;
  }

  .main-nav .category-btn.active {
    color: white;
    border-left-color: var(--primary-light);
    border-bottom-color: rgba(255,255,255,0.05);
    background: rgba(138,108,184,0.1);
  }

  /* En móvil sí hay espacio: mostramos el texto junto al ícono (usa el title) */
  .nav-icon-btn {
    gap: 0.6rem;
  }
  .nav-icon-btn::after {
    content: attr(title);
  }

  .main-nav .category-btn.active::after {
    display: none;
  }

  .dropdown {
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .dropdown-main {
    justify-content: space-between;
    width: 100%;
    height: auto;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: none;
    padding-left: 0;
    background: rgba(255,255,255,0.02);
    /* La visibilidad (mostrar/ocultar) la controla el bloque final del
       archivo con display:none/block — aquí solo van estilos estructurales,
       para no competir con ese mecanismo. */
  }

  .dropdown-content .subcategory-btn {
    color: rgba(255,255,255,0.5);
    padding: 0.7rem 1.4rem 0.7rem 2.2rem;
    font-size: 0.72rem;
  }

  .dropdown-content .subcategory-btn:hover {
    padding-left: 2.5rem;
  }

  .carousel-slide {
    height: 280px;
  }

  .carousel-content h3 {
    font-size: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-img {
    height: 200px;
  }

  .modal-product .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-product .product-detail-info h3 {
    font-size: 1.5rem;
  }

  #modalCurrentPrice {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-description {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cart-icon {
    padding: 0.4rem 0.7rem;
    gap: 0.4rem;
  }
  .cart-label,
  .cart-divider {
    display: none;
  }
}



/* Estas reglas resuelven un bug de escritorio (el mega-menú se recortaba
   por el overflow de un contenedor padre). Se restringen a escritorio a
   propósito: en móvil, la visibilidad del menú la controla por completo
   el bloque final del archivo (display:none/block), y "overflow: visible"
   aquí competía con ese mecanismo dejando espacios en blanco. */
@media (min-width: 769px) {
  .main-nav {
    overflow: visible !important;
  }

  .dropdown-content {
    top: 100%;
    margin-top: 2px;  /* Pequeño separador */
  }

  /* Asegurar que los desplegables no se recorten */
  .dropdown {
    position: relative;
    z-index: 100;
  }

  .dropdown-content {
    top: 100% !important;
    overflow: visible !important;
    z-index: 9999 !important;
  }

  /* Forzar que ningún padre recorte el contenido */
  .main-nav,
  .header-bottom,
  .header-bottom .header-container {
    overflow: visible !important;
  }
}


/* ==============================================
   RECOMENDACIONES (CARRUSEL HORIZONTAL)
   ============================================== */
.recommendations-section {
    margin: 3rem auto;
}

.recommendations-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.recommendations-grid::-webkit-scrollbar {
    height: 6px;
}

.recommendations-grid::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.recommendations-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.recommendations-grid .product-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}

/* ==============================================
   HERO CARRUSEL (PRODUCTOS ALEATORIOS)
   ============================================== */
/* ==============================================
   HERO CAROUSEL – VERSIÓN CORREGIDA MOBILE
   ============================================== */

.hero-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1400px;
    width: 100%;
}

/* El track que se mueve: debe tener width = 100% * número de slides */
.hero-carousel-slides {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    will-change: transform;
}

/* Cada slide ocupa exactamente el 100% del contenedor visible */
.hero-carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Grid interno: imagen + texto lado a lado en desktop */
.hero-carousel-container .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 3rem;
    min-height: 320px;
    box-sizing: border-box;
    width: 100%;
}

.hero-carousel-container .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    overflow: hidden;
}

.hero-carousel-container .hero-image img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.hero-carousel-container .hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Botones de navegación */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.hero-prev:hover, .hero-next:hover {
    background: rgba(106,76,156,0.7);
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* Dots */
.hero-dots {
    text-align: center;
    padding: 0.8rem 0 1rem;
}
.hero-dot {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.hero-dot.active {
    background: var(--primary-light);
    width: 40px;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {

    .hero-carousel-container {
        margin: 1rem auto;
    }

    .hero-carousel-slide {
        /* Forzar que no se salga del contenedor */
        overflow: hidden;
    }

    .hero-carousel-container .hero-grid {
        /* Apilar imagen arriba, texto abajo */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        padding: 1.2rem 1rem 0.5rem;
        min-height: unset;
        text-align: center;
    }

    .hero-carousel-container .hero-image {
        height: 180px;
        order: -1; /* imagen primero */
    }

    .hero-carousel-container .hero-image img {
        max-height: 160px;
    }

    .hero-carousel-container .hero-content {
        align-items: center;
    }

    .hero-carousel-container .hero-btn {
        align-self: center;
    }

    .hero-carousel-container .hero-title {
        font-size: 1.2rem;
    }

    .hero-carousel-container .hero-description {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-carousel-container .hero-price {
        font-size: 1.1rem;
    }

    .hero-prev { left: 6px; }
    .hero-next { right: 6px; }

    .hero-prev, .hero-next {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}


/* Badge de encargo en tarjeta */
.product-encargo-badge {
    display: inline-block;
    background: rgba(0,0,0,0.7);
    color: #ffaa33;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin: 0.5rem 0 0;
    width: fit-content;
    border: 1px solid #ffaa33;
}

/* Nota de encargo en modal */
.product-encargo-note {
    background: rgba(255,170,51,0.1);
    border-left: 3px solid #ffaa33;
    padding: 0.6rem 1rem;
    margin: 0.8rem 0;
    font-size: 0.8rem;
    color: var(--text-light);
    border-radius: 4px;
}

.product-encargo-note i {
    margin-right: 0.5rem;
    color: #ffaa33;
}

/* =====================================================
   MEJORAS UX/UI — TARJETAS, FILTROS, FEEDBACK
   Agregar al final de css/style.css
   ===================================================== */

/* ─────────────────────────────────────────────
   PRODUCT CARDS — SISTEMA MEJORADO
   ───────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  outline: none;
  position: relative;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(106, 76, 156, 0.15);
  border-color: rgba(106, 76, 156, 0.3);
}

.product-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Imagen */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f8f7fc;
}

/* Animación tipo "abriendo sobre" mientras carga cada imagen de producto:
   un brillo diagonal que recorre la tarjeta, con los colores de marca. */
.product-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    #f1eef9 20%,
    #e4daf5 40%,
    #f6efe0 50%,
    #e4daf5 60%,
    #f1eef9 80%
  );
  background-size: 250% 100%;
  animation: opm-pack-shimmer 1.6s ease-in-out infinite;
  z-index: 0;
}

@keyframes opm-pack-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* En cuanto la imagen carga (clase agregada por JS con onload), el shimmer
   queda tapado detrás de la imagen — no hace falta quitarlo del DOM. */
.product-img-wrap:has(.product-img.loaded)::before {
  animation: none;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.35s ease;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0;
}

.product-img.loaded {
  opacity: 1;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

/* Cartas TCG: mismo tamaño cuadrado que el resto de tarjetas para que el grid
   quede alineado, pero con "contain" (no "cover") para que la carta se vea
   completa dentro del cuadro, sin recortes. */
.product-img-wrap--card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f3f1fa, #e9e5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-img-wrap--card .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card:hover .product-img-wrap--card .product-img {
  transform: scale(1.04);
}

.product-img--dim {
  opacity: 0.5;
  filter: grayscale(40%);
}

/* Overlay con "Vista rápida" */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 20, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* El overlay de "vista rápida" solo debe aparecer con hover real (mouse).
   En pantallas táctiles no existe hover de verdad, así que sin esta media
   query el overlay se quedaba "pegado" visible después de tocar la tarjeta. */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-overlay {
    opacity: 1;
  }

  .product-card:hover .quick-view-btn {
    transform: translateY(0) scale(1);
  }
}

.quick-view-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(6px) scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.quick-view-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(106,76,156,0.35), transparent);
  transform: skewX(-20deg);
  animation: quick-view-shine 2.8s ease-in-out infinite;
}

@keyframes quick-view-shine {
  0%   { left: -60%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

.quick-view-btn:hover {
  background: var(--primary);
  color: white;
}

/* Badges */
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  width: fit-content;
}

.product-badge.nuevo     { background: #22c55e; color: white; }
.product-badge.descuento { background: #ef4444; color: white; }
.product-badge.agotado   { background: #6b7280; color: white; }
.product-badge.preventa  { background: #8b5cf6; color: white; }
.product-badge.pronto    { background: #3b82f6; color: white; }
.product-badge.encargo   { background: #f59e0b; color: white; }

/* Info */
.product-info {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

.product-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.product-condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  background: rgba(106, 76, 156, 0.85);
  border: 1px solid var(--primary);
  transform: skewX(-14deg);
  flex-shrink: 0;
}

.product-condition-badge span {
  display: inline-block;
  transform: skewX(14deg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Insignias de idioma (ES/EN/etc.) en la tarjeta de producto — le dejan claro
   al cliente en qué idiomas existe el producto antes de entrar al detalle. */
/* Insignias de idioma (banderas) en la tarjeta de producto — le dejan claro
   al cliente en qué idiomas existe el producto antes de entrar al detalle. */
.product-lang-badges {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.product-lang-badge {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  display: inline-block !important;
  border: 1.5px solid rgba(255,255,255,0.35);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-lang-badge:hover {
  transform: scale(1.25);
  border-color: var(--primary-light, var(--primary));
}

.product-lang-badge--soldout {
  filter: grayscale(1);
  opacity: 0.35;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.old-price {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.current-price.price--dim {
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 400;
}

.price-label { font-weight: 500; }

.product-encargo-badge {
  font-size: 0.7rem;
  color: #b45309;
  background: #fef3c7;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.2rem;
  width: fit-content;
}

/* Estado vacío / error */
.products-empty,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.products-empty i,
.products-error i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

.btn-reset-filter {
  margin-top: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   BOTONES DE CATEGORÍA – ESTILO PLANO CON SUBRAYADO
   ───────────────────────────────────────────── */
.category-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;   /* línea oculta por defecto */
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 0;   /* sin óvalo */
}

.category-btn:hover {
  color: white;
  border-bottom-color: rgba(138,108,184,0.5);
}

.category-btn.active {
  color: white;
  border-bottom-color: var(--primary-light);
  background: none;   /* sin fondo */
  box-shadow: none;
}

/* ─────────────────────────────────────────────
   MODAL DE PRODUCTO — MEJORAS
   ───────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-image-container {
  border-radius: 12px;
  overflow: hidden;
  background: #f8f7fc;
  aspect-ratio: 1;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-container:hover .main-image {
  transform: scale(1.03);
}

.thumbnail-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.65;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: var(--primary);
  opacity: 1;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-detail-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.product-detail-price-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.product-includes {
  background: rgba(106,76,156,0.06);
  border: 1px solid rgba(106,76,156,0.12);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.product-includes strong { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); }
.product-includes ul { margin-top: 0.4rem; padding-left: 1.2rem; }
.product-includes li { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

.product-encargo-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attribute-selector { display: flex; flex-direction: column; gap: 0.3rem; }
.attribute-selector label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-light); }
.product-attribute {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.87rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-attribute:focus { border-color: var(--primary); outline: none; }

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.quantity-selector label { font-size: 0.82rem; font-weight: 600; color: var(--text-light); }
.quantity-selector input {
  width: 70px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: center;
  background: var(--bg);
  color: var(--text);
}

.btn-add-cart {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(106, 76, 156, 0.35);
}

.btn-add-cart:active { transform: translateY(0); }

@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   TOAST — MEJORADO
   ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e2e;
  color: #e0e0f0;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem 1.4rem;
  border-radius: 40px;
  font-size: 0.87rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────
   CART — MEJORAS VISUALES
   ───────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-title { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.cart-item-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-option {
  font-size: 0.7rem;
  background: rgba(106,76,156,0.08);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.cart-qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.cart-qty-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

.cart-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.3rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.cart-remove-btn:hover { opacity: 1; }

/* ─────────────────────────────────────────────
   ANIMACIONES DE SCROLL MEJORADAS
   ───────────────────────────────────────────── */
.product-card.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.product-card.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay para las primeras tarjetas */
.product-card.animate-in:nth-child(1) { transition-delay: 0ms; }
.product-card.animate-in:nth-child(2) { transition-delay: 60ms; }
.product-card.animate-in:nth-child(3) { transition-delay: 120ms; }
.product-card.animate-in:nth-child(4) { transition-delay: 180ms; }
.product-card.animate-in:nth-child(n+5) { transition-delay: 0ms; }
/* ─────────────────────────────────────────────
   PRODUCTOS AGOTADOS — ESTILOS
   ───────────────────────────────────────────── */
.product-card--unavailable {
  opacity: 0.65;
  filter: grayscale(30%);
  cursor: default !important;
  pointer-events: none;
}

.product-card--unavailable .product-img-wrap {
  position: relative;
}

.product-card--unavailable .product-img-wrap::after {
  content: 'AGOTADO';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 3;
}

.product-card--unavailable .quick-view-btn {
  display: none !important;
}

.product-card--unavailable .product-card-overlay {
  display: none !important;
}
/* Subcategoría activa en dropdown */
.dropdown-content .subcategory-btn.active {
    background: rgba(106,76,156,0.25);
    color: white;
    padding-left: 1.6rem;
    border-left: 2px solid var(--primary-light);
}

/* Banner clickable */
.carousel-slide {
    cursor: pointer;
}

.carousel-slide .btn-carousel {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* ==============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 950;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.whatsapp-float i {
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    right: 14px;
    bottom: 14px;
  }
}

/* Link "Aprende a Jugar" (y otros links de texto) en el nav, estilizado igual que los botones */
.category-btn.nav-link-static {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ==============================================
   FIX: menús desplegables del nav se superponen en móvil
   ==============================================
   Causa: reglas antiguas con !important (agregadas para el bug de
   overflow del nav en escritorio) forzaban "overflow: visible !important"
   en .dropdown-content. En móvil el colapso usa max-height:0, así que con
   overflow visible el contenido se salía igual y quedaba flotando encima
   del siguiente botón del menú (ej. "Cómo Jugar" se veía encima de
   "Pokémon TCG"). Esta regla va al final del archivo a propósito, para
   ganarle en la cascada a esos parches viejos. */
@media (max-width: 768px) {
  .dropdown-content,
  .mega-menu {
    display: none !important;
  }

  .dropdown.open .dropdown-content,
  .dropdown.open .mega-menu,
  .dropdown--mega.open .mega-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border-top: none !important;
  }
}

/* ==============================================
   PÁGINA "JUEGOS DE MESA — CÓMO JUGAR"
   ============================================== */
.games-section {
  padding: 3rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.games-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
  font-family: var(--font-body);
}

.game-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  scroll-margin-top: 140px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}

.game-card-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.game-card-header-text h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.1;
}

.game-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1rem;
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(106,76,156,0.1);
  border: 1px solid rgba(106,76,156,0.2);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
}

.game-description {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.7;
}

.game-card-video .learn-video-frame {
  box-shadow: var(--shadow-lg);
}

.game-steps {
  position: relative;
  margin: 2.5rem 0 2rem;
  padding-left: 3rem;
}

.game-steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(106,76,156,0.15));
}

.game-step {
  position: relative;
  padding-bottom: 1.8rem;
}

.game-step:last-child {
  padding-bottom: 0;
}

.game-step-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px var(--bg-alt);
  z-index: 1;
}

.game-step-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.game-step-body h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.game-step-body p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.game-card-cta {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 800px) {
  .game-card {
    padding: 1.3rem;
  }
  .game-card-header {
    grid-template-columns: 1fr;
  }
}

/* Botón "¿Cómo se juega?" en la ficha de producto */
.how-to-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.7rem 1.2rem;
  background: rgba(106,76,156,0.1);
  color: var(--primary);
  border: 1px solid rgba(106,76,156,0.3);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.how-to-play-btn:hover {
  background: var(--primary);
  color: white;
}

/* ==============================================
   PÁGINA "POLÍTICAS"
   ============================================== */
.policies-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1226 55%, #241638 100%);
  color: white;
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.policies-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(106,76,156,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.policies-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.policies-hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: var(--primary-light);
  transform: translateX(-50%);
  transition: width 0.6s ease 0.3s;
}

.policies-hero h1.policies-title-in {
  opacity: 1;
  transform: translateY(0);
}

.policies-hero h1.policies-title-in::after {
  width: 90px;
}

.policies-hero p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.policies-updated {
  margin-top: 1rem !important;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.4) !important;
}

/* Resumen rápido: 4 datos clave de un vistazo, antes de entrar al detalle */
.policies-quickfacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 2.2rem auto 0;
  position: relative;
}

.policies-quickfact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: left;
}

.quickfact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.policies-quickfact i {
  font-size: 1rem;
  color: white;
}

.policies-quickfact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: white;
  margin-bottom: 0.1rem;
}

.policies-quickfact span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

.policies-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.policies-nav {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.policies-nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(120,120,130,0.55);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.policies-nav-link.active {
  color: var(--text);
  font-weight: 700;
}

.policies-nav-link::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--primary);
  transition: height 0.2s ease;
}

.policies-nav-link:hover {
  background: rgba(106,76,156,0.08);
  color: var(--primary);
}

.policies-nav-link:hover::before,
.policies-nav-link.active::before {
  height: 70%;
}

.policy-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 140px;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border);
}

.policy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.policy-section p {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
}

.policy-section p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
}

@media (max-width: 800px) {
  .policies-quickfacts {
    grid-template-columns: 1fr 1fr;
  }
  .policies-section {
    grid-template-columns: 1fr;
  }
  .policies-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: none;
    padding-left: 0;
  }
  .policies-nav-link {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.72rem;
  }
  .policies-nav-link::before {
    display: none;
  }
}


/* Selector de juegos (pills) en juegos-mesa.html */
.games-selector {
  display: none;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 2rem;
}

.game-selector-pill {
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.game-selector-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.game-selector-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ==============================================
   SECCIÓN "COLECCIONES" (home)
   ============================================== */
.collections-section {
  padding: 3rem 0 1rem;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin: 1.5rem auto 0;
  max-width: 780px;
}

.collection-card {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  font-family: var(--font-heading);
}

.collection-card-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-card-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.collection-card-media--fallback i {
  font-size: 2.6rem;
  color: rgba(255,255,255,0.9);
}

.collection-card:hover .collection-card-media {
  transform: translateY(-4px);
}

.collection-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  text-align: center;
}

/* ==============================================
   FRANJA DE CONFIANZA (envíos / cambios / pagos)
   ============================================== */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
  margin-top: 2.5rem;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.2rem;
  border-radius: 12px;
  transition: var(--transition);
}

.trust-item:hover {
  background: rgba(106,76,156,0.05);
}

.trust-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.trust-item span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 30ch;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .trust-strip {
    padding: 2rem 0;
  }
  .trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .trust-item {
    align-items: center;
    text-align: center;
  }
  .trust-item span {
    max-width: none;
  }
}
