/* ============================================================
   PeptiLab — Design System
   Helvetica · azul #1E5EFF · grises humo · mobile-first
   Regla: SOLO los botones tienen efecto al pasar el mouse.
          Los contenedores/cards NO se mueven.
   ============================================================ */

/* ---------- 1. Tokens (Dark + Dorado) ---------- */
:root {
  color-scheme: dark;

  --primary:      #CFAE68;   /* dorado champán (más suave, menos latón) */
  --primary-dark: #E6CE8C;   /* dorado claro (hover: brilla) */
  --primary-soft: #201B10;   /* tinte dorado oscuro (fondos activos) */
  --on-primary:   #131109;   /* texto oscuro sobre dorado */

  --bg:        #0A0A0C;   /* negro neutro */
  --bg-soft:   #111114;   /* superficie base elevada */
  --smoke:     #1B1B20;   /* gris neutro oscuro */
  --smoke-2:   #27272E;
  --border:    #2B2B31;   /* marcos/contornos gris */
  --border-2:  #3A3A42;
  --surface:   #141418;   /* cards / nav / paneles */

  --text:      #F1F0EC;   /* casi blanco (neutro) */
  --text-mut:  #9C99A0;   /* gris neutro */
  --text-dis:  #6A6870;

  --success:   #34D399;
  --danger:    #F87171;
  --warning:   #FBBF24;
  --whatsapp:  #25D366;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px; --r-full: 9999px;

  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 6px 20px rgba(0,0,0,.5);
  --sh-lg: 0 18px 44px rgba(0,0,0,.6);

  --nav-h: 78px;
  --maxw: 1200px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--text); background-color: transparent; }
::placeholder { color: var(--text-dis); opacity: 1; }

/* ---------- 3. Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 30px; }
.text-center { text-align: center; }
.muted { color: var(--text-mut); }
.hidden { display: none !important; }

/* ---------- 4. Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-head { max-width: 640px; margin-bottom: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-mut); margin-top: 8px; }

/* ---------- 5. Botones (ÚNICOS con efecto hover) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 500; font-size: 15px; line-height: 1;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }        /* leve, solo botones */
/* Dorado champán (plano) con texto blanco */
.btn-primary { background: linear-gradient(180deg, #CBA85F 0%, #AE8A45 100%); color: #fff;
  border-color: #94743A; text-shadow: 0 1px 1px rgba(50,38,10,.35); }
.btn-primary:hover { background: linear-gradient(180deg, #DABB74 0%, #BD9750 100%); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--smoke); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; font-size: 14px; padding: 0 14px; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 28px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 6. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-full);
  background: var(--smoke); color: var(--text-mut);
}
.badge-destacado   { background: var(--primary-soft); color: var(--primary); }
.badge-nuevo       { background: #12251C; color: #34D399; }
.badge-mas_vendido { background: #262111; color: #E6CE8C; }
.badge-premium     { background: #1E1830; color: #A78BFA; }
.badge-oferta      { background: #2A1515; color: #F87171; }
.badge-agotado     { background: var(--smoke-2); color: var(--text-dis); }

/* ---------- Aviso "solo investigación" (arriba de todo) ---------- */
.ruo-bar { background: #0E0E12; color: var(--text-mut); font-size: 11.5px; border-bottom: 1px solid var(--border); }
.ruo-bar .container { display: flex; align-items: flex-start; justify-content: center; gap: 8px; padding-block: 7px; text-align: center; line-height: 1.4; }
.ruo-bar svg { color: var(--warning); flex: none; margin-top: 2px; }
.ruo-bar strong { color: var(--text); font-weight: 500; }
@media (max-width: 767px) {
  .ruo-bar { font-size: 9.5px; }
  .ruo-bar .container { justify-content: flex-start; text-align: left; gap: 6px; padding-block: 6px; }
  .ruo-bar svg { width: 12px; height: 12px; margin-top: 1px; }
}

/* ---------- 7. Top bar (trust bar) ---------- */
.topbar { position: relative; background: linear-gradient(180deg, #E6CE8C 0%, #CFAE68 45%, #A9863F 100%); color: var(--on-primary); font-size: 12.5px; font-weight: 500; overflow: hidden; }
.topbar.is-hidden { display: none; }
/* Móvil: marquee deslizante */
.topbar-track { display: flex; width: max-content; align-items: center; padding: 8px 0;
  animation: tb-marquee 30s linear infinite; will-change: transform; }
.topbar:hover .topbar-track { animation-play-state: paused; }
.tb-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.topbar-track span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-track svg { width: 14px; height: 14px; opacity: .85; flex: none; }
/* Móvil: mensajes rotativos centrados (en vez del marquee que corta las frases) */
.topbar-rotator { display: none; align-items: center; justify-content: center; gap: 6px; min-height: 35px;
  padding: 8px 42px; text-align: center; transition: opacity .25s ease; }
.topbar-rotator span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-rotator svg { width: 14px; height: 14px; flex: none; }
.topbar.is-rotating .topbar-track { display: none; }
.topbar.is-rotating .topbar-rotator { display: flex; }

.topbar-close { position: absolute; right: max(10px, calc((100% - var(--maxw)) / 2 + 8px)); top: 0; bottom: 0; width: 32px; border: 0; cursor: pointer;
  color: var(--on-primary); background: transparent; display: grid; place-items: center; z-index: 2; opacity: .8; }
.topbar-close:hover { opacity: 1; }
.topbar-close svg { width: 14px; height: 14px; }
.topbar-close svg { width: 15px; height: 15px; }
@keyframes tb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* PC: barra fija (sin moverse ni repetir), centrada */
@media (min-width: 768px) {
  .topbar-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; padding: 8px 44px; }
  .tb-group { padding-right: 0; }
  .tb-group[aria-hidden="true"] { display: none; }
  .topbar-close { background: transparent; }
}
.topbar-track svg { width: 14px; height: 14px; opacity: .85; }

/* ---------- 8. Navbar ---------- */
/* Navbar glass (translúcido + desenfoque). OJO: backdrop-filter convierte al
   nav en contenedor de sus hijos fixed (.search-panel). Para que el panel
   cerrado NO tape el topbar, el panel usa visibility:hidden cuando está cerrado
   (más abajo) y el .search-overlay se saca del <header> en el markup. */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(10,10,12,.62);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }

/* Logo (imagen) — con respaldo de texto para el admin */
.brand { display: inline-flex; align-items: center; font-weight: 500; font-size: 20px;
  letter-spacing: -0.02em; color: var(--primary); }
.brand b { font-weight: 500; }
.brand img { height: 62px; width: auto; display: block; }
.footer .brand img { height: 52px; }

.nav-links { display: none; gap: 2px; flex: none; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-md); font-weight: 500; font-size: 15px; color: var(--text-mut);
  transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Buscador integrado del navbar (solo escritorio) */
.nav-search { display: none; position: relative; flex: 1; max-width: 480px; margin-inline: auto; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--r-full); background: var(--bg-soft);
  transition: border-color .15s, background .15s; }
.nav-search:focus-within { border-color: var(--primary); background: var(--bg); }
.nav-search svg { width: 18px; height: 18px; color: var(--text-dis); flex: none; }
.nav-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; color: var(--text); }
.nav-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 6px; display: none; z-index: 1200; max-height: 70vh; overflow-y: auto; }
.nav-search-results.open { display: block; }

.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: var(--text);
  transition: background .15s; }
.icon-btn:hover { background: var(--smoke); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 500; border-radius: var(--r-full);
  display: grid; place-items: center; }
.cart-count[data-count="0"], .cart-count:empty { display: none; }

/* Selector de idioma (icono de mundo) */
.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ""; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-md); min-width: 160px; padding: 6px; z-index: 1200; }
.lang-menu a { display: block; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text); }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { color: var(--primary); }

/* ---------- 9. Drawer (menú lateral) ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,20,30,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1500; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; left: 0; height: 100%; width: 310px; max-width: 86vw;
  background: var(--surface); z-index: 1600; transform: translateX(-100%); transition: transform .28s ease;
  display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.drawer.open { transform: translateX(0); }
/* En PC el menú sale desde la derecha (donde está el botón ☰) */
@media (min-width: 768px) {
  .drawer { left: auto; right: 0; transform: translateX(100%); }
  .drawer.open { transform: translateX(0); }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mut); }
