/* ==========================================================================
   ROVEX CONSULTORES — Sistema visual "Cielo"
   Canvas blanco · paneles azul celeste muy suave · serif ligera + sans humanista
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies */
  --white:        #ffffff;
  --paper:        #fcfdfe;
  --sky-50:       #f6fbfe;
  --sky-100:      #edf6fd;
  --sky-200:      #e2f0fa;
  --sky-300:      #d3e7f6;
  --sky-400:      #c1dcef;

  /* Tinta */
  --ink:          #0f2e45;
  --ink-2:        #2c4b9b;   /* azul del logotipo */
  --ink-soft:     #5a6c7d;
  --ink-mid:      #3f5567;   /* texto oscurecido para el hero */
  --ink-faint:    #8697a6;

  /* Trazos y estados */
  --line:         rgba(15, 46, 69, .10);
  --line-soft:    rgba(15, 46, 69, .07);
  --focus:        #2c4b9b;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Cabecera y logotipo */
  --logo-h:    64px;    /* altura del logo */
  --header-h:  96px;

  /* Ritmo */
  --max:      1240px;
  --gutter:   clamp(20px, 4vw, 48px);
  --section:  clamp(72px, 9vw, 132px);
  --pad-card: clamp(26px, 3.4vw, 42px);

  /* Forma */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;
}

/* ---------- 2. Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--sky-300); color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
}
.skip:focus { left: 0; }

/* ---------- 3. Estructura ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--after-hero {
  padding-top: max(0px, calc(clamp(18px, 3.6vw, 54px) - 30px));  /* 3 mm más arriba */
  padding-bottom: clamp(32px, 4vw, 56px);
}
.section--flush { padding-block: 0 clamp(56px, 7vw, 96px); }

