/*
 * Nutrición Arturo Esteve · unified stylesheet (2026-10).
 * Replaces the layered site-bundle.css. Palette unchanged; one type system,
 * one radius scale, one spacing rhythm.
 *
 * Shape rule: interactive controls are pills, cards 16px, media 14px, inputs 10px.
 * Colour rule: forest ink for structure, tomato for contact actions and accents,
 * leaf only as a soft tint.
 */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (unchanged) */
  --paper: #f6f1e8;
  --paper-deep: #ede4d4;
  --surface: #fffdf8;
  --ink: #1f382b;
  --ink-deep: #11271e;
  --leaf: #52763c;
  --leaf-light: #dfe9cb;
  --tomato: #c85c3d;
  --apricot: #e89b63;
  --line: #d7cbb9;
  --muted: #677269;

  /* Derived shades for legibility (same hues) */
  --tomato-ink: #a94b2d;          /* tomato for small text / filled buttons, AA on paper */
  --text: #2c3f33;                /* body copy, a softer ink */
  --line-soft: rgba(31, 56, 43, .1);
  --on-dark: #eef1ea;
  --on-dark-muted: rgba(238, 241, 234, .72);

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --radius-card: 16px;
  --radius-media: 14px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 56, 43, .06), 0 2px 6px rgba(31, 56, 43, .04);
  --shadow: 0 1px 2px rgba(31, 56, 43, .05), 0 18px 40px -18px rgba(31, 56, 43, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --topbar-h: 38px;
  --header-h: 76px;

  /* z-index scale */
  --z-header: 50;
  --z-float: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--leaf-light); color: var(--ink-deep); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(200, 92, 61, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover { color: var(--tomato-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--tomato-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3, h4 { font-family: var(--font-sans); font-weight: 650; letter-spacing: -.005em; line-height: 1.3; font-size: 1.125rem; }
strong, b { color: var(--ink); font-weight: 650; }
small { font-size: .8125rem; }
time { font-variant-numeric: tabular-nums; }

button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: var(--radius-input);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--surface); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.button,
.contact-form-panel button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font: 600 .9375rem/1.2 var(--font-sans);
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover,
.contact-form-panel button[type="submit"]:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.button:active,
.contact-form-panel button[type="submit"]:active { transform: translateY(0) scale(.98); }

.button.outline,
.button-ghost {
  background: transparent;
  border-color: rgba(31, 56, 43, .3);
  color: var(--ink);
}
.button.outline:hover,
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Contact intent: tomato */
.button-light,
a.button[href$="/contacto/"]:not(.outline),
.contact-form-panel button[type="submit"],
.sidebar-useful .button {
  background: var(--tomato-ink);
  border-color: var(--tomato-ink);
  color: #fff;
}
.button-light:hover,
a.button[href$="/contacto/"]:not(.outline):hover,
.contact-form-panel button[type="submit"]:hover,
.sidebar-useful .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.hero-actions, .content-actions, .hours-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ---------- Labels (eyebrows / kickers) ---------- */
.eyebrow,
.section-kicker,
.profile-kicker,
.profile-section-heading > p,
.home-hero-copy > p:first-child {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 .875rem;
  color: var(--tomato-ink);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
}
.eyebrow::before,
.section-kicker::before,
.profile-kicker::before,
.profile-section-heading > p::before,
.home-hero-copy > p:first-child::before {
  content: "";
  flex: none;
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: var(--z-header);
  background: rgba(255, 253, 248, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--surface); }
}
.topbar { background: var(--ink); color: var(--on-dark); font-size: .8125rem; }
.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.contact-strip {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  white-space: nowrap;
}
.contact-strip span { color: rgba(238, 241, 234, .28); }
.utility-nav { display: flex; gap: 1.25rem; white-space: nowrap; font-weight: 500; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; width: 196px; line-height: 0; }
.brand img { width: 100%; height: auto; }
.nav-panel { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem .875rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: rgba(31, 56, 43, .06); color: var(--ink); }
.main-nav a.active:not(.nav-cta) { background: var(--leaf-light); color: var(--ink-deep); }
.main-nav .nav-cta {
  margin-left: .75rem;
  padding: .625rem 1.25rem;
  background: var(--tomato-ink);
  color: #fff;
  font-weight: 600;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta.active { background: var(--ink); color: #fff; }
.mobile-utility-nav { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid rgba(31, 56, 43, .2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  width: 16px;
  height: 10px;
  background:
    linear-gradient(currentColor 0 0) top / 100% 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 1.5px no-repeat;
  transition: transform .25s var(--ease);
}
.menu-toggle[aria-expanded="true"]::before {
  background:
    linear-gradient(45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(-45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
  width: 12px;
  height: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.content-shell { padding-bottom: var(--section); }
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  margin-bottom: clamp(40px, 6vw, 72px);
  background: var(--paper-deep);
  box-shadow: 0 0 0 100vmax var(--paper-deep);
  clip-path: inset(0 -100vmax);
}
.page-hero .breadcrumbs { order: -1; margin-bottom: clamp(20px, 3vw, 32px); }
.page-hero h1 { max-width: 18em; margin: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .8125rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.section-heading, .profile-section-heading, .consultation-gallery-heading { margin-bottom: clamp(24px, 3vw, 36px); }
.section-heading h2, .profile-section-heading h2, .consultation-gallery-heading h2 { margin: 0; max-width: 32ch; }
.consultation-gallery-heading p:last-child { margin: .75rem 0 0; color: var(--muted); }

/* ---------- Prose (pages, posts, legal) ---------- */
.prose { min-width: 0; }
:where(.prose) h2 { margin: 2.25em 0 .6em; font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
:where(.prose) h3 { margin: 1.75em 0 .5em; }
:where(.prose) > :first-child { margin-top: 0; }
:where(.prose) ul, :where(.prose) ol { padding-left: 1.25em; }
:where(.prose) li { margin: .35em 0; padding-left: .25em; }
:where(.prose) li::marker { color: var(--leaf); }
:where(.prose) blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--tomato);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.4;
}
:where(.prose) img { border-radius: var(--radius-media); }
:where(.prose) table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  font-size: .9375rem;
}
:where(.prose) td, :where(.prose) th { padding: .875rem 1.125rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
:where(.prose) td + td { border-left: 1px solid var(--line-soft); }
:where(.prose) tr:last-child > td { border-bottom: 0; }
:where(.prose) td[rowspan] { border-bottom: 1px solid var(--line-soft); }
:where(.prose) td p { margin: 0; }

/* ---------- Home ---------- */
.home-hero { position: relative; overflow: hidden; isolation: isolate; }
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  background: var(--leaf-light);
  z-index: -1;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 112px);
}
.home-hero-copy h1 { max-width: 11.5em; margin-bottom: 1.5rem; font-size: clamp(2.75rem, 5.6vw, 4.5rem); }
.home-hero-lead { max-width: 40ch; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; }
.home-hero-portrait { position: relative; justify-self: center; width: min(100%, 320px); }
.home-hero-portrait img {
  width: 100%;
  aspect-ratio: 300 / 352;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero-contact-card {
  position: absolute;
  left: -56px;
  bottom: -32px;
  display: grid;
  gap: .25rem;
  width: 264px;
  padding: 1rem 1.25rem 1.125rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-contact-card strong { font-size: 1rem; }
.hero-contact-card span { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.hero-contact-card a { margin-top: .375rem; color: var(--tomato-ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.hero-contact-card a:hover { text-decoration: underline; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.home-sections { display: grid; gap: var(--section); padding: var(--section) 0; }
.home-sections > section { min-width: 0; }

/* Benefits: one panel, three columns */
.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quick-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.quick-card + .quick-card { border-left: 1px solid var(--line-soft); }
.home-benefit-icon {
  width: 44px; height: 44px;
  padding: 10px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--leaf-light);
  color: var(--ink);
}
.quick-card .quick-label { margin: 0 0 .375rem; font-family: var(--font-sans); font-size: 1.125rem; font-weight: 650; letter-spacing: -.005em; }
.quick-card p { flex: 1; margin-bottom: 1.25rem; color: var(--muted); font-size: .9688rem; }
.quick-card a, .blog-read-more, .sidebar-all-posts {
  align-self: flex-start;
  color: var(--tomato-ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.quick-card a:hover, .blog-read-more:hover, .sidebar-all-posts:hover { text-decoration: underline; }

/* Price band */
.home-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: var(--on-dark);
}
.pricing-copy { padding: clamp(32px, 5vw, 64px); }
.home-pricing .eyebrow { color: var(--apricot); }
.home-pricing h2 { margin: 0 0 .5rem; color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.pricing-mode { margin-bottom: 2rem; color: var(--on-dark-muted); font-size: 1.0625rem; }
.home-pricing .button.outline { border-color: rgba(238, 241, 234, .4); color: #fff; }
.home-pricing .button.outline:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: 2.5rem 2rem;
  background: var(--leaf-light);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
}
.price-number {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
}

/* Visit row */
.home-visit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid var(--line);
}
.home-visit h2 { margin: 0 0 .25rem; font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.home-visit p:not(.eyebrow) { margin: 0; color: var(--muted); }

/* Posts */
.home-blog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.home-blog-heading h2 { margin: 0; }
.home-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.home-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.home-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-post-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.home-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.home-post-card:hover .home-post-image img { transform: scale(1.035); }
.home-post-body { display: flex; flex: 1; flex-direction: column; padding: 1.375rem 1.5rem 1.5rem; }
.home-post-body .article-meta { margin: 0 0 .5rem; }
.home-post-body h2, .home-post-body h3 { margin: 0 0 .75rem; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.home-post-body h2 a, .home-post-body h3 a { text-decoration: none; }
.home-post-body h2 a:hover, .home-post-body h3 a:hover { color: var(--tomato-ink); }
.home-post-body > p:not(.article-meta) { flex: 1; margin-bottom: 1.25rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.article-meta { color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--ink-deep); color: var(--on-dark-muted); font-size: .9375rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(232, 155, 99, .7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.site-footer h2 {
  margin: 0 0 1.25rem;
  color: var(--apricot);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.footer-icon, .footer-action svg, .home-benefit-icon, .nutrition-principle svg, .hours-detail svg, .nutrition-caption-icon svg, .recent-post-thumb--placeholder svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-icon { flex: none; width: 20px; height: 20px; margin-top: .125rem; color: var(--apricot); }
.footer-contact-list { display: grid; gap: 1.25rem; }
.footer-contact-list li { display: flex; gap: .875rem; }
.footer-contact-list li > span { display: grid; gap: .125rem; justify-items: start; }
.footer-contact-list small { color: var(--on-dark-muted); }
.footer-action {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: .625rem;
  padding: .4rem .875rem;
  border: 1px solid rgba(238, 241, 234, .25);
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 600;
}
.site-footer .footer-action:hover { background: var(--on-dark); color: var(--ink-deep); text-decoration: none; }
.footer-action svg { width: 14px; height: 14px; }
.footer-nav-list { display: grid; gap: .75rem; }
.footer-hours { display: flex; gap: .875rem; }
.footer-hours p { display: grid; gap: .125rem; justify-items: start; margin: 0; }
.footer-hours strong { color: var(--on-dark); font-weight: 600; }
.footer-hours a { margin-top: .375rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232, 155, 99, .6); }
.site-footer .footer-subheading { margin-top: 2.5rem; }
.recent-posts { display: grid; gap: .875rem; }
.recent-posts a { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .875rem; }
.recent-post-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: rgba(238, 241, 234, .08); }
.recent-post-thumb--placeholder { display: grid; place-items: center; color: var(--apricot); }
.recent-post-thumb--placeholder svg { width: 20px; height: 20px; }
.recent-post-title { font-size: .875rem; line-height: 1.4; }
.footer-bottom { border-top: 1px solid rgba(238, 241, 234, .1); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 168px 1.25rem 0;
  font-size: .8125rem;
}
.social-links { display: flex; gap: .5rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(238, 241, 234, .2);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.site-footer .social-links a:hover { background: var(--on-dark); color: var(--ink-deep); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 52px;
  padding: .5rem 1.125rem .5rem .5rem;
  border-radius: var(--radius-pill);
  background: var(--ink-deep);
  color: var(--on-dark);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(238, 241, 234, .16);
  box-shadow: 0 10px 30px -10px rgba(17, 39, 30, .55);
  transition: transform .3s var(--ease), background-color .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
.whatsapp-float svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: #25d366; fill: var(--ink-deep); }

/* Lightbox */
.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--ink-deep);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 22, 17, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: auto; max-width: 100%; max-height: 86vh; margin: auto; }
.lightbox button {
  position: absolute;
  top: .75rem; right: .75rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Shared content blocks ---------- */
.content-resource {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-input);
  background: rgba(223, 233, 203, .55);
  color: var(--text);
  font-size: .9375rem;
}
.content-next-step, .pricing-next-step {
  margin-top: 2rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* ---------- Nutrición ---------- */
.nutrition-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.nutrition-figure {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nutrition-figure img { width: 100%; border-radius: var(--radius-input); }
.nutrition-figure figcaption {
  display: flex;
  gap: .75rem;
  padding: 1rem .25rem .25rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.nutrition-caption-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--leaf-light); color: var(--ink); }
.nutrition-caption-icon svg { width: 16px; height: 16px; }
.nutrition-figure figcaption strong { display: block; font-size: .875rem; }
.nutrition-copy { max-width: 68ch; }
.nutrition-copy blockquote {
  margin: 0 0 3rem;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}
.nutrition-copy blockquote p { margin: 0 0 .875rem; }
.nutrition-copy blockquote cite { color: var(--muted); font-family: var(--font-sans); font-size: .875rem; font-style: normal; font-weight: 600; letter-spacing: .01em; }
.nutrition-section-title { margin-top: 0 !important; }
.nutrition-lead { color: var(--ink); font-size: 1.1875rem; line-height: 1.6; }
.nutrition-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0;
  border-block: 1px solid var(--line);
}
.nutrition-principle { padding: 1.5rem 1.25rem 1.5rem 0; }
.nutrition-principle + .nutrition-principle { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.nutrition-principle svg { width: 24px; height: 24px; margin-bottom: .875rem; color: var(--leaf); }
.nutrition-copy .nutrition-principle h2 { margin: 0 0 .25rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.nutrition-principle p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.nutrition-closing-quote {
  margin: 2.5rem 0 !important;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-card);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.4;
}
.nutrition-closing-quote strong { font-weight: 500; }
.nutrition-closing-quote cite { display: block; margin-top: .75rem; color: var(--muted); font-family: var(--font-sans); font-size: .8125rem; font-style: normal; font-weight: 500; }
.nutrition-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nutrition-cta p { flex: 1 1 100%; margin: 0 0 .5rem; color: var(--ink); font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.3; }

/* ---------- La consulta ---------- */
.consultation-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-bottom: var(--section);
}
.consultation-copy h2 { margin-top: 0; }
.consultation-lead { font-size: 1.125rem; }
.consultation-features { display: grid; gap: .75rem; margin: 1.75rem 0 2rem; padding: 0; list-style: none; }
.consultation-features li, .service-features li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
}
.consultation-features li::before, .service-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--leaf-light);
}
.consultation-features li::after, .service-features li::after {
  content: "";
  position: absolute;
  left: 7px; top: calc(.3em + 5px);
  width: 5px; height: 9px;
  border: solid var(--leaf);
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}
.consultation-featured img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.consultation-featured figcaption, .credential-card figcaption { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }
.consultation-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 16px);
}
.consultation-image { position: relative; display: block; overflow: hidden; border-radius: var(--radius-media); background: var(--paper-deep); }
.consultation-image--portrait { grid-row: span 2; }
.consultation-image:nth-child(5) { grid-column: span 2; }
.consultation-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.consultation-image:hover img { transform: scale(1.04); }
.consultation-image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(31, 56, 43, .06); pointer-events: none; }

/* ---------- Precios ---------- */
.pricing-section + .pricing-section { margin-top: var(--section); }
.nutrition-price-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nutrition-price-panel h3 { margin: 0 0 .25rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.015em; }
.nutrition-price-panel p { margin: 0; color: var(--muted); }
.nutrition-price { display: flex; align-items: baseline; gap: .75rem; }
.nutrition-price strong { color: var(--ink); font-family: var(--font-serif); font-size: clamp(3.5rem, 6vw, 4.75rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.nutrition-price span { color: var(--muted); font-size: .875rem; font-weight: 500; }
.appcc-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.appcc-price-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.appcc-price-card h3 { margin: 0 0 1.25rem; }
.price-list { margin: 0; }
.price-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 0;
}
.price-list > div + div { border-top: 1px solid var(--line-soft); }
.price-list dt { color: var(--text); font-size: .9375rem; }
.price-list dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-tax-note { margin: 1rem 0 0; color: var(--muted); font-size: .875rem; }
.pricing-package-note {
  margin-top: 1.5rem;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  background: var(--leaf-light);
}
.pricing-package-note h3 { margin: 0 0 .5rem; }
.pricing-package-note p { margin: 0; max-width: 75ch; }

/* ---------- Horario ---------- */
.hours-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.hours-summary h2 { margin-top: 0; }
.hours-lead { font-size: 1.125rem; }
.hours-actions { margin: 2rem 0; }
.hours-note { padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.hours-details {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hours-detail { display: flex; gap: 1rem; padding: 1.5rem 1.75rem; }
.hours-detail + .hours-detail { border-top: 1px solid var(--line-soft); }
.hours-detail svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--leaf-light); color: var(--ink); }
.hours-detail h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.hours-detail p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq-intro { margin-bottom: 2.5rem; }
.faq-intro img { width: 100%; aspect-ratio: 900 / 230; object-fit: cover; border-radius: 20px; }
.faq-intro h2 { margin: 2.5rem 0 0 !important; }
.accordion { display: grid; gap: .75rem; max-width: 900px; }
.accordion > div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: box-shadow .3s var(--ease), border-color .3s ease;
}
.accordion > div:hover { border-color: var(--line); }
.accordion > div.is-open { box-shadow: var(--shadow-sm); border-color: var(--line); }
.accordion-title {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.accordion-title::before,
.accordion-title::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 14px;
  height: 1.75px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--tomato-ink);
  transition: transform .3s var(--ease);
}
.accordion-title::after { transform: rotate(90deg); }
.accordion > div.is-open .accordion-title::after { transform: rotate(0deg); }
.accordion-inner { display: none; padding: 0 1.5rem 1.25rem; color: var(--text); }
.accordion-inner p { max-width: 72ch; }
.accordion-inner p:last-child { margin-bottom: 0; }
.accordion > div.is-open .accordion-inner { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .accordion > div.is-open .accordion-inner { animation: rise .45s var(--ease) both; }
}

/* ---------- Consultor APPCC ---------- */
.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.service-primary h2 { margin-top: 0; }
.service-lead { font-size: 1.1875rem; color: var(--ink); }
.service-features { display: grid; gap: 1rem; margin: 2rem 0 2.25rem; padding: 0; list-style: none; }
.service-features li { display: grid; gap: .125rem; }
.service-features strong { font-size: 1.0625rem; }
.service-features span { color: var(--muted); font-size: .9688rem; }
.service-support { display: grid; gap: 1.25rem; }
.service-note {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--on-dark);
}
.service-note .section-kicker { color: var(--apricot); }
.service-note p:last-child { margin: 0; }

/* ---------- Sobre Arturo ---------- */
.arturo-page { display: grid; gap: var(--section); }
.arturo-intro {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.arturo-portrait { position: relative; isolation: isolate; }
.arturo-portrait::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 20px;
  background: var(--leaf-light);
  z-index: -1;
}
.arturo-portrait img { width: 100%; aspect-ratio: 300 / 352; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.arturo-intro-copy h2 { margin-top: 0; }
.academic-list { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.academic-list p { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.academic-list strong { display: block; margin-bottom: .125rem; color: var(--ink); font-size: 1.0625rem; }

.experience-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
.experience-lead { margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.7; }
.experience-detail { padding-left: clamp(20px, 3vw, 40px); border-left: 2px solid var(--leaf-light); color: var(--muted); }
.experience-detail p:last-child { margin: 0; }

.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-item {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 1rem clamp(24px, 5vw, 72px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.method-title { display: flex; align-items: baseline; gap: 1rem; }
.method-number { flex: none; color: var(--tomato); font-family: var(--font-serif); font-size: 1.75rem; line-height: 1; font-variant-numeric: lining-nums; }
.method-title h3 { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.method-copy p { color: var(--text); }
.method-copy p:last-child { margin-bottom: 0; }
.method-note { display: inline-block; padding: .5rem .875rem; border-radius: var(--radius-input); background: var(--leaf-light); color: var(--ink) !important; font-size: .9375rem; }

.additional-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.additional-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.additional-card:first-child { background: var(--leaf-light); border-color: transparent; }
.additional-card:last-child { background: var(--ink); border-color: transparent; color: var(--on-dark-muted); }
.additional-card:last-child h3 { color: #fff; }
.additional-card h3 { margin: 0 0 .5rem; }
.additional-card p { margin: 0; font-size: .9688rem; }

.credential-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.credential-card a { display: block; overflow: hidden; padding: 8px; border: 1px solid var(--line-soft); border-radius: var(--radius-media); background: var(--surface); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.credential-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.credential-card img { width: 100%; aspect-ratio: 320 / 202; object-fit: cover; border-radius: 8px; }
.credential-card figcaption { color: var(--text); font-size: .875rem; line-height: 1.45; }

/* ---------- Contacto ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-form-panel {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-form-panel h2 { margin-top: 0; }
.contact-form-panel > p:not(.section-kicker):not(.form-status) { color: var(--muted); }
.contact-form-panel form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-form-panel label { display: grid; gap: .5rem; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1px solid #c9bda9;
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form-panel textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.contact-form-panel input:hover, .contact-form-panel textarea:hover { border-color: var(--muted); }
.contact-form-panel input:focus, .contact-form-panel textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(82, 118, 60, .18);
}
.contact-form-panel input:user-invalid, .contact-form-panel textarea:user-invalid { border-color: #b3261e; }
.privacy-copy { margin: 0; padding: 1rem 1.125rem; border-radius: var(--radius-input); background: var(--paper); color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.contact-form-panel .privacy-check { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; }
.privacy-check input { flex: none; width: 20px; height: 20px; margin: .125rem 0 0; accent-color: var(--ink); }
.contact-form-panel button[type="submit"] { justify-self: start; min-width: 200px; }
.form-status { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-radius: var(--radius-input); font-size: .9375rem; font-weight: 500; }
.form-status--ok { background: var(--leaf-light); color: var(--ink-deep); }
.form-status--error { background: #f8e9e3; color: #8a2f17; }
.contact-location { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 24px); }
.map-placeholder {
  display: grid;
  justify-items: start;
  gap: .25rem;
  min-height: 280px;
  align-content: end;
  padding: 2rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 28%, rgba(82, 118, 60, .22) 0 10px, transparent 11px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(31, 56, 43, .06) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(31, 56, 43, .06) 46px 47px),
    var(--leaf-light);
}
.map-placeholder p { margin: 0; }
.map-placeholder p:nth-child(2) { margin-bottom: 1rem; color: var(--muted); font-size: .875rem; }
.map-placeholder .button { background: var(--surface); }
.map-placeholder .button:hover { background: var(--ink); }
.contact-location iframe { width: 100%; height: 340px; border: 0; border-radius: 24px; }
.contact-address {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  font-size: .9375rem;
}
.contact-address p { margin: 0 0 .375rem; }
.contact-address p:first-child { margin-bottom: .75rem; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; }
.contact-address p:first-child strong { font-weight: 500; }
.contact-address p:nth-child(2) { color: var(--muted); }
.contact-address p:last-child { margin: .75rem 0 0; font-weight: 600; }

/* ---------- Blog & article ---------- */
.blog-archive .home-post-grid { margin-top: 0; }
.pagination { display: flex; justify-content: center; gap: .75rem; margin-top: 3rem; }

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.post-content { max-width: 70ch; font-size: 1.09375rem; line-height: 1.75; }
.post-content > .article-meta { margin-bottom: 2rem; }
.post-content > img:first-of-type, .post-content > p:first-of-type > img:only-child { margin-bottom: 2.25rem; box-shadow: var(--shadow-sm); }
.post-content h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.post-resources, .article-inline-cta {
  margin-top: 2.5rem;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-card);
  font-size: 1rem;
  line-height: 1.65;
}
.post-resources { background: rgba(223, 233, 203, .6); }
.post-content .post-resources h2 { margin: 0 0 .5rem; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 650; letter-spacing: 0; }
.post-resources p:last-child, .article-inline-cta p { margin: 0; }
.article-inline-cta { border: 1px solid var(--line-soft); background: var(--surface); }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.sidebar-section {
  padding: 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.sidebar-section h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.sidebar-section .section-kicker { margin-bottom: .5rem; }
.sidebar-posts, .sidebar-links { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.sidebar-posts li { display: grid; gap: .125rem; padding: .875rem 0; border-top: 1px solid var(--line-soft); }
.sidebar-posts a { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.sidebar-posts a:hover { color: var(--tomato-ink); }
.sidebar-posts time { color: var(--muted); font-size: .8125rem; }
.sidebar-links { display: grid; gap: .5rem; }
.sidebar-links a { font-weight: 500; }
.sidebar-useful { background: var(--leaf-light); border-color: transparent; }
.sidebar-useful .button { width: 100%; }

/* Search & 404 */
.search-results { display: grid; gap: 1rem; max-width: 820px; }
.search-results > p { color: var(--muted); }
.search-result { padding: 1.5rem 1.75rem; border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: var(--surface); }
.search-result h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 0; color: var(--muted); font-size: .9375rem; }
.not-found-body { padding: 1rem 0 2rem; }
.not-found-body h2 { margin-top: 0; }

/* ---------- Legal documents ---------- */
.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.document-main { max-width: 76ch; font-size: 1rem; }
.document-main h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-copy p, .legal-copy li { overflow-wrap: break-word; }
.legal-copy td:first-child:not(:only-child) { width: 34%; }
.legal-copy tr > td:only-child { border-left: 1px solid var(--line-soft); }
.document-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.legal-page-menu, .document-toc {
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.legal-page-menu h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.legal-page-menu .section-kicker { margin-bottom: .5rem; }
.legal-page-menu ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.legal-page-menu a { display: block; padding: .5rem .75rem; border-radius: var(--radius-input); color: var(--text); font-size: .9375rem; text-decoration: none; }
.legal-page-menu a:hover { background: var(--paper); color: var(--ink); }
.legal-page-menu a.is-current { background: var(--leaf-light); color: var(--ink-deep); font-weight: 600; }
.document-toc summary { display: block; cursor: pointer; list-style: none; }
.document-toc summary::-webkit-details-marker { display: none; }
.document-toc summary .section-kicker { margin-bottom: .5rem; }
.document-toc summary strong { display: block; margin-bottom: .75rem; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.document-toc ol { display: grid; gap: .125rem; max-height: 52vh; margin: 0; padding: 0 .25rem 0 0; overflow-y: auto; list-style: none; counter-reset: toc; }
.document-toc li { counter-increment: toc; }
.document-toc a { display: block; padding: .375rem 0; color: var(--muted); font-size: .875rem; line-height: 1.4; text-decoration: none; }
.document-toc a:hover { color: var(--ink); }

.legal-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.legal-brief-main h2 { margin-top: 0; }
.legal-channel-panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 20px;
  background: var(--leaf-light);
  font-size: .9688rem;
}
.legal-channel-panel p:last-child { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand { width: 172px; }
  .main-nav a { padding: .5rem .625rem; font-size: .9063rem; }
  .main-nav .nav-cta { margin-left: .375rem; }
  .utility-nav { gap: 1rem; }
  .contact-strip a[href^="mailto"], .contact-strip span:nth-of-type(2) { display: none; }
}

@media (max-width: 960px) {
  :root { --topbar-h: 0px; --header-h: 68px; }
  .topbar { display: none; }
  .site-header { top: 0; }
  .masthead { position: relative; gap: 1rem; }
  .brand { width: 168px; }
  .menu-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    padding: .75rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(31, 56, 43, .35);
  }
  .nav-panel.is-open { display: block; }
  .main-nav { flex-direction: column; align-items: stretch; gap: .125rem; }
  .main-nav a { padding: .875rem 1rem; border-radius: var(--radius-input); font-size: 1.0625rem; }
  .main-nav .nav-cta { margin: .75rem 0 0; padding: .875rem 1rem; border-radius: var(--radius-pill); text-align: center; }
  .mobile-utility-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
  }
  .mobile-utility-nav a { padding: .5rem 1rem; color: var(--muted); font-size: .9375rem; text-decoration: none; }

  .home-hero::after { inset: auto 0 0 0; width: 100%; height: 38%; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 56px; padding-bottom: 88px; }
  .home-hero-portrait { justify-self: start; width: min(100%, 300px); margin-left: 24px; }
  .hero-contact-card { left: auto; right: -40px; }

  .home-pricing { grid-template-columns: 1fr; }
  .quick-info { grid-template-columns: 1fr; }
  .quick-card + .quick-card { border-left: 0; border-top: 1px solid var(--line-soft); }
  .home-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nutrition-layout, .consultation-overview, .hours-panel, .service-intro, .contact-layout,
  .article-reading-layout, .document-layout, .legal-brief-grid, .experience-copy { grid-template-columns: 1fr; }
  .nutrition-figure { position: static; max-width: 440px; }
  .contact-location, .article-sidebar, .document-sidebar { position: static; }
  .document-sidebar { order: -1; }
  .document-toc ol { max-height: none; }
  .document-toc summary { position: relative; }
  .document-toc summary strong { margin-bottom: 0; }
  .document-toc[open] summary strong { margin-bottom: .75rem; }
  .document-toc summary::after {
    content: "";
    position: absolute;
    right: .25rem; top: 50%;
    width: 9px; height: 9px;
    border: solid var(--tomato-ink);
    border-width: 0 1.75px 1.75px 0;
    transform: translateY(-75%) rotate(45deg);
    transition: transform .25s var(--ease);
  }
  .document-toc[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
  .experience-detail { padding-left: 0; padding-top: 1.5rem; border-left: 0; border-top: 2px solid var(--leaf-light); }
  .method-item { grid-template-columns: 1fr; }
  .credential-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .home-hero-copy h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .hero-actions .button { flex: 1 1 100%; }
  .home-hero-portrait { width: min(100% - 48px, 280px); }
  .hero-contact-card { position: relative; right: auto; left: auto; bottom: auto; width: auto; margin: -40px -24px 0 24px; }
  .home-post-grid, .appcc-price-grid, .additional-list { grid-template-columns: 1fr; }
  .home-visit .hero-actions { width: 100%; }
  .home-visit .hero-actions .button { flex: 1 1 auto; }
  .nutrition-principles { grid-template-columns: 1fr; }
  .nutrition-principle, .nutrition-principle + .nutrition-principle { display: grid; grid-template-columns: 24px 1fr; column-gap: 1rem; padding: 1.25rem 0; border-left: 0; }
  .nutrition-principle + .nutrition-principle { border-top: 1px solid var(--line); }
  .nutrition-principle svg { grid-row: span 2; margin: 0; }
  .nutrition-cta .button { flex: 1 1 auto; }
  .consultation-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .arturo-intro { grid-template-columns: 1fr; }
  .arturo-portrait { width: min(100% - 24px, 300px); }
  .nutrition-price-panel { flex-direction: column; align-items: flex-start; }
  .price-list > div { flex-direction: column; gap: .125rem; }
  .price-list dd { text-align: left; }
  .contact-form-panel button[type="submit"] { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column-reverse; align-items: flex-start; padding-right: 0; padding-bottom: 5.5rem; }
  .whatsapp-float { padding-right: .5rem; }
  .whatsapp-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .accordion-title { padding-left: 1.25rem; padding-right: 3.25rem; }
  .accordion-title::before, .accordion-title::after { right: 1.25rem; }
  .accordion-inner { padding-inline: 1.25rem; }
  :where(.prose) table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

@media print {
  .site-header, .site-footer, .whatsapp-float, .article-sidebar, .document-sidebar { display: none !important; }
  body { background: #fff; }
}
