/* =====================================================================
   PAVOS PARSON — Hoja de estilos
   Paleta y tipografía basadas en el diseño de marca (rojo / crema / cian).
   ===================================================================== */

:root {
  --cream:        #F5EFE4;   /* fondo principal */
  --cream-2:      #EFE7D7;   /* fondo alterno */
  --ink:          #1C1B1A;   /* texto/títulos */
  --ink-soft:     #4D4A45;
  --muted:        #6E6A62;   /* texto secundario */
  --red:          #CE1B2C;   /* rojo marca */
  --red-dark:     #A8121F;
  --cyan:         #25A9E0;   /* azul logo */
  --line:         #E0D7C6;
  --white:        #ffffff;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 18px 40px -22px rgba(40, 30, 10, .35);
  --shadow-sm:    0 8px 22px -14px rgba(40, 30, 10, .4);
  --container:    1180px;
  --header-h:     96px;    /* altura de la barra del header */
  --logo-h:       182px;   /* tamaño del logo arriba (sobresale ~mitad de la barra) */
  --logo-h-sm:    112px;   /* tamaño del logo tras hacer scroll */

  --f-display: 'Anton', 'Oswald', sans-serif;
  --f-head:    'Oswald', sans-serif;
  --f-body:    'Poppins', sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  --btn-bg: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: .92rem;
  padding: 13px 24px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--btn-bg); color: #fff;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 22px -12px rgba(206, 27, 44, .8);
}
.btn--red { --btn-bg: var(--red); }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ----------------------------- Header ----------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 239, 228, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.5);
  border-bottom-color: var(--line);
}
.header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h);
}

/* Logo grande, anclado a la izquierda, que "cuelga" de la barra:
   la mitad inferior sobresale hacia el héroe. Se encoge al hacer scroll. */
.brand {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: flex-start; z-index: 3;
}
.brand__logo {
  height: var(--logo-h); width: auto; display: block;
  margin-top: 10px;
  filter: drop-shadow(0 9px 16px rgba(40, 25, 10, .18));
  transition: height .3s ease, margin-top .3s ease;
}
.header.is-scrolled .brand__logo { height: var(--logo-h-sm); margin-top: 8px; }
.brand__logo--footer { width: 250px; max-width: 80%; height: auto; margin-top: 0; filter: none; }
.brand__word { font-family: var(--f-display); fill: var(--cyan); letter-spacing: .02em; }
.brand__word--top { font-size: 26px; }
.brand__word--bottom { font-size: 26px; }
.brand__word--light { fill: #efe7d7; }
.brand__reg { font-size: 9px; fill: var(--red); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .18s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .22s ease;
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--red); }
.nav__cta { margin-left: 8px; }
.nav__cta::after { display: none; }

/* Hamburguesa */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 70;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Flecha de regreso del cajón (solo móvil) */
.nav__back { display: none; }

/* ----------------------------- Hero (banner de productos) ----------------------------- */
.hero { background: var(--cream); position: relative; overflow: hidden; }
.hero__banner { position: relative; width: 100%; font-size: 0; line-height: 0; }
.hero__banner-img { width: 100%; height: auto; display: block; }
/* Texto real sobre el banner (donde estaba el texto incrustado, lado izquierdo).
   Tamaños en vw para que escale junto con el banner (que ocupa todo el ancho). */
.hero__banner-text {
  position: absolute; left: 5%; top: 48%; transform: translateY(-50%);
  width: 48%; max-width: 780px; line-height: normal;
}
.hero__banner-title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  color: var(--ink); line-height: 1; letter-spacing: .01em;
  font-size: clamp(1.4rem, 4.15vw, 5rem);
  margin: 0 0 1.2vw;
}
.hero__banner-sub {
  font-family: var(--f-body); color: var(--muted);
  font-size: clamp(.8rem, 1.65vw, 1.55rem); line-height: 1.3;
  margin: 0 0 1.7vw;
}
.hero__banner-cta { font-size: clamp(.72rem, 1.15vw, 1.05rem); }

/* Héroe móvil: texto real (legible) + foto de productos. Oculto en escritorio. */
.hero__mobile { display: none; }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 8.5vw, 2.9rem); line-height: 1;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 14px; overflow-wrap: break-word;
}
.hero__subtitle { font-size: 1.06rem; color: var(--muted); margin-bottom: 24px; }
.hero__mtext { padding: 22px 22px 6px; }
.hero__mphoto {
  height: 300px; margin-top: 0;   /* la foto empieza justo bajo el header (sin espacio extra) */
  background-image: url('../assets/productos-foto.jpg');
  background-repeat: no-repeat; background-size: cover; background-position: center center;
}

