/* ==========================================================================
   NucleoMed · Landing
   Paleta de marca: Black russian #000029 · Alucard night #000051 ·
   Palatinate blue #173DED · Grey placidity #DCDEE2 · Baby grey #BABABA
   Radios: botones y chips = pill · tarjetas = 20px · inputs = 12px
   ========================================================================== */

:root {
  --ink: #000029;
  --navy: #000051;
  --blue: #173DED;
  --blue-hover: #0F2FCC;
  --blue-soft: #E7ECFE;
  --mist: #DCDEE2;
  --mist-50: #EFF1F4;
  --grey: #BABABA;
  --white: #FDFDFE;

  --text: #1A1C3D;
  --text-muted: #555872;
  --line: #D3D6DD;
  --error: #C21F3A;
  --success: #0F7B53;

  --radius-card: 20px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgb(0 0 41 / .06), 0 12px 32px -12px rgb(0 0 41 / .18);
  --shadow-lift: 0 2px 4px rgb(0 0 41 / .06), 0 24px 48px -16px rgb(0 0 81 / .28);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1240px;

  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
strong { font-weight: 900; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Botones ---------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn i { font-size: 1.15em; transition: transform .3s var(--ease-out); }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); box-shadow: 0 10px 24px -12px rgb(23 61 237 / .7); }
.btn--primary:hover { --btn-bg: var(--blue-hover); --btn-bd: var(--blue-hover); }
.btn--ghost { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .55); --btn-bg: rgb(0 0 41 / .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--outline { --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--sm { padding: .65em 1.25em; font-size: .9375rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--navy); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; letter-spacing: -.01em; }
.logo__light { font-weight: 300; }
.logo__bold { font-weight: 900; }
.logo--inverse { color: #fff; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(253 253 254 / .96);
  border-radius: 0 0 36px 36px;
  transition: box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: rgb(253 253 254 / .88); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(0 0 41 / .35); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  position: relative; text-decoration: none; font-size: .875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -8px; padding: 12px 8px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 4px; border-radius: 4px; background: #585858; transition: transform .35s var(--ease-out), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { padding: 8px var(--gutter) 28px; }
.mobile-menu__nav { display: grid; gap: 4px; }
.mobile-menu__nav a:not(.btn) {
  padding: 14px 0; font-size: 1.375rem; font-weight: 300; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__nav .btn { margin-top: 20px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(600px, calc(100svh - 118px));
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(96px, 11vh, 132px);
  background: var(--ink);
  color: #fff;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 62% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(0 0 41 / .88) 0%, rgb(0 0 41 / .66) 30%, rgb(0 0 81 / .18) 58%, rgb(0 0 41 / 0) 75%),
    linear-gradient(0deg, rgb(0 0 41 / .55) 0%, rgb(0 0 41 / 0) 40%);
}
.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgb(255 255 255 / .85);
}
.hero__eyebrow::before { content: ""; width: 36px; height: 1.5px; background: currentColor; }
.hero__title {
  margin-top: 20px; max-width: 14ch;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem); font-weight: 300; line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__title strong { font-weight: 900; }
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: rgb(255 255 255 / .86); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  [data-anim] { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
  [data-anim]:nth-child(1) { animation-delay: .1s; }
  [data-anim]:nth-child(2) { animation-delay: .2s; }
  [data-anim]:nth-child(3) { animation-delay: .32s; }
  [data-anim]:nth-child(4) { animation-delay: .44s; }
  .hero__media img { animation: settle 2.4s var(--ease-out) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Banda "Próximamente" --------------------------------------------------- */
.band { position: relative; z-index: 2; background: var(--blue); color: #fff; }
.band__inner { position: relative; }
.band__tab {
  --r: 26px;
  position: absolute; bottom: 100%; left: calc(var(--gutter) - 32px);
  padding: 18px 32px 4px;
  background: var(--blue); border-radius: var(--r) var(--r) 0 0;
  font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.band__tab::after {
  content: ""; position: absolute; bottom: 0; left: 100%; width: var(--r); height: var(--r);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--blue) var(--r));
}
.band__list {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  padding-block: 26px 30px;
}
.band__list li {
  display: flex; align-items: center; gap: 14px;
  padding-right: clamp(24px, 4vw, 56px); margin-right: clamp(24px, 4vw, 56px);
  border-right: 1px solid rgb(255 255 255 / .35);
  font-size: clamp(1.125rem, 1.9vw, 1.625rem); font-weight: 300; letter-spacing: .02em;
}
.band__list li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.band__list i { font-size: 1.6em; opacity: .9; }

/* Tipografía de secciones ------------------------------------------------ */
.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.08;
  color: var(--navy); text-wrap: balance;
}
.section-title strong { font-weight: 900; }
.section-title--light { color: #fff; }
.section-lead { margin-top: 18px; max-width: 52ch; font-size: 1.125rem; color: var(--text-muted); }
.section-lead--light { color: rgb(255 255 255 / .78); }

/* Bosquejo del proyecto ------------------------------------------------- */
.sketch { padding-block: clamp(80px, 10vw, 136px) clamp(40px, 6vw, 80px); background: var(--white); overflow: hidden; }
.sketch__head { max-width: 720px; }
.sketch__figure { margin: clamp(24px, 4vw, 48px) 0 0; }
.sketch__figure img { width: 100%; height: auto; mix-blend-mode: multiply; }
.sketch__figure figcaption { margin-top: 8px; text-align: right; font-size: .8125rem; color: var(--text-muted); }
@media (min-width: 1100px) {
  .sketch__figure { margin-inline: -48px; }
}

/* Cuéntanos qué necesitas ----------------------------------------------- */
.needs { background: var(--mist-50); padding-block: clamp(80px, 10vw, 136px); }
.needs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.needs__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.needs__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.needs__options .option:nth-child(even) { transform: translateY(40px); }

.option {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 280px; padding: 30px 28px 26px;
  text-align: left; cursor: pointer;
  background: #fff; border: 1px solid transparent; border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.option__icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 18px; transition: color .35s; }
.option__title { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.15; transition: color .35s; }
.option__text { color: var(--text-muted); font-size: 1rem; line-height: 1.55; transition: color .35s; }
.option__cta {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  transition: color .35s;
}
.option__cta i { transition: transform .35s var(--ease-out); }
.option--accent { background: var(--blue); }
.option--accent .option__icon, .option--accent .option__title, .option--accent .option__cta { color: #fff; }
.option--accent .option__text { color: rgb(255 255 255 / .82); }

.option:hover { background: var(--navy); box-shadow: var(--shadow-lift); }
.option:hover .option__icon, .option:hover .option__title, .option:hover .option__cta { color: #fff; }
.option:hover .option__text { color: rgb(255 255 255 / .78); }
.option:hover .option__cta i { transform: translateX(4px); }
.option:active { scale: .99; }

/* Opción "Otro": tarjeta ancha y más liviana */
.option--wide {
  grid-column: 1 / -1; margin-top: 40px; min-height: 0;
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 26px 28px;
  background: transparent; border: 1.5px dashed var(--grey); box-shadow: none;
}
.option--wide .option__icon { margin-bottom: 0; }
.option__body { flex: 1 1 280px; display: grid; gap: 6px; }
.option--wide .option__title { font-size: 1.25rem; }
.option--wide .option__cta { margin-top: 0; padding-top: 0; }
.option--wide:hover { border-color: var(--navy); }

/* El proyecto ------------------------------------------------------------ */
.project { padding-block: clamp(96px, 12vw, 168px) clamp(80px, 10vw, 136px); }
.project__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.project__media { margin: 0; position: relative; }
.project__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-card); }
.project__media::before {
  content: ""; position: absolute; z-index: -1; inset: 32px -24px -24px 32px;
  border-radius: var(--radius-card); background: var(--mist);
}
.features { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.feature i { font-size: 2rem; color: var(--blue); }
.feature h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.feature p { margin-top: 6px; font-size: 1rem; color: var(--text-muted); }

/* Ubicación -------------------------------------------------------------- */
.location { background: var(--mist-50); padding-block: clamp(80px, 10vw, 136px); }
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.location__body .btn { margin-top: 32px; }
.location__map {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius-card); background: var(--mist); box-shadow: var(--shadow-lift);
}
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.04); }

/* Contacto / Formulario -------------------------------------------------- */
.contact {
  position: relative; overflow: hidden;
  padding-block: clamp(80px, 10vw, 136px);
  background: radial-gradient(120% 90% at 0% 0%, #0A0A6B 0%, var(--navy) 45%, var(--ink) 100%);
  color: #fff;
}
.contact::before {
  content: ""; position: absolute; right: -12%; bottom: -30%; width: 60vw; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgb(23 61 237 / .35), transparent 65%);
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }

.steps { margin-top: 44px; display: grid; gap: 26px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps i {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .3); font-size: 1.5rem; color: #fff;
}
.steps strong { display: block; font-weight: 700; font-size: 1.0625rem; }
.steps span { display: block; margin-top: 2px; color: rgb(255 255 255 / .72); font-size: .975rem; }

.form-card {
  background: #fff; color: var(--text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55);
}
.form-card__title { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }

.lead-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: .9375rem; font-weight: 700; color: var(--navy); padding: 0; }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--text-muted); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--mist-50); border: 1.5px solid transparent; border-radius: var(--radius-input);
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field ::placeholder { color: #6B6E85; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(23 61 237 / .14); }
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #FFF6F7; }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: grid; place-items: center; padding: 0 12px 0 16px;
  background: var(--mist); border-radius: var(--radius-input) 0 0 var(--radius-input);
  font-weight: 700; color: var(--navy); font-size: .9375rem;
}
.input-prefix input { border-radius: 0 var(--radius-input) var(--radius-input) 0 !important; }

