/*
 * web.css — Sistema visual base oficial · Alquimaral Web Pública
 *
 * Este archivo es la fuente de verdad para todas las páginas públicas.
 * Todas las páginas deben linkearlo y NO redefinir ninguna de estas reglas.
 * Estilos exclusivos de una página van en un <style> local después de este link.
 *
 * Índice:
 *  1. Tokens (variables CSS)
 *  2. Reset
 *  3. Tipografía
 *  4. Botones
 *  5. Announcement bar
 *  6. Header + navegación desktop
 *  7. Menú móvil (hamburger + mnav)
 *  8. Bottom nav (móvil)
 *  9. Layout de secciones
 * 10. Footer
 * 11. Carrito (drawer)
 * 12. Utilitarios: toast, WA float, overlay, divider
 * 13. Responsive
 */

/* ═══════════════════════════════════════════════════════════
   1. TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Paleta cromática */
  --gold:    #c9a04a;
  --gold-lt: #e8c97a;
  --gold-dk: #9e7a2e;
  --cream:   #faf7f2;
  --cream2:  #ede5d4;
  --cream3:  #d9ccb8;
  --dark:    #2c2418;
  --ink:     #1a1410;
  --gray:    #6b6056;
  --lgray:   #f2ede6;
  --white:   #ffffff;
  --line:    #ece4d4;

  /* Alias semántico */
  --brand: var(--gold-dk);

  /* Tipografías */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  /* Misceláneos */
  --tr:  all .28s ease;
  --sh:  0 4px 24px rgba(44,36,24,.08);
  --sh2: 0 8px 40px rgba(44,36,24,.16);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip (no 'hidden') evita el scroll lateral SIN crear un contexto de
   scroll, que es lo que rompía el header position:sticky en iOS Safari. */
html  { scroll-behavior: smooth; overflow-x: clip; }
body  { font-family: var(--sans); background: var(--white); color: var(--dark);
        overflow-x: clip; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none;
         font-family: inherit; color: inherit; }

/* ═══════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   Jerarquía oficial:
     .eyebrow    — etiqueta de categoría / label de sección
     .t-display  — título principal (hero, páginas de entrada)
     .t-section  — título de sección intermedia
     .lead       — párrafo introductorio destacado
     .body-txt   — cuerpo de texto corriente
     .caption    — pie de imagen, notas secundarias
     .divider    — línea ornamental dorada
   ═══════════════════════════════════════════════════════════ */

/* Eyebrow — siempre Jost, uppercase, gold oscuro */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.center        { justify-content: center; }
.eyebrow.center::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.light         { color: var(--gold-lt); }
.eyebrow.no-line::before { display: none; }

/* Display — solo para hero y páginas de entrada de sección */
.t-display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.005em;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  text-wrap: balance;
}
.t-display em { font-style: italic; color: var(--gold-dk); }

/* Section — título de bloques dentro de página */
.t-section {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.003em;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  text-wrap: balance;
}
.t-section em          { font-style: italic; color: var(--gold-dk); }
.t-section.on-dark em  { color: var(--gold-lt); }

/* Lead — párrafo intro, ancho limitado */
.lead {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  color: var(--gray);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Body text */
.body-txt { font-size: .95rem; line-height: 1.78; color: var(--gray); }

/* Caption */
.caption {
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray);
  letter-spacing: .02em;
}

/* Divider ornamental */
.divider        { display: inline-block; width: 48px; height: 2px; background: var(--gold); border-radius: 1px; }
.divider.center { display: block; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════
   4. BOTONES
   Jerarquía:
     .btn-gold    — acción principal en fondo claro (CTA primario)
     .btn-primary — acción alternativa primaria (dark bg)
     .btn-outline — acción secundaria / "ver más"
     .btn-wa      — WhatsApp
     .btn-link    — link de texto con flecha (inline)
   Modificador:
     .on-dark     — para usar cualquier botón sobre fondo oscuro
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  min-height: 46px;
  border-radius: 4px;
  transition: var(--tr);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(201,160,74,.32); }

.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--gold-dk); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(44,36,24,.22); }

