/* ===== VARIABLES ===== */
/* FUENTES REQUERIDAS EN EL HTML (reemplaza las anteriores):
   <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;800;900&family=Exo+2:wght@400;600;700;800&display=swap" rel="stylesheet">
*/
:root {
  --bg: #000000;
  --bg2: #010005;
  --card: #1e1c35;
  --card2: #252344;
  --accent: #ff6b35;
  --accent2: #f7c59f;
  --purple: #a855f7;
  --blue: #3b82f6;
  --green: #22c55e;
  --text: #f0edf6;
  --muted: #9490b5;
  --border: #2e2b4a;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== BG LAYER ===== */
#bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
#bg-canvas { width: 100%; height: 100%; }
.bg-overlay {
  position: absolute; inset: 0;
  background: rgba(15,14,23,.55);
}

/* ===== INTRO ===== */
#intro-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
#intro-fallback {
  position: relative; z-index: 2;
  text-align: center;
  animation: fadeIn .5s ease;
}
.intro-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,.25) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite alternate;
}
.intro-logo { margin-bottom: 32px; }
.intro-logo-img { width: 120px; height: 120px; object-fit: contain; animation: floatBounce 2s ease-in-out infinite alternate; }
.intro-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  color: var(--text);
}
.intro-title span { color: var(--accent); }
.intro-sub {
  color: var(--muted); font-size: .9rem;
  letter-spacing: .3em; margin-top: 4px;
}
.intro-bar-wrap {
  width: 280px; height: 6px;
  background: var(--border); border-radius: 99px;
  overflow: hidden; margin: 20px auto 12px;
}
.intro-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 99px;
  animation: loadBar 2.4s ease forwards;
}
.intro-label { color: var(--muted); font-size: .88rem; }

/* ===== PARTICLES ===== */
#particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%; opacity: .15;
  animation: floatUp linear infinite;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,14,23,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px; object-fit: contain;
  border-radius: 10px;
  transition: transform .3s;
}
.brand-logo:hover { transform: rotate(-8deg) scale(1.1); }
.brand-fallback { display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 1.6rem; }
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: var(--text);
}
.brand-name span { color: var(--accent); }
.brand-country {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 99px; padding: 2px 10px;
}
.header-right { display: flex; align-items: center; gap: 14px; }

