/* ==========================================================================
   CHEMILANGAS · Estilos
   --------------------------------------------------------------------------
   Orden del archivo:
     1. Variables (colores, tipografías) — tocá acá para cambiar la paleta
     2. Base y utilidades
     3. Encabezado / navegación
     4. Hero
     5. Secciones (historia, productos, pasos, entrega, cta final)
     6. Pie de página
     7. Barra fija móvil + botón flotante de WhatsApp
     8. Animaciones al hacer scroll
     9. Responsive (escritorio)
   Mobile-first: los estilos base son para celular; al final se ajusta a
   pantallas grandes con @media (min-width: ...).
   ========================================================================== */

/* ===== 1. VARIABLES ====================================================== */
:root {
  /* Paleta cálida argentina */
  --crema:        #FBF5EA;
  --crema-2:      #F3E7D0;   /* fondo tipo papel kraft */
  --marron:       #402A1C;   /* textos y títulos */
  --marron-suave: #6B4E3D;
  --dorado:       #D19A4C;
  --dorado-oscuro:#B47E36;
  --rojo:         #B23A2E;   /* botón principal / apetito */
  --rojo-oscuro:  #8F2C22;
  --celeste:      #75AADB;   /* guiño a la bandera, en detalles */
  --blanco:       #FFFFFF;

  /* Tipografías */
  --fuente-titulo: "DM Serif Display", Georgia, "Times New Roman", serif;
  --fuente-cuerpo: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fuente-mano:   "Caveat", "Segoe Script", cursive;

  /* Medidas */
  --ancho-max: 1100px;
  --radio:     14px;
  --sombra:    0 10px 30px rgba(64, 42, 28, 0.12);
  --transicion: 0.25s ease;
}

/* ===== 2. BASE Y UTILIDADES ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Elementos con el atributo "hidden" (redes sin configurar) quedan ocultos
   aunque tengan display propio. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--fuente-cuerpo);
  color: var(--marron);
  background-color: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura sutil de papel sobre todo el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  font-weight: 400;
  line-height: 1.12;
  color: var(--marron);
}
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
a { color: inherit; }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.seccion { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.seccion--kraft { background-color: var(--crema-2); }

.seccion__intro { max-width: 640px; margin-bottom: 2.5rem; }

.sobretitulo {
  font-family: var(--fuente-mano);
  font-size: 1.5rem;
  color: var(--dorado-oscuro);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.acento-mano { font-family: var(--fuente-mano); color: var(--dorado-oscuro); }

.centro { text-align: center; }

/* --- Botones ---------------------------------------------------------- */
.boton {
  --bg: var(--rojo);
  --fg: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion), background-color var(--transicion);
  box-shadow: 0 6px 18px rgba(178, 58, 46, 0.28);
}
.boton:hover { background-color: var(--rojo-oscuro); border-color: var(--rojo-oscuro); transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

.boton--grande { font-size: 1.1rem; padding: 1.05rem 2.1rem; }
.boton--chico  { font-size: 0.9rem; padding: 0.55rem 1.1rem; box-shadow: none; }

.boton--fantasma {
  --bg: transparent;
  --fg: var(--marron);
  border-color: var(--marron);
  box-shadow: none;
}
.boton--fantasma:hover { --bg: var(--marron); --fg: var(--blanco); background-color: var(--marron); border-color: var(--marron); }

.boton--fantasma-claro {
  --bg: transparent;
  --fg: var(--blanco);
  border-color: rgba(255,255,255,0.7);
  box-shadow: none;
}
.boton--fantasma-claro:hover { background-color: var(--blanco); color: var(--marron); border-color: var(--blanco); }

/* --- Placeholders de foto ------------------------------------------------
   Cada bloque marca dónde va una foto. Reemplazá el <div> por un <img>
   con el mismo nombre de archivo indicado en la nota. */
.foto-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(209,154,76,0.12) 0 12px, rgba(209,154,76,0.05) 12px 24px),
    var(--crema-2);
  border: 2px dashed var(--dorado);
  border-radius: var(--radio);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.foto-placeholder__nota {
  font-family: var(--fuente-cuerpo);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dorado-oscuro);
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

