/* ============================================================
   Skala Venezuela — Catálogo 2026
   Estética inspirada en la web oficial de Skala Brasil.
   Funciona como web (tipo blog) y como PDF imprimible.
   ============================================================ */

:root {
  --verde: #7ab648;        /* verde lima principal */
  --verde-osc: #5f9e35;
  --verde-claro: #a8d66b;
  --rosa: #e94e8c;         /* magenta/rosa */
  --rosa-osc: #d2336f;
  --naranja: #f5822a;      /* naranja */
  --naranja-osc: #e06a12;
  --crema: #fdf7ef;        /* fondo claro */
  --crema-2: #fffdf8;
  --tinta: #26241f;        /* texto principal */
  --tinta-suave: #5c574e;
  --blanco: #ffffff;
  /* Tokens que cambian con el tema (claro / oscuro) */
  --superficie: #ffffff;                       /* tarjetas, campos, ventanas */
  --barra-fondo: rgba(253, 247, 239, 0.94);    /* barras superiores */
  --borde: rgba(38, 36, 31, 0.15);
  --borde-suave: rgba(38, 36, 31, 0.08);
  --verde-suave: #eef6e4;                       /* fondos de avisos verdes */
  --enlace: var(--rosa-osc);
  --boton: #d2336f;        /* rosa de botones: texto blanco legible (contraste 4.6:1) */
  --boton-activo: #b82a60;
  color-scheme: light;
  --sombra: 0 10px 30px rgba(38, 36, 31, 0.12);
  --radio: 22px;
  --radio-lg: 34px;
}

/* ============================================================
   MOBILE FIRST: los estilos base son para teléfono (>=320px).
   Las pantallas grandes se agregan con @media (min-width: ...):
     561px  -> tablet / teléfono horizontal
     901px  -> escritorio
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Que la barra superior fija no tape el título al saltar a una sección */
section[id] { scroll-margin-top: 112px; }

img { max-width: 100%; height: auto; }
/* "hidden" siempre oculta, aunque la clase tenga display (botones, links del menú) */
[hidden] { display: none !important; }

/* Tacto: sin destello gris al tocar y sin retraso de doble toque en botones */
a, button, input, label, .filter { -webkit-tap-highlight-color: transparent; }
button, .btn, .qty-btn, .filter, .nav a { touch-action: manipulation; }

:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 2px; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand, .btn, .step-num {
  font-family: "Baloo 2", "Poppins", sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.eyebrow {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rosa);
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.lede {
  font-size: 1.05rem;
  color: var(--tinta-suave);
  max-width: 640px;
}

/* ---------- Blobs de fondo ---------- */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 320px;
  height: 320px;
  opacity: 0.12;
}
.blob-a { top: -120px; right: -140px; fill: var(--rosa); }
.blob-b { top: 40%; left: -160px; fill: var(--verde); }
.blob-c { bottom: -160px; right: -120px; fill: var(--naranja); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 16px 0;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--barra-fondo);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde-suave);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--verde), var(--rosa));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.brand-text { font-weight: 700; font-size: 1.05rem; }
.brand-text em { font-style: normal; color: var(--rosa); }

/* Móvil: menú como fila deslizable bajo la marca (sin hamburguesa) */
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  width: calc(100% + 32px);
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
/* Pista visual de que el menú y los filtros se deslizan */
.nav, .filters {
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tinta-suave);
  white-space: nowrap;
  scroll-snap-align: start;
}
.nav a:active { background: var(--crema-2); color: var(--tinta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--boton); color: #fff; box-shadow: var(--sombra); }
.btn-primary:active { background: var(--boton-activo); }
.btn-ghost { background: transparent; color: var(--tinta); border: 2px solid var(--tinta); }
.btn-ghost:active { background: var(--crema-2); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding: 36px 16px 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.hero-chips li {
  background: var(--crema-2);
  border: 1px solid var(--borde-suave);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 160px; }

.hero-art { display: none; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-tile {
  border-radius: var(--radio-lg);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  min-height: 150px;
  box-shadow: var(--sombra);
}
.tile-green { background: var(--verde); }
.tile-pink { background: var(--rosa); }
.tile-orange { background: var(--naranja); grid-column: span 2; }

/* ---------- About ---------- */
.about { padding: 40px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.about-card {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra);
}
.about-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.about-card p { margin: 0; color: var(--tinta-suave); }

/* ---------- Curvatura ---------- */
.curvatura { padding: 40px 0; }
.curve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.curve {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--sombra);
}
.curve-dot {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}
.curve:nth-child(1) .curve-dot { background: var(--verde); }
.curve:nth-child(2) .curve-dot { background: var(--naranja); }
.curve:nth-child(3) .curve-dot { background: var(--rosa); }
.curve:nth-child(4) .curve-dot { background: #a05bd0; }
.curve h3 { margin: 0 0 4px; }
.curve-type { margin: 0; color: var(--tinta-suave); font-size: 0.9rem; }

/* ---------- Productos ---------- */
.products { padding: 40px 0; }
.products-ban { background: linear-gradient(180deg, #fff, var(--crema)); }
.products-kits { background: linear-gradient(180deg, var(--crema), #fff); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
/* Móvil: filtros en una fila deslizable (no se apilan en 3 renglones) */
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: calc(100% + 32px);
  margin: 0 -16px;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  min-height: 44px;
  scroll-snap-align: start;
  white-space: nowrap;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta-suave);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
}
.filter.active { background: var(--verde); border-color: var(--verde); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* móvil: 2 por fila, para ver más productos */
  gap: 10px;
}

/* ---------- Tarjeta de producto ---------- */
.card {
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
/* Efectos hover solo en equipos con mouse (en táctil quedan "pegados") */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--boton-activo); }
  .btn-ghost:hover { background: var(--crema-2); }
  .nav a:hover { background: var(--crema-2); color: var(--tinta); }
  .qty-btn:hover { background: var(--verde-claro); }
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f6fbf0, #eaf5da);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.products-kits .card-img {
  background: linear-gradient(180deg, #fdf0f5, #fbe2ec);
}
.card-img picture { display: contents; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-badge {
  position: absolute;
  z-index: 1;
  top: 12px; left: 12px;
  background: var(--rosa);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-badge.stock-alto { background: var(--verde-osc); }
.card-badge.stock-medio { background: var(--naranja); }
.card-badge.stock-bajo { background: var(--rosa); }

.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-line {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--rosa);
}
.card-name { font-family: "Baloo 2", sans-serif; font-size: 1.2rem; font-weight: 700; margin: 0; }
.card-benefit { color: var(--tinta-suave); font-size: 0.92rem; margin: 0; flex: 1; }
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.card-meta span {
  background: var(--crema);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tinta-suave);
}
.card-code {
  font-size: 0.78rem;
  color: var(--tinta-suave);
  margin-top: 8px;
}

/* ---------- Cómo comprar ---------- */
.como-comprar {
  padding: 44px 0;
  background: linear-gradient(160deg, var(--verde), var(--verde-osc));
  color: #fff;
  text-align: center;
}
.como-comprar .eyebrow { color: #fff; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 36px 0 28px;
  text-align: left;
}
.step {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radio);
  padding: 24px;
  backdrop-filter: blur(4px);
}
.step-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.6;
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; opacity: 0.9; }
.price-note {
  max-width: 640px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* ---------- Contacto ---------- */
.contacto { padding: 44px 0; }
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}
.contact-card {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-card strong { font-size: 1.15rem; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rosa-osc); font-weight: 600; }
.contact-card span { color: var(--tinta-suave); }

/* ---------- Footer ---------- */
.footer {
  background: var(--tinta);
  color: var(--crema);
  padding: 32px 0;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  text-align: center;
}
.footer p { margin: 4px 0; }
.foot-note { opacity: 0.6; font-size: 0.85rem; }

/* ============================================================
   IMPRESIÓN / PDF
   Al imprimir: quita blobs de fondo, navegación y botones,
   usa colores sólidos y saltos de página por sección.
   ============================================================ */
@media print {
  @page { margin: 14mm; size: A4; }

  * { box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important; }

  body { background: #fff !important; font-size: 12px; }

  .blobs, .topbar, .filters, .hero-actions, .hero-chips,
  .btn, .nav, .footer .foot-note,
  .order-bar, .modal, .card-order { display: none !important; }

  .topbar { position: static; }

  section { padding: 18px 0 !important; page-break-inside: avoid; }

  .hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 0 !important; }
  .hero-art { display: none; }

  .grid, .grid-kits { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .card-img { height: 150px; }
  .card-body { padding: 12px; }

  .about-grid, .steps, .contact-row, .curve-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Secciones que deben empezar en página nueva */
  #banos, #kits, #como-comprar, #contacto { page-break-before: always; }
  .card { page-break-inside: avoid; }

  /* Definir tarjetas sobre blanco */
  .card, .about-card, .curve, .contact-card, .step {
    border: 1px solid #e6dfd2 !important;
    background: #fff !important;
  }
  .card-img { background: #f7f4ee !important; }
  .como-comprar { background: #f2f8ec !important; color: #26241f !important; }
  .como-comprar .eyebrow, .como-comprar .step-num { color: var(--verde-osc) !important; }
  .step, .price-note { background: #fff !important; }
}

/* Menos animación si el usuario lo pidió en su teléfono */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Selector de cajas (por producto) ---------- */
.card-order {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--borde);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  width: 44px; height: 44px;
  border: none;
  background: var(--crema);
  color: var(--tinta);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:active { background: var(--verde-claro); }
.qty-input {
  width: 52px; height: 44px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 16px; /* >=16px: iOS no hace zoom al escribir */
  font-weight: 700;
  background: var(--superficie);
  color: var(--tinta);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-label { font-size: 0.82rem; color: var(--tinta-suave); }

/* ---------- Barra flotante de pedido ---------- */
.order-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(38, 36, 31, 0.97);
  color: #fff;
  transform: translateY(115%);
  transition: transform 0.25s ease;
}
.order-bar.show { transform: translateY(0); }
.order-bar-info { display: flex; flex-direction: column; gap: 2px; }
.order-count { font-size: 0.95rem; }
.order-count strong { font-family: "Baloo 2", sans-serif; font-size: 1.35rem; }
.order-hint { font-size: 0.8rem; opacity: 0.72; }
.order-hint.ok { color: var(--verde-claro); opacity: 1; }
body.has-order { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
body.modal-open { overflow: hidden; }
.order-clear {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.order-clear:active { background: rgba(255,255,255,0.12); }

/* ---------- Modal de pedido ---------- */
/* Móvil: el modal es una hoja que sube desde abajo, a ancho completo */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: end center;
  padding: 0;
  overscroll-behavior: contain;
}
.modal[hidden] { display: none; }
.modal-box {
  background: var(--superficie);
  border-radius: var(--radio) var(--radio) 0 0;
  padding: 20px 16px 0;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  outline: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-box h3 { margin: 0 0 4px; font-size: 1.4rem; }
.modal-sub { margin: 0 0 14px; color: var(--tinta-suave); font-size: 0.9rem; }
.modal-box textarea {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  background: var(--crema-2);
  color: var(--tinta);
}
/* Acciones siempre visibles abajo del modal (zona del pulgar) */
.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px -16px 0;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--superficie);
  border-top: 1px solid var(--borde-suave);
}
.modal-actions .btn { flex: 1 1 auto; padding: 10px 16px; font-size: 0.95rem; }
.modal-actions #btnWhatsapp { order: -1; flex-basis: 100%; }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }

/* Formulario de datos del cliente */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--tinta-suave); }
.field > span { font-weight: 600; }
.field-full { grid-column: 1 / -1; }
.field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px; /* >=16px: iOS no hace zoom al enfocar */
  color: var(--tinta);
  background: var(--superficie);
}
.field input:focus { outline: 2px solid var(--verde-claro); outline-offset: 0; }

fieldset.pay {
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
fieldset.pay legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tinta-suave);
  padding: 0 6px;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 0.86rem;
  color: var(--tinta);
  cursor: pointer;
}
.pay-opt input { accent-color: var(--verde); width: 20px; height: 20px; margin: 0; }
.form-warn { color: var(--rosa-osc); font-size: 0.82rem; margin: 8px 0 0; }

/* Móvil: barra en 2 filas -> [total | Borrar todo] y botón de WhatsApp a lo ancho (pulgar) */
.order-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.order-bar .btn { grid-column: 1 / -1; width: 100%; min-height: 48px; padding: 10px 16px; font-size: 1rem; }
.order-bar-info { min-width: 0; }
.order-count { line-height: 1.2; }


/* ---------- Iconos de curvatura y unidades (tarjetas) ---------- */
.card-meta .card-hair { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .hair-icons { display: inline-flex; gap: 3px; padding: 0; background: none; }
.card-meta .hair-icon {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
  color: #fff;
  cursor: help;
}
/* Mismos colores que la Guía de curvatura */
.hair-icon.hair-liso { background: var(--verde); }
.hair-icon.hair-ondulado { background: var(--naranja); }
.hair-icon.hair-cacheado { background: var(--rosa); }
.hair-icon.hair-crespo { background: #b37fe0; }
.card-meta .card-units { background: #eef6e4; color: var(--verde-osc); font-weight: 600; }
.section-note { margin: 6px 0 0; color: var(--tinta-suave); font-size: 0.95rem; }
@media print {
  .hair-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   MODO VENDEDOR (mini CRM)
   ============================================================ */
.modal-mini { max-width: 440px; }
.modo-opciones { display: grid; gap: 10px; margin: 14px 0 4px; }
.modo-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 64px; padding: 14px 16px;
  border: 2px solid var(--borde-suave); border-radius: 16px;
  background: var(--crema-2); color: var(--tinta);
  font-family: inherit; text-align: left; cursor: pointer;
}
.modo-btn strong { font-family: "Baloo 2", sans-serif; font-size: 1.2rem; }
.modo-btn span { font-size: 0.88rem; color: var(--tinta-suave); }
.modo-btn:active { border-color: var(--rosa); }
#btnModoVendedor { border-color: var(--verde); }

.field select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--borde); border-radius: 10px;
  font-family: inherit; font-size: 16px; color: var(--tinta); background: var(--superficie);
}
.field textarea {
  width: 100%; border: 1px solid var(--borde); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 16px; color: var(--tinta); resize: vertical;
}
.vend-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.vend-quien { font-size: 0.85rem; color: var(--tinta-suave); }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  border: none; background: none; padding: 0 4px; margin: -12px 0;
  font: inherit; color: var(--rosa-osc); font-weight: 600; text-decoration: underline; cursor: pointer;
}
.vend-resultados {
  list-style: none; margin: -6px 0 12px; padding: 0;
  border: 1px solid var(--borde-suave); border-radius: 12px; overflow: hidden;
}
.vend-resultados li + li { border-top: 1px solid var(--borde-suave); }
.vend-resultados button {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  min-height: 52px; padding: 10px 12px; border: none; background: var(--superficie);
  font-family: inherit; text-align: left; cursor: pointer; color: var(--tinta);
}
.vend-resultados button span { font-size: 0.82rem; color: var(--tinta-suave); }
.vend-resultados .vacio { padding: 12px; font-size: 0.88rem; color: var(--tinta-suave); }
.vend-cliente-sel, .vend-ok {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: #eef6e4; color: var(--verde-osc); font-size: 0.9rem; font-weight: 500;
}
.gps-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.btn-gps { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.gps-estado { font-size: 0.88rem; color: var(--tinta-suave); }
.gps-estado a { color: var(--rosa-osc); text-decoration: underline; }

/* Pestañas del panel: fila deslizable (hasta 6 según el rol) */
.tabs, .periodos {
  display: flex; gap: 6px; margin: 12px -16px 8px; padding: 0 16px 2px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar, .periodos::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start;
  border: 1px solid var(--borde); background: var(--superficie); color: var(--tinta-suave);
  font-family: inherit; font-size: 0.86rem; cursor: pointer;
}
.tab.active { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.pedidos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ped {
  border: 1px solid var(--borde-suave); border-left: 5px solid var(--naranja);
  border-radius: 14px; padding: 12px; background: var(--superficie);
}
.ped-entregado { border-left-color: var(--verde); }
.ped-cancelado { border-left-color: #b9b2a6; opacity: 0.85; }
.ped-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ped-estado { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--tinta-suave); }
.ped-cli { font-weight: 600; margin-top: 2px; }
.ped-det { font-size: 0.86rem; color: var(--tinta-suave); }
.ped-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 0.9rem; }
.ped-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rosa-osc); font-weight: 600; text-decoration: underline; }
.ped-links .link-btn { margin: 0; min-height: 44px; }
.ped-acciones { display: flex; gap: 8px; margin-top: 4px; }
.ped-acciones .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 0.92rem; }
.pend-subir {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff3e6; color: #8a4a0f; font-size: 0.9rem;
}
.pend-subir .btn { min-height: 44px; padding: 8px 14px; font-size: 0.9rem; }

