/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --bg: #f8f7f2;
  --surface: #ffffff;
  --surface-alt: #f1f0e8;
  --ink: #1c2318;
  --ink-soft: #545f4c;
  --line: #e2e0d3;

  --accent: #189950;
  --accent-dark: #0e6e39;
  --accent-soft: #dcf3e4;

  --accent2: #ff7a45;
  --accent2-dark: #d9531f;
  --accent2-soft: #ffe9dd;

  --gradient-motivate: linear-gradient(120deg, var(--accent) 0%, #35b56a 45%, var(--accent2) 100%);

  --protein: #189950;
  --fat: #d9531f;
  --carbs: #2f6fe0;

  --warn-bg: #fdf3e3;
  --warn-ink: #8a5a12;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .04), 0 8px 24px rgba(20, 30, 20, .06);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12160f;
    --surface: #191f16;
    --surface-alt: #1f261c;
    --ink: #eef1e9;
    --ink-soft: #b3bcac;
    --line: #2a332a;
    --accent: #33c774;
    --accent-dark: #6fe0a0;
    --accent-soft: #163625;
    --accent2: #ff9163;
    --accent2-dark: #ffb28c;
    --accent2-soft: #3a2418;
    --gradient-motivate: linear-gradient(120deg, #33c774 0%, #4fd98c 45%, #ff9163 100%);
    --warn-bg: #2c2413;
    --warn-ink: #e0b26a;
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--accent2) 7%, transparent), transparent 70%),
    radial-gradient(60% 45% at 0% 30%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; font-family: var(--display); font-weight: 700; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--surface); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .85em; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--accent-dark); }
.header-nav { display: none; gap: 1.5rem; font-size: .92rem; font-weight: 600; }
.header-nav a { color: var(--ink-soft); transition: color .2s var(--ease-out); }
.header-nav a:hover { color: var(--accent); }
@media (min-width: 720px) { .header-nav { display: flex; } }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  background:
    radial-gradient(60% 90% at 85% 0%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%),
    radial-gradient(55% 80% at 5% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); max-width: 16ch; margin: 0 auto; letter-spacing: -0.02em; }
.hero-sub { margin: 1rem auto 0; max-width: 56ch; color: var(--ink-soft); font-size: 1.05rem; }

.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-text { max-width: 100%; }
.hero-art { display: none; width: 180px; flex-shrink: 0; animation: heroArtIn .7s var(--ease-out) both; }
.hero-art-float { transform-origin: center; animation: floatY 4.5s ease-in-out infinite; }
.hero-art-float-1 { animation-delay: -.6s; }
.hero-art-float-2 { animation-delay: -2.1s; animation-duration: 5.2s; }
.hero-art-float-3 { animation-delay: -3.4s; animation-duration: 3.8s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes heroArtIn { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .hero { text-align: left; }
  .hero-inner { flex-direction: row; justify-content: space-between; text-align: left; gap: 2rem; }
  .hero-text { max-width: 46ch; }
  .hero-sub { margin-left: 0; }
  .hero-art { display: block; width: 220px; }
}
@media (min-width: 1024px) { .hero-art { width: 260px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-art-float { animation: none; }
  .hero-art { animation: none; }
}

/* =============================================================
   6. Tool section & card
   ============================================================= */
.tool-section { padding: 1rem 0 2rem; }
.tool-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gradient-motivate);
}
@media (min-width: 720px) { .tool-card { padding: 2rem; } }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-label { font-size: .88rem; font-weight: 600; color: var(--ink); }

input[type="number"], select {
  font: inherit;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s var(--ease-out);
}
input[type="number"]:focus, select:focus { border-color: var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b564c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.2rem; }