/* --- Cinta de promos (arriba de todo) --- */
.anuncio {
  background-color: var(--marron);
  color: var(--blanco);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  letter-spacing: 0.01em;
}
.anuncio strong { color: #F6DDB4; font-weight: 700; }
@media (min-width: 560px) { .anuncio { font-size: 0.9rem; } }

/* ===== 3. ENCABEZADO / NAVEGACIÓN ====================================== */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 245, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transicion), border-color var(--transicion);
}
.cabecera.esta-scrolleada {
  box-shadow: 0 2px 16px rgba(64,42,28,0.08);
  border-color: rgba(64,42,28,0.08);
}
.cabecera__grilla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo__img { width: 40px; height: 40px; border-radius: 50%; }
.logo__texto {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  color: var(--marron);
}

.menu-boton {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-boton span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--marron);
  transition: transform var(--transicion), opacity var(--transicion);
}
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--crema);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.4rem;
  box-shadow: var(--sombra);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transicion), transform var(--transicion), visibility var(--transicion);
}
.menu.esta-abierto { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(64,42,28,0.08);
}
.menu a.boton { border-bottom: none; margin-top: 0.6rem; justify-content: center; }

/* Instagram en el header (siempre visible) + hamburguesa */
.cabecera__derecha { display: flex; align-items: center; gap: 0.4rem; }
.cabecera__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: #C13584;                       /* rosa Instagram, para que se reconozca */
  background-color: rgba(193,53,132,0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion);
}
.cabecera__ig svg { display: block; }
.cabecera__ig span { display: none; }
.cabecera__ig:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF);
  color: var(--blanco);
  transform: translateY(-1px);
}

/* ===== 4. HERO ======================================================== */
.hero {
  position: relative;
  color: var(--blanco);
  overflow: hidden;
}
.hero__foto {
  position: absolute;
  inset: 0;
}
.hero__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}
/* Cuando pongas la foto real como <img>, este degradado la oscurece abajo
   para que el texto se lea. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(38,24,16,0.92) 0%, rgba(38,24,16,0.6) 40%, rgba(38,24,16,0.25) 75%, rgba(38,24,16,0.2) 100%);
  z-index: 1;
}
@media (min-width: 760px) {
  .hero::after {
    background:
      linear-gradient(to right, rgba(38,24,16,0.8) 0%, rgba(38,24,16,0.45) 42%, rgba(38,24,16,0.05) 70%),
      linear-gradient(to top, rgba(38,24,16,0.75) 0%, rgba(38,24,16,0.2) 50%);
  }
}
.hero__contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 86vh;
  min-height: min(86svh, 760px);
  padding-block: 5rem 3rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero__contenido .sobretitulo { color: #F6DDB4; }
.hero__titulo {
  color: var(--blanco);
  margin-bottom: 1rem;
  max-width: 16ch;
  overflow-wrap: break-word;
}
.hero__titulo .acento-mano { color: #F6DDB4; }
.hero__bajada {
  font-size: 1.05rem;
  max-width: 42ch;
  color: rgba(255,255,255,0.94);
}
.hero__acciones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero__acciones .boton--fantasma { --fg: var(--blanco); border-color: rgba(255,255,255,0.75); }
.hero__acciones .boton--fantasma:hover { background-color: var(--blanco); color: var(--marron); }

/* ===== 5. SECCIONES =================================================== */

/* --- Prueba social (seguidores / pedidos) --- */
.stats {
  background-color: var(--marron);
  padding-block: 2rem;
}
.stats__grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.stats__item { display: flex; flex-direction: column; gap: 0.15rem; }
.stats__numero {
  font-family: var(--fuente-titulo);
  font-size: 2.4rem;
  color: #F6DDB4;
  line-height: 1.1;
}
.stats__label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}

/* --- Historia --- */
.historia__grilla { display: grid; gap: 2rem; }
.historia__foto { min-height: 320px; border-radius: var(--radio); overflow: hidden; }
.historia__foto img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radio);
}
.cita {
  border-left: 4px solid var(--celeste);
  background-color: rgba(117,170,219,0.1);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radio) var(--radio) 0;
  margin: 1.5rem 0;
}
.cita p {
  font-family: var(--fuente-mano);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--marron);
  margin-bottom: 0.3rem;
}
.cita cite { font-style: normal; font-size: 0.9rem; color: var(--marron-suave); }
.firma { font-size: 1.8rem; margin-top: 1rem; }