.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--cream3); }
.btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-outline.on-dark { color: var(--white); border-color: rgba(232,201,122,.45); }
.btn-outline.on-dark:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { filter: brightness(1.06) saturate(1.06); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,211,102,.30); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dk);
  transition: var(--tr);
  padding: 6px 0;
}
.btn-link::after       { content: "→"; font-size: .95rem; transition: transform .25s ease; }
.btn-link:hover        { color: var(--dark); }
.btn-link:hover::after { transform: translateX(4px); }
.btn-link.on-dark      { color: var(--gold-lt); }
.btn-link.on-dark:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   5. ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════════════ */
.bar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 16px;
  font-weight: 500;
}
.bar a          { color: var(--gold-lt); font-weight: 600; transition: var(--tr); }
.bar a:hover    { color: var(--white); }
.bar .sep       { display: inline-block; margin: 0 14px; color: rgba(255,255,255,.30); }

/* ═══════════════════════════════════════════════════════════
   6. HEADER + NAV DESKTOP
   ═══════════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--cream2);
}
.hdr {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo img { height: 64px; width: auto; object-fit: contain; }

/* ── Logo Mary's Beauty (APILADO rosa) al extremo derecho del header ──────────
   AGREGADO 2026-06-01 — actualizado a la versión APILADA (Mary's arriba, Beauty
   abajo), más compacta (~1.87:1 ancho/alto). Va al EXTREMO DERECHO dentro de
   .hdr-right como ÚLTIMO elemento (después del carrito y la hamburguesa), con un
   separador fino en escritorio. El logo de Alquimaral queda SOLO a la izquierda y
   su enlace al inicio queda intacto. Mary's es SOLO imagen de marca: no es enlace.

   La barra mide 82px de alto: Mary's se dimensiona a ≤48px de alto para NO
   agrandarla y quedar equilibrado con el emblema de Alquimaral (64px). Como el
   carrito ahora es ÍCONO en las 9 páginas (escritorio y celular), a la derecha
   conviven holgados carrito-ícono + (hamburguesa ≤860px) + Mary's, sin pisarse
   ni generar scroll lateral.

   FÁCIL DE AJUSTAR O QUITAR:
   - Tamaño: editar los max-height/max-width de .marys-logo.
   - Quitar: borrar el <img class="marys-logo"> y el <span class="hdr-brand-sep">
     del header en los HTML.
   - Volver a la versión horizontal: cambiar el src del <img> y subir max-width. */
.hdr-brand-sep { flex: none; width: 1px; height: 34px; background: var(--cream2); }
.marys-logo {
  width: auto; height: auto;
  max-height: 48px;          /* apilado: cabe en la barra de 82px con margen */
  max-width: 100px;
  object-fit: contain;
  display: block;
}
/* Franja intermedia (nav de escritorio aún visible): se oculta el separador. */
@media (max-width: 1100px) {
  .hdr-brand-sep { display: none; }
  .marys-logo    { max-height: 44px; max-width: 92px; }
}
/* Móvil/tablet (aparece la hamburguesa). */
@media (max-width: 860px) {
  .hdr-brand-sep { display: none; }
  .marys-logo    { max-height: 42px; max-width: 90px; }
}
@media (max-width: 380px) {
  .marys-logo    { max-height: 38px; max-width: 80px; }
}

/* Nav desktop */
nav.desk          { display: flex; gap: 6px; align-items: center; }
nav.desk a {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 3px;
  transition: var(--tr);
  color: var(--dark);
}
nav.desk a:hover        { color: var(--gold-dk); background: var(--cream); }
nav.desk a.active       { color: var(--gold-dk); background: var(--cream); font-weight: 700; }
nav.desk a.nav-mayo {
  margin-left: 8px;
  border: 1.5px solid var(--gold);
  color: var(--gold-dk);
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: .14em;
  background: rgba(201,160,74,.06);
}
nav.desk a.nav-mayo:hover { background: var(--gold); color: var(--dark); }

/* Header right (iconos + carrito) */
.hdr-right { display: flex; align-items: center; gap: 6px; }