.toast {
  position: fixed; z-index: 120; left: 50%; transform: translateX(-50%);
  top: calc(12px + env(safe-area-inset-top)); /* arriba: no tapa los botones del pulgar */
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--tinta); color: var(--crema); font-size: 0.92rem; box-shadow: var(--sombra);
}
.toast[hidden] { display: none; }
/* Botón Ingresar / nombre del usuario en la barra superior */
.btn-cuenta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--tinta); border-radius: 999px; background: transparent; color: var(--tinta);
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-cuenta.con-sesion { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-cuenta.con-sesion::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--superficie); flex: 0 0 auto; }

.modal-panel { max-width: 640px; }
.vacio-panel { padding: 24px 8px; text-align: center; color: var(--tinta-suave); }
.ped-confirmado { border-left-color: #4a90d9; }
.ped-en_ruta { border-left-color: #a05bd0; }
.ped-items { margin-top: 6px; font-size: 0.88rem; }
.ped-items summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--tinta-suave); font-weight: 600; }
.ped-items ul { margin: 0 0 4px; padding-left: 18px; }
.ped-items li span { color: var(--tinta-suave); }
.ped-acciones { flex-wrap: wrap; }
.ped-acciones .btn { flex: 1 1 40%; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 10px; }
.stat { background: var(--crema-2); border: 1px solid var(--borde-suave); border-radius: 14px; padding: 12px; }
.stat strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--tinta-suave); }
.sub-titulo { margin: 14px 0 6px; font-size: 1rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tabla th, .tabla td { padding: 8px 6px; border-bottom: 1px solid var(--borde-suave); text-align: left; }
.tabla th:last-child, .tabla td:last-child { text-align: right; }
.tabla th { font-size: 0.8rem; color: var(--tinta-suave); font-weight: 600; }
.nota-chica { font-size: 0.8rem; color: var(--tinta-suave); margin: 8px 0 0; }

.btn-bloque { width: 100%; margin-bottom: 10px; }
.usuarios-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.usuarios-lista li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  border: 1px solid var(--borde-suave); border-radius: 14px; padding: 10px 12px; background: var(--superficie);
}
.usuarios-lista li > div:nth-child(2) { grid-column: 1; }
.usuarios-lista li .btn { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 8px 14px; font-size: 0.9rem; }
.usuarios-lista li.inactivo { opacity: 0.6; }
.rol { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--tinta-suave); }
.rol-master { background: var(--boton); }
.rol-admin { background: #4a90d9; }
.rol-vendedor { background: var(--verde-osc); }
.rol-despachador { background: #a05bd0; }
/* Campo de clave con botón "Ver" */
.clave-wrap { position: relative; display: block; }
.clave-wrap input { padding-right: 84px; }
.ver-clave {
  position: absolute; top: 1px; right: 1px; bottom: 1px; min-width: 76px; min-height: 44px;
  border: none; border-left: 1px solid var(--borde-suave); border-radius: 0 10px 10px 0;
  background: var(--crema-2); color: var(--tinta-suave); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--verde); }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media print { .toast, .foot-link { display: none !important; } }

/* ============================================================
   PANTALLAS MÁS GRANDES (mobile first: se agregan encima de la base)
   ============================================================ */
@media (min-width: 561px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .order-bar { display: flex; gap: 16px; padding: 14px 24px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .order-bar-info { flex: 1 1 auto; }
  .order-bar .btn { width: auto; padding: 12px 22px; }
  body.has-order { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .pay-opt { display: inline-flex; margin-right: 14px; }
  .hero { padding: 48px 24px; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 901px) {
  section[id] { scroll-margin-top: 72px; }
  .topbar { flex-wrap: nowrap; padding: 14px 24px; }
  .nav { width: auto; margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .nav a { min-height: 40px; }
  .blob { width: 520px; height: 520px; filter: blur(2px); }
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 64px 24px 56px;
    min-height: clamp(420px, 60vh, 640px);
  }
  .hero-art { display: grid; }
  .hero-chips li { padding: 8px 16px; }
  .about, .curvatura, .products { padding: 56px 0; }
  .como-comprar, .contacto { padding: 64px 0; }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .steps, .contact-row { grid-template-columns: repeat(3, 1fr); }
  .curve-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .curve { padding: 24px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .section-head { margin-bottom: 28px; }
  .filters { width: auto; margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .nav, .filters { -webkit-mask-image: none; mask-image: none; }
  .nav { margin-left: auto; }
  .btn-cuenta { order: 3; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tabs, .periodos { margin: 12px -24px 8px; padding: 0 24px 2px; }
  .modal { place-items: center; padding: 20px; }
  .modal-box { border-radius: var(--radio); max-height: 92dvh; padding: 24px 24px 0; }
  .modal-actions { margin: 14px -24px 0; padding: 12px 24px 16px; }
  .modal-actions #btnWhatsapp { order: 0; flex-basis: auto; }
  .modal-actions .btn { flex: 0 0 auto; }
}

/* Impresión/PDF: va al final para ganarle a los bloques min-width */
@media print {
  .grid { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  .hero { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .hero-art { display: none !important; }
  .about-grid, .steps, .contact-row, .curve-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   TEMA OSCURO (html[data-tema="oscuro"], lo pone js/tema.js)
   ============================================================ */
html[data-tema="oscuro"] {
  color-scheme: dark;
  --crema: #171614;
  --crema-2: #211f1b;
  --tinta: #f2eee6;
  --tinta-suave: #b5aea1;
  --superficie: #24221e;
  --barra-fondo: rgba(23, 22, 20, 0.92);
  --borde: rgba(255, 255, 255, 0.18);
  --borde-suave: rgba(255, 255, 255, 0.09);
  --verde-suave: rgba(122, 182, 72, 0.16);
  --rosa-osc: #f27aa9;
  --enlace: #f58bb5;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.45);
}
html[data-tema="oscuro"] body { background: var(--crema); }
html[data-tema="oscuro"] .blob { opacity: 0.07; }
html[data-tema="oscuro"] .products-ban,
html[data-tema="oscuro"] .products-kits { background: var(--crema); }
html[data-tema="oscuro"] .card-meta .card-units,
html[data-tema="oscuro"] .vend-cliente-sel,
html[data-tema="oscuro"] .vend-ok { background: var(--verde-suave); color: var(--verde-claro); }
html[data-tema="oscuro"] .pend-subir { background: rgba(245, 130, 42, 0.16); color: #f7b37c; }
html[data-tema="oscuro"] .btn-ghost { color: var(--tinta); border-color: var(--tinta); }
html[data-tema="oscuro"] .form-warn { color: #ff8fb8; }
html[data-tema="oscuro"] .modal { background: rgba(0, 0, 0, 0.7); }
html[data-tema="oscuro"] .gps-estado a,
html[data-tema="oscuro"] .link-btn,
html[data-tema="oscuro"] .ped-links a { color: var(--enlace); }
html[data-tema="oscuro"] .rol-vendedor { background: #4f8a2b; }
.foot-tema { border: none; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 4px; }
/* Símbolos de curvatura en oscuro: se leen sobre verde, naranja, rosa y violeta */
.hair-icon { color: #1d1b17 !important; }


/* ============================================================
   Tarjetas compactas (tocar = sumar una caja), precios y "Tu pedido"
   ============================================================ */
.card { cursor: pointer; position: relative; border: 2px solid transparent; -webkit-tap-highlight-color: transparent; }
.card.elegido { border-color: var(--verde); }
.card.agotado { opacity: .6; }
.card-n {
  position: absolute; z-index: 2; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 8px;
  display: grid; place-items: center; border-radius: 999px; background: var(--verde-osc); color: #fff; font-size: 0.95rem;
}
.card-n:empty { display: none; }
.card-badge[data-badge] { background: #b3261e; }
.card-precio { margin: 6px 0 0; font-size: 0.9rem; color: var(--tinta-suave); }
.card-precio:empty { display: none; }
.card-precio strong { font-size: 1.05rem; color: var(--verde-osc); }
.card-precio span { font-size: 0.8rem; }
.card.pulso .card-img img, .card.pulso .card-n { animation: pulso-card .25s ease; }
@keyframes pulso-card { 50% { transform: scale(0.92); } }
html[data-tema="oscuro"] .card-precio strong { color: var(--verde-claro); }

@media (max-width: 560px) {
  .card { border-radius: 16px; }
  .card-img { aspect-ratio: auto; height: 96px; }
  .card-img img { padding: 6px; }
  .card-badge { top: 6px; left: 6px; font-size: 0.68rem; padding: 3px 8px; }
  .card-body { padding: 8px 10px 10px; gap: 2px; }
  .card-line, .card-benefit, .card-group, .card-code, .qty-label { display: none; }
  .card-name { font-size: 1rem; line-height: 1.15; }
  .card-meta { margin-top: 4px; gap: 4px; }
  .card-meta span { padding: 2px 6px; font-size: 0.7rem; }
  .card-meta .card-hair { padding: 0; background: none; }
  .card-meta .hair-txt { display: none; }
  .card-meta .hair-icon { width: 18px; height: 18px; font-size: 0.62rem; }
  .card-precio { font-size: 0.78rem; margin-top: 4px; }
  .card-precio strong { font-size: 0.95rem; }
  .card-precio span { display: block; font-size: 0.72rem; }
  /* El selector aparece cuando el producto ya está en el pedido */
  .card-order { margin-top: 6px; display: none; }
  .card.elegido .card-order { display: flex; }
  .card-order .qty { width: 100%; justify-content: space-between; }
  .card-order .qty-input { width: 100%; min-width: 0; flex: 1; }
}

/* "Tu pedido": lista editable con montos */
.carrito { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cart-item { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "foto info" "acc acc"; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--borde-suave); }
.cart-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cart-info strong { font-size: 0.95rem; }
.cart-info span { font-size: 0.76rem; color: var(--tinta-suave); }
.qty-chica .qty-input { width: 44px; }
.cart-quitar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--tinta-suave); font-size: 1rem; cursor: pointer; }
.cart-quitar:active { background: var(--crema-2); }
.cart-total { margin: 10px 0 12px; font-size: 1rem; }
.pagos .pago-opt { display: flex !important; align-items: center; gap: 10px; margin: 0 0 6px !important; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 12px; }
.pagos .pago-opt:has(input:checked) { border-color: var(--verde); background: var(--verde-suave); }
.pago-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pago-txt span { font-size: 0.75rem; color: var(--tinta-suave); }
.pago-monto { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap; }
.pago-monto strong { font-size: 1rem; }
.pago-monto span { font-size: 0.75rem; color: var(--verde-osc); font-weight: 700; }
html[data-tema="oscuro"] .pago-monto span { color: var(--verde-claro); }
.ver-mensaje { margin: 4px 0 0; }
.ver-mensaje summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 0.88rem; color: var(--enlace); }
#btnWhatsapp.is-disabled { opacity: 0.6; }

/* ---------- Imagen centrada y completa + botón ampliar ---------- */
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-zoom {
  position: absolute; z-index: 2; right: 6px; bottom: 6px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--tinta); box-shadow: 0 2px 8px rgba(38, 36, 31, 0.18); cursor: zoom-in;
}
.card-zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.card-zoom:active { transform: scale(0.92); }
html[data-tema="oscuro"] .card-zoom { background: rgba(36, 34, 30, 0.92); }
@media (max-width: 560px) {
  .card-img { height: 112px; }
  .card-zoom { right: 2px; bottom: 2px; background: rgba(255, 255, 255, 0.85); }
  .card-zoom svg { width: 20px; height: 20px; }
}
.zoom-modal { z-index: 90; place-items: center; padding: 16px; background: rgba(20, 19, 17, 0.88); }
.zoom-box { position: relative; width: min(100%, 720px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zoom-box img { width: 100%; max-height: 75dvh; object-fit: contain; border-radius: 16px; background: #fff; }
.zoom-pie { margin: 0; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.zoom-pie span { font-size: 0.85rem; opacity: 0.8; }
.zoom-cerrar {
  position: absolute; top: -6px; right: -6px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: #26241f; font-size: 1.1rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 360px) { .card-img { height: 96px; } }
@media print { .card-zoom { display: none !important; } }

/* ============================================================
   Espaciado más compacto entre secciones (mismo contenido, menos aire)
   ============================================================ */
.hero { gap: 20px; padding: 24px 16px 26px; }
.hero h1 { margin-bottom: 12px; }
.hero-actions { margin-top: 18px; }
.hero-chips { margin-top: 18px; }
.about, .curvatura, .products { padding: 26px 0; }
.como-comprar, .contacto { padding: 30px 0; }
h2 { margin-bottom: 12px; }
.about-grid { margin-top: 20px; gap: 12px; }
.about-card { padding: 20px; }
.curve-grid { margin-top: 18px; }
.section-head { margin-bottom: 14px; }
.steps { margin: 22px 0 18px; gap: 12px; }
.step { padding: 18px; }
.price-note { margin-bottom: 16px; }
.contact-row { margin-top: 18px; gap: 12px; }
.contact-card { padding: 20px; }
.footer { padding: 24px 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
@media (min-width: 901px) {
  .hero { padding: 44px 24px 36px; min-height: clamp(380px, 50vh, 560px); }
  .about, .curvatura, .products { padding: 38px 0; }
  .como-comprar, .contacto { padding: 42px 0; }
  .section-head { margin-bottom: 20px; }
}

/* Foto chica del producto en "Tu pedido" */
.cart-foto { display: block; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #f6fbf0, #eaf5da); }
.cart-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 360px) {
  .cart-item { grid-template-columns: 36px 1fr auto 40px; gap: 4px; }
  .cart-foto { width: 36px; height: 36px; }
}

/* ============================================================
   Tu pedido: renglón del producto, papelera, formas de pago con estrellas y vendedor
   ============================================================ */
.cart-item .cart-foto { grid-area: foto; }
.cart-item .cart-info { grid-area: info; }
.cart-acc { grid-area: acc; display: flex; align-items: center; gap: 8px; }
.cart-precio { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap; }
.cart-precio strong { font-size: 0.98rem; }
.cart-precio .pu { font-size: 0.76rem; color: var(--tinta-suave); }
.cart-item.saliendo { animation: salir .32s ease forwards; }
@keyframes salir { to { opacity: 0; transform: translateX(24px); } }

.cart-quitar { display: grid; place-items: center; color: #b3261e; }
.cart-quitar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cart-quitar .tapa { transform-origin: 5px 7px; transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .cart-quitar:hover { background: rgba(179, 38, 30, 0.08); }
  .cart-quitar:hover .tapa { transform: rotate(-22deg) translateY(-1px); }   /* al pasar: se abre la tapa */
}
.cart-quitar.tirando svg { animation: tirar .32s ease; }                      /* al tocar: sacudida y se achica */
.cart-quitar.tirando .tapa { transform: rotate(-30deg) translateY(-2px); }
@keyframes tirar { 0% { transform: none; } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(10deg) scale(1.05); } 100% { transform: scale(0.8); } }
html[data-tema="oscuro"] .cart-quitar { color: #ff8a80; }

.pagos-web, .vendedor-web { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 14px; }
.pagos-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pagos-cab h4 { margin: 0; font-size: 0.95rem; }
.pagos-cab .req { color: var(--rosa-osc); }
.btn-desplegar {
  min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--borde); background: var(--superficie);
  color: var(--enlace); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.btn-mas-lista {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--verde); color: #fff;
  font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.pagos-lista { margin-top: 8px; animation: bajar .18s ease; }
@keyframes bajar { from { opacity: 0; transform: translateY(-4px); } }
#pagoElegido { margin-top: 8px; }
.pago-resumen { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pago-resumen > .pago-opt { margin: 0 !important; border-color: var(--verde); background: var(--verde-suave); }
.pago-resumen.vacio { min-height: 44px; padding: 10px 12px; border: 1px dashed var(--borde); border-radius: 12px; color: var(--tinta-suave); }
.pago-txt .estrellas { margin: 2px 0; }

/* 3 estrellas en triángulo: una arriba y dos abajo */
.estrellas { display: inline-grid; grid-template-columns: repeat(2, 17px); grid-template-rows: 14px 17px; width: 36px; }
.estrella { width: 17px; height: 17px; fill: none; stroke: #c9a227; stroke-width: 1.6; stroke-linejoin: round; }
.estrella.on { fill: #f5b301; stroke: #d39a00; }
.estrella.e1 { grid-column: 1 / span 2; justify-self: center; }
.premium {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: top;
  background: linear-gradient(135deg, #f7d26a, #d39a00); color: #3d2b00; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pago-opt.es-premium { border-color: #e2b23a; }
.pagos .pago-opt:has(input:checked), .pagos-lista .pago-opt:has(input:checked) { border-color: var(--verde); background: var(--verde-suave); }
.pagos-lista .pago-opt { display: flex !important; align-items: center; gap: 10px; margin: 0 0 6px !important; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 12px; }
.pago-resumen > .pago-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--verde); border-radius: 12px; }

#vendElegido { margin-top: 8px; }
#vendElegido:empty { display: none; }
.vend-elegido { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 1px solid var(--verde); border-radius: 12px; background: var(--verde-suave); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.vend-elegido > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.vend-elegido > span:last-child span { font-size: 0.76rem; color: var(--tinta-suave); }
.lista-vend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; animation: bajar .18s ease; }
.vend-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 10px; border: 1px solid var(--borde); border-radius: 12px; background: var(--superficie); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.vend-opt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vend-opt.activo { border-color: var(--verde); background: var(--verde-suave); }
.vend-vacio { grid-column: 1 / -1; color: var(--tinta-suave); font-size: 0.88rem; padding: 6px 2px; }
.avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rosa-osc); color: #fff; font-weight: 700; font-size: 0.9rem; }
html[data-tema="oscuro"] .avatar { background: #b82a60; }

/* ---------- Ampliar foto: aparece creciendo desde la tarjeta y se cierra suave ---------- */
.zoom-modal { transition: background-color .22s ease; background: rgba(20, 19, 17, 0); }
.zoom-modal.abierto { background: rgba(20, 19, 17, 0.88); }
.zoom-modal .zoom-box { opacity: 0; transform: translate(var(--zx, 0), var(--zy, 0)) scale(0.3); transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.zoom-modal.abierto .zoom-box { opacity: 1; transform: none; }
.zoom-modal.cerrando .zoom-box { opacity: 0; transform: translate(var(--zx, 0), var(--zy, 0)) scale(0.3); transition-duration: .2s; }

/* ---------- Sin stock: en gris y sin poder pedir ---------- */
.card.agotado { opacity: 1; cursor: not-allowed; }
.card.agotado .card-img img, .card.agotado .card-name, .card.agotado .card-meta, .card.agotado .card-precio { filter: grayscale(1); opacity: .55; }
.card.agotado .card-badge[data-badge] { background: #6b6760; }
.card.agotado .qty-btn:disabled, .card.agotado .qty-input:disabled { opacity: .4; cursor: not-allowed; }
.cart-foto picture { display: block; width: 100%; height: 100%; }

/* ---------- "Hasta X% de descuento al nivel 3" ---------- */
.hasta-desc {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 44px; padding: 6px 12px;
  border: 1px dashed #e2b23a; border-radius: 12px; background: #fff8e6; color: #6b4a00; font: inherit; font-size: 0.86rem; cursor: pointer;
}
.hasta-desc strong { color: #8a5a00; }
html[data-tema="oscuro"] .hasta-desc { background: rgba(245, 179, 1, 0.12); color: #f7d26a; }
html[data-tema="oscuro"] .hasta-desc strong { color: #ffd76a; }

/* ---------- Tu pedido: seleccionar cliente ---------- */
.cli-panel { margin-top: 8px; animation: bajar .18s ease; }
.cli-buscar { display: flex; gap: 6px; }
.cli-buscar input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--borde); border-radius: 12px; background: var(--superficie); color: var(--tinta); font: inherit; font-size: 16px; }
.cli-buscar .btn { min-height: 44px; padding: 8px 14px; flex: 0 0 auto; }
.cli-res { margin: 6px 2px; font-size: 0.86rem; color: var(--tinta-suave); min-height: 1em; }
.cli-res:empty { display: none; }
.btn-nuevo-cli {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 6px;
  border: 1px dashed var(--verde-osc); border-radius: 12px; background: var(--verde-suave); color: var(--verde-osc); font: inherit; font-weight: 700; cursor: pointer;
}
.btn-nuevo-cli span { font-size: 1.3rem; line-height: 1; }
.btn-nuevo-cli.pulso { animation: pulso-card .4s ease 2; }
html[data-tema="oscuro"] .btn-nuevo-cli { color: var(--verde-claro); border-color: var(--verde-claro); }
.cli-form { margin-top: 8px; animation: bajar .18s ease; }
.btn-listo-cli { width: 100%; margin-top: 8px; min-height: 44px; }
.cli-elegido { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border: 1px solid var(--verde); border-radius: 12px; background: var(--verde-suave); }
.cli-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cli-datos span { font-size: 0.78rem; color: var(--tinta-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-cli { min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; color: var(--enlace); font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.dir-con-ubic > label { display: block; }
.dir-fila { display: flex; gap: 6px; align-items: center; }
.dir-fila input { flex: 1; min-width: 0; }
.btn-ubic {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--borde); background: var(--superficie); color: var(--rosa-osc); cursor: pointer;
}
.btn-ubic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ubic.lista { border-color: var(--verde); background: var(--verde-suave); color: var(--verde-osc); }
.btn-ubic.buscando svg { animation: girar 1s linear infinite; }
.ubic-estado { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--verde-osc); min-height: 1em; }
.ubic-estado:empty { display: none; }
.spinner-chico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--borde); border-top-color: var(--rosa); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.dir-con-ubic > label > span { font-weight: 600; }

/* ============================================================
   Enviar: un solo botón y la ventana de después (¡Listo! / WhatsApp)
   ============================================================ */
.modal-box { position: relative; }
.modal-x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--crema-2); color: var(--tinta); font-size: 1.05rem; cursor: pointer;
}
html[data-tema="oscuro"] .modal-x { background: rgba(255, 255, 255, 0.08); }
#orderModalTitle { padding-right: 48px; }
.opc { font-weight: 500; font-size: 0.8rem; color: var(--tinta-suave); }
.modal-actions .btn-enviar { flex: 1 1 100%; min-height: 52px; font-size: 1.05rem; }
.btn.ocupado::before {
  content: ""; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: girar .8s linear infinite;
}

.modal-listo { text-align: center; overflow: hidden; }
.modal-listo .modal-actions { text-align: left; }
.listo-anim { display: grid; place-items: center; margin: 6px 0 4px; }
.listo-anim svg { width: 84px; height: 84px; }
.listo-anim .check circle { fill: var(--verde); stroke: none; transform-origin: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.listo-anim .check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazo .45s .3s ease forwards; }
.listo-anim .wa circle { fill: #25d366; stroke: none; transform-origin: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both, latido 1.6s .6s ease-in-out infinite; }
.listo-anim .wa path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.listo-anim .wa path + path { fill: #fff; stroke: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.modal-listo h3 { margin: 4px 0; font-size: 1.6rem; }
.es-listo #listoTit { color: var(--verde-osc); font-size: 2rem; }
html[data-tema="oscuro"] .es-listo #listoTit { color: var(--verde-claro); }
.listo-preg { margin: 14px 0 8px; font-weight: 700; }
.lista-vend-wa { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; text-align: left; }
.vend-wa {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 8px 6px 10px;
  border: 1px solid var(--borde); border-radius: 14px; background: var(--superficie); color: inherit; font: inherit; cursor: pointer;
  transition: border-color .15s ease, transform .12s ease;
}
.vend-wa:active { transform: scale(0.98); }
.vend-wa strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vend-wa .flecha { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; font-weight: 700; flex: 0 0 auto; }
.vend-wa .flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vend-wa.enviado { border-color: var(--verde); background: var(--verde-suave); }
.vend-wa.enviado .flecha { background: var(--verde-osc); }
.avatar.oficina { background: var(--verde-osc); }
@media (hover: hover) and (pointer: fine) { .vend-wa:hover .flecha svg { transform: translateX(2px); transition: transform .15s ease; } }

/* Confeti */
.confeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confeti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: caer 1.8s ease-in forwards; }
.confeti i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; }
@keyframes caer {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(420px) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .listo-anim .check path { stroke-dashoffset: 0 !important; } }
.btn-mas-lista, .modal-x, .btn-ubic { flex-shrink: 0; }
.lista-vend-wa { grid-template-columns: minmax(0, 1fr); }
.lista-vend-wa li { min-width: 0; }
.vend-wa strong { text-align: left; }
.cli-elegido.saliendo { animation: salir .32s ease forwards; }
.cli-elegido .cart-quitar { flex: 0 0 44px; }
.cli-elegido .link-cli { padding: 0 4px; }

/* Dirección: crece hacia abajo (no se corre de lado) */
.field textarea.dir-texto {
  display: block; min-width: 0; min-height: 46px; resize: none; overflow: hidden; line-height: 1.35;
  overflow-wrap: anywhere; background: var(--superficie);
}
.field textarea.dir-texto:focus { outline: 2px solid var(--verde-claro); outline-offset: 0; }
.dir-fila { align-items: flex-start; }
.dir-fila textarea { flex: 1; }
/* Cliente elegido: nombre y dirección completos arriba; Editar · Cambiar · papelera abajo */
.cli-elegido { flex-wrap: wrap; row-gap: 0; }
.cli-elegido .cli-datos { flex: 1 1 calc(100% - 52px); padding: 4px 0; }
.cli-datos span { white-space: normal; overflow-wrap: anywhere; }
.cli-elegido .link-cli:first-of-type { margin-left: auto; }

/* ==================== FUSIÓN SKALA V5: TOOLBAR, VISTA MATRIZ Y BARRA MAYOR ==================== */
.catalogo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.catalogo-buscador {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.92rem;
}
.catalogo-buscador:focus {
  outline: 2px solid var(--verde-claro);
  outline-offset: 0;
}
.selector-vista-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
}
.vista-cat-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.vista-cat-btn.activo {
  background: var(--verde-osc);
  color: #fff;
}
html[data-tema="oscuro"] .vista-cat-btn.activo {
  background: var(--verde);
  color: #fff;
}

/* Vista Lista Rápida Mayorista (.modo-matriz) */
.grid.modo-matriz {
  grid-template-columns: 1fr !important;
  gap: 8px;
}
.grid.modo-matriz .card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  padding: 8px 10px;
}
.grid.modo-matriz .card-img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 10px;
}
.grid.modo-matriz .card-body {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  gap: 2px;
}
.grid.modo-matriz .card-benefit,
.grid.modo-matriz .card-actives,
.grid.modo-matriz .card-hair-row {
  display: none;
}
.grid.modo-matriz .card-foot {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
@media (max-width: 520px) {
  .grid.modo-matriz .card {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .grid.modo-matriz .card-img {
    width: 52px;
    height: 52px;
  }
  .grid.modo-matriz .card-foot {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* Barra de progreso hacia precio al mayor (Faire B2B) en #orderBar */
.progreso-mayor-web {
  width: 100%;
  max-width: 220px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  margin-top: 2px;
}
.progreso-mayor-web-fill {
  height: 100%;
  width: 0%;
  background: var(--amarillo, #eab308);
  border-radius: 99px;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.progreso-mayor-web.completo .progreso-mayor-web-fill {
  background: #4ade80;
}


/* ============================================================
   DISTRIBUCIONES ONTIVEROS · IDENTIDAD VISUAL ALIVE COSMETIC
   Inspirado en https://alive-cosmetic.com/ + Paridad 1:1 con Skala
   ============================================================ */
:root {
  --verde: #0d6e52;
  --verde-osc: #084c38;
  --verde-claro: #2bb58a;
  --verde-suave: #e6f6f0;

  --rosa: #0047ab;
  --rosa-osc: #003380;
  --rosa-claro: #38bdf8;
  --rosa-suave: #e8f2ff;

  --naranja: #e11d48;
  --amarillo: #f59e0b;
  --amarillo-suave: #fef3c7;

  --boton: #0047ab;
  --boton-activo: #003380;
  --enlace: #0047ab;

  --crema: #f6f9fc;
  --crema-2: #edf3f8;
  --superficie: #ffffff;
  --tinta: #112030;
  --tinta-suave: #4a5d70;
  --borde: rgba(0, 71, 171, 0.12);
}

html[data-tema="oscuro"] {
  --verde: #34d399;
  --verde-osc: #10b981;
  --verde-claro: #6ee7b7;
  --verde-suave: rgba(16, 185, 129, 0.16);

  --rosa: #38bdf8;
  --rosa-osc: #0284c7;
  --rosa-claro: #7dd3fc;
  --rosa-suave: rgba(56, 189, 248, 0.15);

  --boton: #0284c7;
  --boton-activo: #0369a1;
  --enlace: #38bdf8;

  --crema: #0d1520;
  --crema-2: #131f2e;
  --superficie: #182638;
  --tinta: #edf4fc;
  --tinta-suave: #94a8be;
  --borde: rgba(56, 189, 248, 0.16);
}

/* Topbar: logo DO limpio y botones alineados como Skala */
.brand-mark {
  background: #ffffff !important;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 51, 128, 0.08);
}
.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.topbar-cta-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (min-width: 901px) {
  .topbar-cta-group {
    order: 3;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .topbar {
    gap: 4px 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-text {
    font-size: 0.94rem;
  }
  .btn-config-top {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 0.92rem;
  }
  .btn-config-top .cfg-txt {
    display: none;
  }
  .btn-cuenta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
}
.btn-config-top {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-config-top:hover {
  border-color: var(--rosa);
  background: var(--rosa-suave);
}

/* Hero Art: 3 mosaicos con fotografía estudio-pro Alive (idéntica grilla 2x2 a Skala) */
.hero-tile.tile-alive-card {
  position: relative;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--borde);
  box-shadow: 0 14px 32px -12px rgba(0, 51, 128, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-tile.tile-alive-card img {
  width: 100%;
  height: 100%;
  max-height: 165px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.hero-tile.tile-alive-card.tile-wide {
  grid-column: 1 / -1;
}
.hero-tile.tile-alive-card.tile-wide img {
  max-height: 185px;
}
.hero-tile.tile-alive-card:hover img {
  transform: scale(1.03);
}
.hero-tile-tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 51, 128, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}

/* Divisiones comerciales interactivas (.curve) */
.curve[data-QuickCat] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.curve[data-QuickCat]:hover {
  transform: translateY(-4px);
  border-color: var(--rosa);
  box-shadow: 0 14px 28px -12px rgba(0, 71, 171, 0.2);
}
.curve[data-QuickCat] .curve-dot {
  font-size: 1.25rem;
}

/* Selector de marca en la barra de herramientas del catálogo */
.catalogo-select-marca {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Tarjetas de producto (.card dentro de .grid) */
.card-img,
.products-kits .card-img {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  background-color: #ffffff;
  border-bottom: 1px solid var(--borde);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.card.in-cart {
  border-color: var(--verde);
  box-shadow: 0 0 0 2px rgba(13, 110, 82, 0.2);
}
.card-badge[data-badge] {
  background: var(--verde);
  color: #ffffff;
}
.card-n[data-grupo-badge] {
  min-width: auto;
  height: 24px;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(0, 51, 128, 0.86);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}
.card.in-cart .card-n[data-grupo-badge] {
  background: var(--verde);
}
@media (max-width: 560px) {
  .card-img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .card-n[data-grupo-badge] {
    top: 6px;
    right: 6px;
    height: 20px;
    padding: 0 7px;
    font-size: 0.65rem;
  }
  .frag-strip {
    padding: 4px 7px;
    gap: 4px;
    margin-top: 4px;
  }
  .frag-avatar,
  .frag-more {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }
  .frag-count-pill {
    font-size: 0.66rem;
  }
  .card-order {
    display: flex;
    margin-top: 6px;
  }
  .btn-abrir-fragancias {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}
.frag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 12px;
  background: var(--crema);
  border: 1px solid var(--borde);
}
.frag-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.frag-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid var(--superficie);
  margin-left: -6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.frag-avatar:first-child {
  margin-left: 0;
}
.frag-more {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rosa);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: -6px;
  border: 2px solid var(--superficie);
}
.frag-count-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--rosa-osc);
  white-space: nowrap;
}
html[data-tema="oscuro"] .frag-count-pill {
  color: var(--rosa-claro);
}
.card-precio-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--tinta-suave);
}
.card-precio-und {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--verde-suave);
  color: var(--verde-osc);
  font-weight: 700;
}
html[data-tema="oscuro"] .card-precio-und {
  color: var(--verde-claro);
}
.btn-abrir-fragancias {
  width: 100%;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
}

/* Selector directo de fragancias y cantidades en la tarjeta */
.card-frag-selector {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--crema);
  border: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-frag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tinta-suave);
}
.link-ver-frags {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--rosa);
  cursor: pointer;
  text-decoration: underline;
}
.card-frag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.card-frag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.card-frag-pill:hover {
  border-color: var(--rosa);
}
.card-frag-pill:active {
  transform: scale(0.96);
}
.card-frag-pill img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--borde);
  flex-shrink: 0;
}
.card-frag-pill .pill-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-frag-pill.is-active {
  border-color: var(--rosa);
  background: var(--rosa-suave);
  color: var(--rosa-osc);
  font-weight: 700;
}
.card-frag-pill.has-qty {
  border-color: var(--verde);
  background: var(--verde-suave);
  color: var(--verde-osc);
}
.card-frag-pill .pill-qty {
  display: inline-grid;
  place-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--verde);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
}

.card-order.card-order-direct {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--borde);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.card-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-active-frag-label {
  font-size: 0.76rem;
  color: var(--tinta);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-modo-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--crema);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.card-modo-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tinta-suave);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}
.card-modo-btn.is-active {
  background: var(--rosa);
  color: #ffffff;
}
.card-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-stepper-row .qty {
  background: var(--superficie);
}
.card-stepper-row .qty-btn {
  width: 38px;
  height: 38px;
}
.card-stepper-row .qty-input {
  width: 44px;
  height: 38px;
}
.btn-modal-frags {
  margin-left: auto;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--rosa);
  background: var(--rosa-suave);
  color: var(--rosa-osc);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-modal-frags:hover {
  background: var(--rosa);
  color: #ffffff;
}

.grid.modo-matriz .frag-strip,
.grid.modo-matriz .card-frag-selector,
.grid.modo-matriz .card-precio-extra {
  display: none;
}

/* ============================================================
   MODAL 1: SELECTOR DE FRAGANCIAS / VARIANTES (#fragModal)
   ============================================================ */
.modal-fragancias {
  width: min(100%, 660px);
  max-height: 92dvh;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-fragancias .modal-x {
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
}
.frag-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  gap: 8px;
  padding: 0 44px 8px 0;
  border-bottom: 1px solid var(--borde);
}
.frag-head-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--borde);
  padding: 4px;
  flex-shrink: 0;
}
.frag-head-text {
  min-width: 0;
  flex: 1;
}
.frag-head-text h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  color: var(--tinta);
}
.modal-fragancias .frag-head-thumb,
.modal-fragancias #fragModalMarca,
.modal-fragancias #fragModalSub,
.modal-fragancias #fragPreciosInfo,
.modal-fragancias #fragHintBanner {
  display: none !important;
}
/* "Ver pedido": oculto con [hidden] y visible cuando JS lo habilita (sin doble !important) */
.modal-fragancias #btnIrPedidoDesdeFrag[hidden] { display: none; }
.modal-fragancias .frag-foot-actions #btnIrPedidoDesdeFrag:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
/* P1-04: franja de precios visible cuando JS la habilita */
.modal-fragancias .frag-toolbar #fragPreciosInfo:not([hidden]) { display: flex !important; }
/* franja compacta de precios (una sola línea con scroll horizontal) */
.modal-fragancias #fragPreciosInfo { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.modal-fragancias #fragPreciosInfo .frag-price-chip { flex: 0 0 auto; white-space: nowrap; font-size: 0.78rem; }
.frag-chip-aviso { background: #fff3d6; color: #7a4b00; border-color: #f2a516; }
.frag-toolbar[hidden],
.frag-modo-switch[hidden],
.modo-toggle-group .modo-btn[hidden] {
  display: none !important;
}
.frag-toolbar {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--crema);
  border: 1px solid var(--borde);
}
.modo-toggle-group:has(> .modo-btn[hidden]) {
  grid-template-columns: 1fr;
}
.frag-precios-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.frag-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  font-size: 0.78rem;
}
.frag-price-chip strong {
  color: var(--verde-osc);
}
html[data-tema="oscuro"] .frag-price-chip strong {
  color: var(--verde-claro);
}
.modo-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.modo-toggle-group .modo-btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.modo-toggle-group .modo-btn.is-active {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #ffffff;
}
.frag-hint-banner {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--verde-suave);
  color: var(--verde-osc);
  font-size: 0.78rem;
}
html[data-tema="oscuro"] .frag-hint-banner {
  color: var(--verde-claro);
}
.frag-grid {
  display: grid;
  gap: 8px;
  max-height: 44dvh;
  overflow-y: auto;
  padding-right: 4px;
}
.frag-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--borde);
  background: var(--superficie);
}
.frag-item.is-selected {
  border-color: var(--verde);
  background: var(--verde-suave);
}
.frag-item-media {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--borde);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.frag-check-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 71, 171, 0.14);
  color: var(--rosa);
  border: 1px solid rgba(0, 71, 171, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.frag-check-badge.is-checked {
  background: var(--verde);
  border-color: var(--verde);
  color: #ffffff;
}
.frag-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.frag-zoom-btn {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tinta);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.frag-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.frag-item-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.frag-item-sub {
  font-size: 0.75rem;
  color: var(--tinta-suave);
}
.frag-other-mode-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rosa-suave);
  color: var(--rosa-osc);
  font-size: 0.72rem;
  font-weight: 700;
}
.chips-und-rapida {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.chip-und-btn {
  min-height: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}
.chip-und-btn.is-active {
  background: var(--verde);
  border-color: var(--verde);
  color: #ffffff;
}
.frag-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.frag-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  overflow: hidden;
}
.frag-stepper .qty-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--tinta);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.frag-stepper .qty-input {
  width: 44px;
  height: 38px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--tinta);
  background: transparent;
}
.frag-unit-tag {
  font-size: 0.7rem;
  color: var(--tinta-suave);
}
.frag-modal-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--borde);
}
.frag-resumen-actual {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--verde-osc);
}
html[data-tema="oscuro"] .frag-resumen-actual {
  color: var(--verde-claro);
}
.frag-foot-actions {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 10px;
  width: 100%;
}
.frag-foot-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
}
/* con "Ver pedido" visible los 3 botones (Limpiar · Ver pedido · Listo) entran en una sola fila */
.frag-foot-actions.con-ver-pedido,
.frag-foot-actions:has(#btnIrPedidoDesdeFrag:not([hidden])) {
  grid-template-columns: 1fr 1.2fr 1.3fr;
  gap: 6px;
}
.frag-foot-actions.con-ver-pedido .btn,
.frag-foot-actions:has(#btnIrPedidoDesdeFrag:not([hidden])) .btn {
  padding: 10px 6px;
  font-size: 0.86rem;
  white-space: nowrap;
}

/* Modal Configuración de Unidades (#configUnidadModal) */
.config-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.config-list {
  display: grid;
  gap: 8px;
  max-height: 50dvh;
  overflow-y: auto;
  margin-bottom: 12px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--borde);
  background: var(--superficie);
}
.config-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.config-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.config-toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--verde);
}