.drawer-close { width: 38px; height: 38px; border: 0; background: var(--smoke); border-radius: var(--r-md);
  font-size: 22px; line-height: 1; color: var(--text); display: grid; place-items: center; }
.drawer-close:hover { background: var(--smoke-2); }
.drawer-nav { overflow-y: auto; flex: 1; }
.drawer-nav a { position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; font-weight: 500; color: var(--text); }
/* Línea divisoria recortada en las orillas */
.drawer-nav a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--border); }
.drawer-nav a:last-child::after { display: none; }
.drawer-nav a:hover { background: var(--bg-soft); }
.drawer-nav a svg { width: 18px; height: 18px; color: var(--text-dis); }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

/* ---------- 10. Hero ---------- */
.hero { background: var(--bg-soft); }
.hero-grid { display: grid; gap: 28px; padding-block: 36px 44px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2);
  padding: 6px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--text-mut); }
.hero h1 { margin: 16px 0 12px; }
.hero p.lead { font-size: 16.5px; color: var(--text-mut); max-width: 520px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 23px; font-weight: 500; }
.hero-stats .stat span { font-size: 13px; color: var(--text-mut); }
.hero-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-visual .cell { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; display: block; }

/* ---------- 11. Features ---------- */
.features { }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-block: 28px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .ico { flex: none; width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 15px; font-weight: 500; }
.feature p { font-size: 13.5px; color: var(--text-mut); }

/* Icono de método de pago (payment-instructions) */
.pay-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.pay-ico svg { width: 22px; height: 22px; }

/* ---------- 12. Categorías (sin movimiento en hover) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; background: var(--surface);
  transition: border-color .15s; }
.cat-card:hover { border-color: var(--border-2); }
.cat-card .cc-dot { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 12px; background: var(--smoke); }
.cat-card h4 { font-size: 15px; font-weight: 500; }
.cat-card p { font-size: 12.5px; color: var(--text-mut); margin-top: 2px; }
.cat-card .cc-arrow { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--primary); }

/* ---------- 13. Grid + tarjeta de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; box-shadow: var(--sh-sm);
  transition: border-color .15s; }
.card:hover { border-color: var(--border-2); }   /* sin movimiento */
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }

/* Imagen tipográfica del producto (generada por nosotros, sin fotos) */
.pimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 16px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.pimg-name { font-weight: 500; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.pimg-name::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--tone, var(--primary)); margin: 10px auto 0; }
.pimg-size { font-size: 12px; font-weight: 500; color: var(--text-mut); }
.pimg-card .pimg-name { font-size: clamp(18px, 5.2vw, 24px); }
.pimg-pdp  .pimg-name { font-size: clamp(30px, 6vw, 46px); }
.pimg-mini { padding: 4px; gap: 0; overflow: hidden; }
.pimg-mini .pimg-name { font-size: 11px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pimg-mini .pimg-name::after { display: none; }
.pimg-mini .pimg-size { display: none; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
/* Favorito: solo el icono, sin marco */
.card-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; z-index: 2;
  background: transparent; border: 0; display: grid; place-items: center; color: var(--text-mut);
  transition: color .15s; }
.card-fav:hover { color: var(--danger); }
.discount-badge { position: absolute; bottom: 10px; left: 10px; background: var(--danger); color: #fff;
  font-weight: 500; font-size: 12px; padding: 3px 8px; border-radius: var(--r-sm); }
.card-body { padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dis); }
/* Título más grande, máximo 2 líneas, peso más ligero */
.card-title { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--text); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.card-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-mut); flex-wrap: wrap; }
.card-meta .purity { color: var(--success); font-weight: 500; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-price .now { font-size: 18px; font-weight: 500; }
.card-price .was { font-size: 13px; color: var(--text-dis); text-decoration: line-through; }
.card-price .from { font-size: 11px; color: var(--text-mut); text-transform: uppercase; letter-spacing: .04em; align-self: center; }

/* Foto real del producto (subida desde el admin) */
.pimg-photo { padding: 0; background: var(--surface); }
.pimg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Selector de presentación (variantes) en la ficha */
.pdp-variants { margin: 16px 0 4px; }
.pv-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-mut); margin-bottom: 8px; }
.pv-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-opt { padding: 9px 14px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s, color .15s; }
.pv-opt:hover { border-color: var(--primary); }
.pv-opt.sel { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Badges de confianza + envío (PDP) */
.pdp-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.trust-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500;
  color: var(--success); background: #12251C; border: 1px solid #1E4033; padding: 5px 10px; border-radius: var(--r-full); }
.pdp-ship { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-mut); margin-bottom: 4px; }
.pdp-ship svg { color: var(--primary); flex: none; }