/* Cart button */
.cart-btn {
  position: relative;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: background .2s, border-color .2s, transform .15s;
}
.cart-btn:hover { background: var(--card); border-color: var(--accent); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn.pop { animation: cartPop .4s ease; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop .3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 20px 70px;
  text-align: center;
  background: #000;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(168,85,247,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(255,107,53,.12) 0%, transparent 60%);
  animation: heroBgShift 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroBgShift {
  0%   { opacity: .7; transform: scale(1) translateY(0); }
  100% { opacity: 1;  transform: scale(1.06) translateY(-8px); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,.12); border: 1px solid rgba(255,107,53,.3);
  color: var(--accent); font-size: .82rem; font-weight: 700;
  padding: 5px 16px; border-radius: 99px;
  margin-bottom: 18px;
  animation: fadeInDown .6s ease both;
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 14px;
  animation: fadeInUp .65s .1s ease both;
}
.hero-hl {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted); font-size: 1.05rem;
  animation: fadeInUp .65s .2s ease both;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff; font-weight: 800; font-size: 1rem;
  padding: 14px 36px; border-radius: 99px;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  animation: fadeInUp .65s .3s ease both;
  box-shadow: 0 6px 32px rgba(255,107,53,.35);
}
.hero-cta:hover { opacity: .92; transform: translateY(-2px) scale(1.03); }

/* Hero orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .2; animation: pulse 4s ease-in-out infinite alternate; }
.o1, .o2, .o3 { display: none; }
/* Hero floating emojis */
.hero-emojis { position: absolute; inset: 0; pointer-events: none; }
.he { position: absolute; font-size: 1.8rem; opacity: .15; animation: driftAround linear infinite; }
.he1 { top: 15%; left: 6%; animation-duration: 18s; }
.he2 { top: 20%; right: 8%; animation-duration: 22s; font-size: 2.2rem; }
.he3 { bottom: 25%; left: 12%; animation-duration: 20s; font-size: 1.5rem; }
.he4 { top: 60%; right: 14%; animation-duration: 26s; }
.he5 { bottom: 10%; left: 50%; animation-duration: 16s; }

/* Hero shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hshape { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .12; animation: pulse 5s ease-in-out infinite alternate; }
.hs1 { width: 180px; height: 180px; background: var(--purple); top: 20%; left: 5%; }
.hs2 { width: 120px; height: 120px; background: var(--accent); top: 30%; right: 8%; animation-delay: 2s; }
.hs3 { width: 100px; height: 100px; background: var(--blue); bottom: 5%; left: 30%; animation-delay: 4s; }

/* ===== SECTION ===== */
section {
  max-width: 1200px; margin: 0 auto 64px;
  padding: 0 20px;
  position: relative; z-index: 1;
}
.sec-head { margin-bottom: 30px; }
.sec-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem; font-weight: 800; margin-bottom: 4px;
}
.sec-icon { margin-right: 4px; }
.sec-head p { color: var(--muted); font-size: .95rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal-target { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal-target.revealed { opacity: 1; transform: translateY(0); }

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.event-card {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid rgba(168,85,247,.4);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 28px rgba(168,85,247,.18);
  transition: transform .25s, box-shadow .25s;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(168,85,247,.3); }
.event-img-wrap { position: relative; overflow: hidden; }
.event-img { width: 100%; height: 155px; object-fit: cover; display: block; transition: transform .35s; }
.event-card:hover .event-img { transform: scale(1.06); }
.event-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.event-ribbon {
  position: absolute; top: 12px; right: -28px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff; font-size: .68rem; font-weight: 800;
  padding: 5px 36px; transform: rotate(35deg);
  letter-spacing: .05em;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.event-body { padding: 16px; }
.event-body h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 800; margin-bottom: 8px;
}
.event-desc-box {
  background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.25);
  border-radius: 10px; padding: 10px 12px;
  font-size: .83rem; color: var(--muted);
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 10px; line-height: 1.4;
}
.event-desc-icon { flex-shrink: 0; font-size: 1rem; }
.event-region { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
  border-color: var(--accent);
}
.card-img-wrap { position: relative; overflow: hidden; }
.card-img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .card-img { transform: scale(1.06); }
.card-img-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.card-body { padding: 16px; }
.card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem; font-weight: 800; margin-bottom: 4px;
}
.card-region { font-size: .78rem; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }

/* Select */
.card-select {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  padding: 10px 14px; font-size: .9rem;
  font-family: 'Nunito', sans-serif; cursor: pointer;
  margin-bottom: 10px; transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239490b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.card-select:focus { outline: none; border-color: var(--accent); }

/* Price display */
.card-price { min-height: 22px; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pr-usd-big { font-size: 1rem; font-weight: 800; color: var(--accent); }
.pr-bs-conv { font-size: .82rem; color: var(--muted); }

/* Cart button on cards */
.btn-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none; border-radius: 10px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: .9rem; font-weight: 700;
  padding: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 18px rgba(255,107,53,.25);
}
.btn-cart:hover { opacity: .9; transform: scale(1.02); }
.btn-cart:active { transform: scale(.97); }
.btn-cart-event { background: linear-gradient(135deg, var(--purple), var(--blue)); }

/* States */
.state-loading {
  grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted);
}
.spin-ring {
  width: 44px; height: 44px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 18px;
  animation: spin 1s linear infinite;
}
.state-empty {
  grid-column: 1/-1; text-align: center; padding: 70px 20px;
  color: var(--muted); font-size: 1.1rem;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 48px rgba(0,0,0,.5);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; }