.segmented { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.segmented label { flex: 1; text-align: center; padding: .65rem .5rem; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--accent); color: #fff; }
.segmented label:active { transform: scale(.97); }
.segmented label:not(:last-child) { border-right: 1.5px solid var(--line); }

.objetivo-label-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.objetivo-label-row .field-label { margin-bottom: 0; }
.objetivo-art { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.objetivo-art svg { position: absolute; inset: 0; opacity: 0; transform: scale(.7) rotate(-8deg); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.objetivo-art svg.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .objetivo-art svg { transition: opacity .15s linear; transform: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem; transition: transform .15s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn-primary { background: var(--gradient-motivate); background-size: 160% 100%; background-position: 0% 0%; color: #fff; transition: transform .15s var(--ease-out), background-position .4s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn-primary:hover { background-position: 100% 0%; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217,83,31,.28); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

#calc-form { display: flex; flex-direction: column; gap: 1.5rem; }

/* Result */
.result[hidden] { display: none; }
.result {
  margin-top: 1.75rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface-alt)) 0%,
    color-mix(in srgb, var(--accent2) 10%, var(--surface-alt)) 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.5rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
@media (min-width: 720px) { .result { padding: 2rem 1.75rem; } }
.result.is-visible { opacity: 1; transform: none; }
.result-headline { text-align: center; }
.result-kcal { display: flex; align-items: baseline; justify-content: center; gap: .5rem; }
.result-kcal-num { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 700; color: var(--accent-dark); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .result-kcal-num { background: var(--gradient-motivate); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.result-kcal-unit { font-weight: 600; color: var(--ink-soft); }
.result-note { margin-top: .35rem; color: var(--ink-soft); font-size: .95rem; }

.scenario-compare { display: flex; flex-direction: column; gap: .65rem; }
.scenario-compare-title { font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.scenario-card {
  min-width: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .5rem; text-align: center; display: flex; flex-direction: column; gap: .2rem;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.scenario-card-label { overflow-wrap: break-word; }
.scenario-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.scenario-card-label { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.scenario-card-kcal { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
@media (min-width: 480px) { .scenario-card-kcal { font-size: 1.3rem; } }

.trust-note { margin-top: 1rem; font-size: .9rem; background: var(--accent-soft); color: var(--accent-dark); padding: .85rem 1rem; border-radius: var(--radius-sm); }

.result-secondary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; border-left: 3px solid var(--accent); box-shadow: var(--shadow); }
.stat:nth-child(2) { border-left-color: var(--accent2); }
.stat:nth-child(3) { border-left-color: var(--carbs); }
.stat:nth-child(4) { border-left-color: var(--accent2-dark); }
.stat-label { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.stat-value { font-size: 1.15rem; font-weight: 700; }

.result-macros { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
@media (min-width: 640px) { .result-macros { flex-direction: row; align-items: center; justify-content: center; gap: 2rem; } }
.macro-chart { position: relative; width: 220px; height: 220px; flex-shrink: 0; }
.macro-chart-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.macro-chart-center span { font-size: 1.4rem; font-weight: 700; font-family: var(--display); }
.macro-chart-center small { color: var(--ink-soft); font-size: .78rem; }

.macro-list { display: flex; flex-direction: column; gap: .75rem; min-width: 220px; }
.macro-row { display: flex; align-items: center; gap: .65rem; opacity: 0; transform: translateX(-8px); animation: macroRowIn .45s var(--ease-out) forwards; }
.macro-row:nth-child(1) { animation-delay: .25s; }
.macro-row:nth-child(2) { animation-delay: .38s; }
.macro-row:nth-child(3) { animation-delay: .51s; }
@keyframes macroRowIn { to { opacity: 1; transform: none; } }
.macro-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.macro-row-text { display: flex; flex-direction: column; }
.macro-row-name { font-weight: 700; font-size: .92rem; }
.macro-row-detail { font-size: .82rem; color: var(--ink-soft); }

.result-extras { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.extra-pill { background: var(--surface); border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; box-shadow: var(--shadow); }

.result-actions { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .result-actions { flex-direction: row; } .result-actions .btn { flex: 1; } }

.disclaimer { font-size: .8rem; color: var(--ink-soft); background: var(--warn-bg); color: var(--warn-ink); padding: .75rem 1rem; border-radius: var(--radius-sm); }

.privacy-badge { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }

.js-required { background: var(--warn-bg); color: var(--warn-ink); padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: .9rem; }

/* =============================================================
   7. Ad slots
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 700; letter-spacing: .08em; font-size: .8rem;
  background: var(--surface-alt);
}
.ad-slot-banner { max-width: 1080px; margin: 1.5rem auto; min-height: 90px; }
.ad-slot-incontent { max-width: 760px; margin: 2rem auto; min-height: 250px; }

.corner-ad {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 60;
  width: 220px; min-height: 100px;
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.corner-ad-close { position: absolute; top: 4px; right: 6px; font-size: 1.1rem; line-height: 1; color: var(--ink-soft); }
.corner-ad-label { font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(0,0,0,.16);
  padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.cookie-banner p { margin: 0; font-size: .85rem; color: var(--ink-soft); max-width: 640px; }
.cookie-banner-actions { display: flex; gap: .6rem; flex: 0 0 auto; }

.ad-dialog { border: none; border-radius: var(--radius); padding: 1.25rem; max-width: 320px; width: 90vw; box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.ad-dialog::backdrop { background: rgba(10, 14, 8, .5); }
.ad-dialog-close { position: absolute; top: 10px; right: 12px; font-size: 1.3rem; color: var(--ink-soft); }
.ad-dialog-body { min-height: 250px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.ad-dialog-label { font-weight: 700; letter-spacing: .08em; font-size: .8rem; color: var(--ink-soft); }

/* =============================================================
   8. Content sections
   ============================================================= */
.section { padding: 3rem 0; }
.section-alt {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 55%),
    linear-gradient(-45deg, color-mix(in srgb, var(--accent2) 5%, transparent), transparent 55%),
    var(--surface-alt);
}
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.5rem; }
.section-sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1.5rem; }
.section h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--accent-dark); }
.section p { color: var(--ink-soft); }

.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-family: var(--display); margin-bottom: .6rem; }
.steps li strong { display: block; margin-bottom: .3rem; font-size: .98rem; }
.steps li span { font-size: .85rem; color: var(--ink-soft); }

.uses-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .uses-grid { grid-template-columns: 1fr 1fr; } }
.use-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.use-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.use-icon { width: 38px; height: 38px; margin-bottom: .75rem; }
.use-card strong { display: block; margin-bottom: .4rem; color: var(--accent-dark); }
.use-card p { font-size: .92rem; }

/* Diet tabs */
.diet-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.diet-tab { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.diet-tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.diet-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.diet-panel-inner { opacity: 0; transform: translateY(6px); animation: dietPanelIn .4s var(--ease-out) forwards; }
@keyframes dietPanelIn { to { opacity: 1; transform: none; } }
.diet-panel-hint { text-align: center; color: var(--ink-soft); padding: 1.5rem 0; }
.meal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .meal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .meal-grid { grid-template-columns: repeat(4, 1fr); } }
.meal-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--surface-alt); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.meal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.meal-icon { width: 44px; height: 44px; transition: transform .25s var(--ease-out); }
.meal-card:hover .meal-icon { transform: scale(1.08) rotate(-4deg); }
.meal-card strong { font-size: .95rem; }
.meal-kcal { font-size: .8rem; font-weight: 700; color: var(--accent-dark); }
.meal-ejemplo { font-size: .88rem; font-weight: 600; }
.meal-detalle { font-size: .8rem; color: var(--ink-soft); }

.diet-foods { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .diet-foods { grid-template-columns: repeat(3, 1fr); } }
.food-group { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 1rem; font-size: .85rem; }
.food-group strong { display: block; margin-bottom: .35rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { padding: 1rem 1.15rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.15rem 1.1rem; font-size: .92rem; }

.errores-list { display: flex; flex-direction: column; gap: .75rem; }
.error-item { display: flex; gap: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.error-item-mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent2-soft); color: var(--accent2-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.error-item strong { display: block; margin-bottom: .25rem; font-size: .95rem; }
.error-item p { font-size: .9rem; }

/* =============================================================
   9. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.25rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; justify-content: space-between; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; align-items: flex-start; } }
.footer-inner p { color: var(--ink-soft); font-size: .85rem; max-width: 42ch; margin-top: .4rem; }
.footer-inner nav { display: flex; gap: 1.25rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.footer-copy { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* Simple pages (privacidad / aviso legal) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-page h1 { margin-bottom: 1.25rem; }
.legal-page h2 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page a.back { display: inline-block; margin-bottom: 1.5rem; color: var(--accent); font-weight: 600; }

/* =============================================================
   10. Scroll reveal
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =============================================================
   11. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transform: none; transition: opacity .25s linear; }
  .macro-row { transform: none; animation-duration: .01s; }
  .result { transform: none; }
  .diet-panel-inner { transform: none; animation-duration: .01s; }
}
