/* ==========================================================================
   PideFit — styles.css
   Tema claro, coherente con la app y con las capturas de la App Store:
   fondo cálido #FCFAF6, tarjetas blancas, tinta #16191D, azul de la app #4DAAFF
   (rellenos) y #1F6FB8 (texto sobre claro), colores de macros de la app y Onest.
   Sin frameworks. Móvil primero; probado a 320, 390 y 1440 px.
   ========================================================================== */

/* Onest (SIL OFL 1.1, ver fonts/OFL.txt) servida desde pidefit.app: la visita no toca servidores de Google. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FCFAF6;
  --surface: #FFFFFF;
  --alt: #F4F1EA;
  --ink: #16191D;
  --muted: #535C66;
  --line: #E7E2D8;
  --line-strong: #D5CEC0;
  --accent: #4DAAFF;
  --accent-ink: #1F6FB8;
  --accent-soft: #E3F1FF;
  --green: #22C55E;
  --green-ink: #166534;
  --green-soft: #DCFCE7;
  --blue: #3B82F6;
  --amber: #F59E0B;
  --amber-ink: #92400E;
  --amber-soft: #FEF3C7;
  --purple: #8B5CF6;
  --dark: #14171B;
  --dark-2: #1D2127;
  --dark-line: #2C3137;
  --dark-muted: #B8C0C8;
  --radius: 24px;
  --radius-sm: 16px;
  --pill: 999px;
  --container: 1160px;
  --gutter: 20px;
  --nav-h: 68px;
  --section: clamp(56px, 7vw, 104px);
  --shadow: 0 1px 2px rgba(22, 25, 29, .04), 0 12px 32px rgba(22, 25, 29, .08);
  --shadow-lg: 0 2px 6px rgba(22, 25, 29, .05), 0 30px 60px rgba(22, 25, 29, .14);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1 { font-size: clamp(2.5rem, 1.55rem + 4.3vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; line-height: 1.25; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--alt); }
.section--white { background: var(--surface); }
.center { text-align: center; }
.hl { color: var(--accent-ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lead { margin-top: 16px; color: var(--muted); font-size: clamp(1.06rem, .98rem + .35vw, 1.25rem); line-height: 1.55; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.note { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2B3036; }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--light:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* Tiendas: distintivos oficiales de Apple y Google, sin modificar (colores, proporción y tipografía originales).
   Alto mínimo 40 px y espacio libre de al menos 1/4 del alto alrededor de cada uno (guías de Apple y Google). */
