/* =========================================================================
   ASADERO DON PAPI POLLO — Hoja de estilos principal
   ========================================================================= */

/* ---------- 1) Tokens de diseño ---------- */
:root {
  --rojo: #b5121b;
  --rojo-osc: #7a0d13;
  --rojo-vivo: #d81f27;
  --amarillo: #f5c518;
  --amarillo-2: #ffdc4f;
  --oscuro: #241511;
  --cafe: #3a2317;
  --crema: #fff8ea;
  --crema-2: #fdf1d8;
  --blanco: #ffffff;
  --gris: #6b5f57;
  --gris-claro: #a8998c;
  --borde: rgba(36, 21, 17, 0.1);
  --sombra-sm: 0 4px 14px rgba(36, 21, 17, 0.08);
  --sombra-md: 0 12px 28px rgba(36, 21, 17, 0.12);
  --sombra-lg: 0 20px 48px rgba(36, 21, 17, 0.22);
  --radio-sm: 10px;
  --radio-md: 16px;
  --radio-lg: 24px;
  --header-h: 78px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2) Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--crema);
  color: var(--oscuro);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.wrap { width: min(1200px, 92%); margin: 0 auto; }

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--rojo);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radio-sm);
  z-index: 999;
  transition: top .2s ease;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 3) Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radio-sm);
  font-weight: 800;
  font-size: .98rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  min-height: 48px;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--rojo); color: #fff; box-shadow: 0 10px 22px rgba(181,18,27,.28); }
.btn-primary:hover { background: var(--rojo-vivo); }
.btn-secondary { background: var(--amarillo); color: var(--oscuro); box-shadow: 0 10px 22px rgba(245,197,24,.28); }
.btn-secondary:hover { background: var(--amarillo-2); }
.btn-outline { background: transparent; color: var(--rojo); border: 2px solid var(--rojo); }
.btn-outline:hover { background: rgba(181,18,27,.06); }
.btn-dark { background: var(--oscuro); color: #fff; }
.btn-dark:hover { background: var(--cafe); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: .88rem; border-radius: 8px; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #22c05e; }

/* ---------- 4) Header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--rojo-osc), var(--rojo));
  color: #fff;
  text-align: center;
  padding: 8px 14px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 248, 234, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--sombra-sm);
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 1.02rem; color: var(--oscuro); white-space: nowrap; }
.brand-sub { display: block; font-weight: 600; color: var(--gris); font-size: .78rem; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: .95rem;
}
.nav-links a:not(.btn) { position: relative; padding: 6px 0; }
.nav-links a:not(.btn):hover { color: var(--rojo); }

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

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--oscuro);
  color: #fff;
  border: 0;
  border-radius: var(--radio-sm);
  padding: 11px 16px;
  min-height: 46px;
  cursor: pointer;
  font-weight: 800;
}
.cart-btn:hover { background: var(--cafe); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--rojo);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--crema);
}
.cart-count[hidden] { display: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--oscuro);
  border-radius: 10px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- 5) Hero ---------- */
/* Fondo estático aprobado: pared de ladrillos color vino.
 * Sin video, flamas, humo, partículas ni animaciones.
 */
.hero {
  position: relative;
  background: #1c0f0a;
  color: #fff;
  overflow: hidden;
}
.hero-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,6,4,.88) 0%, rgba(10,6,4,.60) 38%, rgba(10,6,4,.20) 72%),
    linear-gradient(0deg, rgba(10,6,4,.28) 0%, rgba(10,6,4,0) 38%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--amarillo-2);
  font-weight: 800;
  font-size: .82rem;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
  max-width: 780px;
}
.hero h1 .hero-h1-cream { color: var(--crema); }
.hero h1 .hero-h1-gold { color: var(--amarillo-2); }
.hero-sub {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255,255,255,.94);
  max-width: 640px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
  width: 100%;
}
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.92); }
.hero-badge svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--amarillo-2); }

