/* ==========================================================================
   Nutricionarte — estilos (mobile first)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@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;
}

:root {
  --cream: #fbf7f3;
  --sand: #f4ece6;
  --blush: #ebdfd9;
  --taupe: #d2c3bf;
  --terra: #9a501e;
  --terra-dark: #7a3d15;
  --terra-soft: #f3e3d8;
  --ink: #2b211d;
  --muted: #65554d;
  --sage: #5f7356;
  --sage-soft: #e5eadf;
  --line: #e6dad3;
  --white: #fff;

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

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(43 33 29 / 0.05), 0 8px 24px -8px rgb(43 33 29 / 0.12);
  --shadow-lg: 0 24px 48px -20px rgb(122 61 21 / 0.28);
  --gutter: 1.25rem;
  --section: 4rem;
  --header-h: 64px;
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; --section: 6rem; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 72px; /* espacio para la barra de contacto móvil */
}
@media (min-width: 48em) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--terra); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 650; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 72;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3.4vw, 1.45rem); line-height: 1.25; }
h1 em, h2 em, .brand__name em { font-style: italic; color: var(--terra); font-weight: 400; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terra); color: var(--white); box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--terra-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--taupe); }
.btn--ghost:hover { border-color: var(--terra); color: var(--terra); }
.btn--light { background: var(--white); color: var(--terra-dark); }
.btn--light:hover { background: var(--cream); color: var(--terra-dark); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.5); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 30em) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 243 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(43 33 29 / 0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; }
.brand--light { color: var(--white); }
.brand--light .brand__name em { color: var(--taupe); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s, background-color 0.25s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
  box-shadow: 0 20px 30px -20px rgb(43 33 29 / 0.3);
  display: none;
}
.site-nav.is-open { display: block; animation: drop 0.22s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li a {
  display: block; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 500;
}
.site-nav a[aria-current="page"] { color: var(--terra); }
.site-nav .btn { width: 100%; }

@media (min-width: 56em) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 1.5rem;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; margin: 0; }
  .site-nav li a {
    position: relative; border: 0; padding: 0.5rem 0.85rem; font-size: 0.98rem; border-radius: 999px;
  }
  .site-nav li a:hover { background: var(--sand); color: var(--ink); }
  .site-nav li a[aria-current="page"] { background: var(--blush); color: var(--terra-dark); }
  .site-nav .btn { width: auto; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; line-height: 1.4;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 1.5px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; flex: none; width: 22px; height: 1.5px; background: currentColor; }

.lead { font-size: clamp(1.1rem, 2.6vw, 1.25rem); color: var(--muted); }

/* ---------- Hero portada ---------- */
.hero { position: relative; padding-block: 2rem 4rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 0.5em; }
.hero__lead { font-size: clamp(1.1rem, 2.8vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 1.75rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none;
  font-size: 0.95rem; color: var(--muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__meta .icon { color: var(--sage); }

.hero__media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.hero__media::before {
  content: ""; position: absolute; inset: 8% -10% -6% 12%;
  background: var(--blush); border-radius: 999px 999px var(--radius-lg) var(--radius-lg); z-index: -1;
}
.arch {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__badge {
  position: absolute; left: -0.5rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border-radius: var(--radius); padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow); max-width: 260px;
}
.hero__badge .icon { width: 2rem; height: 2rem; color: var(--terra); }
.hero__badge strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.hero__badge span { font-size: 0.85rem; color: var(--muted); }

@media (min-width: 56em) {
  .hero { padding-block: 4rem 6rem; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .hero__badge { left: -2.5rem; }
}

/* ---------- Franja de credenciales ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; list-style: none; margin: 0; padding: 1.75rem 0;
}
.trust__list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.4; color: var(--muted); }
.trust__list strong { display: block; color: var(--ink); font-size: 0.98rem; }
.trust__list .icon { color: var(--terra); width: 1.5rem; height: 1.5rem; margin-top: 2px; }
@media (min-width: 56em) { .trust__list { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ---------- Síntomas ---------- */
.symptoms { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.symptoms li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
}
.symptoms .icon { color: var(--sage); margin-top: 3px; }
@media (min-width: 40em) { .symptoms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .symptoms { grid-template-columns: repeat(3, 1fr); } }
.callout {
  border-left: 3px solid var(--terra); padding: 0.25rem 0 0.25rem 1.25rem; margin: 0;
  font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.4; color: var(--ink);
}

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; gap: 1rem; }
@media (min-width: 40em) { .cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 64em) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--taupe); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--terra-soft); color: var(--terra); margin-bottom: 1.25rem;
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--muted); flex: 1; }
.card .link-arrow { position: relative; margin-top: 0.5rem; }
.card--feature { background: var(--terra); border-color: var(--terra); color: var(--white); }
.card--feature h3, .card--feature p { color: var(--white); }
.card--feature p { opacity: 0.88; }
.card--feature .link-arrow { color: var(--white); }

