/* ===================================================================
   CÁRNICOS SOLYMAR v3 — Formato "carta" (lista de precios)
   Paleta cálida + secciones con band portada SVG + listado plano
   =================================================================== */

:root {
  --bg:        #faf8f5;
  --bg-2:      #f2ede6;
  --bg-3:      #1a1008;
  --bg-card:   #ffffff;

  --ink:       #1a1008;
  --ink-2:     #4a3728;
  --ink-3:     #8a7060;

  --red:       #b81c2a;
  --red-deep:  #8a1521;
  --red-light: #f5e0e2;
  --gold:      #c8973a;
  --gold-light:#fdf3e0;
  --green:     #2a7a3a;

  --line:      #e8e0d4;
  --line-2:    #d4c8b8;

  --shadow-sm: 0 1px 4px rgba(26,16,8,0.08);
  --shadow-md: 0 4px 16px rgba(26,16,8,0.12);
  --shadow-lg: 0 12px 40px rgba(26,16,8,0.18);

  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -50px; left: 16px;
  background: var(--red); color: #fff; padding: 8px 16px;
  border-radius: var(--r-sm); font-size: 0.875rem; z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px; height: 58px;
  transition: box-shadow var(--t-base);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); white-space: nowrap;
}
.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-phone {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-phone:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-phone svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Hero (igual a v2 — identidad de la marca) ───────────────────── */
.hero {
  position: relative;
  background: var(--bg-3);
  color: #fff;
  padding: 56px 0 40px;
  overflow: hidden;
  min-height: 340px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(184,28,42,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(200,151,58,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #1a1008 0%, #2a1810 50%, #1a0c08 100%);
}
.hero-img-placeholder {
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 260px; height: 220px;
  opacity: 0.12;
  display: none;
}

.hero-content { max-width: 580px; position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 14px; color: #fff;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65; margin-bottom: 28px; max-width: 440px;
}
.hero-sub strong { color: var(--gold); font-weight: 700; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 12px 22px; border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: 700;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,28,42,0.32);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 11px 20px; border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: 600;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* ── Marcas que trabajamos (loguitos circulares placeholders) ────── */
.marcas {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 24px;
  overflow: hidden;
}
.marcas-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}
.marcas-scroll {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  justify-content: flex-start;
}
.marcas-scroll::-webkit-scrollbar { display: none; }
.marca-logo {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 4px 6px;
  min-width: 72px;
}
.marca-logo-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.marca-logo:hover .marca-logo-mark {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-md);
}
.marca-logo-name {
  font-size: 0.7rem; font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Cómo pedir (3 pasos minimalistas con emoji, sin cards) ──────── */
.como-pedir {
  background: var(--bg);
  padding: 28px 0 20px;
}
.como-pedir-header {
  text-align: center;
  margin-bottom: 18px;
}
.como-pedir-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.como-pedir-pasos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.como-pedir-paso {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.como-pedir-emoji {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  text-align: center;
}
.como-pedir-paso > div { flex: 1; min-width: 0; }
.como-pedir-paso strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.como-pedir-paso span {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ── Índice rápido (chips sticky) ─────────────────────────────────── */
.indice-secciones {
  position: sticky; top: 58px; z-index: 90;
  background: rgba(250,248,245,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.indice-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 0 20px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.indice-scroll::-webkit-scrollbar { display: none; }

.indice-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--r-xl);
  font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--line-2);
  background: var(--bg-card);
  color: var(--ink-2);
  transition: all var(--t-fast);
  scroll-snap-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.indice-chip:hover { border-color: var(--red); color: var(--red); }

/* ── Lista de precios ─────────────────────────────────────────────── */
.lista-precios { padding: 32px 0 80px; }

.seccion {
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Band portada de sección — foto/SVG ilustrativo + título grande */
/* Mobile: grid 2 col (art + texto), badge debajo. Tablet+: 3 col en una fila. */
.seccion-banner {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "art text"
    "count count";
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #2a1810 0%, #3a2218 60%, #4a2818 100%);
  color: #fff;
  overflow: hidden;
}
.seccion-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 30%, rgba(200,151,58,0.18) 0%, transparent 65%);
  pointer-events: none;
}
/* Variante con imagen de fondo: overlay oscuro para legibilidad */
.seccion-banner.has-image {
  background-size: cover;
  background-position: center;
  min-height: 140px;
  padding: 24px 22px 20px;
}
.seccion-banner.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,16,8,0.35) 0%, rgba(26,16,8,0.75) 100%);
  pointer-events: none;
  z-index: 0;
}
.seccion-banner.has-image::after { display: none; }
.seccion-banner.has-image .seccion-banner-text,
.seccion-banner.has-image .seccion-count { z-index: 1; }

