:root {
  --bg: #090910;
  --bg-elevated: #11111d;
  --card: rgba(20, 20, 34, 0.86);
  --card-solid: #141422;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(139, 92, 246, 0.48);

  --text: #f5f5fa;
  --text-muted: #9ea0b8;

  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --cyan: #22d3ee;
  --emerald: #10b981;

  --platforms-gradient: linear-gradient(
    90deg,
    #ef4444 0%,
    #f97316 16%,
    #facc15 32%,
    #22c55e 48%,
    #06b6d4 64%,
    #3b82f6 80%,
    #a855f7 100%
  );

  --brand-color: #a78bfa;
  --brand-bg: rgba(167, 139, 250, 0.14);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-glow: 0 20px 50px rgba(139, 92, 246, 0.16);
}

/* Marcas */
.brand-netflix          { --brand-color: #ef4444; --brand-bg: rgba(239, 68, 68, 0.14); }
.brand-spotify          { --brand-color: #22c55e; --brand-bg: rgba(34, 197, 94, 0.14); }
.brand-duolingo         { --brand-color: #58cc02; --brand-bg: rgba(88, 204, 2, 0.15); }
.brand-disney           { --brand-color: #38bdf8; --brand-bg: rgba(56, 189, 248, 0.14); }
.brand-paramount        { --brand-color: #3b82f6; --brand-bg: rgba(59, 130, 246, 0.14); }
.brand-max              { --brand-color: #818cf8; --brand-bg: rgba(129, 140, 248, 0.15); }
.brand-prime            { --brand-color: #06b6d4; --brand-bg: rgba(6, 182, 212, 0.14); }
.brand-crunchyroll      { --brand-color: #f97316; --brand-bg: rgba(249, 115, 22, 0.15); }
.brand-vix              { --brand-color: #facc15; --brand-bg: rgba(250, 204, 21, 0.14); }
.brand-fox              { --brand-color: #fb7185; --brand-bg: rgba(251, 113, 133, 0.14); }
.brand-youtube          { --brand-color: #ff3b30; --brand-bg: rgba(255, 59, 48, 0.15); }
.brand-apple            { --brand-color: #e2e8f0; --brand-bg: rgba(226, 232, 240, 0.13); }
.brand-office           { --brand-color: #fb923c; --brand-bg: rgba(251, 146, 60, 0.15); }
.brand-combo-disney-vix { --brand-color: #38bdf8; --brand-bg: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(250, 204, 21, 0.18)); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.platform-top-bar {
  height: 4px;
  width: 100%;
  background: var(--platforms-gradient);
  position: sticky;
  top: 0;
  z-index: 70;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16), rgba(139, 92, 246, 0.14) 65%, transparent);
  top: -120px; left: -120px;
}
.glow-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(34, 197, 94, 0.12) 65%, transparent);
  bottom: 6%; right: -120px;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* NAVBAR CON DESPLEGABLE + HAMBURGUESA */
.top-navbar {
  position: sticky;
  top: 4px;
  z-index: 60;
  background: rgba(9, 9, 16, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.72rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-pill {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-link-pill.active,
.nav-link-pill:hover {
  background: linear-gradient(135deg, var(--violet), #6366f1);
  color: #fff;
}

/* Dropdown desplegable */
.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 225px;
  background: #121220;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 80;
}

.dropdown.open .dropdown-panel {
  display: flex;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item:hover {
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
}

.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.72rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Menú lateral móvil */
.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100vh;
  background: #0e0e19;
  border-right: 1px solid var(--border-strong);
  z-index: 100;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  transition: left 0.24s ease;
}

.sidebar-drawer.open { left: 0; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 90;
  display: none;
}
.drawer-backdrop.open { display: block; }

.drawer-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

.drawer-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.drawer-btn.active,
.drawer-btn:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--border-strong);
}

/* Drawer lateral de Carrito Profesional */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -430px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #10101d;
  border-left: 1px solid var(--border-strong);
  z-index: 110;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.75);
  transition: right 0.25s ease;
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 1.2rem 1.3rem;
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 16, 0.92);
}

/* Pestañas */
.tab-view { display: none; }
.tab-view.active { display: block; }

/* Botones y badges */
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.32);
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 10px var(--emerald);
}

.b-dot {
  width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%;
  background: var(--brand-color); box-shadow: 0 0 9px var(--brand-color);
}
.brand-combo-disney-vix .b-dot {
  background: linear-gradient(135deg, #38bdf8 50%, #facc15 50%);
}
.perk-name { display: inline-flex; align-items: center; gap: 0.55rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.3rem; border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.btn-sm { padding: 0.48rem 0.85rem; font-size: 0.8rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #6366f1 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border: 1px solid var(--border);
}
.btn-success { background: var(--emerald); color: #042f2e; }
.btn-danger {
  background: rgba(239, 68, 68, 0.16); color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.hero { padding: 3rem 0 1.75rem; }
.hero h1 {
  margin: 1rem 0 0.85rem; font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch;
}
.hero h1 span {
  background: var(--platforms-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero-subtitle { margin: 0; font-size: 1.04rem; color: var(--text-muted); max-width: 60ch; }
.hero-subtitle strong { color: var(--text); }

.brand-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.35rem; }
.brand-pill {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.32rem 0.72rem; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  background: var(--brand-bg); border: 1px solid color-mix(in srgb, var(--brand-color) 42%, transparent);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
}
.stat-netflix { border-top: 3px solid #ef4444; }
.stat-spotify { border-top: 3px solid #22c55e; }
.stat-disney  { border-top: 3px solid #38bdf8; }
.stat-box strong { display: block; font-size: 1.35rem; font-weight: 800; }
.stat-box span { font-size: 0.84rem; color: var(--text-muted); }

.section { margin-top: 3.25rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.step-label {
  display: block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--violet-bright); margin-bottom: 0.25rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 2.7vw, 2rem); }

.bento-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.bento-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.step-card-1 { border-top: 3px solid #f97316; }
.step-card-1 .bento-num { color: #f97316; }
.step-card-2 { border-top: 3px solid #22c55e; }
.step-card-2 .bento-num { color: #22c55e; }
.bento-accent { border-top: 3px solid #ef4444; background: linear-gradient(160deg, rgba(239,68,68,0.12), rgba(139,92,246,0.2), var(--card-solid)); }
.bento-num { font-size: 0.82rem; font-weight: 800; color: var(--cyan); margin-bottom: 0.5rem; }
.bento-card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.bento-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.2rem; }
.tier-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.4rem; }
.tier-bronze { border-top: 3px solid #facc15; }
.tier-silver { border-top: 3px solid #ff3b30; }
.tier-gold   { border-top: 3px solid #22c55e; }
.tier-diamond{ border-top: 3px solid #ef4444; }
.tier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.tier-goal {
  background: rgba(139, 92, 246, 0.16); color: var(--violet-bright);
  font-weight: 800; font-size: 0.82rem; padding: 0.25rem 0.65rem; border-radius: var(--radius-pill);
}
.perk-list { list-style: none; margin: 0; padding: 0; }
.perk-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.5rem; border-bottom: 1px dashed rgba(255,255,255,0.08);
  border-left: 2px solid color-mix(in srgb, var(--brand-color) 65%, transparent);
  border-radius: 8px; font-size: 0.86rem;
}

.store-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.2rem;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--brand-color); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.product-card-img { width: 100%; height: 155px; object-fit: cover; }
.product-card-placeholder {
  width: 100%; height: 110px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--brand-color); background: var(--brand-bg);
}
.product-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.product-card-desc { margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.product-card-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.product-price-val { font-size: 1.15rem; font-weight: 800; color: var(--brand-color); }

.profile-box, .order-detail-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 1.25rem;
}
.avatar-circle {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--violet-bright); background: rgba(139, 92, 246, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; flex-shrink: 0;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px); display: none; align-items: center;
  justify-content: center; z-index: 120; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); width: 100%; max-width: 500px;
  padding: 1.5rem; max-height: 90vh; overflow-y: auto;
}
.field-group { margin-bottom: 0.85rem; }
.field-group label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.input-field, .textarea-field, .select-field {
  width: 100%; padding: 0.65rem 0.82rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 0.88rem;
}

.status-badge {
  display: inline-block; padding: 0.22rem 0.65rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700;
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.footer {
  margin-top: 3.5rem; border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem; color: var(--text-muted); font-size: 0.85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

@media (max-width: 920px) {
  .nav-menu-desktop { display: none; }
  .hamburger-btn { display: inline-flex; }
}