/* ============================================================
   INCREAN — hoja de estilos
   1. Tokens
   2. Base
   3. Cabecera y navegación
   4. Botones y enlaces
   5. Hero
   6. Secciones y tipografía
   7. Rejillas y tarjetas
   8. Banda de cierre
   9. Pie
   10. Responsive
   11. Capa de movimiento (reveal, máscaras, líneas)
   ============================================================ */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --ink: #26333B;
  --ink-2: #4C565B;
  --muted: #5F686D;
  --ivory: #FBFAF7;
  --stone: #F5F2EC;
  --sand: #EFE3CB;
  --sand-2: #E8DFCB;
  --champagne: #BFA57A;
  --champagne-deep: #A2854F;
  --green: #3F5948;
  --green-900: #354C3C;
  --rule: rgba(38, 51, 59, 0.09);
  --rule-soft: rgba(38, 51, 59, 0.07);
  --rule-strong: rgba(38, 51, 59, 0.16);

  --shell: 1360px;
  --gutter: clamp(24px, 5vw, 72px);
  --block: clamp(80px, 10vw, 140px);
  --block-lg: clamp(90px, 11vw, 160px);

  --font: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Movimiento: caída corta + fade, 450–650 ms, stagger 70–120 ms (brief §3) */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 560ms;
  --dur-line: 760ms;
  --dur-mask: 1100ms;
  --stagger: 90ms;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--sand-2); }

/* La cabecera es sticky: los anclajes no deben quedar debajo */
[id] { scroll-margin-top: 104px; }

.page {
  font-family: var(--font);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
}

/* 3. Cabecera y navegación ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: padding 400ms var(--ease);
}

/* Contracción sobria al hacer scroll */
html[data-scrolled] .site-header {
  background: rgba(251, 250, 247, 0.96);
  box-shadow: 0 14px 30px -26px rgba(38, 51, 59, 0.55);
}
html[data-scrolled] .site-header__inner { padding-top: 11px; padding-bottom: 11px; }
html[data-scrolled] .brand__logo { height: 38px; }

.brand { display: block; flex: 0 0 auto; }
.brand__logo { height: 46px; width: auto; transition: height 400ms var(--ease); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nav__link {
  position: relative;
  color: var(--muted);
  padding-bottom: 4px;
  transition: color 280ms var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--champagne);
  transition: width 380ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link--current { color: var(--ink); }
.nav__link--current::after { width: 100%; }

/* 4. Botones y enlaces ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 16px;
  padding: 17px 32px;
  background: var(--green);
  color: var(--ivory);
  transition: background 300ms var(--ease);
}
.btn:hover { background: var(--green-900); color: var(--ivory); }

.btn--compact { font-size: 15px; padding: 14px 26px; gap: 12px; }

.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: var(--sand-2); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  padding-bottom: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--champagne);
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.link-arrow:hover { color: var(--green); border-color: var(--green); }

/* Flecha: 4 px en hover (brief §3) */
.arrow { display: inline-block; transition: transform 300ms var(--ease); }
.btn:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(4px); }

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 76vh, 740px);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media image-slot { width: 100%; height: 100%; aspect-ratio: auto; }

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    var(--ivory) 0%,
    rgba(251, 250, 247, 0.95) 44%,
    rgba(251, 250, 247, 0.62) 66%,
    rgba(38, 51, 59, 0.22) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) var(--gutter);
}

.hero__content { max-width: 700px; }

/* Variante: fotografía a la izquierda (prop «heroImagen») */
.hero--left .hero__veil {
  background: linear-gradient(-100deg,
    var(--ivory) 0%,
    rgba(251, 250, 247, 0.95) 44%,
    rgba(251, 250, 247, 0.62) 66%,
    rgba(38, 51, 59, 0.22) 100%);
}
.hero--left .hero__inner { display: flex; justify-content: flex-end; }

.hero__title { margin: 0; }

.badge-line { display: block; }
.badge {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--green);
  padding: 8px 18px;
}

.claim {
  display: block;
  margin-top: 16px;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: pretty;
}