@media (max-width: 560px) {
  .frag-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .frag-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 6px;
    border-top: 1px dashed var(--borde);
  }
}

/* ============================================================
   DIVISIÓN PASO A PASO DEL CATÁLOGO:
   PASO 01 ARRIBA DEL TODO (DETERGENTES ALIVE VS A-Z) +
   VENTANA EMERGENTE CON CUADRÍCULA VISUAL DE IMÁGENES
   ============================================================ */
.hero.hero-compacto {
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.hero.hero-compacto h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  margin-bottom: 8px;
}
.hero.hero-compacto .lead {
  font-size: 0.94rem;
  margin-bottom: 0;
}
.hero.hero-compacto .hero-actions {
  margin-top: 12px;
}
.hero.hero-compacto .hero-chips {
  margin-top: 12px;
}

.catalogo-secciones {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cat-seccion-bloque {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 24px -14px rgba(0, 51, 128, 0.12);
}
.cat-seccion-bloque.cat-seccion-destacada {
  background: linear-gradient(180deg, rgba(0, 71, 171, 0.04) 0%, var(--superficie) 100%);
  border: 2px solid rgba(0, 71, 171, 0.22);
}
.cat-seccion-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borde);
}
.cat-paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rosa);
  color: #ffffff;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.cat-seccion-header h3 {
  margin: 0 0 3px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--tinta);
}
.cat-seccion-header p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--tinta-suave);
}

