/* =========================================================
   IntegraFood — One Page
   Mobile-first · paleta y tipografías del manual de marca
   ========================================================= */

/* ---------- Fuentes (self-hosted, subset latino) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Logo"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/montserrat-logo-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Logo"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/montserrat-logo-italic.woff2") format("woff2"); }
/* Fallbacks con métricas ajustadas para evitar saltos de layout (CLS) */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); ascent-override: 92.33%; descent-override: 30.78%; line-gap-override: 8.79%; size-adjust: 113.73%; }
@font-face { font-family: "Lato Fallback"; src: local("Arial"); ascent-override: 100.88%; descent-override: 21.76%; line-gap-override: 0%; size-adjust: 97.89%; }

/* ---------- Tokens ---------- */
:root {
  --teal: #004B57;
  --teal-deep: #00343D;
  --ink: #0D2327;
  --ink-deep: #081A1D;
  --ochre: #C58F39;
  --ochre-hover: #D29D48;
  --ochre-soft: #E3B872;   /* ocre para texto sobre fondos oscuros (AA) */
  --ochre-deep: #7F5617;   /* ocre para texto sobre fondos claros (AA) */
  --cream: #EBE4D8;
  --offwhite: #F2F1EB;
  --paper: #FAF8F3;
  --taupe: #7D7770;
  --taupe-deep: #5A554F;
  --text: #1B2A2D;
  --muted: #4F5B5D;
  --line: rgba(0, 75, 87, .14);
  --error: #A3342B;
  --focus: var(--teal);

  --font-head: "Poppins", "Poppins Fallback", system-ui, sans-serif;
  --font-body: "Lato", "Lato Fallback", system-ui, sans-serif;
  --font-logo: "Montserrat Logo", "Poppins", "Poppins Fallback", sans-serif;

  --header-h: 64px;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --maxw: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(13, 35, 39, .06), 0 12px 32px -12px rgba(13, 35, 39, .22);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M-4.5 4.5l9-9M0 18L18 0M13.5 22.5l9-9' stroke='%23EBE4D8' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E");
}
@media (min-width: 960px) { :root { --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--offwhite);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
strong { font-weight: 700; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ochre); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--offwhite);
  padding: .9rem 1.2rem; font-family: var(--font-head); font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn__icon { flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn__wa { flex: none; }
.btn--primary { background: var(--ochre); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(197, 143, 57, .8); }
.btn--primary:hover { background: var(--ochre-hover); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost-light { border-color: rgba(242, 241, 235, .45); color: var(--offwhite); }
.btn--ghost-light:hover { border-color: var(--offwhite); background: rgba(242, 241, 235, .08); }
.btn--lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Eyebrows y encabezados de sección ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ochre); flex: none; }
.eyebrow__num { color: var(--ochre-deep); letter-spacing: .08em; }
.eyebrow--on-dark { color: var(--ochre-soft); }
.eyebrow--on-dark .eyebrow__num { color: var(--offwhite); }

.section { position: relative; padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.section-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title {
  font-weight: 700; font-size: clamp(1.8rem, 1.05rem + 2.9vw, 3.05rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--teal); max-width: 22ch; text-wrap: balance;
}
.section-lead { margin-top: 1.25rem; font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 44rem; }

.section--cream { background: var(--cream); }
.section--paper { background: var(--offwhite); }
.section--teal { background: var(--teal-deep) var(--pattern); color: var(--cream); --focus: var(--ochre-soft); }
.section--ink { background: var(--ink); color: var(--cream); --focus: var(--ochre-soft); }
.section--teal .section-title, .section--ink .section-title { color: var(--offwhite); }
.section--teal .section-lead, .section--ink .section-lead { color: rgba(235, 228, 216, .82); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 241, 235, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(13, 35, 39, .45); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; text-decoration: none; color: var(--teal); }
.brand__word { font-family: var(--font-logo); font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; }
.brand__word b { font-weight: 700; }
.brand__word i { font-style: italic; font-weight: 400; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__link { text-decoration: none; font-family: var(--font-head); font-weight: 600; }

.nav-toggle { display: none; }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--ochre); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Sin JS: el menú queda visible como fila desplazable */
html:not(.js) .site-header__bar { flex-wrap: wrap; padding-bottom: .25rem; }
html:not(.js) .site-nav { width: 100%; }
html:not(.js) .site-nav__list { display: flex; gap: .25rem 1.25rem; overflow-x: auto; }
html:not(.js) .site-nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); white-space: nowrap; }
html:not(.js) .site-nav__cta { display: none; }