/* ---------- Split imagen + texto ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.split__media--food img { aspect-ratio: 4 / 5; max-height: 560px; }
.split__media--portrait { max-width: 420px; width: 100%; margin-inline: auto; }
.split__media--portrait img { aspect-ratio: 1 / 1; }
.split__note {
  position: absolute; right: 1rem; bottom: -1.25rem; left: 1rem;
  background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow);
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.35; text-align: center;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split--reverse .split__media { order: 2; }
  .split__note { left: auto; right: -1.5rem; max-width: 280px; text-align: left; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist .icon {
  width: 1.5rem; height: 1.5rem; padding: 4px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage); stroke-width: 2.4; margin-top: 1px;
}
.checklist--cols { gap: 0.7rem 2rem; }
@media (min-width: 40em) { .checklist--cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.35rem;
  font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; color: var(--terra);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 4.5rem 1.5rem 1.75rem; }
  .steps li::before { left: 1.5rem; top: 1.5rem; font-size: 2.4rem; }
}
@media (min-width: 56em) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cita / filosofía ---------- */
.quote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.35; font-weight: 400;
  margin: 0 0 1.5rem; color: var(--ink);
}
.quote em { color: var(--terra); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.25rem; font-weight: 600; font-size: 1.05rem; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a501e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq__item > div p:last-child { margin-bottom: 0; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--terra); color: var(--white); border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem; text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgb(255 255 255 / 0.07);
}
.cta-band::before { width: 320px; height: 320px; top: -160px; right: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -120px; left: -60px; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.9; max-width: 34em; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }
@media (min-width: 48em) { .cta-band { padding: 4rem 3rem; } }

/* ---------- Páginas interiores ---------- */
.page-hero { overflow: hidden; padding-block: 1.5rem 3rem; background: linear-gradient(var(--sand), var(--cream)); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); max-width: 22ch; }
.page-hero .lead { max-width: 40em; }
@media (min-width: 48em) { .page-hero { padding-block: 2.5rem 4.5rem; } }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding: 0; margin: 0 0 1.75rem;
  font-size: 0.88rem; color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--taupe); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terra); text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }

.layout-aside { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .layout-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; } }
.aside-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem;
}
@media (min-width: 64em) { .aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card h2 { font-size: 1.4rem; }
.aside-card p { color: var(--muted); font-size: 0.98rem; }
.aside-card .btn { width: 100%; margin-bottom: 0.6rem; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.aside-card .aside-card__label {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card ul a { display: flex; justify-content: space-between; padding: 0.45rem 0; text-decoration: none; }

.note {
  display: flex; gap: 0.9rem; background: var(--sage-soft); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; color: var(--ink); font-size: 0.98rem; margin: 2rem 0;
}
.note .icon { color: var(--sage); width: 1.5rem; height: 1.5rem; margin-top: 2px; }
.note p { margin: 0; }

/* Formación / timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--blush); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 4px var(--cream);
}
.timeline strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.timeline span { color: var(--muted); }

.values { display: grid; gap: 1rem; }
@media (min-width: 40em) { .values { grid-template-columns: 1fr 1fr; } }
.value { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--line); }
.value .icon { color: var(--terra); width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; }
.value h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.value p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.modes { display: grid; gap: 1rem; }
@media (min-width: 40em) { .modes { grid-template-columns: 1fr 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-list a:hover { border-color: var(--terra); transform: translateY(-1px); color: var(--ink); }
.contact-list .icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--terra-soft); color: var(--terra);
}
.contact-list small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact-list strong { font-weight: 600; word-break: break-word; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
@media (min-width: 48em) { .form { padding: 2.25rem; } }
.form h2 { font-size: 1.6rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 0.95rem;
  min-height: 50px; transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: var(--white); }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--terra); flex: none; }
.field--check label { font-weight: 400; }
.form__actions { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
@media (min-width: 30em) { .form__actions { grid-template-columns: 1fr 1fr; } }
.form__hint { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.form__error { color: #a3261b; font-size: 0.92rem; font-weight: 600; margin: 0 0 1rem; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 1.5rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--sand); }
.table-wrap { overflow-x: auto; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.75); padding-top: 3.5rem; font-size: 0.97rem; }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__slogan { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--taupe); margin: 1rem 0; }
.site-footer__title { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer__list a, .site-footer__list li { display: inline-flex; align-items: center; gap: 0.55rem; word-break: break-word; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.88rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48em) { .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Barra de contacto móvil ---------- */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(251 247 243 / 0.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--taupe);
}
.mobile-cta__btn--wa { background: var(--terra); border-color: var(--terra); color: var(--white); }
.mobile-cta__btn--wa:hover { color: var(--white); }
@media (min-width: 48em) { .mobile-cta { display: none; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 5rem; }
.not-found .btn-row { justify-content: center; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
