@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #06050C;
  --surface: #100C1E;
  --surface-2: #1A1430;
  --surface-glass: rgba(18, 14, 34, 0.75);
  
  /* Colores de Lujo / VIP */
  --accent: #E2C044;        /* Dorado Champagne */
  --accent-light: #FFF0AD;  /* Dorado Claro */
  --accent-glow: rgba(226, 192, 68, 0.35);
  --accent-2: #8B5CF6;      /* Púrpura Imperial */
  --accent-2-glow: rgba(139, 92, 246, 0.25);
  
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border-gold: rgba(226, 192, 68, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --danger: #FF4D6D;
  --radius: 14px;
  --container-width: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image: 
    radial-gradient(at 10% 10%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(226, 192, 68, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* CUSTOM SCROLLBAR GLOBAL & DENTRO DEL MODAL */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 5, 12, 0.6);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(226, 192, 68, 0.3);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER & NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 5, 12, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  position: relative;
}

.logo { 
  font-weight: 800; 
  letter-spacing: 2px; 
  font-size: 20px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo span { 
  color: var(--accent); 
  -webkit-text-fill-color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a { color: var(--text-muted); transition: all 0.2s; }
.main-nav a:hover { color: #FFFFFF; text-shadow: 0 0 12px rgba(255, 255, 255, 0.5); }
.main-nav .soon { color: var(--text-muted); opacity: .6; cursor: default; }
.main-nav .soon em { font-style: normal; font-size: 10px; margin-left: 4px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.icon-link:hover { background: rgba(255,255,255,0.05); }

.cart-count {
  background: linear-gradient(135deg, var(--accent), #B38E1B);
  color: #000;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.balance-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  background: rgba(226, 192, 68, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 6px 14px;
  transition: all 0.25s;
}
.balance-chip:hover {
  background: rgba(226, 192, 68, 0.12);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}
.balance-chip-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.balance-chip-amount { font-size: 13px; font-weight: 700; color: var(--accent); }

/* DROPDOWN LUXURY */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: var(--surface-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-glow);
  padding: 10px;
  z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; animation: fadeInDown 0.2s ease-out; }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.dropdown-menu a:hover { 
  background: rgba(226, 192, 68, 0.1); 
  color: var(--accent);
  transform: translateX(3px);
}
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }
.dropdown-menu-wide { min-width: 280px; }
.dropdown-header { padding: 8px 12px; font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.dropdown-empty { padding: 8px 12px; font-size: 13px; color: var(--text-muted); }
.dropdown-notification { padding: 8px 12px; border-radius: 6px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-notification strong { font-size: 13px; }
.dropdown-notification span { font-size: 12px; color: var(--text-muted); }
.dropdown-notification.is-unread { background: rgba(226, 192, 68, 0.08); }
.dropdown-footer-link { text-align: center; border-top: 1px solid var(--border-subtle); margin-top: 4px; padding-top: 10px !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero { padding: 90px 0 60px; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1.1; }
.hero-text h1 { 
  font-size: 52px; 
  line-height: 1.05; 
  margin: 0 0 18px; 
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p { 
  color: var(--text-muted); 
  font-size: 18px; 
  margin-bottom: 32px; 
  font-weight: 400;
}

.hero-visual {
  flex: .9;
  height: 320px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, var(--surface-2), var(--bg));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px var(--accent-glow);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.hero-visual:hover {
  transform: scale(1.02);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ================= BOTONES LUXURY ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  width: 100%;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FDF0A6 0%, #E2C044 50%, #9E7D11 100%);
  color: #0A0714;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(226, 192, 68, 0.5);
  background: linear-gradient(135deg, #FFF6C7 0%, #ECD063 50%, #BBA22D 100%);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-gold);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.btn-secondary:hover {
  background: rgba(226, 192, 68, 0.1);
  color: var(--accent);
}

.btn-link { 
  background: none; 
  border: none; 
  color: var(--danger); 
  cursor: pointer; 
  text-decoration: underline; 
  padding: 0; 
  font-size: 12px;
  white-space: nowrap;
}

/* ================= PRODUCT CARDS & MODAL CARDS ================= */
.catalog { padding: 60px 0; }
.catalog h2 { font-size: 28px; margin-bottom: 30px; letter-spacing: -0.5px; }

.product-card, .product-detail {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.product-detail { max-width: 720px; }

.product-card-image, .product-detail-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 10px;
  position: relative;
}

.product-card-image img, .product-detail-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.image-preview { margin-top: 10px; max-width: 160px; max-height: 160px; border-radius: var(--radius); overflow: hidden; display: none; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.price { 
  color: var(--accent); 
  font-weight: 800; 
  font-size: 18px; 
  text-shadow: 0 0 10px rgba(226, 192, 68, 0.2);
}
.label { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: var(--text-muted); }

.my-boxes { padding: 40px 0; }

.box-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 20px; 
}

/* TARJETAS MÁS COMPACTAS */
.box-card { 
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle); 
  border-radius: 16px; 
  padding: 16px; 
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.box-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
}

.box-card h3 {
  font-size: 16px;
  margin: 6px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box-card .product-card-image { 
  width: 100%;
  height: 160px;
  margin: 0 auto 10px; 
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.box-card-image-wrap { position: relative; }

/* ETIQUETA DE STOCK ENCIMA DE LA IMAGEN CON EFECTO DE URGENCIA */
.stock-badge {
 position: absolute;
  top: 10px;
  right: 10px; /* <--- Cambia "left: 10px;" por "right: 10px;" */
  left: auto;  /* Asegura que no arrastre la posición izquierda */
  z-index: 3;
  background: linear-gradient(135deg, #FF4D6D 0%, #C71585 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(255, 77, 109, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ORDENA EL BOTÓN Y EL ENLACE ¿QUÉ PUEDE CONTENER? DEBAJO DEL BOTÓN */
.box-card form, 
.box-card .box-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.box-card .btn-primary,
.box-card form button[type="submit"] {
  order: 1;
}
.box-card a[onclick*="modal"], 
.box-card button[onclick*="modal"],
.box-card .btn-link {
  order: 2;
  margin-top: 2px;
}

.sold-out-badge {
 position: absolute;
  top: 10px;
  right: 10px; /* <--- Cambia "left: 10px;" por "right: 10px;" */
  left: auto;  /* Asegura que no arrastre la posición izquierda */
  z-index: 3;
  background: linear-gradient(135deg, #FF4D6D 0%, #C71585 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(255, 77, 109, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.card-description { 
  font-size: 12px; 
  color: var(--text-muted); 
  margin: 4px 0 8px; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.box-card h3 a { color: inherit; }

/* ================= CLUB TEASER & BANNER ================= */
.soon-banner {
  background: linear-gradient(135deg, rgba(26, 20, 48, 0.8) 0%, rgba(16, 12, 30, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.soon-banner h2 { font-size: 32px; margin-top: 0; color: var(--accent); }
.soon-banner em { color: var(--text-muted); font-size: 12px; }

/* ================= HOW IT WORKS ================= */
.how-it-works { padding: 60px 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.step:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.step span { 
  display: inline-block; 
  color: var(--accent); 
  font-size: 28px; 
  font-weight: 800; 
  margin-bottom: 8px; 
}

/* ================= FORMULAROS & CHECKOUT ================= */
.auth-form, .checkout, .cart, .order-confirmation { padding: 40px 0; max-width: 480px; margin: 0 auto; }
.checkout { max-width: 620px; }
label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
fieldset { border: 1px solid var(--border-subtle); border-radius: var(--radius); margin-bottom: 20px; padding: 16px; }
.address-option { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.form-error { color: var(--danger); margin-bottom: 14px; }
.form-success { color: var(--accent); margin-bottom: 14px; }
.dev-note { font-size: 12px; color: var(--text-muted); border: 1px dashed var(--border-subtle); border-radius: var(--radius); padding: 10px; word-break: break-all; }

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cart-line > span:first-of-type,
.cart-line > form:first-of-type { flex: 1 1 160px; }
.cart-line-image { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 22px; flex: 0 0 auto; }
.cart-line-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-summary { margin-top: 24px; text-align: right; }
.total { font-size: 22px; font-weight: 800; color: var(--accent); }
.wallet-toggle { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-bottom: 10px; font-size: 14px; }

/* ================= FOOTER ================= */
.site-footer { 
  border-top: 1px solid var(--border-subtle); 
  padding: 60px 0 30px; 
  margin-top: 80px; 
  background: rgba(6, 5, 12, 0.95);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.footer-grid h4 { 
  margin: 0 0 16px; 
  font-size: 12px; 
  letter-spacing: 1.5px; 
  color: var(--accent);
  text-transform: uppercase;
}
.footer-grid a, .footer-grid .soon { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.footer-grid .soon em { font-style: normal; font-size: 10px; opacity: .7; margin-left: 4px; }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 30px; }

.footer-link {
  display: block;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

/* ================= ADMIN & TABLAS ================= */
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.admin-table th { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card { background: var(--surface-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--accent); }

/* ================= MODALES AJUSTADOS ================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 35px var(--accent-glow);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

/* BOTÓN DE CIERRE (X) */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.modal-close:hover { 
  background: rgba(255, 77, 109, 0.2); 
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-body { 
  color: var(--text-muted); 
  font-size: 14px; 
  line-height: 1.6; 
  margin-top: 12px; 
}
.modal-body p { margin: 0 0 12px; }

/* LAYOUT 2 EN 2 DENTRO DEL MODAL */
.modal-body .box-grid,
.modal-body > div:has(.product-card) {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* ================= COOKIES BANNER ================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: rgba(16, 12, 30, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-gold);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1 1 320px; }
.cookie-banner-text p { margin: 0; font-size: 13px; color: var(--text-muted); }
.cookie-banner-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ================= ESTRUCTURA Y VISIBILIDAD DE CAJA ================= */
.box-opening-stage {
  position: relative;
  min-height: 540px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ocultar el resultado por completo mientras no esté activo */
.gift-result {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  z-index: 20;
}

.gift-result.active {
  display: flex;
}

/* Caja Central */
.box-icon {
  position: relative;
  z-index: 5;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.box-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(226, 192, 68, 0.4));
}

.box-emoji-hero {
  font-size: 80px;
  line-height: 1;
  display: block;
}

/* ================= ANIMACIÓN ORBITAL ================= */
.orbit-container {
  position: absolute;
  width: 480px;
  height: 480px;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: opacity 0.5s ease;
}

.orbit-ring {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateOrbit 20s linear infinite;
}

.orbit-container.fast-orbit .orbit-ring {
  animation-duration: 2.5s;
}

.orbit-container.orbit-fade-out {
  opacity: 0;
  transform: scale(1.4);
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  margin-top: -35px;
  margin-left: -35px;
  transform-style: preserve-3d;
  transform: rotate(var(--angle)) translateX(220px) rotate(calc(-1 * var(--angle)));
}

.orbit-item-card {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--border-gold, #e2c044);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 6px;
  animation: counterRotateOrbit 20s linear infinite;
}

.orbit-container.fast-orbit .orbit-item-card {
  animation-duration: 2.5s;
}

.orbit-item-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fallback-emoji {
  font-size: 1.8rem;
}

/* Imagen del Producto Revelado */
.gift-icon-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--border-gold, #e2c044);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 0 30px rgba(226, 192, 68, 0.4);
}

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

.revealed-product-emoji {
  font-size: 90px;
}

/* Botones inferiores */
.action-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 40px auto 0;
  position: relative;
  z-index: 10;
}

.btn-action {
  width: 100%;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counterRotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Confeti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  opacity: 0.9;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* ================= MEDIA QUERIES (RESPONSIVE) ================= */
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 30px; }
  .hero-text h1 { font-size: 38px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .balance-chip { 
    display: none !important; 
  }
}

/* RESPONSIVE MÓVIL: 2 PRODUCTOS POR FILA */
@media (max-width: 640px) {
  .box-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .box-card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .box-card .product-card-image {
    height: 130px;
    margin-bottom: 8px;
  }
  
  .stock-badge {
    font-size: 8px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }
  
  .box-card h3 {
    font-size: 13px;
  }
  
  .price {
    font-size: 15px;
  }
  
  .btn {
    padding: 9px 10px;
    font-size: 11px;
    border-radius: 8px;
  }
  
  /* MANTENER 2 POR FILA EN LOS MODALES DE MÓVIL */
  .modal-body .box-grid,
  .modal-body > div:has(.product-card) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .modal-box {
    padding: 16px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .cart-line { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}
/* ================= CORRECCIÓN FAQ ACORDEÓN ================= */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
  margin-bottom: 12px;
}

.faq-item[open] {
  border-color: rgba(226, 192, 68, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  user-select: none;
}

/* Ocultar flecha nativa en todos los navegadores */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  padding-right: 20px;
}

/* Indicador personalizado limpio a la derecha */
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--border-gold, #e2c044);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}