/* PASO 01: Detergentes Lado a Lado (Izquierda Alive · Derecha A-Z) */
.detergentes-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.det-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--borde);
}
.det-col-alive {
  background: linear-gradient(180deg, rgba(0, 71, 171, 0.07) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(0, 71, 171, 0.28);
}
.det-col-az {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.35);
}
html[data-tema="oscuro"] .det-col-alive {
  background: rgba(2, 132, 199, 0.12);
}
html[data-tema="oscuro"] .det-col-az {
  background: rgba(245, 158, 11, 0.1);
}
.det-col-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
}
.det-col-banner.banner-alive {
  background: linear-gradient(135deg, #0047ab 0%, #002b66 100%);
}
.det-col-banner.banner-az {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.det-col-banner strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.det-col-banner span {
  font-size: 0.76rem;
  opacity: 0.92;
}
.det-col-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1020px) {
  .det-col-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .detergentes-split-grid {
    grid-template-columns: 1fr;
  }
  .det-col-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Resumen de fragancias ya elegidas en la tarjeta principal */
.card-picked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.card-picked-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--verde-suave);
  border: 1px solid var(--verde);
  color: var(--verde-osc);
  font-size: 0.72rem;
}
html[data-tema="oscuro"] .card-picked-chip {
  color: var(--verde-claro);
}