.seccion-banner-art {
  grid-area: art;
  position: relative; z-index: 1;
  width: 72px; height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.seccion-banner-art svg { width: 100%; height: 100%; }
/* Cuando hay imagen real de fondo escondemos el SVG ilustrativo */
.seccion-banner.has-image .seccion-banner-art { display: none; }
.seccion-banner.has-image {
  grid-template-columns: 1fr;
  grid-template-areas: "text" "count";
}

.seccion-banner-text { grid-area: text; position: relative; z-index: 1; min-width: 0; }

.seccion-titulo {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4.2vw, 1.7rem);
  font-weight: 700; line-height: 1.1;
  color: #fff;
  margin-bottom: 3px;
}

.seccion-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
}

.seccion-count {
  grid-area: count;
  justify-self: start;
  position: relative; z-index: 1;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,151,58,0.12);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  margin-top: 4px;
}

/* Lista plana de productos */
.seccion-lista {
  padding: 4px 0;
}

.fila {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.fila:last-child { border-bottom: none; }
.fila:hover { background: var(--bg-2); }
.fila.in-cart { background: rgba(42,122,58,0.06); }

.fila-info {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 8px;
}

.fila-nombre {
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Línea de puntitos clásica de carta — se esconde en mobile estrecho para ahorrar espacio */
.fila-dotline {
  display: none;
  height: 1px;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  min-width: 20px;
  align-self: center;
  margin-top: 6px;
}
@media (min-width: 480px) {
  .fila-dotline { display: block; flex: 1; }
}

.fila-precio {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.fila-unidad {
  font-size: 0.7rem;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 2px;
}
.fila-precio-consultar {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-3);
}

.fila-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fila-add {
  background: var(--red);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 36px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.fila-add:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(184,28,42,0.25);
}

.fila-qty {
  display: flex; align-items: center;
  gap: 2px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 3px;
}
.qty-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.qty-btn:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }

.qty-value {
  min-width: 52px;
  padding: 0 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fila-clear {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.fila-clear:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: var(--red);
}

/* ── Ubicación ────────────────────────────────────────────────────── */
.section-padding { padding: 48px 0; }
.ubicacion-wrap { background: var(--bg-2); border-top: 1px solid var(--line); }

.section-header { margin-bottom: 28px; }
.section-eyebrow {
  display: inline-block;
  background: var(--red-light); color: var(--red);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; color: var(--ink);
}

.ubicacion-inner {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}

.ubicacion-info { display: flex; flex-direction: column; gap: 14px; }

.ubicacion-dato {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ubicacion-dato:last-of-type { border-bottom: none; }
.ubicacion-dato strong {
  font-size: 0.7rem; font-weight: 700;
  color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase;
}
.ubicacion-dato span, .ubicacion-dato a {
  font-size: 0.95rem; color: var(--ink); font-weight: 500;
}
.ubicacion-dato a:hover { color: var(--red); }

.btn-llegar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--r-md);
  font-size: 0.88rem; font-weight: 600;
  margin-top: 12px; width: max-content;
  transition: background var(--t-fast);
}
.btn-llegar:hover { background: var(--red); }

.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-container iframe { display: block; width: 100%; height: 240px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-3); color: rgba(255,255,255,0.7);
  padding: 32px 0 20px;
}
.footer-main {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 24px;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.82rem; line-height: 1.55;
  color: rgba(255,255,255,0.55); max-width: 260px;
}
.footer-col-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.footer ul li a {
  display: block; font-size: 0.85rem;
  color: rgba(255,255,255,0.68); padding: 3px 0;
  transition: color var(--t-fast);
}
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.42);
}
.footer-powered { font-size: 0.76rem; color: rgba(255,255,255,0.45); }
.footer-powered strong { color: rgba(255,255,255,0.6); }

/* ── Cart-bar inferior ────────────────────────────────────────────── */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 250;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgba(26,16,8,0.35), 0 2px 8px rgba(26,16,8,0.2);
  cursor: pointer; border: none;
  font-family: var(--font-body); text-align: left;
  transform: translateY(140%); opacity: 0;
  transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1), opacity 220ms ease;
}
.cart-bar[hidden] { display: none; }
.cart-bar.visible { transform: translateY(0); opacity: 1; }