/* ---------- 6) Secciones genéricas ---------- */
section { padding: 68px 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--rojo);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--oscuro);
  font-weight: 900;
  margin-bottom: 10px;
}
.section-copy {
  max-width: 680px;
  color: var(--gris);
  font-size: 1.02rem;
  line-height: 1.7;
}
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }
.section-head.center .section-copy { margin: 0 auto; }

.bg-alt { background: var(--crema-2); }
.bg-dark { background: var(--oscuro); color: #fff8ea; }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-copy { color: rgba(255,248,234,.78); }

/* ---------- 7) Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border-radius: var(--radio-md);
  padding: 26px 20px;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra-sm);
  text-align: center;
}
.feature .icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--crema-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--rojo);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.feature span { color: var(--gris); font-size: .92rem; line-height: 1.55; }

/* ---------- 8) Barra de categorías + buscador ---------- */
.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--crema);
  padding: 14px 0;
  border-bottom: 1px solid var(--borde);
}
.search-box {
  position: relative;
  margin-bottom: 12px;
}
.search-box input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: #fff;
  font-size: .96rem;
  min-height: 48px;
}
.search-box input:focus { border-color: var(--rojo); }
.search-box svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--gris-claro);
  pointer-events: none;
}
.cat-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.cat-bar::-webkit-scrollbar { height: 6px; }
.cat-bar::-webkit-scrollbar-thumb { background: var(--borde); border-radius: 999px; }
.cat-chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: #fff;
  color: var(--oscuro);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  transition: all .15s ease;
}
.cat-chip:hover { border-color: var(--rojo); }
.cat-chip.active { background: var(--rojo); border-color: var(--rojo); color: #fff; }

/* ---------- 9) Grid de productos y tarjetas ---------- */
.menu-category { padding: 40px 0 6px; scroll-margin-top: calc(var(--header-h) + 130px); }
.menu-category-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rojo-osc);
  margin-bottom: 4px;
}
.menu-category-note {
  color: var(--gris);
  font-size: .9rem;
  margin-bottom: 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.product-card:hover { box-shadow: var(--sombra-md); transform: translateY(-2px); }
.product-media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--crema-2), #f2e2c2);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.no-photo {
  display: flex; align-items: center; justify-content: center;
  color: var(--rojo-osc);
}
.product-media.no-photo svg { width: 44px; height: 44px; opacity: .55; }
.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  font-size: .72rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.badge-featured { background: var(--amarillo); color: var(--oscuro); }
.badge-sold-out { background: var(--oscuro); color: #fff; }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-size: 1.06rem; font-weight: 800; color: var(--oscuro); line-height: 1.3; }
.product-desc { color: var(--gris); font-size: .88rem; line-height: 1.55; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.product-price { font-size: 1.15rem; font-weight: 900; color: var(--rojo); }
.product-price.tbd { font-size: .92rem; color: var(--gris); font-weight: 700; }
.product-add {
  background: var(--rojo);
  color: #fff;
  border: 0;
  border-radius: var(--radio-sm);
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.product-add:hover { background: var(--rojo-vivo); }
.product-add:disabled { background: var(--gris-claro); cursor: not-allowed; }
.product-add.consult { background: var(--oscuro); }
.product-add.consult:hover { background: var(--cafe); }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gris);
  font-size: 1rem;
}

/* ---------- 10) Promociones ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.promo-card {
  background: linear-gradient(135deg, var(--rojo-osc), var(--rojo) 70%);
  color: #fff;
  border-radius: var(--radio-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--sombra-md);
}
.promo-card-media { position: relative; }
.promo-card-media img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.promo-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.promo-card-body .mini {
  align-self: flex-start;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.promo-card-body h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.25; }
.promo-card-body p { font-size: .88rem; color: rgba(255,255,255,.88); line-height: 1.5; }
.promo-card-body .price { font-size: 1.4rem; font-weight: 900; color: var(--amarillo-2); }

/* ---------- 11) Opiniones de clientes (reseñas reales) ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radio-md);
  padding: 24px 22px;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-stars { display: flex; gap: 2px; color: var(--amarillo); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-quote {
  color: var(--oscuro);
  font-size: .95rem;
  line-height: 1.6;
  flex: 1;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }
.testimonial-extra { font-size: .78rem; color: var(--gris); font-weight: 700; }
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--borde);
}
.testimonial-author { font-weight: 800; font-size: .86rem; color: var(--rojo-osc); }
.testimonial-source {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.testimonial-source.pedidosya { background: #ffe1ec; color: #e6007a; }
.testimonial-source.google { background: #e8f0fe; color: #1a73e8; }
.testimonials-note {
  margin-top: 22px;
  font-size: .85rem;
  color: var(--gris);
  text-align: center;
}

/* ---------- 12) Nosotros / Info / Ubicación / Contacto ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-copy p { color: var(--gris); font-size: 1.02rem; line-height: 1.75; margin-bottom: 14px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.info-box {
  background: #fff;
  border-radius: var(--radio-lg);
  padding: 28px;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra-sm);
}
.info-box h3 { color: var(--rojo-osc); font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; }
.data-list { display: grid; gap: 14px; }
.data-row { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px dashed var(--borde); }
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
.data-row svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--rojo); margin-top: 2px; }
.data-row strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.data-row span, .data-row address { color: var(--gris); font-size: .92rem; font-style: normal; line-height: 1.55; }

.map-placeholder {
  margin-top: 22px;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--borde);
  min-height: 240px;
}
.map-placeholder iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ---------- 13) CTA final ---------- */
.cta-strip {
  background: linear-gradient(90deg, var(--amarillo), var(--amarillo-2));
  padding: 32px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-inner h3 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--oscuro); font-weight: 900; }