/* ----------------------------- Beneficios ----------------------------- */
.features { background: var(--cream); border-top: 1px solid var(--line); }
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-block: 30px;
}
.feature {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 28px; position: relative;
}
.feature + .feature::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: var(--line);
}
.feature__icon { color: var(--red); flex: 0 0 auto; }
.feature__icon svg { width: 58px; height: 58px; }
.feature__text { min-width: 0; }
.feature__text h3 {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1rem; line-height: 1.15; margin-bottom: 4px;
}
.feature__text p { font-size: .86rem; color: var(--muted); line-height: 1.35; }

/* ----------------------------- Secciones (común) ----------------------------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.eyebrow {
  display: inline-block; font-family: var(--f-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; font-size: .8rem;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow--light { color: #ffd2cf; }
.section__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: .01em;
  color: var(--ink); margin-bottom: 18px;
}
.section__title--light { color: #fff; }
.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ----------------------------- Nosotros ----------------------------- */
.nosotros { background: var(--cream-2); }
.nosotros__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.nosotros__media { position: relative; }
.nosotros__photo {
  aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(160deg, #b8c6c0, #8aa07f 55%, #cdb98a);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.photo-note { font-size: .8rem; color: rgba(255,255,255,.85); padding: 10px; font-weight: 500; letter-spacing: .03em; }

/* Presentación automática (slideshow) de Nosotros */
.nosotros__slider {
  position: relative; aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: #ece4d4;
  touch-action: pan-y;            /* deja el scroll vertical, reserva el gesto horizontal */
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.nosotros__slide { -webkit-user-drag: none; }
.nosotros__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.nosotros__slide.is-active { opacity: 1; }
.nosotros__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.nosotros__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55); border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: width .25s ease, background .25s ease;
}
.nosotros__dot.is-active { background: #fff; width: 22px; border-radius: 5px; }
.nosotros__badge {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--red); color: #fff; border-radius: 16px;
  padding: 16px 22px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); font-family: var(--f-head);
}
.nosotros__badge strong { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.nosotros__badge span { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.15; }

.nosotros__text p { color: var(--ink-soft); margin-bottom: 16px; }
.values { margin: 24px 0; display: grid; gap: 12px; }
.values li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.values__dot { position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; text-align: center; min-width: 110px; box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-family: var(--f-display); color: var(--red); font-size: 2rem; line-height: 1; }
.stat span { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); }