/* Con JS, móvil: menú desplegable */
@media (max-width: 959.98px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 48px; min-width: 48px; padding: 0 .9rem; margin-right: -.5rem;
    background: transparent; border: 0; color: var(--teal); cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  }
  .nav-toggle__bars { position: relative; width: 22px; height: 12px; }
  .nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav-toggle__bars span:first-child { top: 0; }
  .nav-toggle__bars span:last-child { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--teal-deep) var(--pattern);
    --focus: var(--ochre-soft);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav__link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; font-size: 1.35rem; color: var(--offwhite);
    border-bottom: 1px solid rgba(235, 228, 216, .14);
  }
  .js .site-nav__link[aria-current="true"] { color: var(--ochre-soft); }
  .js .site-nav__cta { width: 100%; min-height: 56px; margin-top: 2rem; font-size: 1rem; }
  .js body.menu-open { overflow: hidden; }
}

/* Escritorio */
@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav__list { display: flex; gap: 1.5rem; }
  .site-nav__link {
    position: relative; display: inline-flex; align-items: center; min-height: 48px;
    font-size: .92rem; color: var(--teal);
  }
  .site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px;
    background: var(--ochre); transform: scaleX(0); transform-origin: 100% 50%;
    transition: transform .35s var(--ease);
  }
  .site-nav__link:hover::after, .site-nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
  .site-nav__cta { min-height: 44px; padding: .6rem 1.15rem; font-size: .88rem; }
  html:not(.js) .site-header__bar { flex-wrap: nowrap; }
  html:not(.js) .site-nav { width: auto; }
  html:not(.js) .site-nav__cta { display: inline-flex; }
}
@media (min-width: 1180px) {
  .site-nav { gap: 2.25rem; }
  .site-nav__list { gap: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 20%, rgba(197, 143, 57, .16), transparent 60%),
    var(--pattern),
    var(--teal);
  color: var(--cream);
  --focus: var(--ochre-soft);
  padding-block: clamp(2.75rem, 8vw, 4.5rem) clamp(3.5rem, 9vw, 5rem);
}
.hero__grid { display: grid; gap: clamp(2.75rem, 6vw, 4.5rem); align-items: center; }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }
.hero__copy > :nth-child(5) { animation-delay: .24s; }
.hero__title {
  font-weight: 700; font-size: clamp(2.05rem, 1.15rem + 3.7vw, 3.65rem); line-height: 1.08;
  letter-spacing: -.025em; color: var(--offwhite); max-width: 19ch; text-wrap: balance;
}
.hero__title .hl { color: var(--ochre-soft); }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: rgba(235, 228, 216, .88); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.hero__pillars {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.1rem; padding: 0; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(235, 228, 216, .78);
}
.hero__pillars li { display: inline-flex; align-items: center; gap: .55rem; }
.hero__pillars li::before { content: ""; width: 7px; height: 7px; background: var(--ochre); }
@media (max-width: 479.98px) { .hero__actions .btn { width: 100%; } .btn--lg { padding-inline: 1.1rem; font-size: .95rem; } }

.hero__media { position: relative; margin-inline: .25rem; }
.hero__media::before {
  content: ""; position: absolute; top: -14px; right: -14px; width: 58%; height: 62%;
  border: 1.5px solid var(--ochre); pointer-events: none;
}
.hero__media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 72px; height: 72px;
  background: var(--taupe); clip-path: polygon(0 100%, 100% 0, 100% 100%); opacity: .9;
}
.hero__frame { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__frame picture, .hero__frame img { width: 100%; height: 100%; }
.hero__frame img { object-fit: cover; object-position: 58% 60%; animation: settle 1.6s var(--ease) both; }
.hero__badge {
  position: absolute; z-index: 2; left: 1rem; bottom: -1.1rem;
  padding: .75rem 1.1rem; background: var(--offwhite); color: var(--teal);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  border-left: 4px solid var(--ochre); box-shadow: var(--shadow);
}
.hero__badge span { color: var(--ochre-deep); }

@media (min-width: 960px) {
  .hero { display: flex; align-items: center; min-height: min(calc(100svh - var(--header-h)), 900px); }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .hero__frame { aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; }
  .hero__media::before { top: -20px; right: -20px; }
  .hero__badge { left: -1.5rem; bottom: 2.25rem; font-size: 1.05rem; padding: 1rem 1.35rem; }
}

@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Media frames ---------- */
.media-frame { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; }
.media-frame picture, .media-frame img { width: 100%; height: 100%; }
.media-frame img { object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.03); }
.media-frame--wide { aspect-ratio: 16 / 10; }