.cart-bar-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--red); border-radius: 50%;
}
.cart-bar-icon svg { width: 22px; height: 22px; fill: #fff; }
.cart-bar-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
}
.cart-bar-text {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
}
.cart-bar-line {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cart-bar-summary {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-bar-cta {
  flex-shrink: 0; font-size: 0.85rem; font-weight: 700;
  color: var(--gold); padding-left: 8px;
}

body.has-cart-bar .wa-float { bottom: 108px; }

/* ── WhatsApp flotante ────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 200;
  background: #25d366; color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast), bottom var(--t-base);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Modal carrito ────────────────────────────────────────────────── */
.cart-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,16,8,0.6);
  backdrop-filter: blur(4px);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.cart-modal-overlay.open { opacity: 1; pointer-events: all; }

.cart-modal {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 20px 32px;
  z-index: 301;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: 0 -8px 40px rgba(26,16,8,0.2);
}
.cart-modal-overlay.open .cart-modal { transform: translateY(0); }

.cart-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.cart-modal-title {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.cart-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--t-fast);
}
.cart-close:hover { background: var(--line-2); }

.cart-empty { text-align: center; padding: 32px 0; color: var(--ink-3); font-size: 0.92rem; }

.cart-items { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-nombre { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.cart-item-meta {
  font-size: 0.76rem; color: var(--ink-3);
  margin-top: 2px;
}
.cart-item-remove {
  width: 32px; height: 32px;
  border-radius: 50%; background: transparent;
  color: var(--ink-3); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.cart-item-remove:hover { background: var(--red-light); color: var(--red); }

.cart-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.88rem; color: var(--ink-2);
}
.cart-total strong {
  font-family: var(--font-head);
  font-size: 1.3rem; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.cart-total-consultar { font-style: italic; color: var(--ink-3); }

.cart-nota {
  font-size: 0.8rem; color: var(--ink-3);
  margin-bottom: 14px; line-height: 1.5;
}

.btn-confirmar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #25d366; color: #fff;
  padding: 15px;
  border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 700;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-confirmar:hover { background: #1da858; transform: translateY(-1px); }
.btn-confirmar svg { width: 22px; height: 22px; fill: #fff; }

/* ── Tablet 640px+ ────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero {
    padding: 72px 0 56px;
    min-height: 420px;
  }
  .hero-img-placeholder { display: block; }

  .marcas-scroll { justify-content: center; }

  .como-pedir { padding: 40px 0 32px; }
  .como-pedir-pasos {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    max-width: none;
  }
  .como-pedir-paso { flex: 0 1 240px; }

  /* Banner vuelve a layout horizontal con badge a la derecha */
  .seccion-banner {
    grid-template-columns: 110px 1fr auto;
    grid-template-areas: "art text count";
    padding: 26px 28px 22px;
    gap: 22px;
  }
  .seccion-banner-art { width: 110px; height: 84px; }
  .seccion-count {
    justify-self: end;
    margin-top: 0;
    align-self: center;
    font-size: 0.7rem;
    padding: 5px 11px;
  }

  .fila { padding: 14px 28px; }
  .fila-nombre { font-size: 1rem; }

  .ubicacion-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .map-container iframe { height: 320px; }

  .footer-main { grid-template-columns: 1.6fr 1fr; }

  .cart-modal {
    max-width: 480px;
    left: 50%; right: auto;
    transform: translate(-50%, 100%);
    border-radius: var(--r-xl);
    bottom: 24px;
  }
  .cart-modal-overlay.open .cart-modal { transform: translate(-50%, 0); }

  .cart-bar {
    left: 50%; right: auto; bottom: 20px;
    transform: translate(-50%, 180%);
    width: min(460px, calc(100% - 32px));
  }
  .cart-bar.visible { transform: translate(-50%, 0); }
}

/* ── Desktop 960px+ ───────────────────────────────────────────────── */
@media (min-width: 960px) {
  .nav { height: 64px; }
  .indice-secciones { top: 64px; }

  .hero { padding: 88px 0 72px; min-height: 480px; }

  .seccion { margin-bottom: 44px; }
  .seccion-banner { padding: 32px; }
  .seccion-banner-art { width: 130px; height: 96px; }

  .wa-float { width: 60px; height: 60px; bottom: 32px; right: 32px; }
}

/* ── Print (carta imprimible) ─────────────────────────────────────── */
@media print {
  .nav, .indice-secciones, .wa-float, .cart-bar, .cart-modal-overlay,
  .fila-actions, .hero-ctas, .btn-phone { display: none !important; }
  body { background: #fff; }
  .seccion-banner {
    background: #fff !important; color: var(--ink) !important;
    border-bottom: 2px solid var(--ink);
  }
  .seccion-titulo, .seccion-sub, .seccion-count { color: var(--ink) !important; }
  .seccion { box-shadow: none; border: none; page-break-inside: avoid; }
  .fila { padding: 6px 0; border-bottom: 1px dotted var(--line-2); }
}

/* ── Producto agotado ─────────────────────────────────────────── */
.fila.agotado .fila-nombre,
.fila.agotado .fila-precio { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.25); }
.fila.agotado:hover { background: transparent; cursor: default; }
.fila-agotado-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8d1;
  color: #d97a1a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