.ico-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--tr);
  color: var(--dark);
}
.ico-btn svg        { width: 22px; height: 22px; }
.ico-btn:hover      { background: var(--cream); color: var(--gold-dk); }

/* ── Pastilla de BÚSQUEDA del header (inyectada por site-config.js) ──────────
   Primer hijo de .hdr-right: queda entre el último ítem del menú y el carrito.
   LA PASTILLA ES EL CAMPO: al tocarla se EXPANDE estirándose hacia la IZQUIERDA
   (el borde derecho queda anclado junto al carrito — search.js anima `width`,
   el flex de .hdr la hace crecer hacia el espacio libre del menú) y se escribe
   ADENTRO (.sp-inp). La ✕ (.sp-x) la contrae de vuelta. En celular (≤640px)
   descansa como ícono redondo táctil y se expande a lo ancho disponible. */
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 13px;
  border: 1px solid var(--cream3);
  border-radius: 40px;
  background: var(--cream);
  font-family: var(--sans);
  color: var(--gray);
  cursor: pointer;
  overflow: hidden;                          /* el contenido no asoma durante el estirón */
  flex: none;
  transition: width .3s ease, background .3s ease, border-color .3s ease;
}
.search-pill .sp-lupa { width: 16px; height: 16px; flex: none; }
.search-pill:not(.on):hover { border-color: var(--gold); color: var(--gold-dk); background: var(--white); }
.sp-txt {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sp-inp {
  display: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
.sp-inp::placeholder { color: var(--cream3); }
.sp-x {
  display: none;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--tr);
}
.sp-x:hover { background: var(--cream); color: var(--ink); }
.sp-x svg   { width: 13px; height: 13px; }
/* Estado EXPANDIDO (campo de escritura) */
.search-pill.on {
  cursor: text;
  background: var(--white);
  border-color: var(--gold);
}
.search-pill.on .sp-lupa { color: var(--gold-dk); }
.search-pill.on .sp-txt  { display: none; }
.search-pill.on .sp-inp  { display: block; }
.search-pill.on .sp-x    { display: flex; }
@media (max-width: 640px) {
  .search-pill              { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .search-pill .sp-txt      { display: none; }
  .search-pill .sp-lupa     { width: 20px; height: 20px; }
  .search-pill.on           { padding: 0 8px 0 13px; justify-content: flex-start; border-radius: 40px; }
  .search-pill.on .sp-lupa  { width: 16px; height: 16px; }
}

/* ── Búsqueda en vivo (.sch-*, lo construye /js/search.js) ───────────────────
   VELO suave sobre la página (se sigue viendo detrás; el header queda por
   encima, brillante) + PANEL colgado JUSTO DEBAJO de la pastilla expandida,
   con el borde derecho alineado a ella — una sola pieza que creció. Dos zonas:
   izquierda sugerencias de texto, derecha tarjetas CHICAS de producto (foto +
   marca + nombre + precio). Sobrio: sin badges grandes ni estrellas. */
.sch-ov {
  position: fixed;
  inset: 0;
  z-index: 890;                        /* BAJO el header (900): la barra queda brillante */
  background: rgba(26, 20, 16, .18);   /* velo apenas oscurecido */
  display: none;
}
.sch-ov.on { display: block; animation: schVeil .25s ease both; }
@keyframes schVeil { from { opacity: 0; } to { opacity: 1; } }
.sch-panel {
  position: fixed;                     /* top/right/width los fija search.js bajo la pastilla */
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gold);       /* mismo borde que la pastilla expandida: una pieza */
  border-radius: 14px;
  box-shadow: var(--sh2);
  overflow: hidden;
}
.sch-ov.on .sch-panel { animation: schDrop .25s ease .1s both; }
@keyframes schDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
/* Cuerpo: dos zonas (con scroll interno si el panel se queda corto) */
.sch-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 180px;                   /* cuerpo mínimo; con mucho contenido scrollea adentro */
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sch-side {
  border-right: 1px solid var(--cream2);
  padding: 14px 10px;
}
.sch-label {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream3);
  padding: 0 8px 8px;
}
.sch-sug {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--dark);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
}
.sch-sug:hover { background: var(--cream); color: var(--gold-dk); }
.sch-main { padding: 14px; }
.sch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
/* Tarjeta CHICA de producto: foto + marca + nombre + precio */
.sch-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--cream2);
  border-radius: 10px;
  transition: var(--tr);
}
.sch-card:hover { border-color: var(--gold); box-shadow: var(--sh); }
.sch-card img {
  width: 52px; height: 52px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
  background: var(--cream);
}
.sch-card-tx     { min-width: 0; }
.sch-card-brand {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.sch-card-name {
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sch-card-price {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
  margin-top: 2px;
}
.sch-card-price .sch-out { font-weight: 500; font-size: .72rem; color: var(--gray); margin-left: 6px; }
/* Mensajes (escribe para buscar / sin resultados / error) */
.sch-msg {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--gray);
  padding: 26px 10px;
  text-align: center;
}
/* Pie: ver todos los resultados */
.sch-foot {
  border-top: 1px solid var(--cream2);
  padding: 12px 16px;
  text-align: center;
}
.sch-all {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dk);
  cursor: pointer;
}
.sch-all:hover { color: var(--gold); }
/* Aviso de búsqueda activa en el catálogo (?q= en productos.html) */
.sch-note {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--gray);
  background: var(--cream);
  border: 1px solid var(--cream2);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 0 0 18px;
  text-align: center;
}
.sch-note strong { color: var(--dark); font-weight: 600; }
.sch-note a {
  margin-left: 10px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.sch-note a:hover { color: var(--gold); }
@media (max-width: 720px) {
  /* ARREGLO MÓVIL (2026-06-05): en pantallas angostas el panel NO se ancla al
     borde derecho de la pastilla — ese anclaje (pensado para escritorio, donde
     sobra espacio a la izquierda) lo empujaba FUERA de pantalla por la
     izquierda y cortaba nombres y el "Ver todos los resultados". Acá ocupa el
     ancho de la pantalla con el mismo aire a ambos lados. El !important pisa
     el left/right/width inline que fija search.js (placePanel), que sigue
     mandando en escritorio (comportamiento aprobado, intacto). */
  .sch-panel {
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
  }
  .sch-body  { grid-template-columns: 1fr; }
  .sch-side  {
    border-right: 0;
    border-bottom: 1px solid var(--cream2);
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 10px;
  }
  .sch-label { width: 100%; padding-bottom: 6px; }
  .sch-sug   { width: auto; border: 1px solid var(--cream2); border-radius: 40px; padding: 7px 14px; font-size: .8rem; }
  .sch-grid  { grid-template-columns: 1fr; }
}

/* Badge de carrito */
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--dark);
  font-size: .62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--tr);
  font-variant-numeric: tabular-nums;
}
.badge.on { opacity: 1; transform: scale(1); }