/* ---------- 4. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
h3 {
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.018em;
}
h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}
p { margin: 0; }
.lead {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.62;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 62ch;
}
.body    { color: var(--ink-soft); font-weight: 300; max-width: 68ch; }
.body p + p { margin-top: 1.1em; }
.small   { font-size: 14px; line-height: 1.55; color: var(--ink-soft); font-weight: 300; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--plain::before { display: none; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn svg { width: 15px; height: 15px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #173f5d; }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(15,46,69,.22); }
.btn--ghost:hover { background: var(--sky-100); border-color: transparent; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky-50); }

.btn--onblue { background: var(--ink); color: #fff; }
.btn--onblue:hover { background: #173f5d; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(15,46,69,.25);
  transition: border-color .25s ease, gap .25s ease;
}
.link:hover { gap: 12px; border-color: var(--ink); }

/* ---------- 6. Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
  transition: height .35s cubic-bezier(.22,.61,.36,1);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img {
  width: auto;
  height: var(--logo-h);
  transition: height .35s cubic-bezier(.22,.61,.36,1);
}

/* Al hacer scroll la cabecera se recoge para no comerse la pantalla */
.header.is-compact { --logo-h: 32px; --header-h: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .11em;
  color: var(--ink-2);
}
.brand__tag {
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 26px);
  margin-inline: auto;   /* el menú vuelve al centro-izquierda, como antes */
}
.nav a {
  font-size: 16.7px;   /* +15% sobre 14,5 px */
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: inline-flex; }
.header__cta .btn { padding: 13px 22px; font-size: 14px; white-space: nowrap; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

/* ---------- 7. Hero ---------- */
.hero { padding-top: clamp(48px, 5vw, 76px); padding-bottom: clamp(44px, 5vw, 68px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.52fr 1fr;   /* columna derecha ~76px más a la izquierda */
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero .eyebrow {
  font-size: 13.2px;      /* +20% sobre 11px */
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.hero .eyebrow::before { width: 24px; }

.hero h1 {
  max-width: 24ch;
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;   /* en negrita */
  font-size: clamp(28px, 3.6vw, 45.36px);   /* -10% sobre 50,4px */
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--ink-2);
  font-style: italic;
  margin-top: 19px;                          /* ~0,5 cm más abajo */
}
.hero h1 em { font-style: italic; color: inherit; }

/* Titular de sección con el mismo estilo que el del hero */
.h2--hero {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 45.36px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--ink-2);
  font-style: italic;
  max-width: 22ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink-2);
}
.hero__aside { padding-bottom: 10px; margin-left: -19px; }  /* 5 mm a la izquierda */
.hero__aside .lead {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18.33px;       /* 17px + 1 punto tipográfico (1,333px) */
  font-weight: 400;
  line-height: 1.6;         /* mismo interlineado que los párrafos de abajo */
  margin-bottom: 28px;
  color: #4a5d6f;           /* gris azulado, un punto más oscuro */
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Imagen ancha bajo el hero */
.hero-media {
  margin-top: calc(clamp(32px, 4vw, 52px) + 2px); /* mantiene la imagen en su sitio */
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;
  background: var(--sky-100);
}
.hero-media img { width: 100%; height: auto; }

/* Panel cielo grande bajo el hero */
.hero-panel {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-panel--tight { margin-top: calc(clamp(10px, 1.2vw, 14px) + 19px); }  /* 5 mm bajo la imagen */
.hero-panel--two { grid-template-columns: 1fr 1fr; }
.hero-panel--two .hero-panel__cell { min-height: 158px; }
a.hero-panel__cell {
  text-decoration: none;
  transition: background-color .35s ease;
}
a.hero-panel__cell:hover { background: #fff; }
a.hero-panel__cell:hover .hero-panel__num { transform: translateX(6px); }
.hero-panel__num { transition: transform .35s ease; }
.hero-panel--two .hero-panel__label { font-size: 12.5px; letter-spacing: 0.12em; }

.hero-panel__cell {
  background: var(--sky-100);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 190px;
}
.hero-panel__cell:nth-child(2) { background: var(--sky-200); }
.hero-panel__cell:nth-child(3) { background: var(--sky-300); }
.hero-panel__num,
.step__n,
.sector h3 {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.hero-panel__num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-panel__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- 8. Bloques genéricos ---------- */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}
.split--wide { grid-template-columns: 1fr 1fr; }
.split__aside { position: sticky; top: 110px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 42ch; margin-bottom: 4px; }

/* ---------- 9. Tarjetas / paneles (los "cuadros") ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.card {
  background: var(--sky-100);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color .35s ease;
}
.card:hover { background: var(--sky-200); }
.card--tall { min-height: 340px; }
.equal-rows { grid-auto-rows: 1fr; }
.card--wide { grid-column: span 2; }
.card--svc { min-height: 225px; }
@media (max-width: 900px) {
  .equal-rows { grid-auto-rows: auto; }
  .card--svc { min-height: 0; }
}
.card--plain { background: var(--sky-50); }
.card--deep { background: var(--sky-200); }
.card--deepest { background: var(--sky-300); }

.card__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.card h3 { max-width: 22ch; }
.card p { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 10px; }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1px;
  background: var(--ink-faint);
}

/* Placeholder para imágenes que el cliente insertará */
.ph {
  position: relative;
  border-radius: var(--r);
  background: var(--sky-200);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 200px;
  isolation: isolate;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,46,69,.42);
  text-align: center;
  padding: 12px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall { min-height: 300px; }
.ph--wide { aspect-ratio: 16 / 9; min-height: 0; }
.ph--square { aspect-ratio: 1 / 1; min-height: 0; }
.ph--4-5 { aspect-ratio: 4 / 5; min-height: 0; }

/* Índice de página (fila de paneles) */
.index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.index a {
  background: var(--sky-100);
  padding: clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 22px);
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: background-color .3s ease;
}
.index a:nth-child(2) { background: var(--sky-200); }
.index a:nth-child(3) { background: var(--sky-300); }
.index a:nth-child(4) { background: var(--sky-200); }
.index a:nth-child(5) { background: var(--sky-100); }
.index a:hover { background: #fff; }
.index a:hover .hero-panel__num { transform: translateX(2px); }
.index .hero-panel__num { font-size: clamp(30px, 2.8vw, 38px); transition: transform .3s ease; }
.index .hero-panel__label { font-size: 11px; }

@media (max-width: 900px) {
  .index { grid-template-columns: 1fr 1fr; }
  .index a { min-height: 140px; }
}
@media (max-width: 560px) {
  .index { grid-template-columns: 1fr; }
  .index a { min-height: 0; gap: 12px; }
}

/* Párrafos con el mismo estilo que el texto del hero */
.link--eyebrow {
  font-size: 13.2px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 0;
  padding-bottom: 0;
}
.link--eyebrow:hover { color: var(--ink); }

.lead--body {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18.33px;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5d6f;
  max-width: 46ch;
}

.body--lead p {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18.33px;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5d6f;
}

/* Figuras de apoyo */
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.figures > div { background: var(--sky-50); padding: 22px 24px; }
.figures dt {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--ink);
}
.figures--words dt { font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
.figures dd {
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- 10. Sectores ---------- */
.sectors { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.sector {
  display: grid;
  grid-template-columns: 88px .9fr 1.1fr 60px;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding-block: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .3s ease, padding-inline .3s ease;
  padding-inline: 8px;
}
.sector:hover { background: var(--sky-50); padding-inline: 20px; }
.sector__idx {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-faint);
}
.sector h3 { font-size: clamp(24px, 2.6vw, 32px); }
.sector p { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; }
.sector__arrow {
  justify-self: end;
  color: var(--ink-faint);
  transition: transform .3s ease, color .3s ease;
}
.sector:hover .sector__arrow { transform: translateX(4px); color: var(--ink); }

/* ---------- 11. Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sky-50);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step + .step { border-left: 1px solid var(--line-soft); }
@media (max-width: 900px) {
  .step + .step { border-left: 0; border-top: 1px solid var(--line-soft); }
}
.step__n {
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1;
}
.step h4 { text-transform: none; }
.step p { font-size: 14.5px; color: var(--ink-soft); font-weight: 300; }

/* ---------- 12. Cita / statement ---------- */
.quote {
  background: var(--sky-200);
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 72px);
  text-align: center;
}
.quote blockquote {
  margin: 0 auto;
  max-width: 32ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quote blockquote em { font-style: italic; color: var(--ink-2); }
.quote figcaption {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 13. Bloque de contacto ---------- */
.contacto {
  background: var(--sky-100);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
}
.contacto h2 { max-width: 16ch; }
.contacto__list { display: grid; gap: 20px; margin-top: 30px; }
.contacto__item { display: grid; gap: 3px; }
.contacto__item dt {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.contacto__item dd { margin: 0; font-size: 16px; font-weight: 300; color: var(--ink); }
.contacto__item a { border-bottom: 1px solid rgba(15,46,69,.2); }
.contacto__item a:hover { border-color: var(--ink); }

/* ---------- 14. Formulario ---------- */
.form { display: grid; gap: 16px; align-content: start; }
.contacto .form { align-content: space-between; height: 100%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(44,75,155,.45);
  background: #fff;
}
.form__legal { font-size: 12px; color: var(--ink-faint); font-weight: 300; line-height: 1.5; }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Mapa de contacto */
.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sky-100);
  line-height: 0;
}
.map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 28vw, 340px);
  border: 0;
  filter: saturate(.9) contrast(1.02);
}

/* ---------- 15. Página interior: hero ---------- */
.page-hero { padding-top: clamp(52px, 6vw, 92px); padding-bottom: clamp(36px, 4vw, 56px); }
/* Imagen que sustituye al titular en la cabecera de Empresa */
.page-hero--media .page-hero__inner { align-items: center; }
.page-hero--media .lead { margin-left: -76px; }   /* 2 cm a la izquierda */
@media (max-width: 900px) { .page-hero--media .lead { margin-left: 0; } }
.page-hero--media .page-hero__media { align-self: center; }
.page-hero__media img {
  width: 70%;            /* -30% */
  height: auto;
  position: relative;
  top: 19.4px;           /* desplazamiento neto tras los ajustes */

  border-radius: var(--r-lg);
  display: block;
}
@media (max-width: 900px) {
  .page-hero__media img { width: 100%; top: 0; }
}

/* Antetítulo con el tamaño del de Inicio */
.eyebrow--lg {
  font-size: 13.2px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.eyebrow--lg::before { width: 24px; }

/* Sección subida 3 cm (Principios) */
.section--pull { padding-top: 0; margin-top: -26px; }   /* 5 mm menos de subida */
.section--pull .grid-3 { margin-top: -15px; }           /* tarjetas 4 mm más arriba */
.section--pull .card h3 {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 25.67px;   /* 2 puntos menos */
  text-transform: uppercase;
}
.section--pull .card p {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18.33px;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5d6f;
}

/* Sección 1 cm más arriba */
.section--up { padding-top: max(0px, calc(clamp(48px, 6vw, 84px) - 38px)); }
/* Los tres párrafos, 1 cm más arriba que la imagen */
.section--up .body--lead { position: relative; top: -38px; }

.ph-caption {
  margin: 14px 0 0;
  font-size: 13.2px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.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;
}

.page-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-hero h1 { font-size: clamp(38px, 5vw, 66px); max-width: 18ch; }
.page-hero .lead { padding-bottom: 8px; max-width: 44ch; }
.crumbs { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- 16. Listas de servicios ---------- */
.svc { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.svc__item {
  background: var(--sky-100);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  transition: background-color .3s ease;
}
.svc__item:hover { background: var(--sky-200); }
.svc__item:nth-child(even) { background: var(--sky-50); }
.svc__item:nth-child(even):hover { background: var(--sky-100); }
.svc__item h3 { font-size: clamp(22px, 2.3vw, 28px); }
.svc__body { display: grid; gap: 12px; }
.svc__body p, .svc__body li { font-size: 15.5px; font-weight: 300; color: var(--ink-soft); line-height: 1.6; }
.svc__body ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.svc__body ul li { position: relative; padding-left: 18px; }
.svc__body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--ink-faint); }

/* ---------- 17. Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-top: max(0px, calc(clamp(48px, 6vw, 76px) - 19px));   /* 5 mm más arriba */
  padding-bottom: 32px;
  margin-top: clamp(20px, 4vw, 58px);   /* pie 1 cm más arriba */
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(32px, 4vw, 52px);
}
.footer__col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a, .footer__col li { font-size: 14.5px; font-weight: 300; color: var(--ink-soft); }
.footer__col a:hover { color: var(--ink); }
.footer .brand img { height: 37.4px; }   /* -15% sobre 44px */
.footer__about {
  margin-top: 20px;
  font-size: 16.67px;   /* 14px + 2 puntos tipográficos */
  font-weight: 400;
  color: #4a5d6f;
  max-width: 34ch;
  line-height: 1.6;
}

/* Pie con la tipografía y el tono de los textos de Inicio */
.footer__about,
.footer__col h4,
.footer__col a,
.footer__col li {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.footer__col h4 { color: #4a5d6f; font-size: 12.33px; }   /* rótulos: +1 punto */
.footer__col a,
.footer__col li { color: #4a5d6f; font-weight: 400; font-size: 15.83px; }   /* +1 punto */

/* El segundo teléfono, más pegado al primero */
.footer__col:last-child li:nth-child(3) { margin-top: -8px; }
.footer__grid > .footer__col:last-child { margin-left: -38px; }  /* 1 cm a la izquierda */
@media (max-width: 1080px) {
  .footer__grid > .footer__col:last-child { margin-left: 0; }
}

.footer__base {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13.83px;   /* +1 punto */
  color: #4a5d6f;
  font-weight: 400;
}
.footer__base nav { display: flex; gap: 22px; }
.footer__base a:hover { color: var(--ink); }

/* ---------- 18. Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { max-width: 560px; margin-left: 0; }
  .hero h1 { max-width: 20ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sector { grid-template-columns: 56px .9fr 1.1fr 32px; }
}

@media (max-width: 1080px) {
  :root { --logo-h: 53px; --header-h: 84px; }
  .header.is-compact { --logo-h: 30px; --header-h: 62px; }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --logo-h: 38px; --header-h: 62px; }
  .header.is-compact { --logo-h: 38px; --header-h: 62px; }
  .card--wide { grid-column: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split, .split--wide, .page-hero__inner, .contacto { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel__cell { min-height: auto; }
  .svc__item { grid-template-columns: 1fr; }
  .sector { grid-template-columns: 32px 1fr; gap: 8px 16px; align-items: start; }
  .sector p { grid-column: 2; }
  .sector__arrow { display: none; }
  .quote blockquote { max-width: 22ch; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 20. Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: #fff;
  padding: 26px var(--gutter) 40px;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.menu-open { overflow: hidden; }
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { width: 100%; margin-top: 20px; }

/* ---------- 21. Utilidades ---------- */
.stack-24 > * + * { margin-top: 24px; }
.stack-16 > * + * { margin-top: 16px; }
.mt-40 { margin-top: clamp(28px, 3.4vw, 44px); }
.center { text-align: center; }
.hair { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