/* ---------- Qué hacemos ---------- */
.split { display: grid; gap: 1.5rem; }
.pain { background: var(--teal); color: var(--cream); padding: clamp(1.75rem, 5vw, 2.75rem); --focus: var(--ochre-soft); }
.pain__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); color: var(--offwhite); margin-bottom: 1.35rem; }
.pain__list { list-style: none; padding: 0; display: grid; gap: .85rem; }
.pain__list li { position: relative; padding-left: 1.6rem; font-size: 1.05rem; line-height: 1.5; }
.pain__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--ochre); }
.pain__close { margin-top: 1.6rem; padding-top: 1.35rem; border-top: 1px solid rgba(235, 228, 216, .2); color: var(--ochre-soft); font-style: italic; }

.subhead {
  display: flex; align-items: center; gap: 1rem;
  margin: clamp(3.5rem, 8vw, 5rem) 0 1.75rem;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); color: var(--teal);
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.services { display: grid; gap: 1rem; }
.service {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1.5rem, 4vw, 2rem); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service::before { content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 3px; background: var(--ochre); transition: width .45s var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0, 75, 87, .24); }
.service:hover::before { width: calc(100% + 2px); }
.service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.service__num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ochre-deep); letter-spacing: .04em; }
.service__icon { color: var(--teal); }
.service__title { font-size: 1.25rem; color: var(--teal); }
.service p { color: var(--muted); }
.service__out { margin-top: auto; padding-top: .9rem; border-top: 1px dashed rgba(0, 75, 87, .22); font-size: .95rem; }
.service__out strong { color: var(--teal); }
.service--cta { background: var(--teal); color: var(--cream); border-color: var(--teal); justify-content: center; --focus: var(--ochre-soft); }
.service--cta:hover { transform: none; box-shadow: none; }
.service--cta::before { display: none; }
.service.service--cta .service--cta__kicker { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.25; color: var(--offwhite); }
.service.service--cta .service--cta__text { color: rgba(235, 228, 216, .85); margin-bottom: .5rem; }
.service--cta .btn { align-self: flex-start; }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 960px) {
  .split--pain { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: stretch; }
  .split--pain .media-frame { aspect-ratio: auto; min-height: 420px; }
}
@media (min-width: 1080px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Método ---------- */
.steps { position: relative; --gap: 2.25rem; }
.steps__track { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(235, 228, 216, .16); }
.steps__fill { position: absolute; inset: 0; background: var(--ochre); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.steps__list { position: relative; display: grid; gap: var(--gap); }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; }
.step__marker {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--teal-deep); border: 1.5px solid var(--ochre); color: var(--ochre-soft);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.step.is-in .step__marker { background: var(--ochre); color: var(--ink); transition-delay: .25s; }
.step__kicker { font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-soft); margin-top: .7rem; }
.step__title { margin-top: .45rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.65rem); color: var(--offwhite); text-wrap: balance; }
.step__focus { margin-top: .55rem; font-style: italic; color: var(--ochre-soft); }
.step__body > p:not([class]) { margin-top: .9rem; color: rgba(235, 228, 216, .82); }
.step__list { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .55rem; }
.step__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; color: var(--cream); }
.step__list svg { flex: none; margin-top: .22em; color: var(--ochre-soft); }

@media (min-width: 960px) {
  .steps { --gap: 2.5rem; }
  .steps__track { left: 24px; right: auto; top: 23px; bottom: auto; width: calc((200% + 2 * var(--gap)) / 3); height: 2px; }
  .steps__fill { transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; gap: 1rem; }
}

.split--quote { margin-top: clamp(4rem, 9vw, 6rem); gap: 2rem; align-items: center; }
.quote { position: relative; padding-top: 2.5rem; }
.quote::before {
  content: "“"; position: absolute; top: -1.1rem; left: -.2rem;
  font-family: var(--font-head); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--ochre);
}
.quote blockquote p {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.45rem, 1rem + 1.9vw, 2.2rem);
  line-height: 1.3; letter-spacing: -.01em; color: var(--offwhite); text-wrap: balance;
}
.quote figcaption {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-soft);
}
.quote figcaption::before { content: ""; width: 28px; height: 2px; background: var(--ochre); }
.media-frame--dark { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (min-width: 960px) {
  .split--quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
}

/* ---------- Para qué ---------- */
.outcomes { display: grid; gap: 1.25rem; }
.outcome {
  display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.6rem, 4vw, 2.25rem); background: #fff;
  border-top: 3px solid var(--teal); box-shadow: 0 1px 2px rgba(13, 35, 39, .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.outcome:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--ochre); }