.cart-close {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cart-close:hover { background: var(--card2); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 8px; color: var(--muted); text-align: center;
  padding: 40px 20px;
}
.cart-empty p { font-weight: 700; font-size: 1rem; }
.cart-empty span { font-size: .85rem; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  margin-bottom: 10px;
  animation: fadeInRight .3s ease;
}
.cart-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info strong { display: block; font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info span { font-size: .8rem; color: var(--muted); display: block; }
.ci-info em { font-size: .75rem; color: var(--blue); font-style: normal; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ci-price { font-size: .85rem; font-weight: 800; color: var(--accent); text-align: right; }
.ci-price small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.ci-qty {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2px 6px;
}
.ci-qty button {
  background: none; border: none; color: var(--text);
  width: 22px; height: 22px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background .15s;
}
.ci-qty button:hover { background: var(--card2); }
.ci-qty span { font-size: .85rem; font-weight: 700; min-width: 16px; text-align: center; }
.ci-del {
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25);
  color: #f87171; border-radius: 6px; width: 24px; height: 24px;
  cursor: pointer; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ci-del:hover { background: rgba(248,113,113,.22); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .95rem;
}
.cart-total strong { color: var(--accent); font-size: 1.1rem; }
.total-bs { font-size: .78rem; color: var(--muted); }
.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none; border-radius: 12px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 800;
  padding: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn-checkout:hover { opacity: .92; transform: scale(1.02); }
.btn-clear {
  width: 100%; background: transparent;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-family: 'Nunito', sans-serif;
  font-size: .85rem; font-weight: 600;
  padding: 9px; cursor: pointer; transition: color .2s, border-color .2s;
}
.btn-clear:hover { color: #f87171; border-color: rgba(248,113,113,.4); }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--muted); font-size: .87rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; opacity: .9; }
.footer-brand {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  margin-bottom: 6px;
}
.footer-ws { margin-bottom: 20px; }
.footer-ws a { color: var(--green); text-decoration: none; font-weight: 700; }
.footer-ws a:hover { text-decoration: underline; }

.footer-social { margin-bottom: 20px; }
.footer-social-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 99px;
  font-size: .88rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, opacity .2s, box-shadow .2s;
}
.social-btn:hover { transform: translateY(-2px); opacity: .9; }
.social-btn.ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff; box-shadow: 0 4px 18px rgba(253,29,29,.3);
}
.social-btn.tt {
  background: #010101; color: #fff;
  border-color: #2d2d2d;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}

.footer-credit {
  font-size: .8rem; color: var(--muted); margin-top: 6px;
}
.footer-credit span { color: var(--accent); font-weight: 700; }

/* ===== SHAKE ===== */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.shake { animation: shake .4s ease; border-color: #f87171 !important; }

/* ===== ADMIN ===== */
.admin-body { background: #0a0917; }
#login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.login-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  text-align: center; width: 100%; max-width: 360px;
  animation: fadeInUp .4s ease;
}
.login-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem; font-weight: 800; margin-bottom: 16px;
}
.login-box h2 { font-size: 1.2rem; margin-bottom: 24px; color: var(--muted); }
.login-box input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  padding: 12px 14px; font-size: 1rem;
  font-family: 'Nunito', sans-serif; margin-bottom: 12px;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-box button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none; border-radius: 10px; color: #fff;
  font-size: 1rem; font-weight: 700;
  font-family: 'Nunito', sans-serif; padding: 13px; cursor: pointer;
  transition: opacity .2s;
}
.login-box button:hover { opacity: .9; }
.err-msg { color: #f87171; font-size: .85rem; margin-top: 10px; }

#admin-panel { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; min-height: 100vh;
  background: var(--card); border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem; font-weight: 800;
  padding: 0 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.nav-btn {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--muted); font-family: 'Nunito', sans-serif;
  font-size: .95rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-btn.active, .nav-btn:hover { background: var(--card2); color: var(--text); }
.back-link { color: var(--muted); font-size: .85rem; text-decoration: none; margin-top: auto; padding: 8px 14px; }
.back-link:hover { color: var(--text); }
.admin-main { flex: 1; padding: 32px; overflow-y: auto; max-width: 860px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .3s ease; }
.admin-main h2 { font-family: 'Baloo 2', cursive; font-size: 1.5rem; margin-bottom: 24px; }

.admin-form label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; margin-top: 14px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  padding: 11px 14px; font-size: .95rem;
  font-family: 'Nunito', sans-serif; transition: border-color .2s;
}
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--accent); }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0 18px; }