/* Almacenamiento / uso de investigación / reseñas (PDP) */
.pdp-extra { padding-top: 8px; }
.pdp-info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.info-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; background: var(--surface); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.store-rows { display: grid; gap: 0; }
.store-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.store-row:last-child { border-bottom: 0; }
.store-row b { color: var(--text); font-weight: 500; }
.store-row span { color: var(--text-mut); }
.info-card.ruo { background: var(--primary-soft); border-color: #3B301C; }
.ruo-tag { display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary); border: 1px solid var(--primary); border-radius: var(--r-full); padding: 4px 10px; margin-bottom: 12px; }
.info-card.ruo p { font-size: 14px; line-height: 1.6; }
.reviews-empty { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; text-align: center; }
.reviews-empty h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* Secciones del landing: clientela / calidad */
.landing-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.landing-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.landing-card p { color: var(--text-mut); font-size: 14px; line-height: 1.6; }
.li-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.li-ico svg { width: 24px; height: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* Página de pago (payment.php) */
.pay-page { max-width: 640px; margin: 8px auto 40px; }
.pay-status { display: flex; flex-direction: column; gap: 3px; border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 18px; }
.pay-status b { font-size: 15px; }
.pay-status span { font-size: 13.5px; }
.pay-status.wait { background: #2A2411; border: 1px solid #4A3F1B; color: var(--warning); }
.pay-status.wait span { color: var(--text-mut); }
.pay-status.ok { background: #12251C; border: 1px solid #1E4033; color: var(--success); }
.pay-status.ok span { color: var(--text-mut); }
.pay-status.review { background: #0E1B2E; border: 1px solid #1E3A5F; color: #60A5FA; }
.pay-status.review span { color: var(--text-mut); }
.pay-send { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; margin-top: 16px; background: var(--bg-soft); }
.pay-send h3 { font-size: 1.02rem; margin-bottom: 4px; }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { filter: brightness(.95); }
/* Modal de confirmación propio (reemplaza al confirm() del navegador) */
.pl-confirm-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.pl-confirm-overlay.open { display: flex; }
.pl-confirm { width: 100%; max-width: 384px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-lg); animation: plPop .16s ease; }
@keyframes plPop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-confirm-title { font-size: 1.06rem; margin-bottom: 8px; }
.pl-confirm-msg { color: var(--text-mut); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.pl-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.06); }
/* Selector de divisas (navbar) */
.cur-menu { position: relative; }
.cur-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); padding: 7px 9px; border-radius: var(--r-md); border: 1px solid var(--border); }
.cur-menu > summary::-webkit-details-marker { display: none; }
.cur-menu > summary:hover { border-color: var(--primary); }
.cur-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1300; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 6px; min-width: 132px; max-height: 320px; overflow-y: auto; }
.cur-list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.cur-list a:hover { background: var(--bg-soft); }
.cur-list a.active { color: var(--primary); font-weight: 600; }
/* Catálogo imprimible */
.catalog-print-head { display: none; }
.catalog-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.cat-row { display: grid; grid-template-columns: 1fr; gap: 10px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.cat-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat-short { font-size: 14px; margin-bottom: 6px; }
.cat-ctx { font-size: 12.5px; line-height: 1.5; }
.cat-row-prices { display: flex; flex-direction: column; gap: 4px; }
.cat-price-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.cat-price-line b { color: var(--primary); white-space: nowrap; }
.catalog-foot { text-align: center; margin: 24px 0; font-size: 12px; }
@media (min-width: 720px) { .cat-row { grid-template-columns: 1fr 230px; align-items: start; } }
/* Contexto de investigación (ficha de producto) */
.research-body p { margin-bottom: 10px; line-height: 1.6; }
.research-body > p:first-child { color: var(--text); }
.research-body strong { color: var(--text); font-weight: 600; }
.research-list { margin: 4px 0 14px; padding: 0; list-style: none; }
.research-list li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 14px; color: var(--text-mut); line-height: 1.55; }
.research-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
/* Página 404 */
.notfound { text-align: center; padding: 72px 20px 96px; max-width: 520px; margin: 0 auto; }
.nf-code { font-size: clamp(76px, 18vw, 144px); font-weight: 700; line-height: 1; color: var(--primary); letter-spacing: -.03em; }
.notfound h1 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 6px 0 10px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .pl-confirm { animation: none; } }
.pay-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 2px 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.pay-method-card, .pay-upload { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; background: var(--surface); margin-bottom: 16px; }
.pay-method-card h3, .pay-upload h3 { font-size: 1.05rem; margin-bottom: 14px; }
.pay-detail { display: flex; flex-direction: column; gap: 2px; background: var(--primary-soft); border: 1px solid #3B301C; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; }
.pay-detail b { font-size: 16px; color: var(--primary); overflow-wrap: anywhere; }
.pay-crypto { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pay-crypto-info { flex: 1; min-width: 220px; }
.pay-net { display: inline-block; font-size: 13px; font-weight: 500; color: var(--text-mut); margin-bottom: 8px; }
.pay-qr, .pi-qr { background: #fff; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--border); line-height: 0; }
.pay-qr img { width: 180px; height: 180px; display: block; }
.pi-qr { display: inline-block; margin: 4px 0 12px; }
.pi-qr img { width: 140px; height: 140px; display: block; }
@media (max-width: 480px) { .pay-crypto { justify-content: center; } .pay-crypto-info { min-width: 0; } }
.pay-summary { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.pay-summary .rt-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-mut); }
.pay-summary .rt-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 500; color: var(--text); }
.pay-proof-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pay-proof-actions { display: flex; gap: 8px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Preguntas frecuentes (acordeón) */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-cat { margin-bottom: 26px; }
.faq-cat > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 12px; }
.faq-count { font-size: 12px; font-weight: 500; color: var(--primary); background: var(--primary-soft); border-radius: var(--r-full); padding: 2px 9px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 8px; background: var(--surface); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; font-weight: 500; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--text-mut); transition: transform .2s; flex: none; display: inline-flex; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 16px 16px; color: var(--text-mut); font-size: 14px; line-height: 1.65; }
.faq-a strong { color: var(--text); }
.cta .btn-line { background: transparent; border: 1px solid var(--on-primary); color: var(--on-primary); }
.cta .btn-line:hover { background: var(--on-primary); color: var(--primary); }

@media (min-width: 768px) {
  .pdp-info-grid { grid-template-columns: 1.4fr 1fr; }
  .store-row { grid-template-columns: 160px 1fr; }
  .landing-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Selector de método de pago (checkout) */
.pay-methods { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; }
.pay-opt input { flex: none; }
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt-body { display: flex; flex-direction: column; min-width: 0; }
.pay-opt-title { font-weight: 500; font-size: 15px; }
.pay-opt-sub { font-size: 13px; color: var(--text-mut); overflow-wrap: anywhere; }
.card-actions { padding: 0 12px 12px; }
/* Botón "Añadir" que se transforma en stepper − qty + */
.js-cart-control { width: 100%; }
/* Stepper sin marco, gris humo */
.qty-block { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px;
  border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--smoke); }
.qty-block button { width: 46px; height: 100%; border: 0; background: transparent; color: var(--text);
  font-size: 20px; font-weight: 500; transition: background .15s; }
.qty-block button:hover { background: var(--smoke-2); }
.qty-block .qv { font-weight: 500; color: var(--text); font-size: 15px; }

/* Stepper de cantidad */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface); }
.qty button { width: 36px; align-self: stretch; background: var(--surface); border: 0; font-size: 18px; color: var(--text-mut);
  transition: background .15s; }
