/* ─── FUENTES ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ─── VARIABLES ────────────────────────────────────────────── */
:root {
  --bg:       #04040e;
  --bg2:      #080818;
  --bg3:      #0d0d25;
  --card:     #0a0a1e;
  --coral:    #0055A4;
  --cyan:     #00A8E8;
  --pink:     #FFD700;
  --gold:     #FFD700;
  --white:    #e8e8f0;
  --muted:    #6b6b8a;
  --border:   rgba(0,168,232,0.15);
  --glow-c:   0 0 20px rgba(0,168,232,0.4);
  --glow-r:   0 0 20px rgba(0,85,164,0.4);
  --glow-p:   0 0 20px rgba(255,215,0,0.4);
  --glow-g:   0 0 20px rgba(255,215,0,0.4);
  --radius:   12px;
  --font-h:   'Orbitron', monospace;
  --font-b:   'Rajdhani', sans-serif;
  --wa:       #25d366;
}

/* ─── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fondo grid cyberpunk */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,168,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,232,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── TIPOGRAFÍA ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; }
p { font-family: var(--font-b); font-weight: 400; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }

/* ─── NAVBAR ───────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(4,4,14,0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
#nav.scrolled { background: rgba(4,4,14,0.92); }

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
}
.nav-logo span { color: var(--coral); }
.nav-logo em {
  color: var(--cyan);
  font-style: normal;
  font-size: .75rem;
  display: block;
  letter-spacing: 3px;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-login {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 1px;
  padding: .45rem 1.2rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}
.btn-nav-login:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-c);
}

.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all .3s;
}

/* Mobile menu */
.mob-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(4,4,14,0.97);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mob-menu a:hover { color: var(--cyan); }

/* ─── BOTONES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 rgba(0,85,164,0);
}
.btn-primary:hover {
  background: #004080;
  box-shadow: var(--glow-r);
  transform: translateY(-2px);
}

.btn-cyan {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-cyan:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-c);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  font-size: 1.05rem;
  padding: .85rem 2rem;
}
.btn-wa:hover {
  background: #1ebe5d;
  box-shadow: 0 0 25px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  box-shadow: var(--glow-g);
  transform: translateY(-2px);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,85,164,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,168,232,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(255,215,0,0.06) 0%, transparent 70%);
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,168,232,0.3);
  padding: .35rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  background: rgba(0,168,232,0.05);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero h1 .line-coral { color: var(--coral); }
.hero h1 .line-cyan  { color: var(--cyan); }

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Línea decorativa animada */
.hero-line {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--coral), transparent);
}

/* ─── SECCIÓN MARCAS ────────────────────────────────────────── */
.brands {
  padding: 5rem 2rem;
  position: relative;
}

.brands-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.brand-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.brand-card.brilla::before { background: linear-gradient(90deg, var(--coral), var(--gold)); }
.brand-card.rena::before   { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.brand-card:hover { transform: translateY(-4px); border-color: rgba(0,168,232,0.3); }

.brand-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.brand-card h3 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
  color: var(--white);
}
.brand-card h3 span { color: var(--coral); }
.brand-card.rena h3 span { color: var(--cyan); }
.brand-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag {
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: .25rem .75rem;
  border-radius: 50px;
  background: rgba(0,85,164,0.12);
  color: var(--coral);
  border: 1px solid rgba(0,85,164,0.25);
  text-transform: uppercase;
}
.tag.cyan {
  background: rgba(0,168,232,0.08);
  color: var(--cyan);
  border-color: rgba(0,168,232,0.2);
}

/* ─── CATÁLOGO ──────────────────────────────────────────────── */
.catalog {
  padding: 4rem 2rem 6rem;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: .5rem;
}
.section-title h2 span { color: var(--coral); }
.section-title p { color: var(--muted); font-size: 1.05rem; }

/* Filtros */
.filters {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  padding: .7rem 1rem .7rem 2.8rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--cyan); }
.search-box svg {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  min-width: 160px;
}
.filter-select:focus { border-color: var(--cyan); }
.filter-select option { background: var(--bg2); }

.filter-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.pill:hover, .pill.on { border-color: var(--cyan); color: var(--cyan); background: rgba(0,168,232,0.08); }
.pill.brilla.on { border-color: var(--coral); color: var(--coral); background: rgba(0,85,164,0.08); }

/* Grilla de productos */
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de producto */
.prod-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s;
  position: relative;
}
.prod-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  pointer-events: none;
}
.prod-card:hover {
  transform: translateY(-6px);
}
.prod-card:hover::after {
  border-color: var(--cyan);
  box-shadow: var(--glow-c);
}
.prod-card.brilla:hover::after {
  border-color: var(--coral);
  box-shadow: var(--glow-r);
}

.prod-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}
.prod-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  font-size: 3.5rem;
}

.prod-body {
  padding: 1.25rem;
}