/* --- Productos --- */
.sellos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.sellos li {
  background-color: var(--blanco);
  border: 1px solid rgba(64,42,28,0.12);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.grilla-productos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.producto {
  min-width: 0;
  background-color: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.producto:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(64,42,28,0.18); }
.producto__foto { aspect-ratio: 4 / 3; }
.producto__foto.foto-placeholder { min-height: 0; }
.producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.producto__cuerpo { padding: 1.1rem 1.25rem 1.35rem; }
.etiqueta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.etiqueta--vacuno { background-color: rgba(178,58,46,0.12); color: var(--rojo-oscuro); }
.etiqueta--pollo  { background-color: rgba(209,154,76,0.18); color: var(--dorado-oscuro); }
.etiqueta--cerdo  { background-color: rgba(117,170,219,0.18); color: #3f7aa6; }
.producto__precio {
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  color: var(--marron);
  margin-bottom: 0;
}
.producto__precio span { font-family: var(--fuente-cuerpo); font-size: 0.9rem; color: var(--marron-suave); }

.nota-peso {
  background-color: rgba(117,170,219,0.12);
  border: 1px dashed var(--celeste);
  border-radius: var(--radio);
  padding: 1.1rem 1.35rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.nota-peso strong { display: block; font-family: var(--fuente-titulo); font-size: 1.1rem; font-weight: 400; margin-bottom: 0.2rem; }

/* --- Pasos --- */
.grilla-pasos {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: paso;
}
.paso {
  background-color: var(--blanco);
  border-radius: var(--radio);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--sombra);
  position: relative;
}
.paso__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--rojo);
  color: var(--blanco);
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.paso h3 { margin-bottom: 0.35rem; }
.paso p { margin-bottom: 0; color: var(--marron-suave); }

/* --- Entrega --- */
.grilla-entrega {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.entrega__tarjeta {
  background-color: var(--blanco);
  border-radius: var(--radio);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--sombra);
}
.entrega__tarjeta h3 { margin-bottom: 0.5rem; }
.entrega__tarjeta p { color: var(--marron-suave); margin-bottom: 0.5rem; }
.entrega__nota { font-weight: 600; color: var(--marron) !important; margin-top: 1.5rem; margin-bottom: 0; }

.entrega__promo {
  background-color: rgba(209,154,76,0.16);
  border: 1px dashed var(--dorado);
  border-radius: var(--radio);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}
.entrega__promo strong { color: var(--rojo-oscuro); }

.entrega__precios {
  background-color: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.6rem 1.5rem;
  margin-top: 1.75rem;
}
.entrega__precios h3 { margin-bottom: 0.35rem; }
.entrega__precios-ayuda { color: var(--marron-suave); font-size: 0.92rem; margin-bottom: 1.25rem; }

.tabla-comunas { column-count: 1; column-gap: 2.5rem; }
.comuna-fila {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(64,42,28,0.16);
  break-inside: avoid;
}
.comuna-fila__nombre { font-weight: 500; }
.comuna-fila__precio {
  font-family: var(--fuente-titulo);
  color: var(--marron);
  white-space: nowrap;
}
.comuna-fila--sede .comuna-fila__nombre::after {
  content: "· sede";
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--dorado-oscuro);
  margin-left: 0.4rem;
}

/* --- Pedido (formulario de Airtable incrustado) --- */
.pedido {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(209,154,76,0.18), transparent 70%),
    var(--crema);
}
.pedido__cab { max-width: 620px; margin: 0 auto; }
.pedido__intro { color: var(--marron-suave); max-width: 54ch; margin: 0.6rem auto 0; }

.pedido__embed {
  width: 100%;
  max-width: 900px;
  margin: 2.5rem auto 0;
  background-color: var(--blanco);
  border: 1px solid rgba(64,42,28,0.12);
  border-radius: var(--radio);
  box-shadow: 0 24px 60px rgba(64,42,28,0.14);
  overflow: hidden;
}
.pedido__embed iframe {
  display: block;
  width: 100%;
  /* Airtable NO informa su alto, así que lo fijamos generoso para que se vea
     el formulario completo (incluido el botón "Enviar"). Si tu formulario
     queda corto y sobra espacio blanco, bajá estos números; si se corta el
     botón de enviar, subilos. */
  height: 1700px;
  border: 0;
  background-color: var(--blanco);
}
@media (max-width: 900px) {
  .pedido__embed iframe { height: 2200px; }
}
@media (max-width: 520px) {
  .pedido__embed iframe { height: 2650px; }
}