.lede {
  margin: 40px 0 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.pledge {
  position: relative;
  margin: 44px 0 0;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.45;
}
.pledge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--champagne);
}

.hero__cta { margin-top: 48px; }

/* 6. Secciones y tipografía ----------------------------------------------- */
.section { position: relative; }

.section__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--block) var(--gutter);
}
.section__inner--lg { padding: var(--block-lg) var(--gutter); }

.section--sand {
  background: radial-gradient(ellipse 900px 560px at 12% 8%,
    var(--sand) 0%, var(--stone) 55%, var(--stone) 100%);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.section--stone {
  background: var(--stone);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.eyebrow {
  margin: 0 0 30px;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--wide { margin-bottom: 26px; letter-spacing: 0.3em; }
.eyebrow--small { margin-bottom: 20px; font-size: 14px; letter-spacing: 0.24em; }
.eyebrow--gold { color: var(--champagne); margin-bottom: 32px; }

.h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.h2--wide { font-size: clamp(32px, 3.8vw, 52px); }
.h2--measure { max-width: 22ch; }
/* Titulares cortos en columna: reparto equilibrado de líneas */
.h2--balance { text-wrap: balance; }

.h3 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.25;
}
.h3--lg {
  margin-bottom: 24px;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
}

.body {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.body--tight { margin-top: 22px; }
.body--small { margin: 0 0 26px; font-size: 17px; }
.body--gap { margin-bottom: 34px; }
.body--joined { margin-bottom: 18px; }
.body--measure { max-width: 58ch; }
.body--narrow { max-width: 46ch; }

.note { margin: 0; font-size: 17px; line-height: 1.55; }

.intro { max-width: 640px; }

.lead-statement {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
}
.lead-statement em { font-style: normal; color: var(--champagne-deep); }

.stack { margin-bottom: clamp(56px, 6vw, 88px); }
.stack--tight { margin-bottom: clamp(56px, 6vw, 88px); }

/* 7. Rejillas y tarjetas -------------------------------------------------- */
.grid { display: grid; }
.grid > * { min-width: 0; }

.grid--pillars {
  margin-top: clamp(64px, 7vw, 104px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 4vw, 64px);
}
.grid--about {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
}
.grid--ways {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(48px, 5vw, 80px);
}
.grid--values {
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 44px);
}
.grid--closing {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(48px, 6vw, 90px);
  align-items: end;
}

/* Tarjeta con filete superior que se traza al entrar en viewport */
.card { position: relative; padding-top: 28px; }
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--champagne);
}

.value {
  position: relative;
  padding-top: 26px;
  font-size: 17px;
  line-height: 1.5;
}
.value::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--rule-strong);
}
.value__num {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--champagne-deep);
}

.media { overflow: hidden; }
.media image-slot { width: 100%; height: clamp(360px, 44vw, 540px); aspect-ratio: auto; }

/* 8. Banda de cierre ------------------------------------------------------ */
.closing {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.closing__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 620px at 88% 8%, rgba(191, 165, 122, 0.22) 0%, rgba(38, 51, 59, 0) 60%),
    radial-gradient(ellipse 700px 500px at 6% 100%, rgba(63, 89, 72, 0.35) 0%, rgba(38, 51, 59, 0) 60%);
}

.closing__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 150px) var(--gutter);
}

.closing .h2 {
  text-wrap: balance;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.closing__cta { margin-top: 44px; }

/* Sobre antracita, el cuerpo de texto aclara */
.closing .body,
.closing .note,
.closing .card__text,
.band .body,
.band .card__text { color: #D7DCDA; }
.closing .eyebrow,
.band .eyebrow { color: var(--champagne); }

.mantra {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #E6E3DC;
  justify-self: end;
  text-align: right;
}

/* 9. Pie ------------------------------------------------------------------ */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--rule);
}

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 4vw, 56px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__logo { height: 44px; width: auto; }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2vw, 32px);
  font-size: 15px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* 9.b Franja de financiación europea (logos en blanco: fondo antracita) */