.option-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; animation: fadeInUp .3s ease; }
.option-row input { flex: 1; }
.option-del {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  color: #f87171; border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; font-size: 1.1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.option-del:hover { background: rgba(248,113,113,.25); }
.btn-add-option {
  background: var(--card2); border: 1px dashed var(--border);
  color: var(--muted); border-radius: 10px;
  padding: 10px 18px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: .9rem;
  transition: border-color .2s, color .2s;
  width: 100%; text-align: center; margin-top: 4px;
}
.btn-add-option:hover { border-color: var(--accent); color: var(--text); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-save {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none; border-radius: 10px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700;
  padding: 12px 28px; cursor: pointer; transition: opacity .2s;
}
.btn-save:hover { opacity: .9; }
.btn-cancel {
  background: var(--card2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 10px; font-family: 'Nunito', sans-serif;
  font-size: 1rem; font-weight: 600; padding: 12px 20px; cursor: pointer;
}
.btn-cancel:hover { color: var(--text); }

/* Admin list */
.loading-products { grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--muted); }
.spin { width:40px; height:40px; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; margin:0 auto 16px; animation:spin 1s linear infinite; }
.admin-product-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px; animation: fadeInUp .3s ease;
}
.admin-product-item img { width:64px; height:64px; object-fit:cover; border-radius:10px; flex-shrink:0; }
.admin-product-info { flex:1; }
.admin-product-info strong { font-family:'Orbitron',sans-serif; }
.admin-product-info p { color:var(--muted); font-size:.85rem; margin-top:2px; }
.admin-product-actions { display:flex; gap:8px; flex-shrink:0; }
.btn-edit { background:rgba(59,130,246,.15); border:1px solid rgba(59,130,246,.3); color:#60a5fa; border-radius:8px; padding:6px 14px; cursor:pointer; font-family:'Nunito',sans-serif; font-size:.85rem; }
.btn-edit:hover { background:rgba(59,130,246,.25); }
.btn-del { background:rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.3); color:#f87171; border-radius:8px; padding:6px 14px; cursor:pointer; font-family:'Nunito',sans-serif; font-size:.85rem; }
.btn-del:hover { background:rgba(248,113,113,.25); }

/* Toggle */
.toggle-wrap { display:flex; align-items:center; gap:12px; margin-top:6px; }
.toggle { position:relative; display:inline-block; width:48px; height:26px; }
.toggle input { opacity:0; width:0; height:0; }
.slider { position:absolute; inset:0; background:var(--border); border-radius:99px; transition:background .25s; cursor:pointer; }
.slider::before { content:''; position:absolute; width:20px; height:20px; background:#fff; border-radius:50%; left:3px; top:3px; transition:transform .25s; }
.toggle input:checked + .slider { background:var(--green); }
.toggle input:checked + .slider::before { transform:translateX(22px); }

/* Rate card */
.rate-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.rate-row { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--border); gap:16px; }
.rate-row:last-of-type { border-bottom:none; }
.rate-input-group { display:flex; gap:10px; }
.rate-input-group input { background:var(--bg2); border:1px solid var(--border); border-radius:10px; color:var(--text); padding:9px 13px; font-size:.95rem; font-family:'Nunito',sans-serif; width:130px; }
.rate-input-group input:focus { outline:none; border-color:var(--accent); }
.rate-input-group button { background:var(--accent); border:none; border-radius:10px; color:#fff; font-family:'Nunito',sans-serif; font-size:.9rem; font-weight:700; padding:9px 18px; cursor:pointer; }
.rate-status { color:var(--green); font-size:.85rem; margin-top:12px; min-height:18px; }
.rate-note { color:var(--muted); font-size:.82rem; margin-top:8px; }

/* ===== KEYFRAMES ===== */
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes loadBar { 0% { width:0%; } 30% { width:40%; } 70% { width:75%; } 100% { width:100%; } }
@keyframes bounce { from { transform:translateY(0); } to { transform:translateY(-14px); } }
@keyframes floatBounce { from { transform:translateY(0) rotate(-4deg); } to { transform:translateY(-12px) rotate(4deg); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pulse { from { transform:scale(1); opacity:.2; } to { transform:scale(1.15); opacity:.38; } }
@keyframes floatUp { 0% { transform:translateY(100vh) scale(.5); opacity:0; } 10% { opacity:.15; } 90% { opacity:.12; } 100% { transform:translateY(-10vh) scale(1); opacity:0; } }
@keyframes driftAround { 0% { transform:translate(0,0) rotate(0deg); } 25% { transform:translate(30px,-40px) rotate(90deg); } 50% { transform:translate(-20px,-80px) rotate(180deg); } 75% { transform:translate(-40px,-30px) rotate(270deg); } 100% { transform:translate(0,0) rotate(360deg); } }
@keyframes cartPop { 0% { transform:scale(1); } 40% { transform:scale(1.2) rotate(-8deg); } 70% { transform:scale(.95); } 100% { transform:scale(1); } }
@keyframes badgePop { 0% { transform:scale(0); } 70% { transform:scale(1.25); } 100% { transform:scale(1); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .admin-sidebar { width:100%; height:auto; min-height:unset; position:relative; flex-direction:row; flex-wrap:wrap; align-items:center; padding:12px 16px; }
  .admin-sidebar .brand { padding:0; border:none; margin:0; }
  .admin-sidebar nav { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
  .nav-btn { width:auto; padding:7px 12px; font-size:.82rem; }
  #admin-panel { flex-direction:column; }
  .admin-main { padding:20px 16px; }
  .admin-product-item { flex-wrap:wrap; }
  .admin-product-actions { width:100%; justify-content:flex-end; }
  .rate-row { flex-direction:column; align-items:flex-start; gap:10px; }
}

/* ===== FACTURA & VENTAS (DISEÑO NO TOCAR) ===== */
#invoice-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 9, 23, 0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.invoice-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 400px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: fadeInUp 0.4s ease;
}
.invoice-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-weight: bold; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.invoice-close:hover { background: rgba(248,113,113,0.8); transform: scale(1.1); }
.invoice-header {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  padding: 28px 24px; text-align: center; color: #fff;
}
.invoice-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 2px; color: #fff;}
.invoice-header p { color: rgba(255,255,255,0.85); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.invoice-body { padding: 24px; background: var(--card); }
.inv-pro-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.inv-pro-img { width: 75px; height: 75px; object-fit: cover; border-radius: 14px; border: 2px solid var(--border); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.inv-pro-title h4 { font-family: 'Orbitron', sans-serif; font-size: 1.35rem; margin-bottom: 6px; color: var(--text); line-height: 1.1; }
.inv-pro-title span { background: rgba(34,197,94,0.15); color: var(--green); padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.inv-pro-divider { border-bottom: 1px dashed var(--border); margin: 0 0 20px 0; }
.inv-pro-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.95rem; }
.inv-pro-row span { color: var(--muted); font-weight: 600; }
.inv-pro-row strong { color: var(--text); font-weight: 800; text-align: right; max-width: 60%; word-break: break-word;}
.invoice-footer {
  background: var(--bg2); padding: 20px; text-align: center;
  color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border);
}
.invoice-footer span { display: block; color: var(--accent); font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }

/* Stats y ventas */
.sales-stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-box {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; flex: 1; min-width: 200px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.stat-box span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.stat-box strong { font-size: 2.4rem; color: var(--accent); font-family: 'Orbitron', sans-serif; line-height: 1;}

/* Ajustes visuales solicitados */
.opt-pill{min-height:96px;}
.opt-pill-icon{
width:32px!important;
height:32px!important;
max-width:32px!important;
max-height:32px!important;
object-fit:contain!important;
}
.pay-data-box{
border-radius:18px;
box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.pay-info-item{
background:rgba(255,255,255,.03);
border-radius:12px;
}
@media (max-width:768px){
.opt-pill{padding:8px;min-height:88px;}
.opt-pill-icon{width:28px!important;height:28px!important;}
.pay-box{width:95vw!important;padding:18px!important;}
}
#payment-modal, #recharge-modal{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pay-overlay{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,.6);
  z-index:1;
}
.pay-box{
  position:relative;
  z-index:2;
  max-height:90vh;
  overflow-y:auto;
}
.pay-methods{
  display:flex;
  gap:12px;
}
.pay-method-btn{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:16px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:14px;
  cursor:pointer;
  transition:.2s;
}
.pay-method-btn:hover{
  border-color:#a855f7;
  transform:translateY(-2px);
}
.pay-method-btn img{
  width:48px;
  height:48px;
  object-fit:contain;
}
.pay-method-name{
  font-weight:700;
  font-size:.9rem;
}
.pay-method-note{
  font-size:.72rem;
  color:var(--muted);
}
.pay-qr-link{display:flex!important;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(135deg,rgba(168,85,247,.15),rgba(168,85,247,.05))!important;
  border:1px solid rgba(168,85,247,.4)!important;border-radius:12px!important;
  padding:10px 14px!important;text-decoration:none!important;transition:.2s;}
.pay-qr-link:hover{border-color:#a855f7!important;transform:translateY(-1px);}