.prod-linea {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.prod-linea.brilla { background: rgba(0,85,164,0.15); color: var(--coral); }
.prod-linea.rena   { background: rgba(0,168,232,0.1); color: var(--cyan); }

.prod-nombre {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.prod-cat {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.prod-wa-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--wa);
  font-weight: 600;
}

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state .emoji { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.4rem; color: var(--white); margin-bottom: .5rem; }

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,4,14,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid rgba(0,168,232,0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0,168,232,0.1), 0 0 120px rgba(0,85,164,0.05);
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.modal-img-placeholder {
  width: 100%;
  height: 220px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-radius: 16px 16px 0 0;
}

.modal-body {
  padding: 2rem;
}

.modal-linea { margin-bottom: 1rem; }

.modal-nombre {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}

.modal-cat {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1rem;
}

.modal-desc {
  color: rgba(232,232,240,.8);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.modal-desc:empty::before {
  content: 'Contáctanos para conocer más detalles de este producto.';
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(0,85,164,0.3); }

/* ─── WA FLOTANTE ───────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--wa);
  color: #fff;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: all .25s;
  overflow: hidden;
}
.wa-fab:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(37,211,102,0.55);
}
.wa-fab svg { flex-shrink: 0; }

/* ─── TOAST ─────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  z-index: 9999;
  transition: transform .35s ease;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.ok   { border-color: var(--cyan);  color: var(--cyan); }
#toast.err  { border-color: var(--coral); color: var(--coral); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  position: relative;
}
footer .footer-logo {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: .5rem;
}
footer .footer-logo span { color: var(--coral); }

/* ─── LOGIN / REGISTER ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 5rem;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(0,168,232,0.06);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .name {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}
.auth-logo .name span { color: var(--coral); }
.auth-logo p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .7rem;
  cursor: pointer;
  transition: all .2s;
}
.auth-tab.on {
  background: var(--cyan);
  color: var(--bg);
}

/* ─── FORMULARIOS ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--bg2); }

/* ─── ADMIN PANEL ───────────────────────────────────────────── */
.admin-page {
  min-height: 100vh;
  padding: 5rem 2rem 3rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h1 { font-size: 1.8rem; color: var(--white); }
.admin-header h1 span { color: var(--coral); }

/* Estadísticas admin */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-n {
  font-family: var(--font-h);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}
.stat-card .stat-label {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tabs admin */
.admin-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.admin-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}
.admin-tab.on {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,168,232,0.08);
}

/* Tabla admin */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-b);
}
.admin-table th {
  background: var(--bg3);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .85rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--white);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 50px;
}
.badge-brilla { background: rgba(0,85,164,0.15); color: var(--coral); }
.badge-rena   { background: rgba(0,168,232,0.1);  color: var(--cyan); }
.badge-on     { background: rgba(0,255,100,0.12); color: #00ff64; }
.badge-off    { background: rgba(0,85,164,0.1);  color: var(--muted); }

.action-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.btn-sm {
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
}
.btn-edit  { color: var(--cyan);  border-color: var(--cyan);  }
.btn-edit:hover  { background: var(--cyan);  color: var(--bg); }
.btn-del   { color: var(--coral); border-color: var(--coral); }
.btn-del:hover   { background: var(--coral); color: #fff; }
.btn-copy  { color: var(--gold);  border-color: var(--gold);  }
.btn-copy:hover  { background: var(--gold);  color: var(--bg); }
.btn-toggle { color: var(--muted); border-color: var(--muted); }
.btn-toggle:hover { color: var(--white); border-color: var(--white); }

/* Panel lateral de formulario */
.form-panel {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1500;
  overflow-y: auto;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.form-panel.open { transform: translateX(0); }

.form-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.form-panel-header h2 {
  font-size: 1.3rem;
  color: var(--white);
}
.form-panel-header h2 span { color: var(--cyan); }
.panel-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color .2s;
}
.panel-close:hover { color: var(--coral); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .ham { display: flex; }

  .brands-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.2rem; }

  .filters { flex-direction: column; }
  .search-box { width: 100%; }

  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }

  .admin-page { padding: 5rem 1rem 2rem; }
  .form-panel { max-width: 100%; }

  .wa-fab span { display: none; }
  .wa-fab { padding: .9rem; border-radius: 50%; }
}

/* ─── ANIMACIONES AOS ───────────────────────────────────────── */
.aos {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.aos.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LOADER ────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  grid-column: 1 / -1;
}
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Imagen preview en admin */
.img-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: .5rem;
  display: none;
}
.img-preview.show { display: block; }

/* === NUEVAS SECCIONES SEO === */

/* Seccion: Acerca del Cupo Brilla */
.about-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.1rem; }
.about-text strong { color: var(--white); }
.about-features { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.feature-item { display: flex; align-items: center; gap: .5rem; color: var(--cyan); font-weight: 600; }
.about-image { text-align: center; }

/* Testimonios */
.testimonials-section { padding: 5rem 2rem; background: var(--bg2); }
.testimonials-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: transform .3s; }
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(0,168,232,0.3); }
.testimonial-rating { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--muted); font-style: italic; margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { color: var(--cyan); font-weight: 600; }

/* FAQ */
.faq-section { padding: 5rem 2rem; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-toggle { display: none; }
.faq-question { display: block; padding: 1rem 1.5rem; cursor: pointer; color: var(--white); font-weight: 600; font-family: var(--font-b); position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 1.5rem; color: var(--cyan); font-size: 1.5rem; transition: transform .3s; }
.faq-toggle:checked + .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); padding: 0 1.5rem; }
.faq-toggle:checked + .faq-question + .faq-answer { padding: 1rem 1.5rem; max-height: 500px; }

/* Responsive */
@media (max-width: 768px) {
  .about-section { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