.eu {
  background: var(--ink);
  color: #C7CDCB;
}
.eu__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(30px, 3.2vw, 44px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2vw, 26px);
  text-align: center;
}
.eu__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 56px);
}
.eu__logo { height: 38px; width: auto; }
.eu__logo--plan { height: 46px; }
.eu__text {
  margin: 0;
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.65;
  color: #A8B0AF;
}

@media (max-width: 560px) {
  .eu__logo { height: 32px; }
  .eu__logo--plan { height: 40px; }
  .eu__text { font-size: 12px; }
}

.footer-link {
  color: var(--muted);
  transition: color 280ms var(--ease);
}
.footer-link:hover { color: var(--ink); }

/* Crédito de desarrollo */
.credit { color: var(--muted); }
.credit .footer-link {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 280ms var(--ease), border-color 280ms var(--ease);
}
.credit .footer-link:hover { color: var(--ink); border-bottom-color: var(--champagne); }

/* 10. Responsive ----------------------------------------------------------- */

/* Portátil: los cinco valores no caben cómodos en fila */
@media (max-width: 1180px) {
  .grid--values { grid-template-columns: repeat(3, 1fr); row-gap: clamp(32px, 4vw, 48px); }
}

/* Tablet: cabecera en dos filas y rejillas a una columna */
@media (max-width: 980px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 14px; gap: 20px; }
  .nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .hero--left .hero__inner { display: block; }
  .grid--about { grid-template-columns: 1fr; gap: 40px; }
  .grid--closing { grid-template-columns: 1fr; gap: 48px; }
  .mantra {
    justify-self: start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 30px;
  }
}

/* Móvil grande: ritmo vertical más corto (brief §1.2: 56–80 px) */
@media (max-width: 720px) {
  :root {
    --block: clamp(56px, 13vw, 80px);
    --block-lg: clamp(64px, 15vw, 92px);
  }
  .grid--pillars { grid-template-columns: 1fr; margin-top: clamp(48px, 10vw, 64px); gap: 44px; }
  .grid--ways { grid-template-columns: 1fr; gap: 56px; }
  .grid--values { grid-template-columns: repeat(2, 1fr); }
  .media image-slot { height: clamp(260px, 62vw, 420px); }
  /* Sobre vertical, el velo protege la lectura de arriba abajo */
  .hero__veil,
  .hero--left .hero__veil {
    background: linear-gradient(170deg,
      var(--ivory) 0%,
      rgba(251, 250, 247, 0.96) 52%,
      rgba(251, 250, 247, 0.74) 76%,
      rgba(38, 51, 59, 0.28) 100%);
  }
  .lede { margin-top: 32px; }
  .pledge { margin-top: 36px; }
  .hero__cta { margin-top: 40px; }
  .stack { margin-bottom: clamp(40px, 9vw, 56px); }
}