/* ---------- 14) Footer ---------- */
footer.site-footer { background: var(--oscuro); color: #fff8ea; padding: 52px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr .9fr;
  gap: 30px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.footer-brand strong { font-size: 1.05rem; display: block; }
.footer-brand span { color: rgba(255,248,234,.7); font-size: .84rem; }
.footer-desc { color: rgba(255,248,234,.72); font-size: .88rem; line-height: 1.65; }
.footer-title { color: var(--amarillo); font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-links a { display: block; color: #fff8ea; opacity: .85; margin-bottom: 10px; font-size: .92rem; }
.footer-links a:hover { opacity: 1; color: var(--amarillo-2); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255,248,234,.6);
}
.footer-bottom a { color: rgba(255,248,234,.8); }
.footer-bottom a:hover { color: var(--amarillo-2); }

/* ---------- 15) Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float .wa-badge {
  position: absolute;
  top: -6px; left: -6px;
  background: var(--rojo);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--crema);
}
.whatsapp-float .wa-badge[hidden] { display: none; }

/* ---------- 16) Overlay genérico ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 7, .55);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- 17) Carrito lateral (drawer) ---------- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--crema);
  z-index: 101;
  box-shadow: -18px 0 40px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--borde);
  background: #fff;
}
.drawer-header h2 { font-size: 1.15rem; font-weight: 900; }
.drawer-close {
  background: var(--crema-2);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.drawer-close svg { width: 20px; height: 20px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 60px 12px; color: var(--gris); }
.cart-empty svg { width: 56px; height: 56px; color: var(--gris-claro); margin-bottom: 14px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--borde);
  align-items: flex-start;
}
.cart-item-media {
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--crema-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-media svg { width: 26px; height: 26px; color: var(--rojo-osc); opacity: .5; }
.cart-item-name { font-weight: 800; font-size: .94rem; line-height: 1.3; }
.cart-item-variant { color: var(--gris); font-size: .8rem; margin-top: 2px; }
.cart-item-unit { color: var(--gris); font-size: .8rem; margin-top: 2px; }
.cart-item-remove {
  background: none;
  border: 0;
  color: var(--gris);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: underline;
}
.cart-item-remove:hover { color: var(--rojo); }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.qty-control button {
  width: 32px; height: 32px;
  background: var(--crema-2);
  border: 0;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--oscuro);
}
.qty-control button:hover { background: var(--amarillo); }
.qty-control span { min-width: 30px; text-align: center; font-weight: 800; font-size: .92rem; }

.cart-item-right { text-align: right; }
.cart-item-subtotal { font-weight: 900; color: var(--rojo); font-size: .96rem; }

.drawer-footer {
  border-top: 1px solid var(--borde);
  background: #fff;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 900; }
.drawer-total-row span:last-child { color: var(--rojo); }
.drawer-note { font-size: .78rem; color: var(--gris); }
.link-clear-cart {
  text-align: center;
  font-size: .84rem;
  color: var(--gris);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  font-weight: 700;
}
.link-clear-cart:hover { color: var(--rojo); }

/* ---------- 18) Modal genérico (variantes / checkout) ---------- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 102;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,10,7,.55); }
.modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 24px;
  transform: translateY(20px);
  transition: transform .22s ease;
}
.modal.open .modal-card { transform: translateY(0); }
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-card { border-radius: var(--radio-lg); margin: 20px; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--crema-2);
  border: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 4px; padding-right: 40px; }
.modal-sub { color: var(--gris); font-size: .9rem; margin-bottom: 18px; }

.variant-media { width: 100%; aspect-ratio: 16/9; border-radius: var(--radio-md); overflow: hidden; margin-bottom: 16px; background: var(--crema-2); }
.variant-media img { width: 100%; height: 100%; object-fit: cover; }

.field-label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 10px; }
.variant-options { display: grid; gap: 10px; margin-bottom: 20px; }
.variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
}
.variant-option input { accent-color: var(--rojo); width: 18px; height: 18px; }
.variant-option:has(input:checked) { border-color: var(--rojo); background: rgba(181,18,27,.05); }
.variant-option .diff { color: var(--gris); font-weight: 600; font-size: .86rem; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qty-row .qty-control button { width: 40px; height: 40px; }

.field-group { margin-bottom: 16px; }
.field-group textarea {
  width: 100%;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 12px 14px;
  min-height: 80px;
  resize: vertical;
}
.field-group textarea:focus { border-color: var(--rojo); }
.field-error-text { color: var(--rojo); font-size: .8rem; margin-top: 4px; display: none; }
.field-error-text.show { display: block; }

/* ---------- 19) Checkout ---------- */
.checkout-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.checkout-steps .step {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--borde);
}
.checkout-steps .step.active { background: var(--rojo); }

.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.mode-option {
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
}
.mode-option svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--rojo); display: block; }
.mode-option:has(input:checked) { border-color: var(--rojo); background: rgba(181,18,27,.05); }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }

.form-grid { display: grid; gap: 14px; margin-bottom: 6px; }
.form-field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 12px 14px;
  min-height: 46px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--rojo); }
.form-field.required label::after { content: " *"; color: var(--rojo); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pay-options { display: grid; gap: 10px; margin: 6px 0 4px; }
.pay-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  cursor: pointer;
  font-weight: 700;
}
.pay-option:has(input:checked) { border-color: var(--rojo); background: rgba(181,18,27,.05); }
.pay-option input { accent-color: var(--rojo); width: 18px; height: 18px; }

.delivery-note {
  background: var(--crema-2);
  border-radius: var(--radio-sm);
  padding: 12px 14px;
  font-size: .86rem;
  color: var(--cafe);
  margin: 10px 0 4px;
  line-height: 1.5;
}

.checkout-nav { display: flex; gap: 10px; margin-top: 22px; }
.checkout-nav .btn { flex: 1; }

/* ---------- 20) Resumen del pedido (paso final) ---------- */
.review-block { margin-bottom: 18px; }
.review-block h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gris);
  font-weight: 800;
  margin-bottom: 10px;
}
.review-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--borde);
  font-size: .92rem;
}
.review-item:last-child { border-bottom: 0; }
.review-item .name { font-weight: 700; }
.review-item .variant { color: var(--gris); font-size: .82rem; display: block; }
.review-totals { background: var(--crema-2); border-radius: var(--radio-sm); padding: 14px 16px; display: grid; gap: 6px; font-size: .92rem; }
.review-totals .row { display: flex; justify-content: space-between; }
.review-totals .row.total { font-weight: 900; font-size: 1.08rem; color: var(--rojo); border-top: 1px dashed var(--borde); padding-top: 8px; margin-top: 4px; }
.review-data dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.review-data dt { color: var(--gris); font-weight: 700; }
.review-data dd { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--oscuro);
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--sombra-lg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--amarillo-2); flex-shrink: 0; }