.field__hint { font-size: .8125rem; color: var(--text-muted); }
.field__error { font-size: .875rem; color: var(--error); font-weight: 700; min-height: 0; }
.field__error:empty { display: none; }

.chips__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
  font-size: .9375rem; font-weight: 400; color: var(--navy);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.chip span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--grey);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.chip input:checked + span::before { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 4px var(--blue); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.chip:active span { transform: scale(.97); }
.chips[data-invalid] .chip span { border-color: var(--error); }

.consent { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; font-size: .9rem !important; color: var(--text-muted) !important; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }

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

.form-alert { padding: 12px 16px; border-radius: var(--radius-input); background: #FFF0F2; color: var(--error); font-size: .9375rem; font-weight: 700; }

[data-submit][aria-busy="true"] { pointer-events: none; opacity: .85; position: relative; overflow: hidden; }
[data-submit][aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent);
  transform: translateX(-100%); animation: shimmer 1.1s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.form-success { text-align: center; padding: 40px 8px; display: grid; justify-items: center; gap: 14px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-size: 2.25rem;
}
.form-success h3 { font-size: 1.75rem; font-weight: 900; color: var(--navy); }
.form-success p { color: var(--text-muted); max-width: 36ch; }
.form-success .btn { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) { animation: rise .7s var(--ease-out) both; }
}

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--ink); color: rgb(255 255 255 / .78); padding-top: 56px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer__place { display: inline-flex; align-items: center; gap: 8px; }
.footer__place i { font-size: 1.25rem; color: #8FA3FF; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__nav a { text-decoration: none; font-size: .9375rem; transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__legal { padding-block: 22px 32px; padding-right: 72px; font-size: .8125rem; color: rgb(255 255 255 / .55); }

/* Revelado al hacer scroll ----------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .needs__grid { grid-template-columns: 1fr; }
  .needs__intro { position: static; }
  .project__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; }
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header { border-radius: 0 0 28px 28px; }
  .site-header.menu-open { box-shadow: 0 30px 60px -20px rgb(0 0 41 / .45); background: var(--white); }
  .project__grid { grid-template-columns: 1fr; }
  .project__media { max-width: 560px; margin-right: 24px; }
  .project__media img { aspect-ratio: 4 / 3; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  /* En móvil la foto va arriba y el texto sobre un fondo sólido, sin tapar el rostro */
  .hero { display: block; min-height: 0; padding: 0 0 88px; }
  .hero::before { display: none; }
  .hero__media { position: relative; display: block; height: auto; aspect-ratio: 375 / 440; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(0deg, var(--ink) 0%, rgb(0 0 41 / .6) 22%, rgb(0 0 41 / 0) 48%),
      linear-gradient(180deg, rgb(0 0 41 / .3) 0%, rgb(0 0 41 / 0) 30%);
  }
  .hero__media img { object-position: 50% 12%; }
  .hero__content { margin-top: -72px; z-index: 1; }
  .hero__title { font-size: clamp(2.25rem, 10vw, 2.9rem); }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .band__tab { left: 0; padding: 16px var(--gutter) 2px; font-size: 2rem; }
  .band__list { grid-template-columns: 1fr; gap: 14px; padding-block: 22px 26px; }
  .band__list li { border-right: 0; margin-right: 0; padding-right: 0; font-size: 1.1875rem; }

  .needs__options { grid-template-columns: 1fr; gap: 12px; }
  .needs__options .option:nth-child(even) { transform: none; }
  .option--wide { margin-top: 0; padding: 22px; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map { aspect-ratio: 1 / 1; }
  .option { min-height: 0; padding: 24px 22px 22px; }
  .option__icon { font-size: 2.125rem; margin-bottom: 8px; }
  .option__title { font-size: 1.3125rem; }
  .option__cta { padding-top: 10px; }

  .features { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { margin-inline: calc(var(--gutter) * -0.25); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}