/* Certificaciones y distintivos */
.nosotros__certs { margin-top: clamp(46px, 6vw, 72px); }
.nosotros__certs .eyebrow { display: block; text-align: center; margin-bottom: 28px; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* Logo fuera del recuadro, arriba y centrado */
.cert__logo { flex: 0 0 auto; width: 124px; height: 124px; display: grid; place-items: center; margin-bottom: 14px; }
.cert__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert__text {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 22px; width: 100%; flex: 1 1 auto;
}
.cert__text h4 { font-family: var(--f-head); font-weight: 600; font-size: .98rem; line-height: 1.18; margin-bottom: 6px; }
.cert__text p { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ----------------------- Timeline / Nuestra historia ----------------------- */
.timeline-sec {
  margin-top: clamp(48px, 7vw, 80px);
  background: linear-gradient(150deg, var(--red), var(--red-dark)); color: #fff;
  padding: clamp(40px, 6vw, 70px) 0 clamp(30px, 4vw, 48px); overflow: hidden;
}
.timeline__head { text-align: center; }
.timeline__head p { color: rgba(255,255,255,.9); max-width: 640px; margin: 12px auto 0; }
.timeline {
  margin-top: clamp(26px, 4vw, 44px);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  cursor: grab; scrollbar-width: none; -ms-overflow-style: none;   /* sin barra de scroll */
}
.timeline::-webkit-scrollbar { display: none; }
.timeline.is-grabbing { cursor: grabbing; }
.timeline__track { position: relative; display: flex; width: max-content; padding: 0 clamp(18px, 5vw, 60px); }
.timeline__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.35); }
.timeline__item { position: relative; flex: 0 0 clamp(232px, 80vw, 280px); height: 620px; }
.timeline__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 15px; height: 15px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22); z-index: 2;
}
.timeline__card {
  position: absolute; left: 50%; transform: translateX(-50%); width: clamp(212px, 76vw, 252px);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius); padding: 15px 17px; backdrop-filter: blur(3px);
}
.timeline__item--up .timeline__card { bottom: calc(50% + 30px); }
.timeline__item--down .timeline__card { top: calc(50% + 30px); }
.timeline__card::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; height: 24px; background: rgba(255,255,255,.45); }
.timeline__item--up .timeline__card::after { top: 100%; }
.timeline__item--down .timeline__card::after { bottom: 100%; }
.timeline__year { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: #fff; }
.timeline__card h4 { font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1.2; margin: 6px 0; }
.timeline__card p { font-size: .8rem; line-height: 1.45; color: rgba(255,255,255,.9); }

/* Timeline vertical en móvil */
@media (max-width: 760px) {
  .timeline { overflow-x: visible; margin-top: 22px; }
  .timeline__track { flex-direction: column; width: auto; padding: 0 4px; }
  .timeline__track::before { left: 21px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline__item { flex: none; height: auto; padding: 0 0 24px 46px; }
  .timeline__dot { left: 21px; top: 7px; transform: translate(-50%, 0); }
  .timeline__card { position: static; transform: none; width: auto; bottom: auto; top: auto; }
  .timeline__card::after { display: none; }
}
@media (max-width: 860px) {
  /* Certificaciones en carrete horizontal (swipe), sin barra de scroll */
  .certs {
    display: flex; gap: 16px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px;
    max-width: none; margin-inline: 0;
  }
  .certs::-webkit-scrollbar { display: none; }
  .cert { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
}

/* ----------------------------- Productos ----------------------------- */
.productos { background: var(--cream); }
.productos__cat {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.15rem; color: var(--ink); margin: 8px 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.productos__cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.productos__cat + .products-grid { margin-bottom: 48px; }

/* Carrusel horizontal: una sola fila, sin barra de scroll (se navega con flechas). */
.carousel { position: relative; }
.products-grid {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 12px 2px 18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.products-grid::-webkit-scrollbar { display: none; }

/* Flechas: solo aparecen si hay más productos hacia ese lado (clase is-hidden la oculta) */
.carousel__btn {
  position: absolute; top: 40%; transform: translateY(-50%);
  z-index: 6; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid #fff;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: opacity .22s ease, background .18s ease, transform .12s ease;
}
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }
.carousel__btn:hover { background: var(--red-dark); }
.carousel__btn:active { transform: translateY(-50%) scale(.9); }
.carousel__btn.is-hidden { opacity: 0; pointer-events: none; }
.product {
  flex: 0 0 auto; width: clamp(230px, 74vw, 264px); scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__img {
  aspect-ratio: 1 / 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffffff, #f4eee2);
  padding: 16px;
}
.product { cursor: pointer; }
.product__img { overflow: hidden; }
.product__img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(40, 25, 10, .14));
  transition: transform .3s ease;
}
.product:hover .product__img img { transform: scale(1.06); }
/* Pista de "Ver detalles" al pasar el mouse / enfocar */
.product__img::after {
  content: "Ver detalles +";
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(206, 27, 44, .94); color: #fff;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em;
  font-size: .78rem; text-align: center; padding: 9px;
  transform: translateY(100%); transition: transform .26s ease;
}
.product:hover .product__img::after,
.product:focus-visible .product__img::after { transform: translateY(0); }
.product:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.product__body { padding: 18px 18px 22px; }
.product__body h4 { font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; margin-bottom: 6px; }
.product__body p { font-size: .9rem; color: var(--muted); }
.product__weight {
  display: inline-block; margin-top: 12px;
  font-family: var(--f-head); font-weight: 600; font-size: .76rem; letter-spacing: .02em;
  color: var(--red); background: rgba(206,27,44,.08); border: 1px solid rgba(206,27,44,.2);
  padding: 4px 11px; border-radius: 999px;
}

.products-note { text-align: center; margin-top: 14px; color: var(--muted); }
.products-note a { color: var(--red); font-weight: 600; }

/* ----------------------------- Recetas ----------------------------- */
.recetas { background: var(--cream-2); }
/* Filtros por producto: una sola línea con scroll y flechas */
.filtros-carousel { position: relative; margin: clamp(16px, 2.5vw, 22px) 0 22px; }
.recetas-filtros {
  display: flex; flex-wrap: nowrap; gap: 9px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; padding: 4px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.recetas-filtros::-webkit-scrollbar { display: none; }
.filtros-carousel .carousel__btn { top: 50%; width: 36px; height: 36px; }
.filtro {
  flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
  padding: 9px 16px; border-radius: 30px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer; transition: .16s ease;
}
.filtro:hover { border-color: var(--red); color: var(--red); }
.filtro.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.recetas__inner { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(28px, 4vw, 50px); align-items: stretch; }
.recetas__chef { position: relative; min-height: 320px; }
.recetas__chef-img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.recetas__chef-badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(206, 27, 44, .94); color: #fff;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em;
  font-size: .84rem; text-align: center; padding: 11px 14px; border-radius: 10px;
}
.recetas__main { min-width: 0; }
.recetas__main .eyebrow { margin-bottom: 12px; }

.recetas__carousel { display: flex; align-items: center; min-width: 0; }
.recetas__carousel > .carousel { flex: 1 1 0; min-width: 0; }
.recetas-track { width: 100%; }
/* Carrusel de recetas: dos a la vez (tarjetas verticales) */
.recetas-track { scroll-snap-type: x proximity; }
.receta-card {
  flex: 0 0 calc(50% - 12px); scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: left; font-family: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.receta-card:hover, .receta-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); outline: none; }
.receta-card__img { aspect-ratio: 16 / 10; position: relative; }
.receta-card__img--foto { background-size: cover; background-position: center; background-repeat: no-repeat; }
.receta__img--5 { background: linear-gradient(150deg, #e3b07a, #b5743f); }
.receta__img--6 { background: linear-gradient(150deg, #e7c19f, #c8895a); }
.receta__img--7 { background: linear-gradient(150deg, #d9b48a, #a9763f); }
.receta-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(28, 27, 26, .78); color: #fff; font-family: var(--f-head);
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  padding: 5px 12px; border-radius: 20px;
}
.receta-card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.receta-card__body strong { font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.receta-card__body::after { content: "Ver receta →"; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--red); margin-top: 2px; }

/* Meta con iconos negros (reloj y personas) */
.receta-card__meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: .84rem; color: var(--ink); font-weight: 500; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-ico { color: #111111; flex: 0 0 auto; }
@media (max-width: 560px) {
  .receta-card__body strong { font-size: 1rem; }
  .receta-card__meta { font-size: .8rem; gap: 4px 10px; }
}

/* Modal de receta (una sola columna) */
.modal__dialog--single { max-width: 600px; }
.receta-modal__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em; font-size: .84rem; color: var(--ink); margin-bottom: 16px; }
.receta-modal__h { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; margin: 24px 0 12px; color: var(--ink); }
.receta-modal__ing { display: grid; gap: 8px; }
.receta-modal__ing li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .94rem; }
.receta-modal__ing li::before { content: "•"; position: absolute; left: 5px; top: 1px; color: var(--red); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.receta-modal__steps { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.receta-modal__steps li { position: relative; padding: 3px 0 3px 42px; color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }
.receta-modal__steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  background: var(--red); color: #fff; border-radius: 50%;
  font-family: var(--f-head); font-size: .88rem; display: grid; place-items: center;
}
@media (max-width: 860px) {
  .recetas__inner { grid-template-columns: 1fr; }
  .recetas__chef { max-width: 460px; margin-inline: auto; min-height: 260px; }
}
.recetas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.receta {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.receta:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.receta__img { aspect-ratio: 16 / 10; position: relative; }
.receta__img--1 { background: linear-gradient(150deg, #e9c79b, #c98a4e); }
.receta__img--2 { background: linear-gradient(150deg, #d9c7a0, #9aa56b); }
.receta__img--3 { background: linear-gradient(150deg, #e7b08c, #c46a52); }
.receta__img--4 { background: linear-gradient(150deg, #e0b389, #b07444); }
.receta__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(28,27,26,.78); color: #fff; font-family: var(--f-head);
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  padding: 5px 12px; border-radius: 20px;
}
.receta__body { padding: 18px; }
.receta__body h4 { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.receta__body p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.receta__meta { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }

/* ----------------------------- Ayuda en cocina ----------------------------- */
.ayuda { background: linear-gradient(150deg, var(--red), var(--red-dark)); color: #fff; }
.ayuda__inner { display: flex; flex-direction: column; gap: clamp(34px, 5vw, 58px); }
.ayuda__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.ayuda__text p { color: rgba(255,255,255,.9); }
.ayuda__banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1299 / 400; }
.ayuda__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Pasos alternados: la ventana a un lado y el resultado emerge del lado OPUESTO,
   tipo bookmark lateral. Paso 1 resultado a la derecha, paso 2 a la izquierda, y así. */
.pasos { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.paso { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.paso--rl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.paso--rl .paso__main { order: 2; }      /* pasos 2 y 4: ventana a la derecha */
.paso--rl .paso__tab { order: 1; }       /* resultado a la izquierda */
.paso__main {
  position: relative; z-index: 2;
  background: #c83040; border: 1px solid rgba(255,255,255,.22);   /* OPACO: oculta la parte del bookmark que va detrás */
  border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 28px);
}
/* El resultado emerge del costado de la ventana (se mete bajo el borde interno) */
.paso__tab { position: relative; z-index: 1; align-self: center; }
.paso__tab .calc__result { box-shadow: 0 16px 32px -14px rgba(20,10,0,.5); }
.paso--lr .paso__tab { margin-left: -26px; }
.paso--lr .paso__tab .calc__result { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 38px; }
.paso--rl .paso__tab { margin-right: -26px; }
.paso--rl .paso__tab .calc__result { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 38px; }
/* En pantallas chicas: una sola columna, resultado debajo de la ventana */
@media (max-width: 760px) {
  .paso, .paso--lr, .paso--rl { grid-template-columns: 1fr; }
  .paso--rl .paso__main, .paso--rl .paso__tab { order: 0; }
  .paso__tab, .paso--lr .paso__tab, .paso--rl .paso__tab { align-self: stretch; margin: -10px 0 0 0; }
  .paso--lr .paso__tab .calc__result, .paso--rl .paso__tab .calc__result {
    border-radius: 0 0 var(--radius) var(--radius); padding-left: 20px; padding-right: 20px;
  }
}
.tip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 24px 20px; backdrop-filter: blur(4px);
}
.tip__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red);
  font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 14px;
}
.tip h4, .paso__main h4 { font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; }
.tip p, .paso__main p { font-size: .9rem; color: rgba(255,255,255,.88); }
.tip p + p, .paso__main p + p { margin-top: 10px; }
.tip p strong, .paso__main p strong { color: #fff; font-weight: 600; }

/* Calculadoras (pasos 1 y 2): tarjetas lado a lado en la cuadrícula de 2 columnas */
.tip--calc { display: flex; flex-direction: column; }
.calc { margin-top: 16px; display: grid; gap: 16px; }
.calc__rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 22px; }
.calc__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.16);
}
.calc__label { font-size: .94rem; font-weight: 500; line-height: 1.2; }
.calc__label em { display: block; font-style: normal; font-size: .74rem; color: rgba(255,255,255,.85); margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stepper__btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.stepper__btn:hover { background: rgba(255,255,255,.3); }
.stepper__val {
  width: 42px; text-align: center; background: transparent; border: 0; color: #fff;
  font-family: var(--f-head); font-size: 1.05rem; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.stepper__val:focus { outline: none; }
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__leftover { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toggle { display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 3px; }
.toggle__opt {
  border: 0; background: transparent; color: #fff; cursor: pointer; padding: 6px 20px;
  border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .15s ease, color .15s ease;
}
.toggle__opt.is-active { background: #fff; color: var(--red); }
.calc__result {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
}
.calc__result-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-dark); font-weight: 600; }
.calc__result-label em { display: block; font-style: normal; text-transform: none; letter-spacing: normal; font-weight: 500; color: var(--muted); margin-top: 2px; }
.calc__result-kg { font-family: var(--f-display); font-size: 2.5rem; line-height: 1.05; color: var(--red); }
.calc__result-time { font-family: var(--f-display); font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.05; color: var(--red); }
.calc__result-sub { font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--red); margin-top: 3px; }
.calc__result-sub:empty { display: none; }
.calc__result-note { font-size: .82rem; color: var(--muted); }
.calc__result-note:empty { display: none; }

/* Aviso del método "agua fría" en el descongelado */
.descongela__aviso {
  margin-top: 2px; text-align: center; font-size: .86rem; line-height: 1.4;
  color: rgba(255,255,255,.92); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 11px 15px;
}
.descongela__aviso[hidden] { display: none; }

/* Nota dentro de un paso (p. ej. el pavo ahumado no necesita salmuera) */
.tip-nota {
  margin-top: 2px; font-size: .86rem; line-height: 1.4;
  color: rgba(255,255,255,.92); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 11px 15px;
}
.tip-nota strong { color: #fff; font-weight: 600; }

/* Lista de pasos del horneado/calentado (paso 4) */
.coccion__pasos { list-style: none; display: grid; gap: 7px; margin-top: 2px; }
.coccion__pasos li { position: relative; padding-left: 18px; font-size: .86rem; line-height: 1.4; color: rgba(255,255,255,.9); }
.coccion__pasos li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); }

/* Campo editable del tamaño del pavo (override) en el descongelado */
.peso-field { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.peso-input {
  width: 66px; text-align: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.5); border-radius: 10px; color: #fff;
  font-family: var(--f-head); font-size: 1.05rem; font-weight: 600; padding: 5px 6px;
  -moz-appearance: textfield; appearance: textfield;
}
.peso-input::-webkit-outer-spin-button, .peso-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.peso-input:focus { outline: none; border-color: #fff; }
.peso-unit { font-weight: 600; }
.peso-reset {
  align-self: flex-start; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: .8rem; text-decoration: underline; opacity: .9; padding: 0;
}
.peso-reset:hover { opacity: 1; }
.peso-reset[hidden] { display: none; }

/* Foco de teclado visible en los controles de las calculadoras (sobre fondo rojo) */
.stepper__val:focus-visible, .stepper__btn:focus-visible, .toggle__opt:focus-visible,
.peso-input:focus-visible, .peso-reset:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px;
}

/* En móvil, los toggles ocupan todo el ancho y reparten sus opciones (evita desbordes) */
@media (max-width: 480px) {
  .calc__leftover .toggle { width: 100%; }
  .calc__leftover .toggle__opt { flex: 1 1 0; padding: 8px 8px; text-align: center; }
}

/* ----------------------------- Contacto ----------------------------- */
.contacto { background: var(--cream); }
.contacto__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 70px); align-items: start; }

/* Distribuidores */
.distribuidores { margin-bottom: clamp(48px, 7vw, 84px); }
/* Carrusel infinito de distribuidores: una sola línea con auto-scroll.
   Al pasar el mouse se pausa y se puede desplazar (rueda o arrastrando). */
.distri-grid {
  overflow-x: auto; overflow-y: hidden; padding-block: 12px;
  cursor: grab; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.distri-grid::-webkit-scrollbar { display: none; }
.distri-grid.is-grabbing { cursor: grabbing; }
.distri-track { display: flex; width: max-content; }
.distri-set { display: flex; flex: 0 0 auto; }
.distri {
  flex: 0 0 auto; width: 256px; margin-right: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.distri:hover .distri__card { box-shadow: var(--shadow); }
/* Logo fuera del recuadro, arriba, centrado y grande */
.distri__logo { display: flex; align-items: center; justify-content: center; min-height: 92px; margin-bottom: 14px; }
.distri__logo img { max-height: 90px; max-width: 200px; width: auto; object-fit: contain; }
.distri__ic { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(160deg, #fff, #f4eee2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; }
.distri__ic svg { width: 28px; height: 28px; color: var(--red); }
.distri__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; width: 100%; flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s ease;
}
.distri__card h4 { font-family: var(--f-head); font-weight: 600; font-size: 1.14rem; color: var(--ink); }
.distri__card p { font-size: .9rem; color: var(--muted); line-height: 1.45; flex: 1 1 auto; }
.distri__tels { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 4px; }
.distri__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; transition: color .15s ease; }
.distri__tel svg { width: 15px; height: 15px; color: var(--red); flex: 0 0 auto; }
.distri__tel:hover { color: var(--red); }
.contact-list { display: grid; gap: 18px; margin: 26px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.contact-list__ic svg { width: 22px; height: 22px; color: var(--red); }
.contact-list a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; font-weight: 600; padding: 9px 16px; border-radius: 30px;
  border: 1.5px solid var(--ink); transition: .18s ease;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social-ico { width: 16px; height: 16px; flex: 0 0 auto; }
/* Redes en el footer con su icono (especificidad alta para ganar al reset svg{display:block}) */
.footer__col a.footer__social { display: flex; align-items: center; gap: 9px; width: fit-content; }

.contacto__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--f-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-body); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206,27,44,.14);
}
.field textarea { resize: vertical; }
.field__opt { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--muted); }
.form-hint { margin-top: 12px; font-size: .9rem; color: var(--red); font-weight: 600; min-height: 1.2em; }

/* Cotizar pedido a mayoreo */
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.form-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); cursor: pointer; }
.form-cotizar { margin-bottom: 16px; padding: 16px 16px 2px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); }
.form-cotizar[hidden], .form-otro[hidden] { display: none; }
/* reCAPTCHA: oculto hasta que el JS lo renderiza (solo si hay Site Key) */
.g-recaptcha-wrap { display: none; }

/* Modal de contacto: una sola ventana (el formulario sin su tarjeta) y sin barra de scroll */
#contactModal .modal__dialog { background: #fff; }
#contactModal .contacto__form { background: none; border: 0; box-shadow: none; padding: 0; }
#contactModal .modal__content { scrollbar-width: none; -ms-overflow-style: none; }
#contactModal .modal__content::-webkit-scrollbar { display: none; }

/* Pantalla de "¡Gracias!" que reemplaza al formulario al enviarse */
.form-gracias {
  display: none;   /* el JS la muestra (flex) al enviar */
  flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 46px 30px; box-shadow: var(--shadow);
}
.form-gracias__ico {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; margin-bottom: 8px;
}
.form-gracias h3 { font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.form-gracias p { color: var(--muted); max-width: 340px; line-height: 1.5; }
/* En el modal la tarjeta blanca la pone el modal; aquí va transparente */
#contactModal .form-gracias { background: none; border: 0; box-shadow: none; padding: 18px 0; }

/* ----------------------------- Footer ----------------------------- */
.footer { background: #1b1b1b; color: #d8d2c6; padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { font-size: .92rem; color: #a8a294; margin-top: 16px; max-width: 320px; }
.footer__col h5 {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .9rem; color: #fff; margin-bottom: 16px;
}
.footer__col a, .footer__col span { display: block; font-size: .92rem; color: #b3ada0; margin-bottom: 10px; transition: color .15s ease; }
.footer__col a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid #2e2e2e; padding-block: 20px; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom span { font-size: .82rem; color: #8c887d; }

/* ----------------------------- Botón flotante de contacto ----------------------------- */
.fab { position: fixed; right: clamp(16px, 3vw, 26px); bottom: clamp(16px, 3vw, 26px); z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; box-shadow: var(--shadow);
  display: inline-grid; place-items: center; transition: background .2s ease, transform .2s ease;
}
.fab__btn:hover { background: var(--red-dark); }
.fab__btn svg { width: 26px; height: 26px; }
.fab__btn .fab__close { display: none; }
.fab.is-open .fab__btn { background: var(--red-dark); transform: rotate(90deg); }
.fab.is-open .fab__btn .fab__open { display: none; }
.fab.is-open .fab__btn .fab__close { display: block; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__item {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-sm); text-decoration: none; cursor: pointer; text-align: left; appearance: none; -webkit-appearance: none;
  font-family: var(--f-head); font-weight: 600; font-size: .92rem;
  opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab__item:hover { background: var(--cream-2); }
.fab__ic { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; flex: 0 0 auto; }
.fab__ic svg { width: 18px; height: 18px; }

/* ----------------------------- Modal de producto ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
body.modal-open { overflow: hidden; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 15, 8, .62); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal__dialog {
  position: relative; z-index: 1;
  width: calc(100% - 40px); max-width: 880px;
  margin: 6vh auto; max-height: 88vh; overflow: hidden;   /* el diálogo no se desplaza */
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; align-items: stretch;
  animation: modalIn .26s cubic-bezier(.2,.7,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: .18s ease;
}
.modal__close:hover { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(90deg); }
.modal__media {
  flex: 1 1 0; min-width: 0;
  background: linear-gradient(160deg, #ffffff, #f4eee2);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.modal__media img { max-width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(40, 25, 10, .18)); }
/* Solo el contenido hace scroll; la imagen queda fija. */
.modal__content { flex: 1 1 0; min-width: 0; min-height: 0; overflow-y: auto; padding: 44px 36px; }
.modal__chip {
  display: inline-block; font-family: var(--f-head); text-transform: uppercase;
  letter-spacing: .08em; font-size: .72rem; color: #fff; background: var(--red);
  padding: 5px 13px; border-radius: 20px; margin-bottom: 16px;
}
.modal__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1; margin-bottom: 14px; }
.modal__desc { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.02rem; }
.modal__features { display: grid; gap: 11px; margin-bottom: 28px; }
.modal__features li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.modal__features li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: #fff; background: var(--red); width: 19px; height: 19px; border-radius: 50%;
  font-size: .72rem; line-height: 19px; text-align: center; font-weight: 700;
}
.modal__nutri { margin: 2px 0 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.modal__nutri h4 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: .98rem; margin-bottom: 3px; }
.modal__nutri-portion { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.modal__nutri table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.modal__nutri td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.modal__nutri tr td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; padding-left: 14px; }
.modal__nutri tr:last-child td { border-bottom: none; }
.modal__nutri-note { font-size: .9rem; color: var(--muted); font-style: italic; }
.modal__cta svg { display: none; }
@media (max-width: 680px) {
  .modal__dialog { flex-direction: column; margin: 4vh auto; }
  .modal__media { flex: 0 0 auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 22px; }
  .modal__media img { max-height: 200px; }
  .modal__content { flex: 1 1 auto; padding: 24px 22px 30px; }
}

/* ----------------------------- Animaciones ----------------------------- */
/* El ocultamiento solo aplica cuando hay JavaScript (clase .js en <html>).
   Sin JS, el contenido se muestra completo: nunca queda invisible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  :root { --header-h: 78px; --logo-h: 138px; --logo-h-sm: 98px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 78px 48px; gap: 36px; }
  .hero__text { max-width: none; order: 1; }
  .hero__media { order: 2; width: 100%; max-width: 100%; min-width: 0; min-height: 320px; aspect-ratio: 16/11; }
  .nosotros__inner, .ayuda__inner, .contacto__inner { grid-template-columns: 1fr; }
  .ayuda__head { grid-template-columns: 1fr; }
  .ayuda__cards { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .feature:nth-child(odd)::before { display: none; }
  .feature:nth-child(3)::before, .feature:nth-child(4)::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  /* Header FIJO en móvil: el position:sticky "desaparecía" al hacer scroll en
     algunos navegadores móviles (depende del contenedor de scroll / soporte de
     overflow:clip). fixed se ancla al viewport y no depende de eso. Se compensa
     el espacio que ya no ocupa con padding-top en el body. */
  /* En móvil: header fijo SIN backdrop-filter, para que NO sea el bloque
     contenedor del cajón fijo. Así el cajón queda anclado al viewport y se
     recorta bien (iOS Safari agrandaba el viewport para caber el cajón oculto
     a translateX(100%) y eso pasaba los 760px -> mostraba escritorio). */
  .header { position: fixed; left: 0; right: 0; top: 0; background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body { padding-top: var(--header-h); }

  /* Menú móvil a PANTALLA COMPLETA estilo Instagram: panel que cubre todo el
     viewport y se desliza desde la derecha (translateX). El body tiene
     overflow-x:hidden, así que el panel oculto en translateX(100%) no genera
     scroll horizontal. OJO: el header tiene backdrop-filter, que lo vuelve el
     bloque contenedor de este panel fixed; por eso usamos height:100dvh
     (relativo al viewport) en vez de bottom/inset (se medirían contra el header
     de 78px y el fondo crema no cubriría los enlaces de abajo). */
  .nav {
    position: fixed; top: 0; right: 0; bottom: auto; left: auto;
    width: 100%; height: 100vh; height: 100dvh; overflow-y: auto; touch-action: pan-y;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; background: var(--cream); padding: calc(var(--header-h) + 26px) 30px 34px;
    visibility: hidden; pointer-events: none;
    transform: translateX(100%);   /* anclado al viewport (vive en el header fixed) */
    transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility .34s ease; z-index: 65;
  }
  .nav.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  /* PUSH estilo Instagram: al abrir, se empuja a la izquierda solo el CONTENIDO
     (.page-shell). El header y el cajón quedan FUERA del shell (fijos al
     viewport), así el menú funciona a cualquier posición de scroll. */
  .page-shell { transition: transform .34s cubic-bezier(.4, 0, .2, 1); }
  body.nav-open .page-shell { transform: translateX(-100%); }
  /* Mientras arrastras el menú con el dedo: sin transición (sigue al dedo 1:1) */
  body.nav-dragging .nav, body.nav-dragging .page-shell { transition: none; }
  /* Al abrir se oculta la hamburguesa; se cierra con la flecha del cajón */
  .nav-toggle.is-open { opacity: 0; pointer-events: none; }
  /* Flecha de regreso, arriba a la izquierda del cajón (estilo Instagram) */
  .nav__back {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 16px; left: 14px; z-index: 2;
    width: 46px; height: 46px; padding: 0;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 50%;
  }
  .nav__back:active { background: rgba(0, 0, 0, .06); }
  .nav__link { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 14px 0 0; }
  .nav-toggle { display: flex; }
  /* Logo centrado en móvil (la hamburguesa queda a la derecha), grande y
     colgando del header (pedido del usuario), aunque se encime sobre la foto.
     z-index alto para que quede SOBRE la foto del héroe. */
  .brand { left: 50%; transform: translateX(-50%); z-index: 4; }
  .hero__banner { display: none; }   /* en móvil usamos el héroe con texto real */
  .hero__mobile { display: block; }
  .features__grid { grid-template-columns: 1fr; }
  .feature::before { display: none !important; }
  .feature { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  :root { --logo-h: 116px; --logo-h-sm: 84px; }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