/* ============================================================
   VENTANA EMERGENTE DE FRAGANCIAS (#fragModal):
   CUADRÍCULA DE FOTOS PARA SUMAR O RESTAR TOCANDO LA IMAGEN
   ============================================================ */
.modal-box.modal-fragancias {
  max-width: 920px;
  width: min(100%, 920px);
  max-height: 92dvh;
  padding: 14px 14px 12px;
}
.frag-grid.frag-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  max-height: calc(92dvh - 140px);
  overflow-y: auto;
  padding: 4px 6px 8px 2px;
  flex: 1 1 auto;
  min-height: 0;
}
.frag-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 2px solid var(--borde);
  background: var(--superficie);
  min-height: 235px;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.frag-card:hover {
  border-color: var(--rosa);
  box-shadow: 0 8px 20px -10px rgba(0, 71, 171, 0.25);
}
.frag-card.is-selected {
  border-color: var(--verde);
  background: var(--verde-suave);
  box-shadow: 0 8px 22px -10px rgba(13, 110, 82, 0.32);
}
.frag-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px 14px 0 0;
  background: #ffffff;
  background-color: #ffffff;
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}
.frag-card-img-wrap:active img {
  transform: scale(0.93);
}
.frag-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.15s ease;
}
/* Botón (−) directo en la esquina superior izquierda de la foto para restar con 1 toque */
.frag-img-minus {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #e11d48;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.38);
}
.frag-img-minus:active {
  transform: scale(0.9);
}
/* Indicador en esquina superior derecha de la foto */
.frag-card-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 71, 171, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
.frag-card-badge.is-visible {
  background: var(--verde);
  font-size: 0.76rem;
}
.frag-card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
}
.frag-card-title {
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--tinta);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.05em;
}
.frag-card-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.frag-card-controls .frag-stepper {
  width: 100%;
  justify-content: space-between;
}
.frag-card-controls .frag-stepper .qty-btn {
  width: 34px;
  height: 34px;
}
.frag-card-controls .frag-stepper .qty-input {
  flex: 1;
  width: 40px;
  height: 34px;
  font-size: 0.92rem;
}
@media (max-width: 560px) {
  .cat-seccion-bloque {
    padding: 12px;
    border-radius: 18px;
  }
  .det-col {
    padding: 10px;
  }
  .frag-grid.frag-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(92dvh - 136px);
  }
  .frag-card {
    min-height: 195px;
  }
  .frag-card-img-wrap {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* ============================================================
   CARTA DE PRESENTACIÓN PRINCIPAL (ESTILO 1:1 ALIVE-COSMETIC.COM)
   Diseño Mobile-First con tipografía e iconos proporcionados
   ============================================================ */

/* 1. Barra Superior Blanca y Limpia (Logo Dist. Ontiveros izq + Login 3 barritas der) */
.topbar.topbar-alive {
  background: #ffffff;
  border-bottom: 1px solid rgba(18, 70, 130, 0.08);
  padding: 8px 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
}
html[data-tema="oscuro"] .topbar.topbar-alive {
  background: #121e2d;
}
.brand.brand-alive {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-full {
  height: 46px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  background: transparent !important;
}
.nav.nav-desktop {
  display: none;
}
@media (min-width: 901px) {
  .topbar.topbar-alive {
    padding: 10px 28px;
    min-height: 68px;
  }
  .brand-logo-full {
    height: 56px;
    max-width: 215px;
  }
  .nav.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
  }
  .nav.nav-desktop a {
    font-size: 0.84rem;
    min-height: 36px;
    padding: 6px 12px;
  }
}

.topbar-alive .topbar-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
@media (min-width: 901px) {
  .topbar-alive .topbar-cta-group {
    margin-left: 0;
  }
}
.topbar-alive .btn-config-top {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(18, 70, 130, 0.14);
  background: #f5f9fc;
  font-size: 0.82rem;
  display: inline-grid;
  place-items: center;
}
.btn-cuenta.btn-login-bars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1.5px solid #124682;
  background: #ffffff;
  color: #124682;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-cuenta.btn-login-bars:hover {
  background: #eff8fd;
}
.btn-cuenta.btn-login-bars .login-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #124682;
}
.btn-cuenta.btn-login-bars.con-sesion {
  background: #0d6e52;
  border-color: #0d6e52;
  color: #ffffff;
}
.btn-cuenta.btn-login-bars.con-sesion .login-bars {
  color: #ffffff;
}