.qty button:hover { background: var(--smoke); }
.qty input { width: 40px; text-align: center; border: 0; border-inline: 1px solid var(--border);
  -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card .qty { flex: none; }
.card .qty input { width: 34px; }
.card .qty button { width: 30px; height: 42px; }
.card-actions .btn { flex: 1; }

/* ---------- 14. Layout de tienda ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-toolbar .count { font-size: 14px; color: var(--text-mut); }
.filters-toggle { display: inline-flex; }
.sidebar { display: none; }
.sidebar.open { display: block; }
/* Cabecera/pie de la hoja de filtros: solo en móvil/tablet */
.sidebar-head, .sidebar-foot { display: none; }
.sidebar-overlay { display: none; }

/* En móvil/tablet los filtros son una HOJA DESLIZANTE desde la derecha */
@media (max-width: 1023px) {
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1500; }
  .sidebar-overlay.open { opacity: 1; visibility: visible; }
  .sidebar { display: flex !important; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-width: none; max-height: 85vh; background: var(--surface); z-index: 1600;
    border-radius: 22px 22px 0 0; transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -12px 40px rgba(0,0,0,.5); overflow-y: auto; }
  .sidebar.open { transform: translateY(0); }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2;
    border-radius: 22px 22px 0 0; }
  /* Barra para arrastrar (indicador de hoja) */
  .sidebar-head::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 20px; background: var(--border-2); }
  .sidebar-head h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mut); }
  .sidebar-foot { display: block; position: sticky; bottom: 0; margin-top: auto; background: var(--surface);
    border-top: 1px solid var(--border); padding: 14px 16px; }
  .sidebar .filter-block { margin: 16px 16px 0; }
  .sidebar .filter-block:last-of-type { margin-bottom: 16px; }
}
.filter-block { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; }
.filter-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 500; margin-bottom: 10px; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--text); transition: background .15s, color .15s; }
.filter-list a:hover { background: var(--bg-soft); }
.filter-list a.active { background: var(--primary-soft); color: var(--primary); }
.filter-list a span { font-size: 12px; color: var(--text-dis); }
.searchbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 12px; background: var(--surface); }
.searchbar input { border: 0; outline: 0; padding: 10px 0; width: 100%; background: transparent; }
.searchbar svg { width: 18px; height: 18px; color: var(--text-dis); flex: none; }

/* ---------- 15. Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1fr; gap: 26px; padding-block: 28px; }
.pdp-media { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; display: grid; place-items: center; align-self: start; }
.pdp-media .vial { height: 240px; width: auto; }
/* Foto de producto en la ficha: el marco SE AJUSTA a la imagen (sin caja/relleno alrededor).
   Vertical, grande, y la foto llena el marco de borde a borde. */
