/* ===== BRILUXE STYLES ===== */
/* Dark luxury automotive detailing theme */

/* Fonts are loaded via <link> in HTML for better performance */

:root {
  --bg: #060606;
  --bg2: #0a0a0a;
  --bg3: #111111;
  --card: #0d0d0d;
  --border: #1e1e1e;
  --gold: #AAFF00;
  --gold-light: #C8FF44;
  --gold-dim: rgba(170,255,0,0.1);
  --white: #ffffff;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --gray: #777;
  --gray-light: #aaa;
  --red: #e05252;
  --green: #52e07a;
  --acid: #AAFF00;
  --acid-dim: rgba(170,255,0,0.08);
  --acid-glow: rgba(170,255,0,0.22);
  --shine: rgba(255,255,255,0.85);
  --silver: rgba(255,255,255,0.55);
  --radius: 12px;
  --shadow: 0 12px 48px rgba(0,0,0,0.7);
  --glow-sm: 0 0 12px rgba(170,255,0,0.4);
  --glow-md: 0 0 30px rgba(170,255,0,0.35), 0 0 60px rgba(170,255,0,0.15);
  --glass: rgba(12,12,12,0.78);
  --glass-border: rgba(255,255,255,0.055);
  --glass-border-green: rgba(170,255,0,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  overflow: visible;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  will-change: transform;
  contain: layout style;
}

.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-decoration: none;
  user-select: none;
  text-shadow: var(--glow-sm);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-img {
  height: 130px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.cart-icon {
  position: relative;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.cart-icon:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nav {
  background: transparent;
  border: 1px solid rgba(170,255,0,0.5);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-nav:hover { background: var(--gold); color: #000; }
.btn-nav.danger { border-color: var(--red); color: var(--red); }
.btn-nav.danger:hover { background: var(--red); color: #fff; }

.nav-avatar { text-decoration: none; }
.avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(170,255,0,0.08);
  border: 1.5px solid rgba(170,255,0,0.5);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(170,255,0,0.2);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
  will-change: transform;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-primary.full { width: 100%; text-align: center; }
.btn-primary.small { padding: 0.4rem 1rem; font-size: 0.8rem; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { border-color: var(--gray); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 4rem;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.3);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(6,6,6,0.88),
              radial-gradient(ellipse at 72% 42%, rgba(170,255,0,0.10) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 75%, rgba(170,255,0,0.05) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.hero-content { z-index: 2; }
.hero-visual { z-index: 2; }

.hero-tag {
  display: inline-block;
  background: rgba(170,255,0,0.08);
  border: 1px solid rgba(170,255,0,0.35);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px rgba(170,255,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--gold); text-shadow: var(--glow-md); }

.hero-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.car-glow {
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170,255,0,0.18) 0%, rgba(170,255,0,0.06) 40%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.product-float {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.float-card {
  width: 120px; height: 120px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow);
  will-change: transform;
  overflow: hidden;
}
.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.float-card.delay { animation-delay: 1s; align-self: flex-end; }
.float-card.delay2 { animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 2rem;
}
.section-title .accent {
  color: var(--gold);
  text-shadow: var(--glow-sm);
}

.page-header {
  padding-top: calc(64px + 3rem);
  padding-bottom: 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(170,255,0,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  letter-spacing: 4px;
  color: var(--white);
}
.page-header p { color: var(--gray); margin-top: 0.5rem; }

/* ===== CATEGORIES ===== */
.categories {
  padding: 5rem 4rem;
  background: var(--bg2);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s;
  text-align: center;
  will-change: transform;
  contain: layout style;
}
.cat-card:hover {
  border-color: rgba(170,255,0,0.4);
  transform: translateY(-5px);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cat-card p { color: var(--gray); font-size: 0.8rem; }

/* ===== PRODUCTS ===== */
.featured {
  padding: 5rem 4rem;
}

.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured home: siempre 4 columnas en desktop */
.featured-inner .products-grid {
  grid-template-columns: repeat(4, 1fr);
  justify-content: unset;
}
@media (max-width: 900px) {
  .featured-inner .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .featured-inner .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.link-all {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.link-all:hover { opacity: 0.7; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.product-card:hover {
  border-color: rgba(170,255,0,0.45);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(170,255,0,0.08);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  padding: 1rem 1rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-cat {
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  margin-bottom: 0.4rem;
}
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.card-btn-cart {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  border: none;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.card-btn-cart:hover { opacity: 0.85; }
.card-btn-cart:disabled { opacity: 0.35; cursor: not-allowed; }
.card-btn-detail {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(170,255,0,0.35);
  background: transparent;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.card-btn-detail:hover { background: rgba(170,255,0,0.08); }

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
}

.add-btn {
  background: var(--gold-dim);
  border: 1px solid rgba(170,255,0,0.4);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.add-btn:hover { background: var(--gold); color: #000; }
.add-btn.icon-only {
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-btn.icon-only svg { display: block; }
.add-btn.icon-only:hover { background: transparent; }

.stock-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(82,224,122,0.1);
  color: var(--green);
  border: 1px solid rgba(82,224,122,0.2);
}
.stock-badge.out {
  background: rgba(224,82,82,0.1);
  color: var(--red);
  border-color: rgba(224,82,82,0.2);
}

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 5rem 4rem;
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nos-text h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.nos-text h2 span { color: var(--gold); }
.nos-text p { color: var(--gray); line-height: 1.7; margin-bottom: 1.5rem; }

.nos-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.nos-list li { color: var(--gray-light); font-size: 0.9rem; }

.nos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat span {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.stat p { color: var(--gray); font-size: 0.8rem; margin-top: 0.3rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg2);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-brand p { color: var(--gray); font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: #444; font-size: 0.75rem; width: 100%; text-align: center; }
.footer-social { display: flex; gap: 1.2rem; align-items: center; }
.footer-social a {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--gray); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }

/* ===== AUTH PAGE ===== */
.auth-page { background: var(--bg); }

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(170,255,0,0.04);
}

.tab-content { display: none; padding: 2rem; }
.tab-content.active { display: block; }

.tab-content h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}
.auth-sub { color: var(--gray); font-size: 0.85rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; }

.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-area:hover { border-color: var(--gold); }
.image-upload-placeholder { color: var(--gray); font-size: 0.85rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.divider {
  text-align: center;
  margin: 1.2rem 0;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.divider span { color: var(--gray); font-size: 0.8rem; }

.btn-google {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
  text-align: center;
}
.btn-google:hover { border-color: var(--gray); }

.auth-error {
  background: rgba(224,82,82,0.1);
  border: 1px solid rgba(224,82,82,0.3);
  color: var(--red);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ── Password input con toggle de visibilidad ──────────── */
.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-input-wrap input {
  flex: 1;
  padding-right: 2.6rem !important;
}
.pw-toggle {
  position: absolute;
  right: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
  color: var(--gray);
  opacity: 1;
  transition: color 0.15s;
  user-select: none;
}
.pw-toggle:hover { color: var(--white); }

/* ── Password strength meter ───────────────────────────── */
.pw-strength-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.pw-strength-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 72px;
  text-align: right;
}
.pw-hints {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  line-height: 1.4;
  min-height: 1.1rem;
}

/* ===== PRODUCTS PAGE ===== */
.products-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filters h3 {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.filters h3:first-child { margin-top: 0; }

.filter-group { display: flex; flex-direction: column; gap: 0.4rem; }

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray-light);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover { border-color: var(--gray); color: var(--white); }
.filter-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.serie-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray-light);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.serie-btn::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.serie-btn[data-serie="acid"]::before    { background: #ff6b35; }
.serie-btn[data-serie="diamond"]::before { background: #7dd3fc; }
.serie-btn[data-serie="black"]::before   { background: #555; }
.serie-btn[data-serie="gold"]::before    { background: var(--gold); }
.serie-btn[data-serie="classic"]::before { background: #a78bfa; }
.serie-btn:hover  { border-color: var(--gray); color: var(--white); }
.serie-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  margin-bottom: 0.5rem;
}
#priceLabel { font-size: 0.85rem; color: var(--gold); }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.products-toolbar span { color: var(--gray); font-size: 0.85rem; }
.products-toolbar select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.toolbar-selects {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Hidden on desktop, shown on mobile via media query */
.mobile-cat-select { display: none; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

/* ===== PRODUCT MODAL LAYOUT ===== */
/* ── Product modal — desktop 2-col layout ─────────────────── */
.product-modal {
  padding: 0 !important;
  overflow: hidden;
  width: 90vw;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  height: 85vh;
  max-height: 85vh;
}

/* Left column: sticky image */
.pm-img-col {
  width: 44%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  padding: 1.5rem;
  box-sizing: border-box;
}

.pm-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.pm-img-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.pm-discount-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Modal body: row on desktop (img-col + scroll-body side by side) */
#modalBody,
#modalContent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.pm-scroll-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.pm-body {
  padding: 1.75rem 1.75rem 0.75rem;
}
.pm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.pm-cat {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pm-title {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--white);
}
.pm-desc {
  font-size: 0.88rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
}
.pm-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.pm-price-original {
  font-size: 1.1rem;
  color: var(--gray);
  text-decoration: line-through;
}

.pm-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}

/* Close button — top-right of the whole modal */
.product-modal .modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.product-modal .modal-close:hover {
  background: rgba(0,0,0,0.8);
  color: var(--white);
}

/* ── Mobile: single column ────────────────────────────────── */
@media (max-width: 700px) {
  .product-modal {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .pm-img-col {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
  }
  #modalBody, #modalContent { flex-direction: column; }
  .pm-scroll-body { border-left: none; border-top: 1px solid var(--border); }
  .pm-body { padding: 1.25rem 1.2rem 0.75rem; }
  .pm-footer { padding: 0.9rem 1.2rem 1.2rem; }
  .pm-title { font-size: 1.2rem; }
  .pm-price { font-size: 1.6rem; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }

.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: flex-end; }

/* ===== CART PAGE ===== */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-items-container { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cart-item-img {
  width: 70px; height: 70px;
  background: var(--bg3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; margin-bottom: 0.2rem; }
.cart-item-price { color: var(--gold); font-size: 0.9rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.qty-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.qty-btn:hover { border-color: var(--gold); }

.qty-num { font-size: 0.9rem; min-width: 20px; text-align: center; }

.remove-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 0.3rem;
}
.remove-btn:hover { color: var(--red); }

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-empty h3 { margin-bottom: 0.5rem; font-weight: 500; }
.cart-empty p { color: var(--gray); margin-bottom: 1.5rem; }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.cart-summary h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}
.summary-line.total {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.summary-line.total span:last-child { color: var(--gold); }

.checkout-form { margin-bottom: 1.2rem; }
.checkout-form h4 {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s;
}
.checkout-form input:focus,
.checkout-form textarea:focus { border-color: var(--gold); }
.checkout-form textarea { resize: none; }

.checkout-note { color: var(--gray); font-size: 0.75rem; text-align: center; margin-top: 0.7rem; }

.success-modal { text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-modal h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 0.7rem;
}
.success-modal p { color: var(--gray); margin-bottom: 0.5rem; font-size: 0.9rem; }
.order-num { color: var(--gold); font-weight: 600; margin-bottom: 1.5rem !important; }

/* ===== PROFILE ===== */
.profile-header-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.page-header #profileEmail { color: var(--gray); font-size: 0.9rem; }

.role-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(170,255,0,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}
.role-badge.admin {
  background: rgba(82,224,122,0.1);
  border-color: rgba(82,224,122,0.3);
  color: var(--green);
}

.profile-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.profile-section h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.order-id { font-size: 0.8rem; color: var(--gray); }
.order-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-pendiente  { background: rgba(170,255,0,0.1);  color: var(--gold);  border: 1px solid rgba(170,255,0,0.2); }
.status-confirmado { background: rgba(82,224,122,0.1); color: var(--green); border: 1px solid rgba(82,224,122,0.2); }
.status-enviado    { background: rgba(82,122,224,0.1); color: #7b9cf0;      border: 1px solid rgba(82,122,224,0.2); }
.status-entregado  { background: rgba(82,224,82,0.1);  color: #52e052;      border: 1px solid rgba(82,224,82,0.2); }
.status-cancelado  { background: rgba(224,82,82,0.1);  color: #f87171;      border: 1px solid rgba(224,82,82,0.2); }

.order-total { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.order-date  { color: var(--gray); font-size: 0.8rem; }

.order-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.order-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-order-edit {
  background: transparent;
  border: 1px solid rgba(56,189,248,0.5);
  color: #38bdf8;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-order-edit:hover { background: rgba(56,189,248,0.12); }
.btn-order-cancel {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.45);
  color: #f87171;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-order-cancel:hover { background: rgba(239,68,68,0.12); }
.order-editable-note {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.4rem;
}

.success-msg {
  color: var(--green);
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

.not-logged-in {
  text-align: center;
  padding: 8rem 2rem;
}
.not-logged-in h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
}
.not-logged-in p { color: var(--gray); margin-bottom: 2rem; }

/* ===== ADMIN ===== */
.admin-body { background: var(--bg); }
.admin-nav { background: rgba(10,10,10,0.98); border-bottom-color: rgba(170,255,0,0.2); }
.admin-tag {
  font-size: 0.6rem;
  background: var(--gold-dim);
  border: 1px solid rgba(170,255,0,0.3);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 2px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: calc(64px + 2rem) 4rem 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-card h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.stat-card p { color: var(--gray); font-size: 0.8rem; margin-top: 0.3rem; }

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gray);
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.admin-tab:hover { color: var(--white); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-section { display: none; padding: 0 4rem 4rem; overflow-x: auto; }
.admin-section.active { display: block; }

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.pedido-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pedido-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  transition: border-color 0.2s;
}
.pedido-search-wrap:focus-within { border-color: var(--gold); }
.pedido-search-wrap svg { color: var(--gray); flex-shrink: 0; }
.pedido-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  width: 220px;
}
.pedido-search-wrap input::placeholder { color: var(--gray); }
.section-toolbar h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--gray-light);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.status-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  margin-right: 0.3rem;
}
.action-btn:hover { border-color: var(--gold); color: var(--gold); }
.action-btn.del:hover { border-color: var(--red); color: var(--red); }
.wsp-retiro-btn { border-color: #25D366 !important; color: #25D366 !important; margin-top: 0.35rem; }
.wsp-retiro-btn:hover { background: #25D366 !important; color: #000 !important; }

/* ── Botón factura (perfil) ── */
.btn-invoice {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.btn-invoice:hover { background: var(--gold); color: #000; }

/* ── Botón factura (modal éxito) ── */
.btn-invoice-modal {
  display: block;
  width: 100%;
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.btn-invoice-modal:hover { background: var(--gold); color: #000; }

/* ===== SHINE / GLOW EFFECTS ===== */
.shine-text {
  background: linear-gradient(90deg, var(--gold) 0%, #fff 45%, var(--gold) 55%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine-move 3s linear infinite;
}
@keyframes shine-move {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Glow line separator */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(255,255,255,0.6), var(--gold), transparent);
  border: none;
  margin: 0;
  box-shadow: 0 0 12px rgba(170,255,0,0.3);
}

/* Stat cards glow on hover */
.stat:hover {
  border-color: rgba(170,255,0,0.3);
  box-shadow: 0 0 20px rgba(170,255,0,0.1), inset 0 1px 0 rgba(170,255,0,0.08);
  transition: all 0.3s;
}
.stat span { text-shadow: var(--glow-sm); }

/* Product card accent strip */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170,255,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.product-card { position: relative; }
.product-card:hover::before { opacity: 1; }

/* Input focus glow */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(170,255,0,0.08);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s;
  will-change: transform;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3);
  animation: whatsapp-ping 2s ease-out infinite;
}
@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== LÍNEAS DE PRODUCTO ===== */
.product-lines {
  padding: 6rem 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.product-lines::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(170,255,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.lines-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.lines-header .section-title { margin-bottom: 0.5rem; }
.lines-header p { color: var(--gray); font-size: 0.9rem; letter-spacing: 1px; }

.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.line-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
  will-change: transform;
  contain: layout style;
}
.line-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--line-color, transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: 20px;
}
.line-card:hover { transform: translateY(-8px) scale(1.02); }
.line-card:hover::after { opacity: 1; }
.line-card:hover { box-shadow: 0 24px 64px var(--line-glow, rgba(170,255,0,0.15)), inset 0 1px 0 rgba(255,255,255,0.08); }

/* ACID SERIES */
.line-acid {
  --line-color: rgba(170,255,0,0.04);
  --line-glow: rgba(170,255,0,0.2);
  border-color: rgba(170,255,0,0.2);
  cursor: pointer;
  grid-column: span 1;
}
.line-acid .line-badge-dot { background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.line-acid .line-name { color: var(--acid); text-shadow: 0 0 30px rgba(170,255,0,0.4); }
.line-acid:hover { border-color: rgba(170,255,0,0.45); }

/* Coming soon cards */
.line-soon { cursor: default; opacity: 0.6; }
.line-soon:hover { transform: none; box-shadow: none; }

.line-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
.line-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.line-desc {
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.line-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.badge-active {
  background: rgba(170,255,0,0.1);
  border: 1px solid rgba(170,255,0,0.3);
  color: var(--acid);
}
.badge-soon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
}
.badge-soon .line-badge-dot { background: var(--gray); }

.line-card-main {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 3rem;
}
.line-card-main .line-name { font-size: 3rem; }
.line-card-main .line-desc { font-size: 0.9rem; max-width: 320px; }
.line-main-cta {
  background: var(--acid);
  color: #000;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(170,255,0,0.3);
  margin-top: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.line-main-cta:hover { background: #c0ff33; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(170,255,0,0.45); }

.line-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.acid-orb {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(200,255,80,0.6) 0%, rgba(170,255,0,0.2) 50%, transparent 75%);
  box-shadow: 0 0 80px rgba(170,255,0,0.25), inset 0 0 40px rgba(170,255,0,0.1);
  animation: pulse-acid 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
@keyframes pulse-acid {
  0%, 100% { box-shadow: 0 0 60px rgba(170,255,0,0.25), inset 0 0 30px rgba(170,255,0,0.1); }
  50% { box-shadow: 0 0 100px rgba(170,255,0,0.4), inset 0 0 50px rgba(170,255,0,0.15); }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--bg);
}

.contact-hero {
  padding: 4rem 4rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(170,255,0,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(170,255,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.contact-hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 4rem;
  letter-spacing: 4px;
  margin-bottom: 0.8rem;
  position: relative;
}
.contact-hero p {
  color: var(--gray);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(170,255,0,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.contact-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.icon-phone  { background: rgba(170,255,0,0.1);  border: 1px solid rgba(170,255,0,0.2); }
.icon-email  { background: rgba(100,180,255,0.1); border: 1px solid rgba(100,180,255,0.2); }
.icon-location { background: rgba(170,255,0,0.1); border: 1px solid rgba(170,255,0,0.2); }
.icon-whatsapp { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2); }

.contact-card-content h3 {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact-card-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.contact-card-content span {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}
.contact-card-content a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  transition: opacity 0.2s;
}
.contact-card-content a:hover { opacity: 0.7; }

.contact-form-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  align-self: start;
}
.contact-form-card h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 3px;
  margin-bottom: 0.3rem;
}
.contact-form-card p {
  color: var(--gray);
  font-size: 0.82rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.contact-success {
  text-align: center;
  padding: 2rem 0;
}
.contact-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-success h3 { font-family: 'Bebas Neue', cursive; font-size: 1.8rem; letter-spacing: 2px; color: var(--acid); margin-bottom: 0.5rem; }
.contact-success p { color: var(--gray); font-size: 0.85rem; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.loading-text { color: var(--gray); padding: 2rem; text-align: center; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ===== SEARCH ===== */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-btn {
  background: none;
  border: none;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
  transition: color 0.2s;
}
.search-btn:hover { color: var(--gold); }

.search-expand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  animation: searchSlideIn 0.18s ease;
}
@keyframes searchSlideIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.search-expand input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  width: 200px;
}
.search-expand input::placeholder { color: var(--gray); }
.search-close-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.search-close-btn:hover { color: var(--white); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  animation: searchSlideIn 0.15s ease;
}

.search-result-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.search-result-item:last-of-type { border-bottom: none; }
.search-result-item:hover { background: rgba(170,255,0,0.05); }

.search-result-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.search-result-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.search-result-info { overflow: hidden; }
.search-result-name {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.search-result-price {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.search-result-badge {
  background: var(--gold);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.search-loading,
.search-empty {
  padding: 1.2rem 1rem;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
}
.search-see-all {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  border-top: 1px solid var(--border);
  background: rgba(170,255,0,0.03);
  letter-spacing: 0.5px;
  transition: background 0.15s;
}
.search-see-all:hover { background: rgba(170,255,0,0.07); }

/* Ensure dropdown is always inside viewport */
.search-dropdown {
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  /* On mobile: search overlay covers full navbar */
  .nav-search-wrap.active {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    z-index: 200;
    background: rgba(6,6,6,0.98);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .nav-search-wrap.active .search-btn { display: none; }
  .nav-search-wrap.active .search-expand {
    flex: 1;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
  }
  .nav-search-wrap.active .search-expand input {
    width: 100%;
    font-size: 1rem;
  }
  .search-dropdown {
    width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
    top: 70px;
  }
  .nav-search-wrap:not(.active) .search-expand { display: none; }
}

/* ===== HAMBURGER & MOBILE MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 110;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.2s;
}
.hamburger:hover span { background: var(--gold); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(6,6,6,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.32s ease, opacity 0.28s ease, padding 0.28s ease;
}
.mobile-menu.open {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
  padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  padding-left: 0.4rem;
}

/* ===== RESPONSIVE — TABLET (≤900px) ===== */
@media (max-width: 900px) {
  /* NAV */
  .navbar { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* HERO */
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; text-align: center; }
  .hero-visual { display: none; }
  .hero-cta { justify-content: center; }
  .hero-title { font-size: clamp(2.8rem, 8vw, 5rem); }

  /* PAGE HEADER */
  .page-header { padding: 5.5rem 1.5rem 2rem; }
  .page-header h1 { font-size: clamp(2rem, 7vw, 3.5rem); }

  /* HOME SECTIONS */
  .featured { padding: 3rem 1.5rem; }
  .featured-header { padding: 0; margin-bottom: 1.2rem; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .categories { padding: 3rem 1.5rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* NOSOTROS */
  .nosotros { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .nos-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  /* PRODUCT LINES */
  .product-lines { padding: 4rem 1.5rem; }
  .lines-grid { grid-template-columns: 1fr; }
  .line-card-main { grid-column: span 1; grid-template-columns: 1fr; padding: 2rem; }
  .line-visual { display: none; }

  /* PRODUCTS PAGE */
  .products-page { grid-template-columns: 1fr; padding: 1.5rem 1.2rem; gap: 0; }
  .filters { position: static; margin-bottom: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.75rem; }
  .product-name { font-size: 0.82rem; }
  .product-desc { font-size: 0.72rem; margin-bottom: 0.5rem; }
  .product-cat { font-size: 0.65rem; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .product-price { font-size: 1rem; }
  .btn-add { width: 100%; justify-content: center; padding: 0.5rem 0.6rem; font-size: 0.75rem; }

  /* CART PAGE */
  .cart-page { grid-template-columns: 1fr; padding: 1.5rem 1.2rem; gap: 1.5rem; }
  .cart-summary { position: static; }
  .form-row { grid-template-columns: 1fr; }

  /* PROFILE */
  .profile-container { grid-template-columns: 1fr; padding: 1.5rem 1.2rem; }

  /* CONTACT */
  .contact-page { grid-template-columns: 1fr; padding: 2rem 1.2rem 4rem; }

  /* FILTERS — hide sidebar, show select in toolbar */
  #filtersAside { display: none; }
  .mobile-cat-select { display: block !important; }
  .products-toolbar { flex-wrap: wrap; gap: 0.5rem; }
  .toolbar-selects { flex-wrap: nowrap; gap: 0.5rem; width: 100%; justify-content: space-between; }
  .toolbar-selects select { flex: 1 1 0; min-width: 0; }

  /* MODAL */
  .modal-card { margin: 1rem; padding: 1.5rem; max-height: 90vh; overflow-y: auto; }

  /* ADMIN */
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: calc(64px + 1.2rem) 1.2rem 1.2rem;
  }
  .stat-card { padding: 1.1rem; }
  .stat-card h3 { font-size: 1.8rem; }
  .admin-tabs {
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { white-space: nowrap; padding: 0.9rem 0.9rem; font-size: 0.75rem; flex-shrink: 0; }
  .admin-section { padding: 0 1.2rem 3rem; }
  .section-toolbar { flex-wrap: wrap; gap: 0.8rem; align-items: center; }
  .section-toolbar h2 { font-size: 1.3rem; }
  /* Back-to-top: centrado sobre WhatsApp en mobile */
  .back-to-top {
    display: flex !important;
    /* WhatsApp: bottom:1.2rem right:1.2rem width:58px — back-to-top width:44px */
    bottom: calc(1.2rem + 58px + 12px);
    right: calc(1.2rem + 7px); /* (58-44)/2 = 7px para centrar */
  }
  /* Admin order search on mobile */
  .pedido-search-wrap input { width: 150px; }
  .pedido-filters { width: 100%; }
  /* Contact page mobile */
  .contact-page { grid-template-columns: 1fr !important; padding: 1.5rem 1rem 3rem; gap: 1.5rem; }
  .contact-form-card { padding: 1.2rem; }
  .contact-info h2, .contact-form-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
  .contact-item { gap: 0.8rem; margin-bottom: 1rem; }
  .contact-icon { width: 38px; height: 38px; flex-shrink: 0; }
  .contact-item p { font-size: 0.8rem; }
  .contact-item strong { font-size: 0.9rem; }
  /* Admin tables: horizontal scroll */
  #pedidosTable, #adminProductsTable, #usersTable, #cuponesTable, #combosTable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { min-width: 560px; font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 0.65rem 0.7rem; }

  /* CONTACT */
  .contact-hero h1 { font-size: 2.5rem; }
  .whatsapp-fab { bottom: 1.2rem; right: 1.2rem; }

  /* FOOTER */
  .footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 3rem 1.5rem 2rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.5rem; }
}

/* ===== RESPONSIVE — SMALL PHONES (≤480px) ===== */
@media (max-width: 480px) {
  /* NAV — shrink elements */
  .logo { font-size: 1rem; gap: 0.4rem; }
  .logo-img { height: 105px; width: auto; max-width: 320px; }
  .nav-actions { gap: 0.5rem; }
  .btn-nav { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
  .cart-icon svg { width: 19px; height: 19px; }

  /* HERO */
  .hero { padding: 6rem 1.2rem 2.5rem; }
  .hero-tag { font-size: 0.65rem; }
  .hero-title { font-size: 2.6rem; line-height: 1; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-cta { flex-direction: column; gap: 0.7rem; width: 100%; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; text-align: center; }

  /* PAGE HEADER */
  .page-header { padding: 5rem 1.2rem 1.5rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.82rem; }

  /* PRODUCTS */
  .products-page { padding: 0.8rem 0.9rem; }
  .products-grid { gap: 0.6rem; }
  .product-card { border-radius: 10px; }
  .product-info { padding: 0.6rem; }
  .product-name { font-size: 0.78rem; }
  .product-price { font-size: 0.9rem; }
  .btn-add { font-size: 0.72rem; padding: 0.45rem 0.5rem; }

  /* CART */
  .cart-page { padding: 1rem 0.9rem; }
  .cart-item { gap: 0.8rem; padding: 0.9rem; }
  .cart-item-img { width: 50px; height: 50px; font-size: 1.8rem; }
  .cart-summary { padding: 1.2rem; }
  .checkout-form input, .checkout-form textarea { font-size: 0.85rem; padding: 0.6rem 0.8rem; }
  .delivery-options, .payment-options { gap: 0.4rem; }

  /* MODAL */
  .modal-card { margin: 0.5rem; padding: 1.2rem; border-radius: 12px; }
  .modal-card h3 { font-size: 1.2rem; }

  /* PROFILE */
  .profile-container { padding: 1rem 0.9rem; }
  .page-header .profile-header-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
  .page-header h1 { font-size: 1.6rem; }

  /* ADMIN */
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: calc(64px + 0.9rem) 0.9rem 0.9rem;
  }
  .stat-card { padding: 0.9rem; }
  .stat-card h3 { font-size: 1.5rem; }
  .stat-card p { font-size: 0.72rem; }
  .admin-tab { padding: 0.75rem 0.7rem; font-size: 0.7rem; }
  .admin-section { padding: 0 0.9rem 2rem; }
  .admin-table { min-width: 480px; font-size: 0.72rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.55rem; }
  /* Admin modal full-screen (excluye product modal) */
  .modal-overlay .modal-card:not(.product-modal) {
    margin: 0;
    border-radius: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 1rem;
  }
  /* Admin section toolbar */
  .section-toolbar { flex-direction: column; align-items: flex-start; }

  /* CHECKOUT */
  .transfer-steps { padding-left: 1rem; font-size: 0.82rem; }
  .delivery-option, .payment-option { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
  .cart-summary h3 { font-size: 1rem; }
  .summary-line { font-size: 0.85rem; }

  /* HOME SECTIONS */
  .featured { padding: 2.5rem 1.2rem; }
  .featured-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .section-title { font-size: 1.8rem; }
  .nosotros { padding: 2.5rem 1.2rem; }
  .nos-stats { grid-template-columns: repeat(3, 1fr); }
  .nos-stats .stat span { font-size: 1.5rem; }
  .product-lines { padding: 2.5rem 1.2rem; }
  .line-card { padding: 1.4rem; }
  .line-name { font-size: 1.3rem; }

  /* REVIEWS */
  .reviews-section { padding: 2.5rem 1.2rem; }
  .review-card { padding: 1.2rem; }

  /* PERKS */
  .perks-bar { padding: 1rem 0.9rem; flex-direction: column; }
  .perk { width: 100%; min-width: unset; }

  /* CONTACT & POLITICAS */
  .contact-page { padding: 1.5rem 0.9rem 3rem; }
  .politicas-page { padding: 1.5rem 0.9rem 3rem; }
  .politica-card { padding: 1.2rem; }

  /* KITS */
  .kits-grid-wrapper { padding: 1rem 0.9rem 3rem; }

  /* MISC */
  .page-header { padding: 4.8rem 1.2rem 1.5rem; }
  .glow-divider { margin: 0; }
  .footer { padding: 2rem 1.2rem; }
  .footer-links { font-size: 0.82rem; gap: 0.6rem 1.2rem; }
}

/* ── Discount badge ───────────────────────────────────────── */
.discount-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: var(--gold);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}
.price-original {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 0.4rem;
  font-weight: 300;
}

/* ── Analytics ────────────────────────────────────────────── */
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.analytics-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.analytics-label {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.analytics-value {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  line-height: 1.1;
}
.analytics-sub {
  font-size: 0.76rem;
  color: var(--gray);
}
.analytics-section-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 160px;
  margin-bottom: 2.5rem;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0.25rem;
}
.bar-value {
  font-size: 0.65rem;
  color: var(--gray);
  text-align: center;
  height: 16px;
  line-height: 16px;
}
.bar-wrap {
  flex: 1;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--gold), rgba(170,255,0,0.45));
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.5s cubic-bezier(.4,0,.2,1);
}
.bar-label {
  font-size: 0.62rem;
  color: var(--gray);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.top-product-row {
  display: grid;
  grid-template-columns: 2rem 1fr 6rem 7rem;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.top-product-row:hover { border-color: var(--glass-border-green); }
.top-rank {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Bebas Neue', sans-serif;
}
.top-name { font-size: 0.88rem; color: var(--white); }
.top-qty  { font-size: 0.78rem; color: var(--gray); text-align: right; }
.top-revenue {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 900px) {
  .analytics-summary { grid-template-columns: repeat(2, 1fr); }
  .top-product-row { grid-template-columns: 2rem 1fr auto; }
  .top-revenue { display: none; }
}

/* ── Product & cart images ────────────────────────────────── */
.product-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.cart-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ── Forgot password link ─────────────────────────────────── */
.forgot-link {
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

.forgot-link a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link a:hover {
  color: var(--gold);
}

.auth-success {
  background: rgba(170,255,0,0.08);
  border: 1px solid rgba(170,255,0,0.3);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* ── Email verification message ──────────────────────────── */
.verify-msg {
  padding: 1rem 0;
  text-align: center;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.verify-msg h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.verify-msg p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.verify-msg strong {
  color: var(--gold);
}

.verify-sub {
  color: var(--gray) !important;
  font-size: 0.82rem !important;
  margin-bottom: 1.5rem !important;
}

/* ── Shipping cost label ─────────────────────────────────── */
.envio-label.gratis {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(170,255,0,0.5);
}
.envio-label.envio-fuera {
  color: #f87171;
  font-size: 0.8rem;
}

/* ── Zona badge ──────────────────────────────────────────── */
#zonaEnvioInfo { margin-top: 0.5rem; min-height: 0; }
.zona-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  color: var(--gray-light);
  animation: fadeIn 0.25s ease;
}
.zona-badge strong { color: var(--white); }
.zona-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
#addressFields {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 280px;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 1;
}
#addressFields.hidden-fields {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Shipping loader & distance ──────────────────────────── */
.envio-loader {
  color: var(--gray);
  font-size: 0.82rem;
  animation: envio-pulse 1s ease-in-out infinite;
}
@keyframes envio-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.envio-dist {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 300;
  margin-left: 0.2rem;
}

/* ── Coupon ───────────────────────────────────────────────── */
.coupon-form { margin-top: 0.5rem; }
.coupon-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.coupon-input-row input {
  flex: 1;
  letter-spacing: 2px;
  font-weight: 600;
}
.coupon-msg {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
}
.coupon-ok    { color: var(--gold); background: rgba(170,255,0,0.07); border: 1px solid rgba(170,255,0,0.25); }
.coupon-error { color: var(--red);  background: rgba(224,82,82,0.07); border: 1px solid rgba(224,82,82,0.25); }

/* ── Moto range warning ───────────────────────────────────── */
.moto-range-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.35);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}
.moto-range-warning span { font-size: 1.2rem; flex-shrink: 0; }
.moto-range-warning strong { display: block; color: var(--red); font-size: 0.85rem; margin-bottom: 0.25rem; }
.moto-range-warning p { color: var(--gray-light); font-size: 0.78rem; line-height: 1.5; margin: 0; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

/* ── Delivery & Payment options ───────────────────────────── */
.delivery-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.delivery-option,
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text);
  font-size: 0.9rem;
}

.delivery-option:hover,
.payment-option:hover {
  border-color: var(--gold);
}

.delivery-option input,
.payment-option input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.payment-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.payment-option.disabled input {
  cursor: not-allowed;
}

.pay-label-efectivo small {
  display: block;
  color: var(--gray);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

/* ── Transfer panel ───────────────────────────────────────── */
.transfer-panel {
  background: linear-gradient(135deg, #0d1a0d 0%, #111c11 100%);
  border: 1px solid rgba(170,255,0,0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.transfer-panel.hidden { display: none; }

.transfer-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.transfer-icon {
  font-size: 1.3rem;
}

.transfer-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.transfer-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
}

.transfer-steps li::before {
  content: counter(step) ".";
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 18px;
  flex-shrink: 0;
}

.transfer-steps .highlight {
  color: var(--gold);
}
.transfer-coupon-note {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 400;
  margin-top: 0.2rem;
  letter-spacing: 0;
}
.envio-andreani-note {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 400;
  display: block;
}
.envio-label.envio-andreani {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-whatsapp:hover {
  background: var(--gold);
  color: #000;
}

/* ===== PERKS BAR ===== */
.perks-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  padding: 2rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.perk {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 170px;
  flex: 0 1 auto;
}
.perk-icon {
  width: 52px;
  height: 52px;
  background: var(--bg3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perk-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.perk-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.07em;
  color: var(--white);
}
.perk-sub {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 4rem 2rem;
  background: var(--bg);
}
.reviews-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.reviews-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-stars {
  font-size: 1.3rem;
  color: #FFD700;
  letter-spacing: 0.05em;
}
.review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-light);
  flex: 1;
}
.review-author {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.review-product {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ===== KITS PAGE ===== */
.kits-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.kits-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 1.2rem 2rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray-light);
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .perks-bar { gap: 0.5rem; padding: 1.2rem 1rem; }
  .perk { min-width: 140px; padding: 0.7rem 0.8rem; }
  .perk-icon { width: 42px; height: 42px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.contact-info h2,
.contact-form-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--glass-border-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item p { color: var(--gray); font-size: 0.85rem; margin: 0; }
.contact-link {
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.contact-link:hover { text-decoration: underline; }
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-policy-link { margin-top: 1.5rem; }


/* ===== POLÍTICAS PAGE ===== */
.politicas-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.politica-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.politica-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.politica-card p {
  color: var(--gray-light);
  line-height: 1.75;
  font-size: 0.93rem;
}
.politica-intro {
  font-size: 1rem !important;
  color: var(--white) !important;
}
.politica-list {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
}
.politica-list li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  color: var(--gray-light);
  font-size: 0.9rem;
}
.politica-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.politica-link {
  color: var(--gold);
  text-decoration: none;
}
.politica-link:hover { text-decoration: underline; }
.politica-link-big {
  display: block;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.politica-contacto { text-align: left; }
.politica-contacto h2 { color: var(--white); }

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-card {
  pointer-events: none;
  cursor: default;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--card) 25%, #2a2a2a 50%, var(--card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin: 10px 0;
  background: linear-gradient(90deg, var(--card) 25%, #2a2a2a 50%, var(--card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  width: 100%;
}
.skeleton-line.short  { width: 45%; }
.skeleton-line.medium { width: 65%; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  display: none; /* oculto en desktop */
  position: fixed;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(170,255,0,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* Admin link in mobile menu always gold */
.mobile-menu .admin-link { color: var(--gold) !important; font-weight: 500; }

/* ============================================================
   MÓDULOS INTERNOS — Insumos / Calculador / Producción
   ============================================================ */

/* Divisor visual en la barra de tabs */
.biz-tab-divider {
  width: 1px;
  background: var(--border);
  margin: 0 0.4rem;
  align-self: stretch;
}

/* Tabs del módulo interno con color azul */
.admin-tab.biz-tab { color: #64748b; }
.admin-tab.biz-tab:hover { color: #38bdf8; }
.admin-tab.biz-tab.active { color: #38bdf8; border-bottom-color: #38bdf8; }

/* Botones primarios azules para módulos internos */
.btn-primary.biz-btn {
  background: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56,189,248,0.25);
}
.btn-primary.biz-btn:hover { background: #7dd3fc !important; }

/* Badge de unidad en tabla insumos */
.biz-badge {
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Modal interno */
.biz-modal h3 {
  color: #38bdf8;
  letter-spacing: 1px;
}

/* Preview costo unitario en modal producción */
.biz-cost-preview {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
}
.biz-cost-preview strong { color: #38bdf8; font-size: 1.05rem; }

/* Barra de total en historial */
.biz-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--gray-light);
}
.biz-total-bar strong { color: #38bdf8; font-size: 1rem; }

/* ── Calculador ─────────────────────────────────────────── */
.biz-calc-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}
.biz-calc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
}
.biz-panel-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: #38bdf8;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.biz-calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.biz-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.15s;
}
.biz-result-card:hover { transform: translateY(-2px); }
.biz-result-label {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.biz-result-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.biz-result-gain {
  font-size: 0.78rem;
  opacity: 0.75;
}
.biz-pct {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  margin-left: 4px;
}

/* Colores por tipo de precio */
.biz-neutral .biz-result-value  { color: #94a3b8; }
.biz-neutral { border-color: #334155; grid-column: 1 / -1; }
.biz-public  .biz-result-value  { color: #38bdf8; }
.biz-public  .biz-result-gain   { color: #38bdf8; }
.biz-public  { border-color: rgba(56,189,248,0.3); }
.biz-rev     .biz-result-value  { color: #a78bfa; }
.biz-rev     .biz-result-gain   { color: #a78bfa; }
.biz-rev     { border-color: rgba(167,139,250,0.3); }
.biz-may     .biz-result-value  { color: #4ade80; }
.biz-may     .biz-result-gain   { color: #4ade80; }
.biz-may     { border-color: rgba(74,222,128,0.3); }

/* ── Responsive calculador ──────────────────────────────── */
@media (max-width: 900px) {
  .biz-calc-grid { grid-template-columns: 1fr; }
  .biz-calc-results { grid-template-columns: 1fr 1fr; }
  .biz-neutral { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .biz-calc-results { grid-template-columns: 1fr; }
}

/* ============================================================
   FÓRMULAS — Builder, Packaging, Saved cards
   ============================================================ */

/* Two-column layout: builder left, sidebar right */
.biz-formulas-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.biz-formulas-right { display: flex; flex-direction: column; }

/* Radio group (envase / accesorio) */
.biz-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.biz-radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--gray-light);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.biz-radio-label:has(input:checked) {
  border-color: #38bdf8;
  background: rgba(56,189,248,0.1);
  color: #38bdf8;
}
.biz-radio-label input { accent-color: #38bdf8; }

/* Insumos table inside formula builder */
.biz-insumos-table-wrap {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.biz-insumos-table { margin: 0; border-radius: 0; }
.biz-insumos-table thead th { font-size: 0.75rem; padding: 0.5rem 0.7rem; }
.biz-insumos-table td { padding: 0.4rem 0.6rem; vertical-align: middle; }
.biz-insumos-table select,
.biz-insumos-table input[type="number"] {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}
.biz-insumos-table select { min-width: 140px; max-width: 180px; }
.biz-row-cost { color: #38bdf8; font-weight: 600; white-space: nowrap; font-size: 0.85rem; }
.biz-empty-row { text-align: center; color: var(--gray); padding: 1.2rem; font-size: 0.82rem; }
.biz-row-del {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.35);
  color: #ef4444;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.15s;
}
.biz-row-del:hover { background: rgba(239,68,68,0.15); }

/* Cost breakdown box */
.biz-cost-box {
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0 0.5rem;
  min-height: 2rem;
}
.biz-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--gray-light);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.biz-cost-row:last-child { border-bottom: none; }
.biz-cost-total {
  font-weight: 700;
  color: var(--white);
  border-top: 1px solid var(--border) !important;
  margin-top: 0.25rem;
  padding-top: 0.5rem !important;
}
.biz-cost-total strong { color: #38bdf8; font-size: 1rem; }

/* Price pills */
.biz-price-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}
.biz-pill {
  flex: 1;
  min-width: 85px;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.biz-pill span { font-size: 0.7rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.biz-pill strong { font-size: 1.05rem; font-weight: 700; }
.biz-pill-pub { border-color: rgba(56,189,248,0.3); }
.biz-pill-pub strong { color: #38bdf8; }
.biz-pill-rev { border-color: rgba(167,139,250,0.3); }
.biz-pill-rev strong { color: #a78bfa; }
.biz-pill-may { border-color: rgba(74,222,128,0.3); }
.biz-pill-may strong { color: #4ade80; }

/* Saved formula cards */
.biz-formula-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.biz-formula-card:hover { border-color: rgba(56,189,248,0.3); }
.biz-formula-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.biz-formula-name { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.biz-formula-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.biz-formula-costs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.biz-formula-cost-item { display: flex; flex-direction: column; gap: 0.1rem; }
.biz-formula-cost-item span  { font-size: 0.68rem; color: var(--gray); }
.biz-formula-cost-item strong { font-size: 0.85rem; }
.biz-formula-insumos-preview { font-size: 0.74rem; color: var(--gray); margin-bottom: 0.5rem; line-height: 1.4; }
.biz-formula-actions { display: flex; gap: 0.5rem; }

/* Packaging config grid */
.biz-pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.biz-pack-item { display: flex; flex-direction: column; gap: 0.2rem; }
.biz-pack-item label { font-size: 0.78rem; color: var(--gray-light); }
.biz-pack-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}
.biz-pack-input-wrap span { color: var(--gray); font-size: 0.85rem; }
.biz-pack-input-wrap input {
  background: transparent;
  border: none;
  color: var(--white);
  width: 100%;
  outline: none;
  font-size: 0.85rem;
}

/* Production preview inside modal */
.biz-prod-preview {
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
}
.biz-stock-warnings {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.75rem;
}
.biz-stock-warnings p { font-size: 0.8rem; color: #f87171; margin: 0.2rem 0; }

/* Stock overview */
.biz-stock-summary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}
.biz-stock-summary-item { display: flex; align-items: center; gap: 0.45rem; }
.biz-stock-badge {
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.biz-stock-badge.red    { background: rgba(239,68,68,0.15);   color: #ef4444; }
.biz-stock-badge.yellow { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.biz-stock-badge.green  { background: rgba(74,222,128,0.15);  color: #4ade80; }

/* Stock adjust button in table */
.biz-stock-btn {
  background: transparent;
  border: 1px solid rgba(56,189,248,0.4);
  color: #38bdf8;
  border-radius: 5px;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.biz-stock-btn:hover { background: rgba(56,189,248,0.15); }

/* Responsive formula layout */
@media (max-width: 1100px) {
  .biz-formulas-layout { grid-template-columns: 1fr; }
  .biz-formula-costs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .biz-formula-costs { grid-template-columns: 1fr 1fr; }
  .biz-pack-grid { grid-template-columns: 1fr; }
  .biz-price-pills { flex-direction: column; }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

/* Hero */
.faq-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(170,255,0,0.07) 0%, transparent 70%);
}
.faq-hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: 4px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.faq-hero-highlight { color: var(--gold); }
.faq-hero-sub {
  color: var(--gray-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Quick nav pills */
.faq-quicknav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.faq-qn-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--gray-light);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.faq-qn-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(170,255,0,0.06);
}

/* Page container */
.faq-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* Section */
.faq-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}
.faq-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}
.faq-section-icon { font-size: 1.5rem; line-height: 1; }
.faq-section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.7rem;
  letter-spacing: 3px;
  color: var(--white);
}

/* Accordion item */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: rgba(170,255,0,0.3);
}
.faq-question {
  width: 100%;
  background: var(--bg3);
  border: none;
  color: var(--white);
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.faq-question:hover { background: rgba(170,255,0,0.05); color: var(--gold); }
.faq-item.open .faq-question { color: var(--gold); background: rgba(170,255,0,0.05); }
.faq-chevron {
  font-size: 1.1rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--gold); }

/* Accordion answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--card);
}
.faq-answer p,
.faq-answer ol,
.faq-answer ul {
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--gray-light);
  line-height: 1.75;
}
.faq-answer p + p { padding-top: 0; }
.faq-answer strong { color: var(--white); }
.faq-answer a { color: var(--gold); }

/* CTA final */
.faq-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(170,255,0,0.05) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(170,255,0,0.2);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-top: 1rem;
}
.faq-cta-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.faq-cta-sub {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.faq-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
  .faq-hero { padding: 4rem 1.2rem 2rem; }
  .faq-page { padding: 0 1rem 4rem; }
  .faq-question { font-size: 0.88rem; padding: 0.85rem 1rem; }
  .faq-cta { padding: 2rem 1rem; }
  .faq-cta-btns { flex-direction: column; align-items: stretch; }
  .faq-cta-btns a { text-align: center; }
}

/* ===== DISCOUNT BADGE MEJORADO ===== */
.discount-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: linear-gradient(135deg, #ff3d3d, #ff6b35);
  color: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,61,61,0.4);
}
.discount-pct {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.discount-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-original-line {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-top: 0.1rem;
}

/* ===== STOCK URGENTE ===== */
.stock-urgent {
  font-size: 0.72rem;
  color: #ff6b35;
  font-weight: 600;
  margin-top: 0.25rem;
  animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ===== COMPRA RÁPIDA ===== */
.product-img { position: relative; overflow: hidden; }

.quick-add-btn {
  position: absolute;
  bottom: -48px;
  left: 0; right: 0;
  background: rgba(170,255,0,0.95);
  color: #000;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: bottom 0.3s var(--ease-spring);
  z-index: 3;
  letter-spacing: 0.3px;
}
.quick-add-btn:hover { background: var(--gold-light); }

.product-card:hover .quick-add-btn {
  bottom: 0;
}

/* ===== RECOMENDACIONES ===== */
.reco-strip {
  border-top: 1px solid var(--border);
  padding: 1rem 1.4rem 1.2rem;
  background: var(--card);
  border-radius: 0 0 16px 16px;
}
.reco-title {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.reco-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.reco-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.reco-card:hover {
  border-color: rgba(170,255,0,0.3);
  background: rgba(170,255,0,0.04);
}
.reco-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.reco-img  { width: 100%; height: 100%; object-fit: cover; }
.reco-emoji { font-size: 1.4rem; }
.reco-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.reco-name  { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-price { font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.reco-add-btn {
  background: transparent;
  border: 1px solid rgba(170,255,0,0.4);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.reco-add-btn:hover { background: var(--gold); color: #000; }

/* ===== KIT BUILDER ADMIN ===== */
.kit-builder-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
  .kit-builder-layout { grid-template-columns: 1fr; }
}

.kit-picker-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
}
.kit-picker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.kit-picker-item:last-child { border-bottom: none; }
.kit-picker-item:hover { background: rgba(255,255,255,0.04); }
.kit-picker-item.selected { background: rgba(170,255,0,0.06); }
.kit-picker-thumb {
  width: 32px; height: 32px;
  object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.kit-picker-emoji { font-size: 1.4rem; width: 32px; text-align: center; flex-shrink: 0; }
.kit-picker-info { flex: 1; min-width: 0; }
.kit-picker-name { font-size: 0.82rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-picker-price { font-size: 0.75rem; color: var(--gold); }
.kit-picker-check {
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold); width: 18px; text-align: center; flex-shrink: 0;
}

.kit-selected-list {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.kit-selected-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.45rem 0.7rem; gap: 0.5rem;
}
.kit-sel-name { font-size: 0.82rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-sel-controls { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.kit-qty-btn {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--white); width: 22px; height: 22px;
  border-radius: 4px; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.kit-qty-val { font-size: 0.82rem; min-width: 18px; text-align: center; }
.kit-sel-remove {
  background: none; border: none; color: var(--gray);
  cursor: pointer; font-size: 0.8rem; padding: 0 0.2rem;
}
.kit-sel-remove:hover { color: var(--red); }

/* Kit card vitrina */
.kit-includes {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-bottom: 0.6rem;
}
.kit-include-item {
  font-size: 0.75rem; color: var(--gray-light);
}

/* Kit modal detalle */
.pm-kit-includes {
  background: rgba(170,255,0,0.04);
  border: 1px solid rgba(170,255,0,0.12);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.pm-kit-label {
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.pm-kit-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--gray-light); padding: 0.2rem 0;
}
.pm-kit-check { color: var(--gold); font-size: 0.75rem; }

/* ===== FOTO DE PERFIL ===== */
.profile-header-avatar {
  overflow: hidden;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.photo-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.2rem;
}

.photo-upload-btn {
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
}
.photo-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.photo-status {
  font-size: 0.78rem;
  color: var(--gray);
}
.photo-status.ok  { color: var(--green); }
.photo-status.err { color: var(--red); }

/* ============================================================
   APPLE-STYLE EFFECTS — Glassmorphism · Reveal · Spring
   ============================================================ */

/* ----- PAGE ENTER ----- */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- SCROLL REVEAL ----- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- NAVBAR SCROLL STATE ----- */
.navbar {
  transition: background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.navbar.scrolled {
  background: rgba(4,4,4,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(170,255,0,0.12);
  box-shadow: 0 1px 32px rgba(0,0,0,0.6);
}

/* ----- ENHANCED GLASS CARDS ----- */
.product-card,
.cat-card,
.kit-card,
.profile-section,
.contact-form-card,
.contact-info,
.auth-card,
.cart-summary,
.politica-card,
.faq-item {
  transition: transform 0.45s var(--ease-spring),
              box-shadow 0.45s var(--ease-out),
              border-color 0.3s var(--ease-out);
}

.product-card:hover,
.cat-card:hover {
  box-shadow: 0 0 0 1px rgba(170,255,0,0.18),
              0 8px 24px rgba(0,0,0,0.5),
              0 0 48px rgba(170,255,0,0.07);
}

/* ----- MODAL BACKDROP BLUR ----- */
.modal-overlay {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  /* No se pisa el background existente */
}
.modal-card {
  animation: modalEnter 0.4s var(--ease-spring) both;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ----- BUTTON INTERACTIONS ----- */
.btn-primary {
  transition: background 0.25s var(--ease-out),
              transform 0.3s var(--ease-spring),
              box-shadow 0.3s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px rgba(170,255,0,0.3);
}
.btn-primary:active {
  transform: scale(0.96);
  box-shadow: none;
}

.btn-ghost:active,
.btn-nav:active,
.add-btn:active {
  transform: scale(0.95);
}
.btn-ghost,
.add-btn {
  transition: all 0.3s var(--ease-spring);
}

/* ----- INPUT FOCUS RING (Apple-style) ----- */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(170,255,0,0.12),
              0 0 0 1px rgba(170,255,0,0.35);
  outline: none;
  transition: border-color 0.2s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}

/* ----- CARD AMBIENT GLOW ON HOVER ----- */
.product-card::after,
.cat-card::after,
.kit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(170,255,0,0.08) 0%, transparent 70%);
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.product-card { position: relative; }
.cat-card     { position: relative; }
.product-card:hover::after,
.cat-card:hover::after { opacity: 1; }

/* ----- HERO CONTENT STAGGER ----- */
.hero-tag    { animation: pageEnter 0.6s var(--ease-out) 0.05s both; }
.hero-title  { animation: pageEnter 0.7s var(--ease-out) 0.15s both; }
.hero-subtitle { animation: pageEnter 0.7s var(--ease-out) 0.25s both; }
.hero-cta    { animation: pageEnter 0.7s var(--ease-out) 0.35s both; }

/* ----- FLOAT CARDS GLASS UPGRADE ----- */
.float-card {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(15,15,15,0.72);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(170,255,0,0.06);
}

/* ----- STAT CARDS GLASS ----- */
.stat {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13,13,13,0.8);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}
.stat:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(170,255,0,0.25);
}

/* ----- PAGE HEADER GLASS ----- */
.page-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ----- WHATSAPP FAB PULSE ----- */
.whatsapp-fab {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}
.whatsapp-fab:active { transform: scale(0.95); }

/* ----- HERO BG AMBIENT DRIFT ----- */
@keyframes ambientDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px,-15px) scale(1.05); }
  66%  { transform: translate(-10px,20px) scale(0.97); }
  100% { transform: translate(0,0) scale(1); }
}
.hero-bg {
  animation: ambientDrift 18s ease-in-out infinite;
  will-change: transform;
}

/* ----- LINK HOVER UNDERLINE SLIDE ----- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
  box-shadow: 0 0 6px rgba(170,255,0,0.5);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ----- CART BADGE BOUNCE ----- */
@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.cart-badge.bump { animation: badgePop 0.4s var(--ease-spring); }

/* ----- SMOOTH IMAGE LOAD ----- */
img {
  transition: opacity 0.4s var(--ease-out);
}
img[src=""] { opacity: 0; }

/* ----- SCROLLBAR APPLE STYLE ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(170,255,0,0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(170,255,0,0.4); }

/* ===== PROMO BANNER ===== */
#promoBannerWrap {
  position: fixed;
  top: 64px; /* justo debajo del navbar */
  left: 0; right: 0;
  z-index: 95;
}

.promo-banner {
  background: var(--banner-bg, var(--gold));
  color: var(--banner-text, #000);
  padding: 0.55rem 3rem 0.55rem 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.promo-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bannerSlideOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* Empujar el contenido de la página cuando el banner está visible */
body.has-banner .hero,
body.has-banner .page-header {
  padding-top: 36px;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  flex-wrap: nowrap;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.promo-emoji { font-size: 1rem; line-height: 1; flex-shrink: 0; }

.promo-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.promo-title {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.promo-cta {
  background: rgba(0,0,0,0.15);
  color: inherit;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.promo-cta:hover { background: rgba(0,0,0,0.25); }

@media (max-width: 480px) {
  .promo-subtitle { display: none; }
  .promo-title { font-size: 0.78rem; }
}

.promo-close {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  line-height: 1;
  transition: opacity 0.2s;
}
.promo-close:hover { opacity: 1; }

/* Banner admin cards */
.banner-admin-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.banner-admin-card.banner-active { border-color: var(--glass-border-green); }

.banner-admin-preview {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.banner-cta-preview {
  margin-left: auto;
  background: rgba(0,0,0,0.15);
  padding: 0.2rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
}

.banner-admin-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.banner-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
}
.banner-status-pill.active   { background: rgba(170,255,0,0.12); color: var(--gold); }
.banner-status-pill.inactive { background: rgba(255,255,255,0.05); color: var(--gray); }

.banner-admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.banner-admin-actions .danger { color: var(--red) !important; border-color: rgba(224,82,82,0.3) !important; }

/* ===== ORDER TIMELINE ===== */
.order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 64px;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.timeline-step.done .timeline-dot {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.timeline-step.current .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 10px rgba(170,255,0,0.5);
}

.timeline-line {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-line.done { background: var(--gold); }

.timeline-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 0.45rem;
  text-align: center;
}

.timeline-step-icon { font-size: 0.85rem; line-height: 1; }

.timeline-step-name {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}

.timeline-step.done .timeline-step-name,
.timeline-step.current .timeline-step-name { color: var(--white); }

.timeline-step-date {
  font-size: 0.65rem;
  color: var(--gold);
  white-space: nowrap;
}

.order-timeline-cancelled {
  font-size: 0.8rem;
  color: var(--red);
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.2);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* ===== ANALYTICS DASHBOARD ===== */
.analytics-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-mode-btns {
  display: flex;
  gap: 0.3rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.analytics-mode-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.analytics-mode-btn.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.analytics-mode-btn:hover:not(.active) { color: var(--white); }

/* Bar count bubble */
.bar-count {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--gold);
  white-space: nowrap;
}
.bar-fill { position: relative; }

/* Top products horizontal bars */
.top-products-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.top-prod-bar-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.top-prod-info {
  flex: 1;
  min-width: 0;
}

.top-prod-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.top-prod-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.top-prod-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.6s var(--ease-out);
}

/* ===== PUSH NOTIFICATIONS ===== */
.notif-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(170,255,0,0.07);
  border: 1px solid var(--glass-border-green);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.notif-banner svg { stroke: var(--gold); flex-shrink: 0; }

.notif-banner button {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

.notif-banner-close {
  background: none !important;
  color: var(--gray) !important;
  padding: 0.3rem 0.5rem !important;
  margin-left: 0 !important;
}

@keyframes orderHighlight {
  0%   { background: rgba(170,255,0,0.12); }
  100% { background: transparent; }
}
.order-new-highlight {
  animation: orderHighlight 4s var(--ease-out) forwards;
}

@keyframes statPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); box-shadow: 0 0 20px rgba(170,255,0,0.3); }
}
.stat-pulse { animation: statPulse 0.6s var(--ease-spring); }

/* ===== PROFILE TABS ===== */
.profile-tabs-wrap {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.profile-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
}

.profile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border: none;
  background: none;
  color: var(--gray);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.profile-tab svg { flex-shrink: 0; stroke: currentColor; }

.profile-tab:hover { color: var(--white); }

.profile-tab.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--glass-border-green);
}

.profile-tab.active svg { fill: var(--gold); stroke: var(--gold); }

.profile-tab-panel { display: contents; }
.profile-tab-panel.hidden { display: none; }

/* Tab datos: centrado en PC */
#tab-datos { display: contents; }
#tab-datos:not(.hidden) .profile-section {
  grid-column: 1 / -1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .profile-tab { font-size: 0.78rem; padding: 0.55rem 0.5rem; gap: 0.3rem; }
  .profile-tab svg { display: none; }
}

/* ===== WISHLIST HEART BUTTON ===== */
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-spring), background 0.2s;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
  transform: scale(1);
}

/* En mobile siempre visible (no hay hover) */
@media (hover: none) {
  .wishlist-btn {
    opacity: 1;
    transform: scale(1);
  }
}

.wishlist-btn svg {
  fill: transparent;
  stroke: #fff;
  transition: fill 0.2s, stroke 0.2s;
}

.wishlist-btn.wishlisted {
  opacity: 1;
  background: rgba(220, 50, 80, 0.85);
}

.wishlist-btn.wishlisted svg {
  fill: #fff;
  stroke: #fff;
}

@media (hover: hover) {
  .wishlist-btn:hover { background: rgba(220, 50, 80, 0.85); }
  .wishlist-btn:hover svg { fill: #fff; stroke: #fff; }
}

/* ===== HISTORIAL STRIP ===== */
.historial-section {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.historial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.historial-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.hist-clear-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.hist-clear-btn:hover { color: var(--white); }

.historial-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,255,0,0.2) transparent;
}

.historial-strip::-webkit-scrollbar { height: 4px; }
.historial-strip::-webkit-scrollbar-track { background: transparent; }
.historial-strip::-webkit-scrollbar-thumb { background: rgba(170,255,0,0.2); border-radius: 99px; }

.hist-card {
  flex: 0 0 110px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.hist-card:hover {
  border-color: var(--glass-border-green);
  transform: translateY(-2px);
}

.hist-img {
  width: 110px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg2);
}
.hist-img img { width: 100%; height: 100%; object-fit: cover; }
.hist-emoji { font-size: 2rem; }

.hist-card .hist-name {
  font-size: 0.72rem;
  color: var(--white);
  padding: 0.4rem 0.5rem 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-card .hist-price {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  padding: 0 0.5rem 0.5rem;
}

/* ===== WISHLIST SECTION (PERFIL) ===== */
.wishlist-section {
  grid-column: 1 / -1;
}

.wishlist-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}

.wishlist-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.wishlist-card:hover { border-color: var(--glass-border-green); }

.wishlist-card-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
}
.wishlist-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}
.wishlist-card:hover .wishlist-card-img img { transform: scale(1.04); }

.wishlist-card-body {
  padding: 0.7rem 0.8rem 0.3rem;
  flex: 1;
}

.wishlist-card-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.wishlist-card-cat {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: capitalize;
  margin-bottom: 0.3rem;
}

.wishlist-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.wishlist-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem 0.7rem;
  gap: 0.5rem;
}

.wishlist-remove-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.wishlist-remove-btn:hover { border-color: var(--red); color: var(--red); }

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 1rem;
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== REVIEWS ===== */
.pm-reviews-section {
  padding: 1.5rem 1.5rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.review-loading {
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
}

/* Header row with avg */
.reviews-header-row {
  margin-bottom: 1.2rem;
}

.reviews-avg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews-avg-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.reviews-count {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.1rem;
  display: block;
}

/* Stars */
.stars-display {
  display: inline-flex;
  gap: 2px;
}

.stars-display.small .star { font-size: 0.9rem; }

.star { font-size: 1.1rem; line-height: 1; }
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: 0.6; }
.star.empty { color: var(--border); filter: brightness(2); }

/* Review form */
.review-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}

.review-form-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 0.4rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--border);
  filter: brightness(3);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}

.star-btn:hover,
.star-btn.active {
  color: var(--gold);
  transform: scale(1.15);
}

.star-hint {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.7rem;
  min-height: 1rem;
}

.review-form textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  resize: vertical;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}

.review-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Review cards */
.my-review {
  border: 1px solid var(--glass-border-green);
  background: rgba(170,255,0,0.04);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.review-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--glass-border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.review-username {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  color: var(--white);
}

.review-date {
  font-size: 0.72rem;
  color: var(--gray);
  display: block;
}

.review-own-badge {
  font-size: 0.68rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 99px;
  padding: 1px 7px;
  margin-left: 4px;
  font-weight: 500;
}

.review-comment {
  font-size: 0.83rem;
  color: var(--gray-light);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.review-delete-btn {
  background: none;
  border: 1px solid rgba(224,82,82,0.3);
  color: var(--red);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: background 0.2s;
}
.review-delete-btn:hover { background: rgba(224,82,82,0.12); }

.reviews-list { margin-top: 0.5rem; }

.reviews-hidden { display: none; }
.reviews-hidden.open { display: block; }

.reviews-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--gray-light);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}
.reviews-show-more:hover { border-color: var(--gold); color: var(--gold); }

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  text-align: center;
}

.trust-badge svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 0.7rem;
  color: var(--gray-light);
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .trust-badges { gap: 0.3rem; padding: 0.7rem 0.6rem; }
  .trust-badge span { font-size: 0.65rem; }
}

/* ===== TRACKING ROW (admin) ===== */
.tracking-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: nowrap;
}
.tracking-empresa-select {
  font-size: 0.75rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  flex-shrink: 0;
}
.tracking-input {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
}
.tracking-empresa-label {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== TRACKING BLOCK (perfil) ===== */
.order-tracking-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--gray-light);
}
.order-tracking-block svg { stroke: var(--gold); flex-shrink: 0; }
.tracking-link {
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
.tracking-link:hover { text-decoration: underline; }

/* ===== PRODUCT IMAGES GRID (admin) ===== */
.product-images-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.product-img-slot {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.product-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot-remove {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: var(--white);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.img-slot-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(170,255,0,0.85);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 0.1rem;
}

/* ===== CARRUSEL MODAL ===== */
.pm-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.pm-carousel-track { width: 100%; height: 100%; }
.pm-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.pm-carousel-slide.active { display: flex; }
.pm-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.pm-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 32px; height: 44px;
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.pm-carousel-btn:hover { background: rgba(0,0,0,0.8); }
.pm-carousel-btn.prev { left: 0.4rem; }
.pm-carousel-btn.next { right: 0.4rem; }
.pm-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.pm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s;
}
.pm-dot.active { background: var(--gold); }

/* ===== CARD STARS ===== */
.card-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.card-stars .star { font-size: 0.75rem; }
.card-stars .star.full  { color: var(--gold); }
.card-stars .star.half  { color: var(--gold); opacity: 0.6; }
.card-stars .star.empty { color: #333; }

.card-stars-count {
  font-size: 0.68rem;
  color: var(--gray);
  font-weight: 500;
}

/* ===== PRODUCT CARD BENEFITS ===== */
.product-benefits {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-benefits li {
  font-size: 0.68rem;
  color: var(--gray-light);
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  line-height: 1.3;
}

.product-benefits li::before {
  content: '✔';
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ===== MODAL BENEFITS ===== */
.pm-benefits {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pm-benefits li {
  font-size: 0.88rem;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.pm-benefits li::before {
  content: '✔';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== MODAL VER MÁS ===== */
.pm-desc-larga-wrap {
  margin: 0.5rem 0 0.8rem;
}

.pm-desc-larga {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: all 0.3s ease;
}

.pm-desc-larga.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.pm-ver-mas {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  display: block;
  margin-top: 0.3rem;
}

.pm-ver-mas:hover { opacity: 0.8; }

/* ===== SHARE ROW ===== */
.pd-share-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.pd-share-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pd-share-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
}
.pd-share-btn:hover { opacity: 0.75; }
.pd-share-wsp { color: #25D366; border-color: rgba(37,211,102,0.35); }
.pd-share-copy { color: var(--gray); }

/* ===== MODAL SECCIONES EXTRA ===== */
.pm-section { margin-top: 1.4rem; }

.pm-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.pm-section-bar {
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
}

/* Modo de uso */
.pm-list-ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Tabla de diluciones */
.pm-dil-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}
.pm-dil-table col.col-sup  { width: 52%; }
.pm-dil-table col.col-dil  { width: 48%; }
.pm-dil-table thead tr {
  border-bottom: 1px solid var(--border);
}
.pm-dil-table th {
  text-align: left;
  color: #4DA6FF;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}
.pm-dil-table td {
  padding: 0.7rem 0.8rem;
  color: var(--gray);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
  line-height: 1.4;
}
.pm-dil-val {
  color: #4DA6FF;
  font-weight: 600;
  text-align: left;
}

/* Recomendaciones / Info adicional */
.pm-info-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.pm-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4DA6FF;
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.pm-list-ul {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
  list-style: disc;
}

/* Videos */
.pm-videos { display: flex; flex-direction: column; gap: 0.8rem; }
.pm-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
}
.pm-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== MODAL TRUST BLOCK ===== */
.pm-trust-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.2rem 0 0.4rem;
}

.pm-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pm-trust-item svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

.pm-trust-item span {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 400px) {
  .pm-trust-block { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ===== MODAL PAYMENT ROW ===== */
.pm-payment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem 1rem;
  border-top: 1px solid var(--border);
}

.pm-payment-label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
  margin-right: 0.2rem;
}

.pm-payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.28rem 0.7rem;
}

.pm-payment-pill svg {
  stroke: var(--gold);
  flex-shrink: 0;
}