.outcome__icon { color: var(--teal); }
.outcome__title { font-size: 1.3rem; color: var(--teal); text-wrap: balance; }
.outcome > p { color: var(--muted); }
.shift { margin-top: auto; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.shift div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.shift dt { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-deep); }
.shift dd { font-size: .98rem; color: var(--muted); }
.shift div:last-child dt { color: var(--ochre-deep); }
.shift div:last-child dd { color: var(--teal); font-weight: 700; }
@media (min-width: 960px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.manifesto { display: grid; gap: 2rem; margin-top: clamp(4rem, 9vw, 6.5rem); align-items: center; }
.manifesto__line {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.02em; color: var(--teal); text-wrap: balance; margin-bottom: 1.25rem;
}
.manifesto__line em { font-style: normal; color: var(--ochre-deep); }
.manifesto__copy > p:not([class]) { color: var(--muted); max-width: 34rem; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.values li {
  padding: .45rem .85rem; border: 1px solid rgba(0, 75, 87, .28); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--teal); background: rgba(255, 255, 255, .55);
}
@media (min-width: 960px) { .manifesto { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 5rem); } }

/* ---------- Quién lo hace ---------- */
.team { display: grid; gap: 1.5rem; }
.profile {
  display: grid; gap: 1.5rem; align-content: start;
  padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
}
.profile__head { display: flex; align-items: center; gap: 1rem; }
.profile__mono {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px;
  background: var(--teal); color: var(--offwhite);
  font-family: var(--font-logo); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em;
  box-shadow: 6px 6px 0 var(--ochre);
}
.profile__name { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); color: var(--teal); }
.profile__role { margin-top: .3rem; font-family: var(--font-head); font-weight: 600; font-size: .76rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre-deep); }
.profile__bio { color: var(--muted); }
.career { border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.career__years { padding-top: .1rem; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--taupe-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.career__what { font-size: .95rem; line-height: 1.45; color: var(--muted); }
.career__what strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--teal); }
.creds { display: grid; gap: 1.25rem; }
.creds dt { margin-bottom: .45rem; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-deep); }
.creds dd { position: relative; padding-left: 1rem; font-size: .95rem; line-height: 1.45; color: var(--text); }
.creds dd + dd { margin-top: .35rem; }
.creds dd::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; background: var(--ochre); }

.results {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--teal) var(--pattern); color: var(--cream);
  --focus: var(--ochre-soft);
}
.results__title { max-width: 30ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.35; color: var(--offwhite); text-wrap: balance; }
.results__list { display: grid; gap: 1.5rem 2rem; margin-top: 1.75rem; }
.result { display: flex; flex-direction: column; gap: .45rem; padding-top: 1.1rem; border-top: 1px solid rgba(235, 228, 216, .22); }
.result__fig {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  line-height: 1.15; letter-spacing: -.02em; color: var(--ochre-soft); font-variant-numeric: tabular-nums;
}
.result__fig span[aria-hidden] { font-weight: 600; color: rgba(235, 228, 216, .55); }
.result__txt { font-size: .98rem; line-height: 1.5; color: rgba(235, 228, 216, .88); }
.result__date { margin-top: auto; padding-top: .2rem; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(235, 228, 216, .62); }
@media (min-width: 640px) { .results__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .team { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: stretch; } }

.clients { margin-top: clamp(3.5rem, 8vw, 5rem); }
.clients .subhead { margin-top: 0; }
.clients__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
.client { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.client img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 26px -16px rgba(13, 35, 39, .5);
}
.client span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--teal); }
@media (min-width: 768px) {
  .clients__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .client img { width: 96px; height: 96px; }
}