/* 2. Panel Deslizable de Portadas Interactivas en Abanico 3D (.alive-banner-carousel) */
.alive-presentacion {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.alive-banner-carousel {
  position: relative;
  width: 100%;
  background: #062863;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.alive-banner-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.alive-banner-track.is-dragging {
  cursor: grabbing;
  transition: none !important;
}
.alive-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  cursor: grab;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.alive-banner-track.is-dragging .alive-banner-slide {
  cursor: grabbing;
}

/* Paletas corporativas de Distribuciones Ontiveros para las 5 Portadas en Abanico 3D */
.dist-fan-slide {
  padding: 28px 16px 56px;
  color: #ffffff;
}
.dist-slide-ontiveros {
  background:
    radial-gradient(circle at 80% 38%, rgba(0, 212, 255, 0.36) 0%, transparent 48%),
    radial-gradient(circle at 14% 85%, rgba(225, 29, 72, 0.24) 0%, transparent 45%),
    linear-gradient(132deg, #052259 0%, #0a49a8 46%, #0077cc 84%, #00a6e2 100%);
}
.dist-slide-detergentes {
  background:
    radial-gradient(circle at 80% 38%, rgba(0, 212, 255, 0.38) 0%, transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(255, 230, 0, 0.2) 0%, transparent 46%),
    linear-gradient(132deg, #062863 0%, #0047ab 45%, #0277bd 80%, #00a6e2 100%);
}
.dist-slide-cuidado {
  background:
    radial-gradient(circle at 80% 36%, rgba(0, 212, 255, 0.34) 0%, transparent 50%),
    radial-gradient(circle at 16% 84%, rgba(225, 29, 72, 0.26) 0%, transparent 46%),
    linear-gradient(132deg, #07255c 0%, #0b469c 46%, #0066be 82%, #0098d8 100%);
}
.dist-slide-bebe {
  background:
    radial-gradient(circle at 80% 36%, rgba(125, 211, 252, 0.38) 0%, transparent 50%),
    radial-gradient(circle at 15% 84%, rgba(0, 71, 171, 0.32) 0%, transparent 46%),
    linear-gradient(132deg, #062b66 0%, #0047ab 46%, #0284c7 82%, #00b4d8 100%);
}
.dist-slide-skala {
  background:
    radial-gradient(circle at 82% 38%, rgba(0, 212, 255, 0.36) 0%, transparent 48%),
    radial-gradient(circle at 14% 85%, rgba(225, 29, 72, 0.22) 0%, transparent 45%),
    linear-gradient(132deg, #052259 0%, #0047ab 46%, #0077cc 82%, #00a6e2 100%);
}

/* Hojas orgánicas decorativas de fondo */
.dist-hero-leaf {
  position: absolute;
  width: 180px;
  height: 180px;
  fill: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 0;
}
.dist-leaf-tl {
  top: -36px;
  left: -36px;
}
.dist-leaf-br {
  bottom: 14px;
  right: -36px;
  transform: rotate(15deg);
}

.dist-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.dist-hero-content {
  text-align: left;
  min-width: 0;
  max-width: 100%;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
.alive-banner-slide:not(.is-active) .dist-hero-content,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-content {
  opacity: 0.42;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dist-ontiveros-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dist-ontiveros-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 18, 52, 0.28);
  flex-shrink: 0;
}
.dist-ontiveros-logo-card img {
  height: 44px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

.dist-hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dist-ontiveros-top-row .dist-hero-badge {
  margin-bottom: 0;
}

.dist-hero-title {
  font-family: "Baloo 2", sans-serif;
  color: #ffffff;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.dist-hero-title span {
  color: #ffe600;
  display: inline-block;
}

.dist-hero-lede {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.94rem, 2.1vw, 1.1rem);
  max-width: 550px;
  margin: 0;
  line-height: 1.46;
}
.dist-hero-lede strong {
  color: #ffffff;
  font-weight: 800;
}

/* Idea 3: Píldoras interactivas de marcas líderes en la Portada 1 con entrada escalonada */
.dist-hero-brand-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.dist-brand-mini-pill {
  height: 36px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 20, 60, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--pill-delay, 0.2s),
    opacity 0.55s ease var(--pill-delay, 0.2s),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.dist-brand-mini-pill img {
  height: 24px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.dist-brand-mini-pill:hover,
.dist-brand-mini-pill:focus-visible,
.dist-brand-mini-pill.is-active {
  transform: translateY(-4px) scale(1.07) !important;
  border-color: #ffe600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 0 0 2px #ffe600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.alive-banner-slide:not(.is-active) .dist-brand-mini-pill,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-brand-mini-pill {
  transform: translateY(14px) scale(0.82) !important;
  opacity: 0 !important;
  transition: transform 0.2s ease, opacity 0.18s ease !important;
}

.dist-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.dist-cta-main {
  background: #ffe600;
  color: #0e1726;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.dist-cta-main:hover {
  background: #facc15;
  transform: translateY(-2px);
}
.dist-cta-sec {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.dist-cta-sec:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.dist-hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 14px 0 0;
}
.dist-hero-chips li {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 11px;
}

/* Vitrina derecha con Abanico Interactivo 3D de 5 Productos Recortados con Borde Negro */
.dist-hero-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
}
.dist-hero-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.56) 0%, rgba(255, 230, 0, 0.24) 48%, transparent 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.alive-banner-slide.is-active .dist-hero-glow {
  animation: distHeroFloatGlow 3.8s ease-in-out infinite;
}
@keyframes distHeroFloatGlow {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Sello circular rotado estilo Skala */
.dist-hero-seal {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 8;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe600, #f59e0b);
  color: #0f172a;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transform: rotate(8deg);
  pointer-events: none;
  transition: opacity 0.7s ease 0.35s, transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}
.dist-hero-seal.dist-seal-cyan {
  background: linear-gradient(145deg, #ffe600, #38bdf8);
  transform: rotate(-8deg);
}
.dist-hero-seal.dist-seal-pink {
  background: linear-gradient(145deg, #ffe600, #fb7185);
}
.dist-hero-seal.dist-seal-gold {
  background: linear-gradient(145deg, #fef08a, #f59e0b);
  transform: rotate(-7deg);
}
.dist-hero-seal strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
}
.dist-hero-seal span {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dist-hero-seal small {
  font-size: 0.54rem;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 1px;
}
.alive-banner-slide:not(.is-active) .dist-hero-seal,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-seal {
  opacity: 0;
  transform: scale(0.55) rotate(-22deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Contenedor del Abanico 3D de 5 recortes con borde negro (#0e1014) */
.dist-hero-fan {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dist-fan-item {
  position: absolute;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
  -webkit-tap-highlight-color: transparent;
}
.dist-fan-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

/* Idea 2: Etiqueta flotante e iluminación spotlight al pasar el mouse o tocar cada producto del abanico */
.dist-fan-tip {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translate(-50%, 6px) scale(0.88);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.92);
  color: #ffe600;
  border: 1.5px solid #ffe600;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 15;
}
.dist-fan-item:hover,
.dist-fan-item:focus-visible {
  z-index: 12 !important;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 18px rgba(255, 230, 0, 0.48));
}
.dist-fan-item:hover img,
.dist-fan-item:focus-visible img {
  transform: translateY(-12px) scale(1.13);
}
.dist-fan-item:hover .dist-fan-tip,
.dist-fan-item:focus-visible .dist-fan-tip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* Apertura lenta y escalonada del abanico 3D al activarse el slide (igual a Catálogo Skala) */
.alive-banner-slide.is-active .dist-hero-fan .dist-fan-centro {
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.85s ease 0.1s, filter 0.3s ease;
}
.alive-banner-slide.is-active .dist-hero-fan .dist-fan-izq,
.alive-banner-slide.is-active .dist-hero-fan .dist-fan-der {
  transition: transform 1.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s, opacity 1.15s ease 0.32s, filter 0.3s ease;
}
.alive-banner-slide.is-active .dist-hero-fan .dist-fan-mini-izq,
.alive-banner-slide.is-active .dist-hero-fan .dist-fan-mini-der {
  transition: transform 2.15s cubic-bezier(0.16, 1, 0.3, 1) 0.62s, opacity 1.35s ease 0.55s, filter 0.3s ease;
}

/* Estado cerrado (detrás del producto central) antes de abrir el abanico */
.alive-banner-slide:not(.is-active) .dist-hero-fan .dist-fan-izq,
.alive-banner-slide:not(.is-active) .dist-hero-fan .dist-fan-der,
.alive-banner-slide:not(.is-active) .dist-hero-fan .dist-fan-mini-izq,
.alive-banner-slide:not(.is-active) .dist-hero-fan .dist-fan-mini-der,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-fan .dist-fan-izq,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-fan .dist-fan-der,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-fan .dist-fan-mini-izq,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-fan .dist-fan-mini-der {
  transform: translate(0, 18px) scale(0.62) rotate(0deg) !important;
  opacity: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease !important;
}
.alive-banner-slide:not(.is-active) .dist-hero-fan .dist-fan-centro,
.alive-banner-carousel.banner-fan-init .alive-banner-slide .dist-hero-fan .dist-fan-centro {
  transform: translateY(22px) scale(0.84) !important;
  opacity: 0.35 !important;
  transition: transform 0.25s ease, opacity 0.2s ease !important;
}

/* Posiciones del abanico en móvil */
.dist-hero-fan .dist-fan-centro {
  width: 138px;
  height: 178px;
  z-index: 5;
  transform: translateY(6px);
}
.dist-hero-fan .dist-fan-izq {
  width: 112px;
  height: 146px;
  z-index: 4;
  transform: translate(-68px, 10px) rotate(-11deg);
}
.dist-hero-fan .dist-fan-der {
  width: 112px;
  height: 146px;
  z-index: 4;
  transform: translate(68px, 10px) rotate(11deg);
}
.dist-hero-fan .dist-fan-mini-izq {
  width: 88px;
  height: 116px;
  z-index: 3;
  opacity: 0.96;
  transform: translate(-110px, -16px) rotate(-19deg);
}
.dist-hero-fan .dist-fan-mini-der {
  width: 88px;
  height: 116px;
  z-index: 3;
  opacity: 0.96;
  transform: translate(110px, -16px) rotate(19deg);
}

@media (max-width: 360px) {
  .dist-hero-fan .dist-fan-mini-izq,
  .dist-hero-fan .dist-fan-mini-der {
    display: none;
  }
}

/* Escala de Escritorio (860px+) idéntica en presencia a Catálogo Skala */
@media (min-width: 860px) {
  .dist-fan-slide {
    padding: 44px 28px 68px;
  }
  .dist-hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    min-height: 360px;
  }
  .dist-ontiveros-logo-card img {
    height: 54px;
    max-width: 195px;
  }
  .dist-hero-showcase {
    min-height: 340px;
    max-width: 520px;
    overflow: visible;
  }
  .dist-hero-fan {
    height: 330px;
  }
  .dist-hero-fan .dist-fan-centro {
    width: 226px;
    height: 288px;
    transform: translateY(6px);
  }
  .dist-hero-fan .dist-fan-izq {
    width: 182px;
    height: 234px;
    transform: translate(-134px, 16px) rotate(-12deg);
  }
  .dist-hero-fan .dist-fan-der {
    width: 182px;
    height: 234px;
    transform: translate(134px, 16px) rotate(12deg);
  }
  .dist-hero-fan .dist-fan-mini-izq {
    width: 142px;
    height: 184px;
    transform: translate(-212px, -28px) rotate(-20deg);
  }
  .dist-hero-fan .dist-fan-mini-der {
    width: 142px;
    height: 184px;
    transform: translate(212px, -28px) rotate(20deg);
  }
  .dist-hero-seal {
    width: 94px;
    height: 94px;
    top: 2px;
    right: 6px;
  }
  .dist-hero-seal strong {
    font-size: 1.5rem;
  }
  .dist-hero-seal span {
    font-size: 0.56rem;
  }
  .dist-hero-seal small {
    font-size: 0.6rem;
  }
}

.alive-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  padding: 0 0 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.alive-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%) scale(1.06);
}
.alive-slider-arrow.prev { left: 10px; }
.alive-slider-arrow.next { right: 10px; }
@media (min-width: 860px) {
  .alive-slider-arrow {
    width: 46px;
    height: 46px;
    font-size: 1.9rem;
  }
  .alive-slider-arrow.prev { left: 18px; }
  .alive-slider-arrow.next { right: 18px; }
}
.alive-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 30, 68, 0.46);
  backdrop-filter: blur(6px);
}
.alive-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.24s ease, background-color 0.24s ease;
}
.alive-dot.is-active {
  width: 24px;
  background: #ffe600;
}

/* 2.5. Barra Deslizable Compacta de Marcas Afiliadas bajo el Banner Slide (alive-cosmetic.com + SKALA) */
.alive-brands-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(18, 70, 130, 0.08);
  padding: 7px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.alive-brands-bar::-webkit-scrollbar {
  display: none;
}
.alive-brands-bar.is-dragging {
  cursor: grabbing;
}
html[data-tema="oscuro"] .alive-brands-bar {
  background: #102033;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.alive-brands-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 0 12px;
  touch-action: pan-x pan-y;
}
@keyframes aliveBrandsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
.alive-brand-pill {
  flex: 0 0 auto;
  width: 82px;
  height: 36px;
  padding: 3px 7px;
  border-radius: 9px;
  border: 1px solid rgba(18, 70, 130, 0.1);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: pan-x pan-y;
  -webkit-user-drag: none;
  user-select: none;
  box-shadow: 0 2px 6px rgba(18, 70, 130, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.alive-brands-bar.is-dragging .alive-brand-pill {
  cursor: grabbing;
}
.alive-brand-pill:hover {
  transform: translateY(-1px);
  border-color: #00a6e2;
  box-shadow: 0 4px 10px rgba(0, 166, 226, 0.18);
}
.alive-brand-pill:active {
  transform: scale(0.96);
}
.alive-brand-pill.is-active {
  border-color: #0047ab;
  box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.22), 0 4px 10px rgba(0, 71, 171, 0.18);
}
.alive-brand-pill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}
.alive-brand-pill.is-skala {
  padding: 3px 7px;
}
@media (min-width: 640px) {
  .alive-brands-bar {
    padding: 9px 0;
  }
  .alive-brands-track {
    gap: 12px;
  }
  .alive-brand-pill {
    width: 102px;
    height: 44px;
    padding: 4px 9px;
    border-radius: 10px;
  }
}
@media (prefers-reduced-motion: reduce), print {
  .alive-brands-track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .alive-brand-pill[aria-hidden="true"] {
    display: none !important;
  }
}

/* 3. Bloque Celeste de Bienvenida + Panel Deslizable de Tarjetas Blancas */
.alive-welcome-section {
  background: linear-gradient(180deg, #eff8fd 0%, #d4effc 52%, #a6def8 100%);
  padding: 24px 14px 26px;
  text-align: center;
}
html[data-tema="oscuro"] .alive-welcome-section {
  background: linear-gradient(180deg, #102033 0%, #142c46 100%);
}
.alive-welcome-inner {
  max-width: 960px;
  margin: 0 auto;
}
.alive-kicker {
  margin: 0 0 8px;
  color: #00a6e2;
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.alive-welcome-title {
  margin: 0 0 16px;
  color: #124682;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.42rem, 5.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
html[data-tema="oscuro"] .alive-welcome-title {
  color: #e2f1ff;
}
.alive-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.alive-brush-svg {
  position: absolute;
  left: -2%;
  bottom: -4px;
  width: 104%;
  height: 10px;
  pointer-events: none;
}
.alive-welcome-desc {
  margin: 0 auto 12px;
  max-width: 480px;
  color: #2b3e50;
  font-family: "Poppins", sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
}
.alive-welcome-cta-text {
  margin: 0 auto 18px;
  max-width: 440px;
  color: #1e2f42;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}
html[data-tema="oscuro"] .alive-welcome-desc,
html[data-tema="oscuro"] .alive-welcome-cta-text {
  color: #cbe2f8;
}

/* Carrusel de Tarjetas Blancas Destacadas (2 por vista en móvil como alive-cosmetic.com) */
.alive-featured-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 920px;
}
.alive-featured-track {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.alive-featured-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.alive-featured-track::-webkit-scrollbar {
  display: none;
}
.alive-feat-card.hero-tile.tile-alive-card {
  flex: 0 0 calc(50% - 6px);
  min-width: calc(50% - 6px);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 14px;
  border: 0;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px -8px rgba(18, 70, 130, 0.16);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.alive-feat-card.hero-tile.tile-alive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(18, 70, 130, 0.24);
}
.alive-feat-img {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alive-feat-img img {
  width: 100%;
  height: 100%;
  max-height: 116px !important;
  object-fit: contain;
  display: block;
}
.alive-feat-caption {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}
.alive-feat-caption strong {
  color: #124682;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.alive-feat-caption span {
  color: #1e4b7a;
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.22;
}
.alive-feat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(18, 70, 130, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: #124682;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 70, 130, 0.15);
}
.alive-feat-arrow.prev { left: -6px; }
.alive-feat-arrow.next { right: -6px; }

.alive-feat-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
}
.feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(18, 70, 130, 0.25);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.feat-dot.is-active {
  width: 16px;
  background: #00a6e2;
}

.alive-welcome-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-alive-cta {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background: #124682;
  color: #ffffff;
}
.btn-alive-ghost {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 70, 130, 0.25);
  color: #124682;
}

@media (min-width: 640px) {
  .alive-feat-card.hero-tile.tile-alive-card {
    flex: 0 0 calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
  }
  .alive-feat-img {
    height: 136px;
  }
  .alive-feat-img img {
    max-height: 134px !important;
  }
}
@media (min-width: 960px) {
  .alive-welcome-section {
    padding: 32px 24px 34px;
  }
  .alive-feat-card.hero-tile.tile-alive-card {
    flex: 0 0 calc(20% - 10px);
    min-width: calc(20% - 10px);
  }
  .alive-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
}

/* 4. Ajuste de Tamaños de Fuentes e Iconos en Móvil (Catálogo más proporcionado) */
.products.products-ban {
  padding-top: 18px;
}
.section-head h2 {
  font-size: clamp(1.18rem, 4vw, 1.55rem);
  margin-bottom: 4px;
}
.section-head .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 2px;
}
.section-head .section-note {
  font-size: 0.8rem;
  line-height: 1.4;
}
.filters .filter {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 0.76rem;
}
.catalogo-buscador {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 0.82rem;
}
.catalogo-select-marca {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.vista-cat-btn {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.76rem;
}
.cat-paso-num {
  padding: 3px 9px;
  font-size: 0.7rem;
}
.cat-seccion-header h3 {
  font-size: clamp(1rem, 3.5vw, 1.22rem);
}
.cat-seccion-header p {
  font-size: 0.78rem;
}
.card-zoom {
  width: 32px;
  height: 32px;
}
.card-zoom svg {
  width: 16px;
  height: 16px;
}
.card-name {
  font-size: 0.92rem;
}
.btn-abrir-fragancias {
  min-height: 36px;
  font-size: 0.78rem;
  padding: 6px 10px;
}

/* ============================================================
   TARJETAS ESTILO SKALA CRM + ESCENARIO ANIMADO SECUENCIAL (1 A 1)
   Muestra primero los N modelos juntos, luego 1 a 1 en cuadrícula
   hasta completar los N y vuelve a empezar en bucle continuo
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cabecera superior estilo Skala CRM: Nombre a la izquierda + Marca/Pack a la derecha */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 11px 8px;
  background: linear-gradient(180deg, rgba(0, 71, 171, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid var(--borde);
}
html[data-tema="oscuro"] .card-top {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.12) 0%, transparent 100%);
}
.card-top .card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tinta);
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.card-top .card-line {
  display: inline-flex !important;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 71, 171, 0.1);
  color: var(--rosa-osc);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
}
html[data-tema="oscuro"] .card-top .card-line {
  background: rgba(56, 189, 248, 0.16);
  color: var(--rosa-claro);
}
.card-pack-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--crema-2);
  color: var(--tinta-suave);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* Recuadro de imagen central (4:3 blanco de estudio) entre .card-top y .card-body */
.card .card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 0;
  background: #ffffff;
  background-color: #ffffff;
  border-bottom: 1px solid var(--borde);
  overflow: hidden;
}

/* Badges superiores ("X fragancias", "En pedido") y lupa siempre por encima de la animación */
.card .card-badge[data-badge],
.card .card-n[data-grupo-badge] {
  z-index: 8;
  pointer-events: none;
}
.card .card-zoom {
  z-index: 8;
}

/* Escenario animado multicapa (.card-anim-stage) aislado en su propio contexto z-index: 1 */
.card-anim-stage {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  user-select: none;
}
.alive-feat-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}
.alive-feat-img .card-anim-stage {
  width: 100%;
  height: 100%;
}

/* Capa 0: Portada grupal con todos los modelos juntos */
.anim-layer-all {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.32s ease, transform 0.34s ease;
  pointer-events: none;
  z-index: 1;
}
.anim-layer-all.is-active {
  opacity: 1;
  transform: scale(1);
}
.anim-layer-all img,
.card .card-img > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 20px 6px 10px;
}

/* Capa 1..N: Cuadrícula dinámica que revela los modelos 1 a 1 poco a poco */
.anim-layer-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 26px 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.alive-feat-img .anim-layer-grid {
  padding: 3px 3px 6px;
  gap: 2px;
}
.anim-layer-grid.is-active {
  opacity: 1;
}
.anim-layer-grid.is-complete-pulse {
  animation: animGridCompletePulse 0.65s ease;
}
@keyframes animGridCompletePulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Celdas individuales de cada variante dentro de la cuadrícula */
.anim-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 7px;
  border: 1px solid rgba(18, 70, 130, 0.12);
  box-shadow: 0 2px 5px rgba(18, 70, 130, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.52) translateY(8px);
  transition:
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.anim-cell.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.anim-cell.is-just-added {
  border-color: #00a6e2;
  box-shadow: 0 0 0 2px rgba(0, 166, 226, 0.28), 0 4px 10px rgba(0, 71, 171, 0.18);
  z-index: 3;
}
.card-img .anim-cell img,
.alive-feat-img .anim-cell img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 2px !important;
  display: block;
}
.anim-cell-num {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(18, 70, 130, 0.78);
  color: #ffffff;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.1;
  pointer-events: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.alive-feat-img .anim-cell-num {
  font-size: 0.44rem;
  padding: 1px 3px;
}
.anim-cell.is-just-added .anim-cell-num {
  background: var(--verde);
  transform: scale(1.1);
}

/* Dimensiones adaptativas según cantidad de modelos (2, 3, 4, 5, 6, 7, 8, 10, 16) */
.anim-layer-grid[data-count="2"] .anim-cell {
  width: calc(50% - 4px);
  height: calc(88% - 4px);
}
.anim-layer-grid[data-count="3"] .anim-cell {
  width: calc(33.333% - 4px);
  height: calc(84% - 4px);
}
.anim-layer-grid[data-count="4"] .anim-cell {
  width: calc(50% - 4px);
  height: calc(48% - 4px);
}
.anim-layer-grid[data-count="5"] .anim-cell,
.anim-layer-grid[data-count="6"] .anim-cell {
  width: calc(33.333% - 4px);
  height: calc(48% - 4px);
}
/* 7 modelos (ej. 7 Detergentes Alive): 4 arriba + 3 centrados abajo */
.anim-layer-grid[data-count="7"] .anim-cell,
.anim-layer-grid[data-count="8"] .anim-cell {
  width: calc(25% - 4px);
  height: calc(48% - 4px);
}
.anim-layer-grid[data-count="9"] .anim-cell,
.anim-layer-grid[data-count="10"] .anim-cell {
  width: calc(20% - 4px);
  height: calc(48% - 4px);
}
.anim-layer-grid[data-count="16"] .anim-cell {
  width: calc(25% - 3px);
  height: calc(24% - 3px);
}

/* Píldora indicadora inferior y barra de progreso del ciclo */
.card-anim-pill {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 4;
  max-width: calc(100% - 46px);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(18, 70, 130, 0.86);
  color: #ffffff;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background-color 0.22s ease;
}
.card-anim-stage[data-phase="step"] .card-anim-pill,
.card-anim-stage[data-phase="complete"] .card-anim-pill,
.card-anim-stage[data-anim-step]:not([data-anim-step="0"]) .card-anim-pill {
  background: rgba(13, 110, 82, 0.92);
}
.card-anim-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(18, 70, 130, 0.12);
  z-index: 4;
  overflow: hidden;
}
.card-anim-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0047ab 0%, #00a6e2 55%, #0d6e52 100%);
  transition: width 0.28s ease;
}