/* Pill de carrito (usado en mayoristas) */
/* Carrito del header de productos/mayoristas: ahora es el MISMO ÍCONO redondo que
   las demás páginas (.ico-btn), en escritorio y celular (2026-06-01). Antes era un
   botón ancho "Mi Carrito"/"Mi Pedido". Conserva su <button>, su onclick y el id
   de su badge — solo cambia la APARIENCIA a ícono; el carrito sigue funcionando. */
.cart-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  color: var(--dark);
  transition: var(--tr);
}
.cart-pill svg       { width: 22px; height: 22px; flex-shrink: 0; }
.cart-pill:hover     { background: var(--cream); color: var(--gold-dk); }
/* Badge contador del carrito-ícono (esquina superior derecha, igual que .badge). */
.cp-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--dark);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  padding: 0 5px;
  opacity: 0;
  transform: scale(0);
  transition: var(--tr);
  font-variant-numeric: tabular-nums;
}
.cp-count.on { opacity: 1; transform: scale(1); }

/* Hamburger */
.ham { display: none; }

/* ═══════════════════════════════════════════════════════════
   7. MENÚ MÓVIL (mnav)
   ═══════════════════════════════════════════════════════════ */
.mnav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--cream2);
}
.mnav a {
  padding: 14px 22px;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cream);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mnav a svg          { width: 18px; height: 18px; color: var(--gold-dk); }