.pdp-media:has(.pimg-photo) { padding: 0; background: transparent; border: 0; place-items: stretch; }
.pdp-media .pimg-photo { width: 100%; max-width: 440px; height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; margin: 0 auto; }
.pdp-media .pimg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 8px; }
.pdp .pdp-cat { color: var(--text-dis); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.pdp-price .now { font-size: 28px; font-weight: 500; }
.pdp-price .was { font-size: 16px; color: var(--text-dis); text-decoration: line-through; }
.pdp-specs { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin: 18px 0; }
.pdp-specs .row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.pdp-specs .row:last-child { border-bottom: 0; }
.pdp-specs .row span:first-child { color: var(--text-mut); }
.pdp-specs .row span:last-child { font-weight: 500; }
.pdp-buy { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pdp .qty button { width: 44px; height: 46px; }
.pdp .qty input { width: 48px; height: 46px; }
.pdp-desc { margin-top: 8px; color: var(--text-mut); }
.pdp-desc h3 { color: var(--text); margin: 18px 0 8px; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.stock-pill.ok { color: var(--success); }
.stock-pill.out { color: var(--danger); }
.stock-pill .d { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- 16. Carrito / Checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 22px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item .thumb { width: 64px; height: 64px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); display: grid; place-items: center; padding: 6px; }
.cart-item .thumb .vial { height: 100%; width: auto; }
/* Foto real del producto en el mini-thumb (carrito, checkout, drawer): llena el cuadro */
.cart-item .thumb:has(.pimg-photo) { padding: 0; }
.cart-item .thumb .pimg-mini.pimg-photo { width: 100%; height: 100%; border-radius: calc(var(--r-md) - 1px); overflow: hidden; }
.cart-item .thumb .pimg-mini.pimg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item h4 { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .ci-meta { font-size: 12.5px; color: var(--text-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .ci-remove { background: none; border: 0; color: var(--text-dis); font-size: 13px; font-weight: 500; }
.cart-item .ci-remove:hover { color: var(--danger); }
.cart-summary { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; height: fit-content; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.cart-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 500; }
.cart-summary .row .disc { color: var(--success); font-weight: 500; }
.cart-empty { text-align: center; padding: 56px 16px; }
.cart-empty .ico { width: 68px; height: 68px; margin: 0 auto 16px; color: var(--text-dis); }
.free-ship-bar { background: var(--bg-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.free-ship-bar .track { height: 6px; background: var(--smoke-2); border-radius: var(--r-full); margin-top: 8px; overflow: hidden; }
.free-ship-bar .fill { height: 100%; background: var(--success); border-radius: var(--r-full); transition: width .3s; }
.coupon-row { display: flex; gap: 8px; margin: 4px 0 14px; }
.coupon-row input { flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 12px; text-transform: uppercase; }
.coupon-row .btn { flex: 0 0 auto; }
/* Evita que las filas del pedido se salgan del recuadro */
.cart-summary { overflow: hidden; }
.cart-item > div { min-width: 0; }
.checkout-layout .cart-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
/* El thumb base mide 64px; en checkout la columna es 52px → se encimaba sobre el texto */
.checkout-layout .cart-item .thumb { width: 52px; height: 52px; }

/* Validación de formulario: borde rojo + texto rojo sencillo */
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .cselect, .cselect.is-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 500; margin-top: 5px; }
.coupon-row input:focus { border-color: var(--primary); outline: none; }
.coupon-msg { font-size: 12.5px; margin: -8px 0 12px; font-weight: 500; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.err { color: var(--danger); }

/* ---------- 17. CTA ---------- */
.cta { background: linear-gradient(135deg, #E6CE8C 0%, #CFAE68 55%, #A9863F 100%); color: var(--on-primary); border-radius: var(--r-xl); padding: 38px 24px; text-align: center; }
.cta h2 { color: var(--on-primary); }
.cta p { color: rgba(20,17,10,.78); margin: 10px auto 22px; max-width: 480px; }
.cta .btn-secondary { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
.cta .btn-secondary:hover { background: #000; color: var(--primary-dark); }

/* ---------- 18. Formularios / Auth ---------- */
.auth-wrap { max-width: 440px; margin: 36px auto; }
.auth-card { border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; background: var(--surface); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-mut); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 10px 12px; background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field .hint { font-size: 12px; color: var(--text-dis); margin-top: 4px; }
.form-row { display: grid; gap: 14px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-mut); }
.auth-alt a { color: var(--primary); font-weight: 500; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-dis); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 16px; }
.signin-alert { background: var(--primary-soft); color: var(--primary); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.signin-alert span { min-width: 0; }
.signin-alert .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .signin-alert { flex-direction: column; align-items: stretch; text-align: center; } }
.alert-error { background: #2A1515; color: #F87171; border: 1px solid #4A2020; }
.alert-ok { background: #12251C; color: #34D399; border: 1px solid #1E4033; }

/* ---------- 19. WhatsApp flotante ---------- */
/* Móvil: círculo solo con el icono de WhatsApp */
/* Botón flotante único de soporte (audífonos) que despliega los canales de contacto */
.support-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1400; }
.support-fab > summary { list-style: none; cursor: pointer; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, #CBA85F 0%, #AE8A45 100%); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-lg);
  transition: filter .15s, transform .15s; }
.support-fab > summary::-webkit-details-marker { display: none; }
.support-fab > summary:hover { filter: brightness(1.05); }
.support-fab[open] > summary { transform: rotate(90deg); }
.support-ico { width: 28px; height: 28px; }
.support-x { width: 22px; height: 22px; display: none; }
.support-fab[open] .support-ico { display: none; }
.support-fab[open] .support-x { display: block; }
.support-menu { position: absolute; right: 0; bottom: 68px; display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end; animation: supIn .18s ease; }
@keyframes supIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.support-title { font-size: 12.5px; color: var(--text-mut); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--r-full); box-shadow: var(--sh-md); white-space: nowrap; }
.support-opt { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: var(--r-full);
  color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh-lg); white-space: nowrap; transition: filter .15s; }
.support-opt:hover { filter: brightness(.96); }
.support-opt svg { width: 22px; height: 22px; flex: none; }
.support-opt.wa { background: var(--whatsapp); }
.support-opt.tg { background: #229ED9; }

/* ---------- 20. Footer ---------- */
.footer { background: var(--bg-soft); margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); margin-bottom: 12px; }
.footer a { display: block; padding: 6px 0; color: var(--text-mut); font-size: 14px; transition: color .15s; }
.footer a:hover { color: var(--primary); }
.footer .brand { margin-bottom: 12px; }
.footer .about p { font-size: 13.5px; color: var(--text-mut); max-width: 320px; }
.foot-ships { margin-top: 10px !important; font-size: 12.5px !important; color: var(--text-dis) !important; }
.foot-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.foot-contact { display: flex; align-items: center; gap: 10px; padding: 0 !important; font-size: 14px; color: var(--text-mut); }
.foot-contact:hover { color: var(--primary); }
.foot-contact svg { color: var(--primary); flex: none; }
.foot-contact span, .foot-contact { overflow-wrap: anywhere; }
.disclaimer { padding-block: 20px; font-size: 12px; color: var(--text-dis); line-height: 1.6; }
.disclaimer strong { color: var(--text-mut); }
/* Disclaimer del footer: a todo el ancho, con línea separadora (no "esquinado") */
.footer .disclaimer { max-width: none; border-top: 1px solid var(--border); margin-top: 4px; }
/* Bloque legal completo del footer (compacto) */
.footer-legal { padding-block: 20px; font-size: 12px; color: var(--text-dis); line-height: 1.6; }
.footer-legal h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); margin-bottom: 10px; }
.footer-legal p { margin-bottom: 8px; }
.footer-legal strong { color: var(--text-mut); }
.footer-legal .legal-list { margin: 4px 0 10px; gap: 4px; }
.footer-legal .legal-list li { font-size: 12px; color: var(--text-dis); padding-left: 18px; line-height: 1.5; }
.footer-legal .legal-list li::before { color: var(--text-mut); }
.footer-bottom { padding-block: 16px; display: flex; justify-content: center; align-items: center; gap: 8px 18px; flex-wrap: wrap; text-align: center; font-size: 13px; color: var(--text-mut); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.legal-links a { position: relative; }
.legal-links a:not(:last-child)::after { content: "·"; position: absolute; right: -11px; color: var(--text-dis); }
.legal-links a:hover { color: var(--primary); }

/* ---------- 21. Breadcrumb / Toast ---------- */
.crumb { font-size: 13px; color: var(--text-mut); padding-block: 18px 2px; }
.crumb a:hover { color: var(--primary); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--smoke-2); color: var(--text); border: 1px solid var(--border-2); padding: 12px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-lg); z-index: 2000; transition: transform .3s ease; display: flex; align-items: center; gap: 8px; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* ---------- 22. Admin ---------- */
.admin-top { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
.admin-top .container { display: flex; align-items: center; gap: 16px; height: 58px; }
.admin-top .brand { color: var(--text); }
.admin-top .brand b { color: var(--primary); }
.admin-top nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.admin-top nav a { color: rgba(255,255,255,.8); font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: var(--r-md); }
.admin-top nav a:hover, .admin-top nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.stat-card b { font-size: 26px; font-weight: 500; display: block; }
.stat-card span { font-size: 13px; color: var(--text-mut); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: auto; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.admin th, table.admin td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.admin th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mut); }
table.admin tr:last-child td { border-bottom: 0; }
.admin-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.admin-card h3 { margin-bottom: 16px; }
.pill { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-full); background: var(--smoke); color: var(--text-mut); }
.row-actions { display: flex; gap: 6px; }
/* Pestañas de filtro (pedidos) */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.admin-tab { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-mut); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
/* Detalle de pedido: dos columnas en pantallas anchas */
.order-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
/* Restablecer contraseña (popover en la lista de admins) */
.reset-pop { display: inline-block; position: relative; }
.reset-pop > summary { list-style: none; cursor: pointer; }
.reset-pop > summary::-webkit-details-marker { display: none; }
.reset-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; width: 230px; }
/* Controles de formulario del admin (solo dentro de <main class="container">) */
main.container input[type=text], main.container input[type=number], main.container input[type=search],
main.container textarea, main.container select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-soft); color: var(--text); font-size: 14px; font-family: inherit;
}
main.container input:focus, main.container textarea:focus, main.container select:focus {
  outline: none; border-color: var(--primary);
}
main.container label.btn input[type=file] { display: none; }

/* ---------- 23. Buscador del navbar ---------- */
/* Popup de búsqueda (baja desde arriba, con fondo oscuro) */
.search-overlay { position: fixed; inset: 0; background: rgba(15,20,30,.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1650; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel { position: fixed; top: 0; left: 0; right: 0; z-index: 1700; background: var(--surface); box-shadow: var(--sh-lg);
  padding: 14px 0 18px; transform: translateY(-105%); visibility: hidden;
  transition: transform .28s ease, visibility .28s ease; }
.search-panel.open { transform: translateY(0); visibility: visible; }
/* PC: desplegable anclado bajo la barra (sin fondo oscuro), no popup */
@media (min-width: 768px) {
  .search-overlay { display: none; }
  .search-panel { position: fixed; top: var(--nav-h); left: auto; right: 16px; width: 460px; max-width: calc(100vw - 32px);
    border-radius: 0 0 16px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .search-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .search-panel > .container { max-width: none; padding-inline: 16px; }
}
.searchbar-lg { height: 50px; padding: 0 8px 0 14px; border-color: var(--border-2); gap: 10px; }
.searchbar-lg input { font-size: 16px; }
.searchbar-lg .btn { flex: none; }
.searchbar-lg .icon-btn { width: 38px; height: 38px; flex: none; }
.search-results { margin-top: 10px; display: grid; gap: 2px; }
.search-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); }
.search-item:hover { background: var(--bg-soft); }
.search-item .si-name { font-weight: 500; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .si-meta { font-size: 13px; color: var(--text-mut); white-space: nowrap; flex: none; }
.search-all { display: block; padding: 10px 12px; font-weight: 500; color: var(--primary); font-size: 14px; }
.search-hint { padding: 10px 12px; color: var(--text-dis); font-size: 14px; }

/* ---------- 24. Filtro de precio ---------- */
.price-form { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.price-form input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 8px; font-size: 15px; }
.price-form input:focus { border-color: var(--primary); outline: none; }
.price-form span { color: var(--text-dis); }
.price-form .btn { flex: none; }
.clear-filter { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--danger); }

/* ---------- 25. Textos menos anchos (más legibles) ---------- */
.hero p.lead { max-width: 460px; }
.section-head p { max-width: 560px; }
.pdp-desc { max-width: 620px; }
.pdp-desc p { max-width: 60ch; }
.disclaimer { max-width: 880px; }
.hero-visual .cell .pimg { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }

/* ---------- 26. Libreta de direcciones + teléfono internacional ---------- */
.addr-list { display: grid; gap: 10px; margin-bottom: 14px; }
.addr-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.addr-opt input { margin-top: 3px; flex: none; }
.addr-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.addr-opt { min-width: 0; }
.addr-opt > span { min-width: 0; }
.addr-opt .a-name { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-opt .a-detail { display: block; font-size: 13px; color: var(--text-mut); overflow-wrap: anywhere; }
details.new-addr > summary { list-style: none; cursor: pointer; font-weight: 500; color: var(--primary); font-size: 14px; padding: 8px 0; }
details.new-addr > summary::-webkit-details-marker { display: none; }
/* intl-tel-input ocupa todo el ancho */
.iti { width: 100%; }
.iti input { width: 100%; }

/* ---------- 27. Hero del inicio (imagen única) ---------- */
.hero-banner { display: block; width: 100%; line-height: 0; background: var(--smoke); }
.hero-banner img { width: 100%; height: auto; display: block; }

/* ---------- 28. Footer: barra de soporte ---------- */
.footer-support { background: var(--surface); color: var(--text-mut); font-size: 13.5px; font-weight: 500; border-top: 1px solid var(--border); }
.footer-support .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding-block: 13px; text-align: center; }
.footer-support .fs-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.footer-support .fs-item + .fs-item::before { content: "·"; color: var(--text-dis); }
.footer-support a { color: var(--primary); font-weight: 500; text-decoration: none; }
.footer-support a:hover { text-decoration: underline; }
/* Móvil: apilar limpio sin los "·" colgando al inicio de línea */
@media (max-width: 560px) {
  .footer-support .container { flex-direction: column; gap: 5px; }
  .footer-support .fs-item + .fs-item::before { content: none; }
}
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 29. Página legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding-bottom: 20px; }
.legal h2 { margin: 8px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p { color: var(--text-mut); margin-bottom: 12px; line-height: 1.7; }
.legal-list { margin: 0 0 14px; padding-left: 0; display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 22px; color: var(--text-mut); line-height: 1.6; }
.legal-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 500; }
.legal-hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------- 30. Ajuste fino en teléfono: tarjetas más compactas ---------- */
@media (max-width: 767px) {
  .product-grid { gap: 10px; }
  .card-media { padding: 0; }
  .pimg-card .pimg-name { font-size: clamp(15px, 4.6vw, 20px); }
  .pimg-card .pimg-name::after { width: 22px; height: 2px; margin-top: 8px; }
  .pimg-card .pimg-size { font-size: 11px; }
  .card-body { padding: 10px 10px 4px; gap: 4px; }
  .card-title { font-size: 16.5px; min-height: 40px; }
  .card-meta { font-size: 11px; gap: 6px; }
  .card-price .now { font-size: 15px; }
  .card-price .was { font-size: 11.5px; }
  .card-actions { padding: 0 10px 10px; }
  .card-actions .btn { min-height: 38px; font-size: 12.5px; padding: 0 10px; gap: 5px; }
  .card-actions .btn svg { width: 15px; height: 15px; }
  .qty-block { height: 38px; }
  .qty-block button { width: 38px; font-size: 17px; }
  .qty-block .qv { font-size: 14px; }
  .badge { font-size: 9.5px; padding: 2px 7px; }
  .discount-badge { font-size: 10px; padding: 2px 6px; bottom: 8px; left: 8px; }
  .card-fav { width: 28px; height: 28px; top: 6px; right: 6px; }
  .card-fav svg { width: 18px; height: 18px; }
}

/* ---------- 31b. Selector geográfico premium (país/estado): buscador + banderas + bottom-sheet ---------- */
.geo-trigger { width: 100%; min-height: 46px; border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); display: flex; align-items: center; gap: 9px; padding: 0 12px 0 14px;
  cursor: pointer; font-size: 15px; text-align: left; transition: border-color .15s; }
.geo-trigger:hover { border-color: var(--primary); }
.geo-trigger:focus-visible { border-color: var(--primary); outline: none; }
.geo-trigger .gt-flag { font-size: 19px; line-height: 1; flex: none; }
.geo-trigger .gt-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-trigger .gt-label.is-ph { color: var(--text-dis); }
.geo-trigger .gt-caret { width: 16px; height: 16px; color: var(--text-dis); flex: none; }
.field.is-invalid .geo-trigger { border-color: var(--danger); }
.phone-input .geo-trigger.gt-cc { width: auto; min-width: 92px; flex: none; gap: 6px; padding-right: 8px; }

.geo-overlay { position: fixed; inset: 0; background: rgba(6,6,9,.62); z-index: 3200; opacity: 0; visibility: hidden; transition: opacity .22s; }
.geo-overlay.open { opacity: 1; visibility: visible; }
.geo-sheet { position: fixed; z-index: 3201; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; visibility: hidden; pointer-events: none;
  left: 0; right: 0; bottom: 0; max-height: 85vh; border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1), visibility .3s; box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.geo-sheet.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.geo-sheet-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.geo-handle { width: 44px; height: 5px; border-radius: 20px; background: var(--border-2); margin: 0 auto 10px; }
.geo-sheet-title { font-weight: 600; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.geo-sheet-title button { background: none; color: var(--text-dis); font-size: 24px; line-height: 1; padding: 0 4px; cursor: pointer; }
.geo-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 12px; background: var(--bg); }
.geo-search svg { width: 18px; height: 18px; color: var(--text-dis); flex: none; }
.geo-search input { border: 0; outline: 0; background: transparent; width: 100%; min-height: 44px; color: var(--text); font-size: 16px; }
.geo-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0; overscroll-behavior: contain; }
.geo-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-size: 15px; }
.geo-item:hover, .geo-item.active { background: var(--smoke); }
.geo-item .gi-flag { font-size: 21px; line-height: 1; flex: none; }
.geo-item .gi-name { flex: 1; }
.geo-item .gi-dial { color: var(--text-mut); font-size: 13px; }
.geo-item.sel { color: var(--primary); font-weight: 600; }
.geo-empty { padding: 22px 16px; color: var(--text-mut); text-align: center; font-size: 14px; }
@media (min-width: 768px) {
  .geo-overlay { background: transparent; }
  .geo-sheet.geo-sheet--drop { left: auto; right: auto; bottom: auto; width: 340px; max-height: 380px;
    border-radius: var(--r-lg); transform: translateY(-6px); opacity: 0; box-shadow: var(--sh-lg);
    transition: opacity .15s ease, transform .15s ease; }
  .geo-sheet.geo-sheet--drop.open { transform: translateY(0); opacity: 1; }
  .geo-sheet--drop .geo-handle { display: none; }
  .geo-sheet--drop .geo-sheet-title button { display: none; }
  .geo-sheet--drop .geo-sheet-title { display: none; }
}