/* Sincronización con los mini-avatares circulares en .frag-strip */
.frag-avatar {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.frag-avatar.is-active-anim,
.frag-more.is-active-anim {
  transform: translateY(-2px) scale(1.16);
  border-color: var(--verde);
  box-shadow: 0 0 0 2px rgba(13, 110, 82, 0.32);
  z-index: 3;
  position: relative;
}

/* Ajustes responsivos en móvil y modo matriz */
@media (max-width: 560px) {
  .card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 7px 8px 6px;
  }
  .card-top .card-name {
    font-size: 0.78rem;
    line-height: 1.2;
    width: 100%;
    overflow-wrap: anywhere;
  }
  .card-top-right {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 3px;
  }
  .card-top .card-line {
    font-size: 0.56rem;
    padding: 2px 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-pack-chip {
    font-size: 0.55rem;
    padding: 1px 5px;
  }
  .card-anim-pill {
    font-size: 0.54rem;
    padding: 2px 6px;
    left: 4px;
    bottom: 5px;
    max-width: calc(100% - 36px);
  }
  .anim-layer-grid {
    padding: 24px 4px 8px;
    gap: 3px;
  }
}

.card .card-body {
  padding: 10px 12px 12px;
  gap: 6px;
}

.frag-img-minus {
  z-index: 6;
}

/* ============================================================
   BLINDAJE MOBILE-FIRST CONTRA DESPLAZAMIENTO HORIZONTAL (0px OVERFLOW)
   Garantiza que ningún contenedor, carrusel, filtro o tarjeta
   genere scroll lateral en teléfonos de 320px a 430px+
   ============================================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  position: relative;
}

.topbar,
.alive-presentacion,
.alive-brands-bar,
.alive-welcome-section,
.products,
.curvatura,
.about,
.como-comprar,
.contacto,
.footer,
.container,
.section-head,
.catalogo-toolbar,
.catalogo-secciones,
.cat-seccion-bloque,
.grid,
.card,
.card-top,
.card-body,
.frag-strip {
  max-width: 100%;
  min-width: 0;
}

.alive-welcome-section,
.products,
.curvatura,
.about,
.como-comprar,
.contacto,
.footer {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Evita que .filters y .nav con calc(100% + 32px) desborden el ancho en teléfonos */
.section-head > * {
  min-width: 0;
  max-width: 100%;
}
.filters {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2px 2px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2px 0 8px;
}

/* Flechas del carrusel destacado dentro del área segura en móvil */
.alive-featured-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.alive-feat-arrow.prev {
  left: 2px;
}
.alive-feat-arrow.next {
  right: 2px;
}

/* Toolbar y tarjetas en pantallas móviles estrechas (320px - 560px) */
@media (max-width: 560px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .catalogo-toolbar {
    gap: 6px;
  }
  .catalogo-buscador {
    flex: 1 1 100%;
    width: 100%;
  }
  .catalogo-select-marca {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 148px);
    text-overflow: ellipsis;
  }
  .selector-vista-cat {
    flex-shrink: 0;
  }
  .vista-cat-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    min-width: 0;
  }
  .cat-seccion-bloque {
    padding: 10px;
    border-radius: 16px;
  }
  .cat-seccion-header {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .cat-seccion-icono {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .grid,
  .cat-seccion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card-body {
    padding: 7px 8px 9px;
  }
  .frag-strip {
    padding: 4px 6px;
    gap: 4px;
    overflow: hidden;
  }
  .frag-avatars {
    min-width: 0;
    overflow: hidden;
  }
  .frag-avatar,
  .frag-more {
    width: 18px;
    height: 18px;
    margin-left: -5px;
    font-size: 0.55rem;
  }
  .frag-count-pill {
    font-size: 0.62rem;
    flex-shrink: 0;
  }
  .card-precio strong {
    font-size: 0.9rem;
  }
  .card-precio small {
    font-size: 0.68rem;
  }
  .card-precio-extra {
    font-size: 0.66rem;
    gap: 4px;
  }
  .btn-abrir-fragancias {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: 5px 6px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
  }
}

/* Cabeceras limpias de las 4 secciones del catálogo (sin PASO 01..05) */
.cat-seccion-icono {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.12) 0%, rgba(0, 166, 226, 0.18) 100%);
  border: 1px solid rgba(0, 71, 171, 0.18);
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.cat-seccion-titles {
  flex: 1 1 auto;
  min-width: 0;
}
.cat-seccion-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.cat-seccion-title-row h3 {
  margin: 0;
}
.cat-seccion-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 71, 171, 0.1);
  color: var(--rosa-osc);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