.mnav a:hover        { background: var(--cream); color: var(--gold-dk); }
.mnav a.mnav-mayo    { color: var(--gold-dk); font-weight: 600; }
.mnav.open           { display: flex; }

/* ══ OCULTO — botón "Mayoristas" del NAV (decisión de Andrés, 2026-06-03) ══
   Se quita SOLO de la navegación repetida en las 9 páginas: escritorio
   (.nav-mayo), menú hamburguesa móvil (.mnav-mayo) y bottom-nav móvil
   (.bnav-a hacia /mayoristas.html). El banner del Home ("Acceder al portal")
   y la página /mayoristas.html quedan intactos — se entra por enlace directo.
   El markup sigue en los 9 HTML (no se borró nada).
   ► Para volver a MOSTRARLO: borrá esta regla. */
.nav-mayo, .mnav-mayo, .bnav-a[href="/mayoristas.html"] { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   8. BOTTOM NAV (solo móvil)
   ═══════════════════════════════════════════════════════════ */
.bnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--cream2);
  z-index: 850;
  box-shadow: 0 -4px 22px rgba(44,36,24,.06);
}
.bnav-in      { display: flex; width: 100%; }
.bnav-a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 4px 10px;
  flex: 1;
  color: var(--gray);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  gap: 4px;
  min-height: 56px;
}
.bnav-a.active { color: var(--gold-dk); }
.bnav-ico      { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.bnav-ico svg  { width: 22px; height: 22px; stroke-width: 1.5; }

/* ═══════════════════════════════════════════════════════════
   9. LAYOUT DE SECCIONES
   Regla de uso:
     .section              → contenedor de sección con padding estándar 96px
     .section-cream        → fondo crema
     .section-dark         → fondo oscuro (--dark), texto blanco
     .section-ink          → fondo más oscuro (--ink), texto blanco
     .section-in           → ancho máximo 1300px, centrado
     .section-in.narrow    → ancho máximo 960px para contenido editorial
     .section-hdr          → encabezado centrado de sección (eyebrow + título + lead)
   ═══════════════════════════════════════════════════════════ */
.section       { padding: 96px 24px; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--dark); color: var(--white); }
.section-dark.with-rule { box-shadow: inset 0 1px 0 rgba(232,201,122,.35); }
.section-ink   { background: var(--ink); color: var(--white); }

.section-in        { max-width: 1300px; margin: 0 auto; }
.section-in.narrow { max-width: 960px; }

.section-hdr             { text-align: center; margin-bottom: 56px; }
.section-hdr .eyebrow    { margin-bottom: 14px; }
.section-hdr .lead       { margin: 16px auto 0; }

/* ═══════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding: 72px 24px 28px;
}
.ft-in   { max-width: 1300px; margin: 0 auto; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 52px; }

/* Fila de logos del footer: Alquimaral (izquierda, no se mueve) y Mary's Beauty
   dorado apilado (extremo opuesto), a la misma altura, separados por space-between
   tomando el ancho del párrafo (.ft-desc = 380px) como "línea imaginaria". */
.ft-brands-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 380px; margin-bottom: 18px; }
.ft-logo      { height: 120px; width: auto; display: block; opacity: .95; flex-shrink: 0; }
.ft-logo-marys{ height: 84px;  width: auto; display: block; opacity: .95; flex-shrink: 0; }
.ft-desc       { font-size: .84rem; line-height: 1.78; margin-bottom: 24px; max-width: 380px; }

.ft-soc       { display: flex; gap: 10px; }
.soc-b        { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.04); transition: var(--tr); }
.soc-b img    { width: 24px; height: 24px; object-fit: contain; display: block; filter: grayscale(.4) brightness(1.15); transition: var(--tr); }
.soc-b:hover  { background: rgba(201,160,74,.18); transform: translateY(-2px); }
.soc-b:hover img { filter: grayscale(0) brightness(1.05); }