/* ---------- 21) Página de privacidad ---------- */
.legal-page main { padding: 40px 0 80px; }
.legal-content { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radio-lg); padding: clamp(24px, 5vw, 48px); box-shadow: var(--sombra-sm); border: 1px solid var(--borde); }
.legal-content h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--rojo-osc); margin-bottom: 8px; }
.legal-updated { color: var(--gris); font-size: .88rem; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.15rem; color: var(--oscuro); margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--gris); font-size: .96rem; line-height: 1.75; }
.legal-content ul { padding-left: 20px; list-style: disc; margin: 10px 0; }
.legal-content li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 700; color: var(--rojo); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { order: -1; }
  .info-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Menú móvil desplegable */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 18px;
  border-top: 1px solid var(--borde);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  font-weight: 700;
  border-bottom: 1px solid var(--borde);
}
.mobile-menu .btn { margin-top: 10px; }

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: .92rem; }
  .brand-sub { font-size: .72rem; }
  .cart-btn span.label { display: none; }
  section { padding: 46px 0; }
  .hero-inner { padding: 38px 0 56px; gap: 16px; }
  .features { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; gap: 6px; }
  .product-name { font-size: .92rem; }
  .product-desc { font-size: .8rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .product-price { font-size: 1rem; }
  .product-add { padding: 8px 12px; min-height: 38px; font-size: .82rem; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-card-media img { min-height: 160px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-inner .btn { width: 100%; }
  .form-row-2 { grid-template-columns: 1fr; }
  .mode-options { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 100%; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* =========================================================================
   V2 — Redes sociales, ubicación GPS, confirmación de pedido
   ========================================================================= */
.social-follow {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--borde);
  text-align: center;
}
.social-follow h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 14px; }
.social-icons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-social-icons { justify-content: flex-start; margin-top: 14px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--oscuro);
  transition: transform .15s ease, opacity .15s ease;
}
.social-icon svg { width: 22px; height: 22px; }
.social-icon:hover { transform: translateY(-2px); opacity: .92; }
.social-icon.social-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.social-icon.social-facebook { background: #1877f2; }
.social-icon.social-tiktok { background: #000; }

.gps-status {
  margin: 10px 0 0;
  font-size: .82rem;
  color: var(--gris);
  line-height: 1.4;
}

.review-changed-note {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radio-sm);
  background: rgba(245, 197, 24, .18);
  border: 1px solid rgba(245, 197, 24, .5);
  color: var(--oscuro);
  font-size: .82rem;
  line-height: 1.5;
}

.checkout-done {
  text-align: center;
  padding: 12px 4px 4px;
}
.checkout-done svg {
  width: 56px;
  height: 56px;
  color: #1a8a3f;
  margin-bottom: 12px;
}
.checkout-done h4 { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.checkout-done p { color: var(--gris); line-height: 1.6; margin-bottom: 20px; }

@media (max-width: 640px) {
  .social-icon { width: 44px; height: 44px; }
}

/* Utilidad para ocultar elementos según JS */
[hidden] { display: none !important; }