/* ---------- 31. Bottom sheet + selectores propios ---------- */
.sheet-overlay { position: fixed; inset: 0; background: rgba(15,20,30,.55); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 3000; }
.sheet-overlay.open { opacity: 1; visibility: visible; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3001; background: var(--surface); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -12px 40px rgba(0,0,0,.22);
  display: flex; flex-direction: column; max-height: 85vh; }
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 44px; height: 5px; border-radius: 20px; background: var(--border-2); margin: 12px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 12px; }
.sheet-head h3 { font-size: 16px; font-weight: 500; }
.sheet-close { width: 34px; height: 34px; border: 0; background: var(--smoke); border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text); display: grid; place-items: center; }
.sheet-search { padding: 0 18px 12px; border-bottom: 1px solid var(--border); }
.sheet-search input { width: 100%; height: 44px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 12px; font-size: 16px; }
.sheet-search input:focus { border-color: var(--primary); outline: none; }
.sheet-body { overflow-y: auto; padding: 8px 10px 24px; -webkit-overflow-scrolling: touch; }
.sheet-empty { padding: 18px; text-align: center; color: var(--text-dis); }
.sheet-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px; border-radius: var(--r-md); font-size: 15px; color: var(--text); cursor: pointer; }
.sheet-opt:hover { background: var(--bg-soft); }
.sheet-opt.sel { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.sheet-opt .fi { width: 26px; height: 19px; border-radius: 3px; flex: none; }
.sheet-opt-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-opt .dial { color: var(--text-mut); font-size: 14px; }

/* Selector propio (dispara el sheet) */
.cselect { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 8px 12px; background: var(--bg); cursor: pointer; text-align: left; font-size: 15px; color: var(--text); }
.cselect:hover { border-color: var(--primary); }
.cselect:disabled { opacity: .55; cursor: not-allowed; }
.cselect-flag { width: 24px; height: 18px; border-radius: 3px; flex: none; }
.cselect-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-caret { width: 18px; height: 18px; color: var(--text-mut); flex: none; }
.phone-input { display: flex; gap: 8px; }
.phone-input .phone-cc { width: auto; flex: none; gap: 6px; max-width: 150px; }
select.phone-cc { min-height: 46px; }
.phone-input .phone-num { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 12px; font-size: 16px; }
.phone-input .phone-num:focus { border-color: var(--primary); outline: none; }

/* En escritorio: desplegable anclado al campo (posición por JS), no popup */
.sheet-overlay.transparent { background: transparent; }
.sheet--dropdown { right: auto; bottom: auto; max-height: 360px; border-radius: 14px; box-shadow: var(--sh-lg);
  transform: translateY(-6px); opacity: 0; transition: opacity .16s ease, transform .16s ease; }
.sheet--dropdown.open { transform: translateY(0); opacity: 1; }
.sheet--dropdown .sheet-handle { display: none; }
.sheet--dropdown .sheet-head { padding: 12px 16px 8px; }
.sheet--dropdown .sheet-head h3 { font-size: 14px; }
.sheet--dropdown .sheet-search { padding: 0 16px 10px; }
.sheet--dropdown .sheet-body { padding: 6px 8px 10px; }

/* ---------- 32. Favorito activo + seguimiento de pedidos ---------- */
.card-fav.is-fav { color: var(--danger); }
.card-fav.is-fav svg { fill: var(--danger); stroke: var(--danger); }

.order-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; box-shadow: var(--sh-sm); }
.order-card.is-new { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
/* Estado de pago (los admins aprueban manualmente) */
.pay-pill { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: var(--r-full); white-space: nowrap; }
.pay-pill.paid { background: #12251C; color: var(--success); }
.pay-pill.pending { background: #2A2411; color: var(--warning); }
.pay-pill.review { background: #12202A; color: #60A5FA; }
.tracker { display: flex; justify-content: space-between; position: relative; }
.tracker::before { content: ""; position: absolute; top: 9px; left: 12%; right: 12%; height: 2px; background: var(--border-2); z-index: 0; }
.tstep { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.tdot { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); transition: .2s; }
.tstep.done .tdot { background: var(--primary); border-color: var(--primary); }
.tstep.current .tdot { box-shadow: 0 0 0 4px var(--primary-soft); }
.tlabel { font-size: 11px; color: var(--text-mut); font-weight: 500; line-height: 1.2; }
.tstep.done .tlabel { color: var(--text); }

/* ---------- 33. Comprobantes (pago / envío) + pedidos ---------- */
.order-track-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-mut); }
.order-track-row b { color: var(--text); }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.receipt { max-width: 720px; margin: 8px auto 40px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; background: var(--surface); box-shadow: var(--sh-sm); }
.receipt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--text); flex-wrap: wrap; }
.receipt-brand-wrap { display: flex; align-items: center; gap: 12px; }
.receipt-brand { font-size: 22px; font-weight: 500; color: var(--primary); letter-spacing: .01em; }
.receipt-logo { height: 40px; width: auto; display: block; }
.receipt-type { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mut); }
.receipt-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 16px 0; font-size: 14px; }
.receipt-stamp { margin-left: auto; border: 3px solid var(--success); color: var(--success); font-weight: 500; letter-spacing: .1em; padding: 6px 16px; border-radius: 8px; transform: rotate(-6deg); font-size: 18px; }
.receipt-stamp.paid { border-color: var(--success); color: var(--success); }
.receipt-stamp.pending { border-color: var(--warning); color: var(--warning); font-size: 13px; letter-spacing: .06em; padding: 6px 12px; }
.receipt-stamp.review { border-color: #60A5FA; color: #60A5FA; font-size: 13px; letter-spacing: .06em; padding: 6px 12px; }
.receipt-ship { display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; font-size: 14px; }
/* Guía de envío (subir/descargar) */
.receipt-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.receipt-guide .rg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt-ship .rs-track b { font-size: 18px; letter-spacing: .04em; }
.receipt-parties { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; font-size: 14px; line-height: 1.6; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.receipt-table th, .receipt-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.receipt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mut); }
.receipt-totals { margin-left: auto; max-width: 300px; margin-top: 8px; }
.rt-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.rt-total { border-top: 2px solid var(--text); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 500; }
.receipt-foot { margin-top: 20px; font-size: 12px; text-align: center; }
.receipt-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (min-width: 560px) {
  .receipt { padding: 28px; }
  .receipt-ship { grid-template-columns: 1fr 1fr 1fr; }
  .receipt-parties { grid-template-columns: 1fr 1fr; }
}