.tienda { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tienda--centro { align-items: center; text-align: center; }
.tienda__badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; }
.tienda--centro .tienda__badges { justify-content: center; }
.tienda__item { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.tienda__badge { display: inline-block; padding: 0; border-radius: 8px; line-height: 0; }
.tienda__badge img { width: auto; height: 48px; }
.tienda__badge.is-texto { line-height: 1.2; }
.tienda__badge--pronto { cursor: default; }
.tienda__leyenda { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.tienda__badges--sm .tienda__badge img { height: 40px; }
.tienda__badges--sm .tienda__leyenda { font-size: 12.5px; }
.tienda__precio { max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tienda__precio strong { color: var(--ink); }

/* ---------- Encabezado ---------- */
.app-banner { background: var(--accent-soft); border-bottom: 1px solid #c9e3fa; }
.app-banner__inner { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.app-banner__inner > img { flex: none; width: 48px; height: 48px; border-radius: 11px; }
.app-banner__copy { flex: 1; min-width: 0; line-height: 1.3; }
.app-banner__copy strong { display: block; font-size: 16px; }
.app-banner__copy span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.app-banner__download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; flex: none; border-radius: var(--pill); background: var(--accent-ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.app-banner__download:hover { background: #195c98; color: #fff; text-decoration: none; }
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(252, 250, 246, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: var(--pill); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav__links a:hover { background: var(--alt); }
.nav__links a[aria-current="page"] { background: var(--alt); }

/* ---------- Capturas reales ---------- */
.shot {
  width: 100%;
  border-radius: 13.5% / 6.2%;
  border: 1px solid rgba(22, 25, 29, .10);
  background: #F7F7F8;
  box-shadow: var(--shadow-lg);
}
.ui-card { width: 100%; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.caption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero__lead { margin-top: 20px; max-width: 540px; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); line-height: 1.5; }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero .tienda { margin-top: 32px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 330px); }
.hero__visual::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 46%;
  width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 170, 255, .26), rgba(77, 170, 255, 0) 62%);
  pointer-events: none;
}
.hero__frame { position: relative; z-index: 1; }
.hero__visual .shot { position: relative; z-index: 1; }
.hero__chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.hero__chip--a { left: -18%; top: 1.2%; }
.hero__chip--b { right: -14%; bottom: 1.5%; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--kcal { background: var(--green); }
.dot--pro { background: var(--blue); }
.dot--carb { background: var(--amber); }
.dot--fat { background: var(--purple); }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); list-style: none; }
.step {
  display: flex; flex-direction: column;
  padding: 28px 28px 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 800; font-size: 16px;
}
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.step__shot { margin-top: auto; padding-top: 28px; }
.step__shot .shot { display: block; width: 78%; margin: 0 auto -18%; box-shadow: var(--shadow); }

/* ---------- Funciones ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--reverse .feature__text { order: 2; }
.feature__text p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.feature__visual { justify-self: center; width: min(100%, 440px); }
.checks { margin-top: 20px; list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.6' fill='none' stroke='%23166534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Datos (oficial / estimado) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .tag { margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.tag--oficial { background: var(--green-soft); color: var(--green-ink); }
.tag--estimado { background: var(--amber-soft); color: var(--amber-ink); }
.tag--neutral { background: var(--accent-soft); color: var(--accent-ink); }
.datos__pie { margin-top: 24px; }

/* ---------- Precio (banda oscura) ---------- */
.precio { background: var(--dark); color: #fff; }
.precio .eyebrow { color: var(--accent); }
.precio .lead { color: var(--dark-muted); }
.planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); max-width: 820px; margin: 0 auto; }
.plan { padding: 28px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid var(--dark-line); }
.plan__nombre { color: var(--dark-muted); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.plan__precio { margin-top: 8px; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan__precio small { font-size: .5em; font-weight: 700; letter-spacing: 0; color: var(--dark-muted); }
.plan ul { margin-top: 18px; list-style: none; display: grid; gap: 8px; color: var(--dark-muted); font-size: 15px; }
.plan li::before { content: "·"; margin-right: 8px; color: var(--accent); font-weight: 800; }
.precio__nota { max-width: 820px; margin: 24px auto 0; color: var(--dark-muted); font-size: 14px; text-align: center; }
.precio__nota a { color: #fff; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700; font-size: 17px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2316191D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Cierre ---------- */
.cierre { text-align: center; }
.platos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto 40px; }
.platos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.cierre .tienda { margin-top: 28px; }
.cierre .caption { margin: -24px 0 36px; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; max-width: 320px; color: var(--muted); }
.footer__brand .tienda__badges { margin-top: 20px; }
.footer__brand .footer__redes { margin-top: 8px; }
.footer__redes a { color: var(--ink); font-weight: 600; }
.footer__title { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer__col a:hover { text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer__legal p + p { margin-top: 6px; }

.otras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Qué pedir (/que-pedir, generadas por _build/que_pedir.py) ---------- */
.page-hero { padding: clamp(24px, 4.5vw, 56px) 0 clamp(16px, 2.5vw, 32px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); overflow-wrap: anywhere; }
.page-hero .lead { max-width: 860px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.meta-row .tag { font-size: 13.5px; padding: 5px 12px; white-space: normal; }
.aviso {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 860px; margin-top: 20px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; line-height: 1.55;
}
.aviso::before {
  content: "i"; flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 14px; font-style: italic;
}
.aviso p + p { margin-top: 6px; }
.content-section { padding: clamp(24px, 3.5vw, 44px) 0; }
.content-section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.content-section .lead { margin-top: 10px; max-width: 860px; font-size: 1.05rem; }
.content-section .note { margin-top: 12px; }
.leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 8px; color: var(--muted); font-size: 14px; }
.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.indice a, .cadena-link {
  display: inline-block; padding: 7px 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.indice a:hover, .cadena-link:hover { border-color: var(--ink); }
.categoria { scroll-margin-top: calc(var(--nav-h) + 16px); }
.categoria + .categoria { margin-top: 36px; }
.cadenas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; list-style: none; }
.cadenas .cadena-link { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px; border-radius: var(--radius-sm); }
.cadena-link__nombre { font-weight: 800; font-size: 1.05rem; }
.cadena-link__meta, .cadena-link__dato { color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.bloques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); margin-top: 22px; align-items: start; }
.bloque { padding: clamp(18px, 2.5vw, 24px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bloque h3 { font-size: 1.15rem; }
.bloque__criterio { margin-top: 4px; color: var(--muted); font-size: 14px; }
.link-mas { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; }
.platillos { list-style: none; margin-top: 8px; }
.platillos--meta { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
/* SEO-4 (22-oct): lo que solo sale del menú de cada cadena (por sección, lo que más pesa, frente a su categoría y la
   fuente) y «casi entran» de las páginas de meta. */
.analisis { margin-top: 30px; max-width: 980px; }
.content-section h2 + .analisis { margin-top: 18px; }
.analisis h3, .casi-entran { scroll-margin-top: calc(var(--nav-h) + 16px); }
.analisis h3 + p { margin-top: 10px; }
.analisis > p { max-width: 860px; line-height: 1.6; }
.analisis .platillos { margin-top: 10px; }
.casi-entran { margin-top: 36px; font-size: clamp(1.3rem, 1.15rem + .8vw, 1.7rem); }
.platillo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.platillo:first-child { border-top: 0; }
.platillo__nombre { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.platillo__seccion { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.platillo .tag { align-self: start; justify-self: start; white-space: normal; }
.macros { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.macros b { color: var(--ink); font-weight: 700; }
.macros span { display: inline-flex; align-items: center; gap: 6px; }
.app-block {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin: clamp(24px, 3vw, 32px) 0;
  padding: clamp(22px, 3.5vw, 34px);
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #CFE6FB;
}
.app-block h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.7rem); }
.app-block p { margin-top: 8px; color: var(--muted); }
.app-block .tienda__precio { margin-top: 0; }
.tabla-wrap { max-width: 980px; margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla caption { text-align: left; padding: 14px 18px 6px; font-weight: 800; font-size: 1.05rem; }
.tabla th, .tabla td { padding: 10px 12px; text-align: right; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla thead th { border-top: 0; color: var(--muted); font-size: 13px; font-weight: 700; white-space: normal; line-height: 1.25; vertical-align: bottom; }
.tabla .tag { font-size: 11.5px; padding: 1px 8px; margin-top: 4px; white-space: normal; }
.tabla .corto { display: none; text-decoration: none; }
.tabla th[scope="row"], .tabla thead th:first-child { text-align: left; white-space: normal; font-weight: 600; padding-left: 18px; overflow-wrap: anywhere; }
.tabla td:last-child, .tabla thead th:last-child { padding-right: 18px; }
.otras-titulo { margin-top: 40px; }
.otras .btn { white-space: normal; text-align: center; max-width: 100%; }
.volver { margin-top: 28px; font-weight: 700; }

/* ---------- Categorías (/que-pedir/categoria/…) ---------- */
.categoria h2 a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cat-cadenas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 22px; list-style: none; }
.cat-cadena { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.cat-cadena h3 { font-size: 1.15rem; }
.cat-cadena h3 a { color: var(--ink); }
.cat-cadena__meta { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.cat-cadena dl { margin: 12px 0 0; display: grid; gap: 10px; }
.cat-cadena dt { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cat-cadena dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.cat-cadena__platillo { font-weight: 700; overflow-wrap: anywhere; }
.cat-cadena__cifras { color: var(--muted); white-space: nowrap; }
.cat-cadena .tag { font-size: 11.5px; padding: 1px 8px; vertical-align: 1px; }
.cat-cadena__vacio { color: var(--muted); }
.platillo__seccion a { color: inherit; }

/* ---------- Comparaciones (/que-pedir/comparar/…) ---------- */
.content-section .tabla-wrap + h2, .veredictos + * { margin-top: 0; }
.tabla--comparar { table-layout: fixed; }
.tabla--comparar thead th:first-child { width: 34%; }
.tabla--comparar thead th { color: var(--ink); font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.tabla--comparar th, .tabla--comparar td { text-align: left; white-space: normal; vertical-align: top; }
.tabla--comparar th[scope="row"] { color: var(--muted); font-weight: 600; font-size: 14px; }
.tabla--comparar td { overflow-wrap: anywhere; }
.comparar__platillo { display: block; font-weight: 700; line-height: 1.3; }
.comparar__cifras { display: block; margin: 2px 0 4px; color: var(--muted); font-size: 13.5px; }
.comparar__vacio { color: var(--muted); }
.veredictos { display: grid; gap: 12px; margin-top: 16px; }
.veredicto { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.veredicto h3 { font-size: 1.08rem; }
.veredicto p { margin-top: 6px; color: #2E343B; }

/* ---------- Calorías de un producto (/calorias/…) ---------- */
.ficha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ficha__dato { display: flex; flex-direction: column; gap: 2px; padding: 16px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); }
.ficha__dato--kcal { border-top-color: var(--ink); }
.ficha__dato--pro { border-top-color: var(--blue); }
.ficha__dato--carb { border-top-color: var(--amber); }
.ficha__dato--fat { border-top-color: var(--purple); }
.ficha__valor { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ficha__unidad { color: var(--muted); font-size: 14px; font-weight: 600; }
.ficha__notas { margin-top: 16px; padding-left: 22px; list-style: disc; color: #2E343B; }
.ficha__notas li + li { margin-top: 6px; }
.ficha__notas b { color: var(--ink); }
.metas { display: grid; gap: 10px; margin-top: 14px; list-style: none; }
.metas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.metas__nombre { font-weight: 700; }
.metas__texto { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.meta-si, .meta-no { align-self: start; padding: 2px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.meta-si { background: var(--green-soft); color: var(--green-ink); }
.meta-no { background: var(--alt); color: var(--muted); }
.alternativa__titulo { display: block; margin-bottom: 2px; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.platillo__nombre a { color: var(--ink); }
.tabla th[scope="row"] a { color: var(--ink); text-decoration-color: var(--accent); }
@media (max-width: 640px) {
  .ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Guías (/guias, generadas por _build/guias.py) ---------- */
.guia-meta { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.content-section--guia { padding-top: 0; }
.prosa { color: #2E343B; font-size: 1.06rem; line-height: 1.75; overflow-wrap: break-word; }
.prosa > * + * { margin-top: 18px; }
.prosa h2 { margin-top: 40px; color: var(--ink); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); scroll-margin-top: calc(var(--nav-h) + 16px); }
.prosa h3 { margin-top: 30px; color: var(--ink); font-size: 1.2rem; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prosa h2 + *, .prosa h3 + * { margin-top: 12px; }
.prosa ul, .prosa ol { padding-left: 24px; }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li + li { margin-top: 8px; }
.prosa strong { color: var(--ink); }
.prosa .tabla-wrap { margin-top: 20px; }
.tabla--prosa th, .tabla--prosa td { text-align: left; white-space: normal; }
.tabla--prosa thead th { color: var(--ink); background: var(--alt); vertical-align: middle; }
.tabla--prosa th[scope="row"] { font-weight: 600; }
.nota { padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); color: var(--ink); }
.nota p + p { margin-top: 8px; }
.fuentes { margin-top: 12px; padding-left: 22px; list-style: decimal; color: var(--muted); font-size: 15px; }
.fuentes li + li { margin-top: 6px; }
.fuentes a { overflow-wrap: anywhere; }
.content-section--guia .faq { margin-top: 16px; }
.content-section--guia > .container > h2 { margin-top: 40px; }
.guias-lista { display: grid; gap: 14px; list-style: none; }
.guia-card { padding: clamp(18px, 2.5vw, 26px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.guia-card h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.25; }
.guia-card h2 a { color: var(--ink); text-decoration: none; }
.guia-card h2 a:hover { text-decoration: underline; }
.guia-card p { margin-top: 8px; color: var(--muted); }
.guia-card .guia-meta { font-size: 13.5px; }
.container--narrow .app-block { grid-template-columns: 1fr; }

/* ---------- Llamado a la app en el momento de la respuesta (18-oct) ----------
   Un botón con el texto del contexto, sin precios. En Android, main.js lo cambia por «Por ahora solo en iPhone». */
.cta-app {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px;
  margin: clamp(24px, 3vw, 32px) 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #CFE6FB;
}
.cta-app__titulo { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); font-weight: 800; line-height: 1.2; color: var(--ink); }
.cta-app__texto p:not(.cta-app__titulo) { margin-top: 6px; color: var(--muted); }
.cta-app__accion { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-app__boton {
  background: var(--accent-ink); color: #fff; white-space: normal; text-align: center;
  min-height: 52px; padding: 13px 24px; font-size: 17px; box-shadow: 0 6px 18px rgba(31, 111, 184, .25);
}
.cta-app__boton:hover { background: #195C98; color: #fff; text-decoration: none; }
.cta-app__boton:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta-app__nota { color: var(--muted); font-size: 13.5px; }
.cta-app__android { max-width: 300px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.cta-app [hidden] { display: none; }
.cta-app--compacto { padding: 18px 20px; background: var(--surface); border-color: var(--line-strong); }
.cta-app--compacto .cta-app__titulo { font-size: 1.1rem; }
.cta-app--compacto .cta-app__boton { min-height: 48px; font-size: 16px; box-shadow: none; }
.container--narrow .cta-app { grid-template-columns: 1fr; }
/* QR hacia la ficha, solo en computadora (main.js lo agrega fuera de iPhone y Android; ct=web-qr). Fondo blanco
   siempre, para que la cámara lo lea. En pantallas angostas no sale. */
.cta-app__qr {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
  padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
}
.cta-app__qr img { flex: none; width: 112px; height: 112px; background: #fff; }
.cta-app__qr p { max-width: 9em; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
@media (max-width: 860px) { .cta-app__qr { display: none; } }

/* Barra fija abajo en celular: discreta, se cierra y no tapa contenido (el body deja su alto libre al final). */
.barra-app {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(22, 25, 29, .08);
}
.barra-app[hidden] { display: none; }
.barra-app img { display: block; width: 36px; height: 36px; border-radius: 9px; flex: none; }
.barra-app__texto { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
.barra-app__texto strong { display: block; font-size: 14.5px; }
.barra-app__texto span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.barra-app__boton {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: var(--pill); background: var(--accent-ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.barra-app__boton:hover { background: #195C98; color: #fff; text-decoration: none; }
.barra-app__cerrar {
  flex: none; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font: inherit; font-size: 26px; line-height: 1; cursor: pointer;
}
.barra-app__cerrar:hover { background: var(--alt); color: var(--ink); }
.barra-app a:focus-visible, .barra-app button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.con-barra-app { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 761px) { .barra-app { display: none !important; } body.con-barra-app { padding-bottom: 0; } }

/* Portada: enlaces a las cadenas más buscadas (18-oct). */
.home-cadenas { background: var(--bg); border-top: 1px solid var(--line); }
.home-cadenas__lista { list-style: none; margin: 8px 0 0; padding: 0; }
.home-cadenas__lista li { max-width: 100%; }

/* ---------- Páginas legales ---------- */
.legal { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 88px; }
.legal h1 { margin-top: 12px; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal__meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 44px; font-size: 1.4rem; }
.legal h3 { margin-top: 26px; font-size: 1.1rem; }
.legal p, .legal li { margin-top: 14px; color: #2E343B; line-height: 1.7; }
.legal ul, .legal ol { margin-top: 6px; padding-left: 24px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-top: 8px; }
.legal strong { color: var(--ink); }
.legal .notice { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.legal .table-wrap { overflow-x: auto; margin-top: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; color: #2E343B; }
.legal th { background: var(--alt); color: var(--ink); font-weight: 700; }
.back-link { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; }

/* /acerca: hechos de un vistazo (18-oct). */
.legal table.acerca-hechos { min-width: 0; }
.acerca-hechos caption { text-align: left; padding: 0 0 10px; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.acerca-hechos th { width: 32%; }
.legal .breadcrumb { list-style: none; margin: 0 0 4px; padding-left: 0; }
.legal .breadcrumb li { margin-top: 0; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) {
  .acerca-hechos th, .acerca-hechos td { display: block; width: auto; }
  .acerca-hechos td { border-top: 0; }
}

/* ---------- 404 ---------- */
.no-encontrada { padding: clamp(64px, 10vw, 128px) 0; text-align: center; }
.no-encontrada .lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.no-encontrada .otras { justify-content: center; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__chip--a { left: -10%; }
  .hero__chip--b { right: -8%; }
  .steps { gap: 16px; }
  .step { padding: 22px 22px 0; }
}
@media (max-width: 860px) {
  .bloques { grid-template-columns: 1fr; }
  .app-block { grid-template-columns: 1fr; }
  .cta-app { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(76%, 300px); }
  .hero__chip--a { left: -20%; }
  .hero__chip--b { right: -18%; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 0 18px; padding: 22px 22px 0 22px; }
  .step__text { padding-bottom: 22px; }
  .step__shot { grid-column: 2; grid-row: 1 / span 2; padding-top: 0; align-self: end; }
  .step__shot .shot { width: 100%; margin: 0 0 -30%; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__text { order: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tabla { font-size: 14px; }
  .tabla th, .tabla td { padding: 9px 6px; }
  .tabla thead th { font-size: 12px; }
  .tabla th[scope="row"], .tabla thead th:first-child { padding-left: 12px; }
  .tabla td:last-child, .tabla thead th:last-child { padding-right: 12px; }
  .platillos--meta { padding: 2px 16px; }
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .nav__links a.nav__opcional { display: none; }
  .nav__links a { padding: 8px 10px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .planes { grid-template-columns: 1fr; }
  .platos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .faq summary { padding: 18px 50px 18px 18px; font-size: 16px; }
  .faq details > div { padding: 0 18px 18px; }
}
@media (max-width: 400px) {
  .tabla { font-size: 13px; }
  .tabla th, .tabla td { padding: 8px 4px; }
  .tabla .largo { display: none; }
  .tabla .corto { display: inline; }
  .platillo { grid-template-columns: 1fr; }
  :root { --gutter: 16px; }
  .step { grid-template-columns: minmax(0, 1fr) 104px; gap: 0 14px; padding: 20px 18px 0 18px; }
  .hero__chip { font-size: 12.5px; padding: 7px 10px; }
  .hero__chip--a { left: -12%; }
  .hero__chip--b { right: -10%; }
  .footer__grid { grid-template-columns: 1fr; }
  .card, .plan { padding: 22px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