/* Móvil */
@media (max-width: 560px) {
  .site-header__inner { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand__logo { height: 38px; }
  html[data-scrolled] .brand__logo { height: 34px; }
  .btn--compact { font-size: 14px; padding: 12px 18px; gap: 10px; }
  .nav { font-size: 14px; gap: 8px 16px; }
  .claim { font-size: clamp(34px, 9.4vw, 42px); }
  .h2, .h2--wide, .closing .h2 { font-size: clamp(28px, 7.6vw, 38px); }
  .h3, .h3--lg { font-size: clamp(22px, 5.8vw, 26px); }
  .lede, .body { font-size: 17px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.18em; margin-bottom: 22px; }
  .eyebrow--wide { letter-spacing: 0.24em; }
  .lead-statement { font-size: 21px; }
  .h2--measure { max-width: none; }
  .site-footer__inner { gap: 24px; }
}

/* Móvil estrecho */
@media (max-width: 420px) {
  .grid--values { grid-template-columns: 1fr; gap: 26px; }
  .badge { font-size: 13px; letter-spacing: 0.1em; padding: 7px 14px; }
  .btn { width: 100%; justify-content: space-between; }
  .btn--compact { width: auto; }
}

/* 11. Capa de movimiento ---------------------------------------------------
   Todo el estado animado cuelga de html[data-motion="on"], que activa el
   componente. Sin JS, con `animaciones` desactivado o con
   prefers-reduced-motion, la página queda estática y visible. */

/* 11.1 Reveal por bloque: caída corta + fade (brief §3) */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  transition-delay: var(--rd, 0ms);
}
html[data-motion="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 11.1.b Entrada coreografiada del hero: el bloque entra por partes */
html[data-motion="on"] .hero .eyebrow,
html[data-motion="on"] .hero-page__text .eyebrow {
  letter-spacing: 0.34em;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    letter-spacing 900ms var(--ease);
  transition-delay: var(--rd, 0ms);
}
html[data-motion="on"] .hero .eyebrow.is-in,
html[data-motion="on"] .hero-page__text .eyebrow.is-in { letter-spacing: 0.22em; }

/* El sello verde se descubre de izquierda a derecha */
html[data-motion="on"] .badge {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 760ms var(--ease);
  transition-delay: calc(var(--rd, 0ms) + 60ms);
}
html[data-motion="on"] .badge-line.is-in .badge { clip-path: inset(0 0 0 0); }

/* El botón del hero llega el último, ya en su sitio */
html[data-motion="on"] .hero__cta,
html[data-motion="on"] .hero-page__cta { transform: translateY(-10px); }

/* 11.2 Grupos en cascada: el contenedor no se mueve, sus hijos entran
   secuencialmente (stagger 90 ms) */
html[data-motion="on"] [data-reveal].reveal-group { opacity: 1; transform: none; }
html[data-motion="on"] .reveal-group > * {
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
}
html[data-motion="on"] .reveal-group.is-in > * { opacity: 1; transform: none; }
html[data-motion="on"] .reveal-group.is-in > *:nth-child(1) { transition-delay: calc(var(--rd, 0ms) + 60ms); }
html[data-motion="on"] .reveal-group.is-in > *:nth-child(2) { transition-delay: calc(var(--rd, 0ms) + 150ms); }
html[data-motion="on"] .reveal-group.is-in > *:nth-child(3) { transition-delay: calc(var(--rd, 0ms) + 240ms); }
html[data-motion="on"] .reveal-group.is-in > *:nth-child(4) { transition-delay: calc(var(--rd, 0ms) + 330ms); }
html[data-motion="on"] .reveal-group.is-in > *:nth-child(5) { transition-delay: calc(var(--rd, 0ms) + 420ms); }

/* 11.3 Filetes que se trazan */
html[data-motion="on"] .card::before,
html[data-motion="on"] .phase::before,
html[data-motion="on"] .value::before {
  width: 0;
  transition: width 820ms var(--ease);
  transition-delay: calc(var(--rd, 0ms) + 140ms);
}
html[data-motion="on"] .card.is-in::before,
html[data-motion="on"] .phase.is-in::before,
html[data-motion="on"] .value.is-in::before { width: 100%; }

html[data-motion="on"] .pledge::before {
  height: 0;
  transition: height 700ms var(--ease);
  transition-delay: calc(var(--rd, 0ms) + 80ms);
}
html[data-motion="on"] .pledge.is-in::before { height: 100%; }

/* 11.4 Fotografía: reveal por máscara, sin zoom agresivo (brief §3) */
html[data-motion="on"] .media image-slot {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.04);
  transition:
    clip-path var(--dur-mask) var(--ease),
    transform 1400ms var(--ease);
}
html[data-motion="on"] .media.is-in image-slot {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* La máscara sustituye al desplazamiento del bloque */
html[data-motion="on"] [data-reveal].reveal-mask { opacity: 1; transform: none; }

/* 11.6 Titulares por líneas (nunca letra a letra, brief §3) */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line__inner { display: block; }

html[data-motion="on"] .line__inner {
  transform: translateY(110%);
  transition: transform var(--dur-line) var(--ease);
  transition-delay: calc(var(--rd, 0ms) + var(--i, 0) * var(--stagger));
}
html[data-motion="on"] .is-in .line__inner { transform: none; }

/* Un titular ya partido en líneas no necesita además desplazarse en bloque */
html[data-motion="on"] [data-reveal].is-split { opacity: 1; transform: none; }

/* Re-partido tras un resize: sin re-animar */
html[data-motion="on"] .is-settled .line__inner { transition: none; }

/* 11.7 Preferencia del sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   12. Páginas internas (Servicios · Contacto)
   ============================================================ */

/* 12.1 Hero de página: texto alineado a la retícula, foto a sangre */
.hero-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}