/* ---------- 34. Focus accesible ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible, .icon-btn:focus-visible { outline-offset: 3px; }

/* ---------- 35. Idioma en el sidebar ---------- */
.drawer-lang { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.drawer-lang-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--r-md); font-weight: 500; font-size: 14px; color: var(--text); }
.lang-pill .fi { width: 20px; height: 15px; border-radius: 2px; }
.lang-pill.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- 36. Carrito lateral (mini-cart, desde la derecha) ---------- */
.cartd-overlay { position: fixed; inset: 0; background: rgba(15,20,30,.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1500; }
.cartd-overlay.open { opacity: 1; visibility: visible; }
.cartd { position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; background: var(--surface); z-index: 1600;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.cartd.open { transform: translateX(0); }
.cartd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cartd-head h3 { font-size: 16px; font-weight: 500; }
.cartd-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cartd-items { flex: 1; overflow-y: auto; padding: 6px 18px; }
.cartd-foot { border-top: 1px solid var(--border); padding: 16px 18px; }
.cartd-foot .row { display: flex; justify-content: space-between; font-weight: 500; font-size: 16px; margin-bottom: 12px; }
.cartd-empty { text-align: center; color: var(--text-mut); padding: 48px 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .product-grid { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .about { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 42px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding-block: 40px 46px; }
  .hero-cta { flex-direction: row; }
  .hero-visual .vial { height: 150px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card-title { font-size: 21px; min-height: 50px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start; }
  .footer-grid .about { grid-column: auto; }
  .footer-bottom { justify-content: space-between; text-align: left; }
  .pdp { grid-template-columns: 1fr 1fr; padding-block: 36px; }
  .pdp-media .vial { height: 280px; }
  .pdp-media .pimg-photo { aspect-ratio: 4 / 5; }  /* en escritorio se mantiene un poco vertical */
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  /* Solo el resumen del carrito es sticky; en checkout hay 2 recuadros y no deben fijarse (se encimaban) */
  .cart-layout .cart-summary { position: sticky; top: calc(var(--nav-h) + 16px); }
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
  .form-row.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Escritorio: pastilla con icono + texto */
  .support-fab { right: 22px; bottom: 22px; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-search { display: flex; }
  .nav-actions [data-search-open] { display: none; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 250px 1fr; }
  .sidebar { display: block !important; position: sticky; top: calc(var(--nav-h) + 16px); height: fit-content; }
  .filters-toggle { display: none; }
  .shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
  .shop-layout .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Carrusel horizontal (swipe) de features y categorías en teléfono ---------- */
@media (max-width: 767px) {
  .features-grid, .cat-grid {
    display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; scroll-padding-left: 16px;
  }
  .features-grid { padding-block: 26px 12px; }
  .features-grid::-webkit-scrollbar, .cat-grid::-webkit-scrollbar { display: none; }
  .features-grid > .feature {
    flex: 0 0 82%; scroll-snap-align: start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 20px 18px; margin: 0;
  }
  .cat-grid > .cat-card { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ---------- Impresión de comprobantes ---------- */
/* Sin margen de página => el navegador no imprime su encabezado/pie (fecha, URL, nº de página).
   El margen visual del documento lo da el padding del propio comprobante. */
@page { margin: 0; }
@media print {
  /* Ningún elemento debe proyectar sombra en papel (evita franjas grises en los bordes). */
  * { box-shadow: none !important; text-shadow: none !important; }
  .ruo-bar, .topbar, .nav, .footer, .support-fab, .toast, .pl-confirm-overlay, .drawer, .drawer-overlay,
  .sheet, .sheet-overlay, .search-overlay, .search-panel, .no-print, .crumb,
  .receipt-actions, .rg-actions { display: none !important; }
  html, body { background: #fff !important; color: #1A1A1A !important; }
  .container { padding: 0; max-width: none; margin: 0; }
  /* Forzamos TODO el comprobante a blanco+texto oscuro para que salga legible
     aunque el navegador imprima gráficos de fondo. */
  .receipt { border: 0; box-shadow: none; margin: 0; max-width: none; padding: 11mm 13mm; }
  .receipt, .receipt * { color: #1A1A1A !important; background: transparent !important; box-shadow: none !important; }
  .receipt .muted, .receipt-type, .receipt-table th, .receipt-foot { color: #666 !important; }
  .receipt-brand { color: #A9863F !important; }
  /* El logo es blanco (pensado para el header oscuro): en papel blanco lo volvemos negro. */
  .receipt-logo { filter: brightness(0) !important; opacity: .9; }
  .receipt-stamp, .receipt-stamp.paid { color: #0E7A57 !important; border-color: #0E7A57 !important; }
  .receipt-stamp.pending { color: #B45309 !important; border-color: #B45309 !important; }
  .receipt-stamp.review { color: #2563EB !important; border-color: #2563EB !important; }
  .receipt-top, .rt-total { border-color: #1A1A1A !important; }
  .receipt-table th, .receipt-table td { border-color: #ccc !important; }
  .receipt-ship, .receipt-guide { border: 1px solid #ccc !important; }
  /* Compactación para que un comprobante típico entre en una sola hoja. */
  .receipt-meta { padding: 12px 0; }
  .receipt-parties { margin: 12px 0; }
  .receipt-table { margin: 12px 0; }
  .receipt-table th, .receipt-table td { padding: 7px 8px; }
  .receipt-foot { margin-top: 14px; }
  .receipt-table tr, .receipt-totals { break-inside: avoid; }
  /* Catálogo en PDF: fondo blanco, texto oscuro, membrete arriba */
  .catalog-page, .catalog-page * { color: #1A1A1A !important; background: transparent !important; box-shadow: none !important; }
  .catalog-page .cat-price-line b, .catalog-page .cat-brand { color: #A9863F !important; }
  .catalog-print-head { display: flex !important; align-items: center; gap: 12px; border-bottom: 2px solid #1A1A1A; padding-bottom: 12px; margin-bottom: 16px; }
  .catalog-print-head .cat-logo { height: 40px; width: auto; filter: brightness(0); }
  .cat-brand { font-size: 20px; font-weight: 700; }
  .cat-tag { font-size: 10.5px; color: #666 !important; }
  .cat-row { border: 1px solid #ccc !important; break-inside: avoid; padding: 12px !important; }
  .cat-ctx { color: #555 !important; }
  .cat-price-line { border-bottom-color: #ccc !important; }
}

/* ---------- Sin negritas: Inter "medium" (500) como peso máximo en todo el sitio ---------- */
b, strong { font-weight: 500; }
[style*="font-weight:900"], [style*="font-weight: 900"],
[style*="font-weight:800"], [style*="font-weight: 800"],
[style*="font-weight:700"], [style*="font-weight: 700"],
[style*="font-weight:600"], [style*="font-weight: 600"],
[style*="font-weight:bold"], [style*="font-weight: bold"] { font-weight: 500 !important; }

/* Encabezado del carrito más compacto (crumb → título → productos sin tanto espacio) */
[data-cart-root] .section-head { margin-bottom: 8px; }
[data-cart-root] .cart-layout { padding-block: 10px 22px; }
