/* ═══════════════════════════════════════════════════════════
   KRREON ESPORTS — Main Stylesheet
   Dark mode · Esports Premium · Mobile-first
═══════════════════════════════════════════════════════════ */

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

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --black:      #07070a;
  --dark:       #0d0d14;
  --dark-2:     #13131f;
  --dark-3:     #1a1a2e;
  --purple:     #7b2fff;
  --purple-2:   #9d4fff;
  --purple-glow:#7b2fff44;
  --blue:       #00d4ff;
  --blue-glow:  #00d4ff33;
  --white:      #f0f0ff;
  --grey:       #8888aa;
  --grey-2:     #44445a;
  --success:    #00e676;
  --error:      #ff3d57;
  --warning:    #ffb800;
  --font-display: 'Oxanium', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-glow: 0 0 30px var(--purple-glow);
  --shadow-blue: 0 0 30px var(--blue-glow);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── TIPOGRAFÍA ────────────────────────────────────────────── */
.display { font-family: var(--font-display); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

/* ── UTILIDADES ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: 5rem 0; }
.text-center { text-align: center; }
.text-purple { color: var(--purple-2); }
.text-blue   { color: var(--blue); }
.text-grey   { color: var(--grey); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid        { display: grid; }
.gap-1       { gap: 1rem; }
.gap-2       { gap: 1.5rem; }
.gap-3       { gap: 2rem; }
.mt-1        { margin-top: 1rem; }
.mt-2        { margin-top: 1.5rem; }
.mt-3        { margin-top: 2rem; }
.mb-1        { margin-bottom: 1rem; }
.mb-2        { margin-bottom: 1.5rem; }

/* ── GRADIENTES / DECORATIVOS ──────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-purple { text-shadow: 0 0 20px var(--purple-glow), 0 0 60px var(--purple-glow); }
.glow-blue   { text-shadow: 0 0 20px var(--blue-glow), 0 0 60px var(--blue-glow); }

/* ── BOTONES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: var(--white);
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
  filter: brightness(1.1);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--grey-2);
}
.btn-secondary:hover {
  border-color: var(--purple-2);
  color: var(--purple-2);
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-blue {
  background: linear-gradient(135deg, #0088cc, var(--blue));
  color: var(--black);
  font-weight: 800;
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,7,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123,47,255,0.15);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(7,7,10,0.98);
  border-bottom-color: rgba(123,47,255,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(123,47,255,0.12);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cart-icon {
  position: relative;
  padding: 0.5rem;
  color: var(--grey);
  transition: var(--transition);
}
.cart-icon:hover { color: var(--blue); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--purple);
  color: white;
  font-size: 0.65rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(123,47,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0,212,255,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--purple-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--grey);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-2);
  animation: fadeSlideUp 0.7s ease 0.4s both;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-2);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.15;
  pointer-events: none;
}

/* ── SECCIÓN TÍTULO ────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 0.75rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--grey);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(123,47,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), var(--shadow-glow);
}

/* ── SERVICIOS ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(123,47,255,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.service-card.featured {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(123,47,255,0.1), var(--dark-2));
}
.service-card.featured::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(123,47,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.service-duration {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--purple-2);
  margin: 1rem 0;
}
.service-price small { font-size: 1rem; color: var(--grey); }
.service-benefits {
  margin: 1rem 0 1.5rem;
}
.service-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--grey);
}
.service-benefits li::before {
  content: '✓';
  color: var(--purple-2);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── COACHES ───────────────────────────────────────────────── */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.coach-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.coach-card:hover {
  border-color: rgba(123,47,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}
.coach-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.coach-img img { width: 100%; height: 100%; object-fit: cover; }
.coach-body { padding: 1.5rem; }
.coach-rank {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--purple-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.coach-specialty {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.coach-logros {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.coach-logros span {
  font-size: 0.8rem;
  color: var(--grey);
}
.coach-logros span::before { content: '🏆 '; }

/* ── SHOP / PRODUCTOS ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  border-color: rgba(123,47,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark-3), var(--dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-sale { background: var(--error); color: white; }
.badge-new  { background: var(--success); color: var(--black); }
.badge-digital { background: var(--blue); color: var(--black); }
.product-body { padding: 1.25rem; }
.product-cat  { font-size: 0.75rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-family: var(--font-heading); font-weight: 600; margin: 0.25rem 0 0.75rem; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-2);
}
.product-price .original {
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.product-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* ── FORMULARIOS ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-3);
  border: 1.5px solid var(--grey-2);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.form-control::placeholder { color: var(--grey-2); }
select.form-control option { background: var(--dark-3); }

/* ── ALERTAS ───────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: var(--success); }
.alert-error   { background: rgba(255,61,87,0.1); border-color: rgba(255,61,87,0.3); color: var(--error); }
.alert-info    { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.3); color: var(--blue); }
.alert-warning { background: rgba(255,184,0,0.1); border-color: rgba(255,184,0,0.3); color: var(--warning); }

/* ── CARRITO FLOTANTE ──────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 420px; max-width: 100vw;
  height: 100vh;
  background: var(--dark-2);
  border-left: 1px solid var(--grey-2);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--grey-2);
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-2);
  align-items: center;
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--purple-2); font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.qty-btn {
  width: 24px; height: 24px;
  background: var(--dark-3);
  border: 1px solid var(--grey-2);
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--purple); color: var(--purple-2); }
.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--grey-2);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple-2);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--grey-2);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { display: block; margin-bottom: 1rem; font-size: 2rem; }
.footer-brand p { color: var(--grey); font-size: 0.9rem; line-height: 1.7; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social-btn {
  width: 38px; height: 38px;
  background: var(--dark-3);
  border: 1px solid var(--grey-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--purple);
  background: rgba(123,47,255,0.1);
  color: var(--purple-2);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--grey); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--purple-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-2);
  color: var(--grey);
  font-size: 0.85rem;
}

/* ── TESTIMONIOS ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial-stars { color: #ffd700; margin-bottom: 0.75rem; font-size: 0.9rem; }
.testimonial-text { color: var(--grey); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.author-name { font-family: var(--font-heading); font-weight: 600; }
.author-tag  { font-size: 0.8rem; color: var(--purple-2); }

/* ── ADMIN PANEL ───────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--dark-2);
  border-right: 1px solid var(--grey-2);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid var(--grey-2);
}
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 0.2rem;
  text-decoration: none;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(123,47,255,0.12);
  color: var(--white);
}
.admin-nav-item.active { color: var(--purple-2); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--grey-2);
  background: var(--dark-2);
}
.admin-content { padding: 2rem; flex: 1; }
.admin-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--purple-2);
}
.stat-label { font-size: 0.85rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── TABLA ADMIN ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  border-bottom: 1px solid var(--grey-2);
  background: var(--dark-3);
}
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(68,68,90,0.4);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(123,47,255,0.04); }
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pendiente { background: rgba(255,184,0,0.15); color: var(--warning); }
.status-confirmada, .status-pagada { background: rgba(0,230,118,0.15); color: var(--success); }
.status-cancelada  { background: rgba(255,61,87,0.15); color: var(--error); }
.status-completada { background: rgba(0,212,255,0.15); color: var(--blue); }

/* ── PAGINACIÓN ────────────────────────────────────────────── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  color: var(--grey);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--purple);
  color: var(--purple-2);
  background: rgba(123,47,255,0.1);
}

/* ── BLOG ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: rgba(123,47,255,0.4); transform: translateY(-4px); }
.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark-3), var(--dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.5rem; }
.blog-date { font-size: 0.8rem; color: var(--grey); margin-bottom: 0.5rem; }
.blog-title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-excerpt { font-size: 0.9rem; color: var(--grey); line-height: 1.6; }
.blog-read { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--purple-2); font-size: 0.85rem; margin-top: 1rem; font-weight: 600; }

/* ── ANIMACIONES ───────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.fade-in { animation: fadeSlideUp 0.6s ease both; }
.float   { animation: float 4s ease-in-out infinite; }

/* Intersection Observer fade */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 220px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--dark);
    padding: 1rem;
    border-bottom: 1px solid var(--grey-2);
    z-index: 999;
  }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; }
  .section { padding: 3.5rem 0; }
  .cart-sidebar { width: 100%; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}