html[data-tema="oscuro"] .cat-seccion-count {
  background: rgba(56, 189, 248, 0.16);
  color: var(--rosa-claro);
}

/* Accesibilidad e impresión: mantener portada estática limpia */
@media (prefers-reduced-motion: reduce), print {
  .anim-layer-all {
    opacity: 1 !important;
    transform: none !important;
  }
  .anim-layer-grid,
  .card-anim-pill,
  .card-anim-bar {
    display: none !important;
  }
}

.vend-wa.es-asignado {
  border-color: var(--verde);
  background: var(--verde-suave);
}
.vend-wa-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.vend-wa-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--verde-osc);
}

/* Productos y variantes sin existencias: al final y en gris */
.card.sin-stock,
.card.agotado,
.frag-card.sin-stock,
.frag-card.agotado {
  order: 1;
  background: var(--crema-2);
  border-color: var(--borde);
}
.card.sin-stock .card-top,
.card.sin-stock .card-img img,
.card.sin-stock .card-anim-stage,
.card.sin-stock .card-body,
.frag-card.sin-stock .frag-card-img-wrap img,
.frag-card.sin-stock .frag-card-title,
.frag-card.sin-stock .frag-var-price,
.frag-card.sin-stock .frag-card-controls {
  filter: grayscale(1);
  opacity: 0.55;
}
.card-badge.agotado,
.frag-card-badge.agotado {
  background: #6b6760 !important;
  color: #ffffff !important;
  filter: none;
  opacity: 1;
}

/* ===== UI-4: iOS sin auto-zoom, blancos táctiles >= 44px, 360px, impresión en modo oscuro, modales con teclado ===== */
input, select, textarea { font-size: 16px; }
button, .btn, .qty-btn, .tab { min-height: 44px; }
.qty-btn { min-width: 44px; }
.modal-box { max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (max-width: 360px) {
  .cart-item { grid-template-columns: 32px 1fr auto 44px; gap: 2px; }
}
@media print {
  html[data-tema="oscuro"] {
    color-scheme: light;
    --crema: #ffffff; --crema-2: #ffffff; --tinta: #26241f; --tinta-suave: #5a564e; --superficie: #ffffff;
    --borde: rgba(0, 0, 0, 0.2); --borde-suave: rgba(0, 0, 0, 0.1);
  }
  html[data-tema="oscuro"] body { background: #ffffff !important; color: #26241f !important; }
  .blob, .progreso-mayor, #orderProgress { display: none !important; }
}
/* UI-4: #fragModal flex dinámico (se ajusta a la altura visible con teclado virtual abierto) */
.modal-box.modal-fragancias { max-height: min(92dvh, var(--vvh, 100dvh)); }
.modal-fragancias .frag-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-fragancias .frag-modal-foot { flex: 0 0 auto; position: sticky; bottom: 0; background: var(--superficie, #fff); }
.modal-fragancias .frag-foot-actions .btn { min-height: 44px; }