.ft-col-t  { font-family: var(--sans); font-weight: 700; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.ft-links  { display: flex; flex-direction: column; gap: 10px; }
.ft-links a { font-size: .85rem; transition: var(--tr); color: rgba(255,255,255,.62); }
.ft-links a:hover { color: var(--gold-lt); padding-left: 4px; }

.ft-ci     { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; margin-bottom: 12px; color: rgba(255,255,255,.62); line-height: 1.55; }
.ft-ci svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 5px; }
.ft-ci a   { color: inherit; transition: var(--tr); }
.ft-ci a:hover { color: var(--gold-lt); }

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .74rem;
  color: rgba(255,255,255,.34);
  letter-spacing: .04em;
}
.ft-bottom svg { width: 11px; height: 11px; color: var(--gold); display: inline-block; vertical-align: middle; margin: 0 4px; }
.dev-sign { font-family: var(--sans); font-size: .68rem; color: rgba(255,255,255,.34); margin-top: 2px; letter-spacing: .04em; }
.dev-sign a { color: rgba(255,255,255,.55); transition: var(--tr); }
.dev-sign a:hover { color: var(--gold-lt); }

/* ═══════════════════════════════════════════════════════════
   11. CARRITO (DRAWER)
   ═══════════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,.5);
  z-index: 1800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
  backdrop-filter: blur(2px);
}
.overlay.on { opacity: 1; pointer-events: all; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 1900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--sh2);
}
.cart.on { transform: translateX(0); }

.cart-hdr   { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--cream2); }
.cart-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.cart-x     { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; transition: var(--tr); color: var(--dark); }
.cart-x svg { width: 14px; height: 14px; }
.cart-x:hover { background: var(--cream2); }

.cart-body  { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; }
.cart-empty-wrap { text-align: center; padding: 60px 20px; }
.empty-ico  { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--cream3); }
.empty-ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.empty-txt  { font-size: .92rem; color: var(--gray); line-height: 1.6; }

.ci       { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cream); align-items: flex-start; }
.ci-img   { width: 72px; height: 72px; border-radius: 4px; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ci-info  { flex: 1; }
.ci-name  { font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.3; margin-bottom: 4px; }
.ci-price { font-size: .84rem; color: var(--gold-dk); font-weight: 600; font-variant-numeric: tabular-nums; }
.ci-qty   { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qb       { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cream2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; transition: var(--tr); background: var(--white); color: var(--dark); }
.qb:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.qn       { font-size: .92rem; font-weight: 600; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.ci-rm    { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--gray); transition: var(--tr); flex-shrink: 0; border-radius: 50%; }
.ci-rm svg { width: 13px; height: 13px; }
.ci-rm:hover { color: #c0392b; background: rgba(192,57,43,.06); }

.cart-ft  { padding: 20px 22px; border-top: 1px solid var(--cream2); background: var(--cream); }
.total-row { display: flex; justify-content: space-between; font-size: .86rem; color: var(--gray); margin-bottom: 8px; }
.total-row.grand { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--dark); padding-top: 10px; border-top: 1px solid var(--cream2); margin-top: 10px; }
.btn-checkout {
  width: 100%;
  background: #25D366;
  color: var(--white);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: var(--tr);
  min-height: 50px;
}
.btn-checkout svg    { width: 18px; height: 18px; }
.btn-checkout:hover  { filter: brightness(1.06) saturate(1.06); box-shadow: 0 6px 22px rgba(37,211,102,.30); }
.cart-note           { font-size: .72rem; color: var(--gray); text-align: center; line-height: 1.55; }
/* "Vaciar carrito": acción SECUNDARIA y discreta — texto tenue + papelera, sin relleno,
   para no competir con el botón de WhatsApp. Toque ≥44px. Vive en el footer (cart-ft),
   que se oculta cuando el carrito está vacío, así el botón no aparece sin items. */