/* ---------- Contacto ---------- */
.section--ink { background: radial-gradient(70% 50% at 0% 0%, rgba(0, 75, 87, .55), transparent 70%), var(--ink); }
.contact { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.contact__subhead { margin-top: 2.5rem; margin-bottom: 1.1rem; font-size: 1.1rem; color: var(--offwhite); }
.next { display: grid; gap: 1rem; }
.next li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .9rem; align-items: start; }
.next__n {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1.5px solid var(--ochre); color: var(--ochre-soft);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.next p { color: rgba(235, 228, 216, .82); padding-top: .35rem; }
.next strong { color: var(--offwhite); }
.channels { display: grid; gap: .35rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(235, 228, 216, .14); }
.channel { display: flex; align-items: center; gap: .9rem; min-height: 52px; text-decoration: none; color: var(--offwhite); font-size: 1.02rem; line-height: 1.3; }
.channel__icon { flex: none; color: var(--ochre-soft); }
.channel__label { display: block; margin-bottom: .15rem; font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(235, 228, 216, .62); }
a.channel { transition: color .2s var(--ease); }
a.channel:hover { color: var(--ochre-soft); }

.contact__card {
  position: relative; background: var(--offwhite); color: var(--text);
  padding: clamp(1.5rem, 5vw, 2.75rem); border-top: 4px solid var(--ochre);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --focus: var(--teal);
}
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.25rem; }
.form__intro { font-size: .9rem; color: var(--muted); }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; }
.field__label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--teal); }
.field__input {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--taupe); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__input:hover { border-color: var(--teal); }
.field__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(197, 143, 57, .55); }
.field__input--area { min-height: 140px; resize: vertical; line-height: 1.5; }
.field__hint { font-size: .85rem; color: var(--muted); }
.field__error { display: flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--error); }
.field__error[hidden] { display: none; }
.field.is-invalid .field__input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163, 52, 43, .12); }
.field.is-valid .field__input { border-color: #2F6B4F; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status:empty { display: none; }
.form__status { padding: .9rem 1rem; border-radius: var(--radius); font-size: .95rem; background: rgba(163, 52, 43, .08); color: var(--error); border-left: 3px solid var(--error); }
.form__status.is-info { background: rgba(0, 75, 87, .08); color: var(--teal); border-left-color: var(--teal); }
.form__legal { font-size: .85rem; color: var(--muted); }
.privacy { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.privacy summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--teal); list-style: none;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ochre-deep); transition: transform .25s var(--ease); }
.privacy[open] summary::after { transform: rotate(45deg); }
.privacy p { padding-bottom: .5rem; }

.form-result { display: none; text-align: center; padding: 1.5rem .5rem; }
.form-result:target, .contact__card.is-sent .form-result--ok, .contact__card.is-error .form-result--error { display: block; }
.contact__card:has(#gracias:target) .form, .contact__card.is-sent .form { display: none; }
.form-result > svg { margin: 0 auto 1rem; width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--teal); color: var(--offwhite); }
.form-result h3 { font-size: 1.5rem; color: var(--teal); margin-bottom: .6rem; }
.form-result p { color: var(--muted); max-width: 26rem; margin-inline: auto; }
.form-result .btn { margin-top: 1.25rem; }
.form-result--error h3 { color: var(--error); }
.form-result:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(235, 228, 216, .78); padding-block: 3.5rem 2rem; font-size: .95rem; --focus: var(--ochre-soft); }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(235, 228, 216, .12); }
.brand--footer { color: var(--offwhite); }
.site-footer__slogan { margin: .75rem 0 .5rem; font-family: var(--font-head); font-weight: 600; color: var(--ochre-soft); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.site-footer__nav a:hover { color: var(--ochre-soft); }
.site-footer__heading { margin-bottom: .35rem; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(235, 228, 216, .6); }
.site-footer__contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--cream); overflow-wrap: anywhere; }
.site-footer__contact svg { flex: none; color: var(--ochre-soft); }
.site-footer__contact a:hover { color: var(--ochre-soft); }
.site-footer__base { display: grid; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; color: rgba(235, 228, 216, .66); }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: start; }
  .site-footer__nav ul { justify-items: end; }
  .site-footer__base { grid-template-columns: auto 1fr; gap: 2rem; }
  .site-footer__credits { text-align: right; }
}

/* ---------- CTA fija en móvil ---------- */
.cta-dock { display: none; }
@media (max-width: 959.98px) {
  .js .cta-dock {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px;
    background: var(--ochre); color: var(--ink); text-decoration: none; border-radius: var(--radius);
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    box-shadow: 0 16px 36px -12px rgba(13, 35, 39, .55);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    --focus: var(--teal);
  }
  .js .cta-dock.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
  .js body.menu-open .cta-dock { visibility: hidden; }
}

/* ---------- Reveal (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Defensivo: el texto partido nunca queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Movimiento reducido: solo se suaviza lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__frame img { animation: none; }
}

@media print {
  .site-header, .cta-dock, .scroll-progress, .hero__media::before, .hero__media::after { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