.hero-page__text {
  padding:
    clamp(56px, 7vw, 104px)
    clamp(32px, 4vw, 64px)
    clamp(56px, 7vw, 104px)
    max(var(--gutter), calc((100vw - var(--shell)) / 2));
}

.hero-page__media {
  position: relative;
  align-self: stretch;
  min-height: clamp(340px, 42vw, 520px);
  overflow: hidden;
}
/* El componente trae aspect-ratio 3/2 en su :host: aquí manda la caja */
.hero-page__media image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.h1-page {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h1-page em {
  display: block;
  font-style: normal;
  color: var(--champagne-deep);
}

.hero-page__cta { margin-top: clamp(36px, 4vw, 48px); }

.kicker {
  margin: clamp(36px, 4vw, 48px) 0 0;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 12.2 Bloque de énfasis centrado */
.statement {
  margin: clamp(56px, 6vw, 88px) auto 0;
  max-width: 30ch;
  text-align: center;
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
  color: var(--champagne-deep);
  text-wrap: balance;
}

/* 12.3 Rejillas de cuatro y tres columnas */
.grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(48px, 5vw, 72px);
}
.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3.4vw, 56px);
  margin-top: clamp(48px, 5vw, 72px);
}

.card__title {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.card__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* 12.4 Fases del expediente: numeración y filete, sin iconos */
.grid--phases {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 3.4vw, 52px) clamp(24px, 2.6vw, 40px);
  margin-top: clamp(52px, 5vw, 76px);
}

.phase { position: relative; padding-top: 24px; }
.phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--rule-strong);
}
.phase__num {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--champagne-deep);
}
.phase__title {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.phase__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* 12.5 Cadena de fases */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
}
.chain i { font-style: normal; opacity: 0.6; }

/* 12.6 Franja antracita intermedia */
.band {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}
.band__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 760px 520px at 10% 0%, rgba(191, 165, 122, 0.18) 0%, rgba(38, 51, 59, 0) 62%),
    radial-gradient(ellipse 680px 460px at 92% 100%, rgba(63, 89, 72, 0.34) 0%, rgba(38, 51, 59, 0) 62%);
}
.band__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.band .eyebrow { color: var(--champagne); }
.band .h2 { color: var(--ivory); }
.band__lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: #D7DCDA;
}
.band__foot {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 6vw, 88px);
}

/* 12.7 Formulario */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(48px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(44px, 4.5vw, 64px);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 32px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 12px 0;
  transition: border-color 300ms var(--ease);
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA0A3; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--green); }
.field textarea { min-height: 128px; resize: vertical; }
.field select { cursor: pointer; }

.form__foot { grid-column: 1 / -1; margin-top: 6px; }
.form__note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.aside { padding-top: 28px; border-top: 1px solid var(--champagne); }
.aside__title {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.aside__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.aside__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink);
}
.aside__note {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* 12.8 Responsive de páginas internas */
@media (max-width: 1180px) {
  .grid--phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-page { grid-template-columns: 1fr; }
  .hero-page__text {
    padding: clamp(48px, 8vw, 72px) var(--gutter) clamp(40px, 6vw, 56px);
  }
  .hero-page__media { min-height: clamp(280px, 56vw, 420px); }
  .grid--three { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid--phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement { max-width: none; text-align: left; }
  .form { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 460px) {
  .grid--phases { grid-template-columns: 1fr; }
  .grid--four { grid-template-columns: 1fr; }
}