.cart-clear {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; margin-top: 4px; padding: 8px;
  background: none; border: none; cursor: pointer; border-radius: 6px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
  transition: color .2s, background .2s;
}
.cart-clear svg     { width: 15px; height: 15px; }
.cart-clear:hover   { color: #c0392b; background: rgba(192,57,43,.06); }

/* ═══════════════════════════════════════════════════════════
   12. UTILITARIOS: TOAST · WA FLOAT · OVERLAY · HERO RINGS
   ═══════════════════════════════════════════════════════════ */

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 4px;
  font-size: .86rem;
  z-index: 2500;
  opacity: 0;
  transition: all .28s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--sh2);
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid rgba(232,201,122,.3);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* WhatsApp float */
.wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 22px rgba(37,211,102,.42);
  z-index: 800;
  transition: var(--tr);
}
.wa svg       { width: 28px; height: 28px; }
.wa:hover     { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.55); }

/* ── Page hero (heros de páginas interiores) ── */
.page-hero{background:var(--dark);padding:100px 24px 88px;text-align:center;position:relative;overflow:hidden}
.page-hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.page-hero-in{max-width:680px;margin:0 auto;position:relative;z-index:1}
.page-hero .eyebrow{margin-bottom:20px}
.page-hero h1{font-family:var(--serif);font-size:clamp(3rem,6.5vw,5rem);font-weight:300;color:var(--white);line-height:1.08;margin-bottom:18px}
.page-hero h1 em{font-style:italic;color:var(--gold-lt)}
.page-hero .lead{color:rgba(255,255,255,.6);margin:0 auto}

/* ═══════════════════════════════════════════════════════════
   13. RESPONSIVE
   Breakpoints:
     1100px — tablet landscape / layout 2 cols
      860px — tablet portrait / nav hamburger
      560px — móvil / single col total
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  /* Nav */
  nav.desk { display: none; }
  /* ☰ OCULTO en móvil (2026-06-05, decisión de Andrés): la bottom-nav (.bnav,
     visible en este mismo breakpoint) ya lleva a las mismas 4 páginas
     (Productos · Nosotros · Reseñas · Contacto) — el botón era redundante.
     El markup del ☰ y del menú .mnav sigue intacto en los 9 HTML.
     En escritorio el ☰ nunca se mostró (.ham base = display:none) y el menú
     normal (nav.desk) no se toca.
     ► Para volver a MOSTRARLO: restaurar acá `.ham { display: flex; }` */

  /* Sections */
  .section { padding: 72px 20px; }

  /* WA float sube por encima del bottom nav */
  .wa    { bottom: 90px; }
  .toast { bottom: 150px; }

  /* Bottom nav visible */
  .bnav { display: flex; }
  body  { padding-bottom: 72px; }

  /* Footer */
  .ft-grid   { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .ft-bottom { flex-direction: column; text-align: center; }

  /* Page hero */
  .page-hero { padding: 72px 20px 64px; }
}

@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; }
  /* En celular achicamos ambos logos para que sigan en los extremos sin amontonarse
     ni provocar scroll lateral en pantallas angostas (~320px). */
  .ft-brands-row { max-width: 340px; gap: 16px; }
  .ft-logo       { height: 96px; }
  .ft-logo-marys { height: 66px; }
  .bar { font-size: .68rem; letter-spacing: .08em; padding: 8px 12px; }
  .bar .sep { margin: 0 8px; }
}

@media (max-width: 380px) {
  .bar { font-size: .62rem; letter-spacing: .04em; padding: 7px 10px; }
  .bar .sep { margin: 0 5px; }
}

/* ── Toques ≥44px en móvil (touch targets — web pública) ──
   Solo afecta a ≤860px (uso táctil). No cambia el escritorio. */
@media (max-width: 860px) {
  .cart-pill { width: 44px; height: 44px; }   /* carrito-ícono de productos/mayoristas: 44px táctil, igual que .ico-btn */
  .cart-x    { width: 44px; height: 44px; }  /* cerrar cajón del carrito (era 36px) */
  .ico-btn   { width: 44px; height: 44px; }  /* hamburguesa / íconos (era 42px) */
  .soc-b     { width: 44px; height: 44px; }  /* redes sociales del footer (era 42px) */
}