.pedido__ayuda {
  text-align: center;
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
  color: var(--marron-suave);
  max-width: 48ch;
}
.pedido__ayuda a {
  color: var(--rojo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Seguinos (nexo de redes) --- */
.redes { text-align: center; }
.redes__intro { max-width: 46ch; margin: 0.5rem auto 0; color: var(--marron-suave); }
.redes__botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.red {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background-color: var(--blanco);
  color: var(--marron);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(64,42,28,0.12);
  box-shadow: 0 6px 16px rgba(64,42,28,0.08);
  transition: transform var(--transicion), box-shadow var(--transicion), background-color var(--transicion), color var(--transicion);
}
.red svg { flex-shrink: 0; }
.red:hover { transform: translateY(-3px); color: var(--blanco); box-shadow: 0 12px 26px rgba(64,42,28,0.22); }
.red--instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); border-color: transparent; }
.red--whatsapp:hover  { background-color: #25D366; border-color: transparent; }
.red--facebook:hover  { background-color: #1877F2; border-color: transparent; }
.red--tiktok:hover    { background-color: #010101; border-color: transparent; }
.red--youtube:hover   { background-color: #FF0000; border-color: transparent; }
.redes__ig { font-size: 1.5rem; color: var(--dorado-oscuro); margin: 1.75rem 0 0; }
.redes__ig a {
  color: var(--dorado-oscuro);
  font-family: var(--fuente-mano);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.redes__ig a:hover { color: var(--rojo); }

/* --- Franja de foto a todo el ancho --- */
.franja-foto {
  position: relative;
  height: 46vw;
  max-height: 420px;
  min-height: 220px;
  overflow: hidden;
}
.franja-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.franja-foto__texto {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  color: var(--blanco);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  white-space: nowrap;
}

/* ===== 6. PIE DE PÁGINA ============================================== */
.pie {
  background-color: #2E1D12;
  color: rgba(255,255,255,0.8);
  padding-top: 3rem;
}
.pie__grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.pie h3 {
  color: var(--blanco);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.pie a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pie a:hover { color: var(--blanco); text-decoration: underline; }
.pie ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.pie__redes { display: flex; gap: 0.6rem; margin-top: 1rem; }
.pie__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--blanco);
  transition: background-color var(--transicion), transform var(--transicion);
}
.pie__redes a:hover { background-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.pie__logo { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 0.75rem; }
.pie__frase { font-size: 1.5rem; color: #F4D9AE; line-height: 1.3; max-width: 22ch; }
.pie__mini, .pie__ubicacion p { font-size: 0.9rem; }
.pie__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.25rem;
}
.pie__legal p { font-size: 0.82rem; margin-bottom: 0; color: rgba(255,255,255,0.55); }

/* ===== 7. BARRA FIJA MÓVIL + WHATSAPP FLOTANTE ====================== */
.barra-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background-color: rgba(251,245,234,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(64,42,28,0.15);
}
.barra-sticky .boton--grande { flex: 1; font-size: 1rem; padding: 0.9rem 1rem; }
.barra-sticky__wsp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  border-radius: 999px;
  background-color: #25D366;
  color: var(--blanco);
  text-decoration: none;
}

.wsp-flotante {
  display: none; /* se muestra en escritorio */
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--blanco);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform var(--transicion);
}
.wsp-flotante:hover { transform: scale(1.08); }

/* Espacio para que la barra fija no tape el contenido final en móvil */
main { padding-bottom: 0; }
.pie { padding-bottom: 90px; }

/* ===== 8. ANIMACIONES AL HACER SCROLL ============================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.es-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== 9. RESPONSIVE (ESCRITORIO) ================================= */
@media (min-width: 760px) {
  .grilla-productos { grid-template-columns: repeat(3, 1fr); }
  .grilla-pasos { grid-template-columns: repeat(4, 1fr); }
  .grilla-entrega { grid-template-columns: repeat(3, 1fr); }
  .stats__grilla { grid-template-columns: repeat(3, 1fr); }
  .tabla-comunas { column-count: 2; }
  .historia__grilla { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero__acciones { flex-direction: row; }
}

@media (min-width: 920px) {
  /* Menú horizontal, sin hamburguesa */
  .menu-boton { display: none; }
  .menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin-left: auto;
    margin-right: 1.25rem;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu a { border-bottom: none; padding: 0.25rem 0; }
  .menu a.boton { margin-top: 0; }
  .cabecera__ig span { display: inline; }
  .tabla-comunas { column-count: 3; }

  /* En escritorio: escondemos la barra fija y mostramos el WhatsApp flotante */
  .barra-sticky { display: none; }
  .wsp-flotante { display: flex; }
  .pie { padding-bottom: 3rem; }
}

@media (min-width: 760px) {
  .hero__contenido { padding-block: 7rem 4.5rem; }
  .hero__bajada { font-size: 1.15rem; }
}
