/* =========================================================
   Calderón-Padilla | Abogados — hoja de estilo única
   Tipografías: Georgia (display) · Montserrat (texto)
   Diseño de referencia: 1440 px de ancho
   ========================================================= */

/* ---------- Tipografía autoalojada ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #263860;
  --navy-soft: #486284;
  --navy-overlay: #000C27;
  --white: #fff;
  --field-bg: #F6F7F9;
  --field-border: #AAAAAC;
  --placeholder: #5F6779;
  --error: #A32B2B;

  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Escala tipográfica: el valor máximo reproduce el diseño a 1440 px */
  --fs-h1: clamp(1.875rem, 4.59vw, 4.125rem);      /*  30 → 66 */
  --fs-h2: clamp(1.5rem, 3.48vw, 3.125rem);        /*  24 → 50 */
  --fs-h2-sm: clamp(1.375rem, 2.65vw, 2.375rem);   /*  22 → 38 */
  --fs-h3: clamp(1.1875rem, 2.02vw, 1.8125rem);    /*  19 → 29 */
  --fs-num: clamp(2.5rem, 5.01vw, 4.5rem);         /*  40 → 72 */
  --fs-lead: clamp(1rem, 1.47vw, 1.3125rem);       /*  16 → 21 */
  --fs-body: clamp(1rem, 1.26vw, 1.125rem);        /*  16 → 18 */
  --fs-sm: clamp(1rem, 1.19vw, 1.0625rem);         /*  16 → 17 */
  --fs-eyebrow: clamp(0.8125rem, 1.19vw, 1.0625rem); /*  13 → 17 */
  --fs-cta: clamp(1rem, 1.61vw, 1.4375rem);        /*  16 → 23 */
  --fs-btn: clamp(0.9375rem, 1.26vw, 1.125rem);    /*  15 → 18 */
  --fs-btn-lg: clamp(1rem, 1.54vw, 1.375rem);      /*  16 → 22 */

  --container: 1288px;   /* 1240 px de contenido + 2 × 24 px de respiro */
  --radius-card: clamp(15px, 1.4vw, 20px);
  --radius-panel: clamp(20px, 2.3vw, 33px);
  --radius-form: clamp(20px, 2.78vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .22);
  --shadow-panel: 0 14px 40px rgba(38, 56, 96, .16);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Hueco para que la cabecera no tape el inicio de la sección al saltar a un anclaje */
:target,
section[id],
main[id] { scroll-margin-top: clamp(60px, 5.84vw, 84px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.2273;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

strong, b { font-weight: 700; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 24px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Elementos comunes ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--light { color: var(--white); }
.eyebrow--center { text-align: center; }

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.1406;
  font-weight: 700;
  color: var(--navy);
}
.h2--light { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px clamp(16px, 1.42vw, 20px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: var(--fs-btn);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--navy { width: clamp(190px, 17.37vw, 250px); min-height: 47px; }
.areas__cta .btn,
.contacto__cta .btn { width: clamp(210px, 19.45vw, 280px); min-height: 48px; }

.hero .btn--white { font-weight: 700; }
.hero .btn--ghost-light { font-weight: 600; }
.areas__cta .btn,
.contacto__cta .btn { font-weight: 500; }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: #E8ECF4; border-color: #E8ECF4; }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover { background: #1B2A4C; border-color: #1B2A4C; }

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  /* Sticky, no fixed: así sigue ocupando su sitio en el flujo y el contenido
     no da un salto al cargar. Se esconde al bajar y reaparece al subir. */
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin-inline: auto;
  min-height: clamp(60px, 5.84vw, 84px);
  padding-left: clamp(20px, 3.9vw, 56px);
  padding-right: clamp(20px, 5.28vw, 76px);
}
.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 0;
  flex: 0 0 auto;
}
.site-header__logo img { width: clamp(158px, 17.37vw, 250px); height: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.13vw, 45px);
}
.site-nav__link {
  display: inline-block;
  padding: 13px 2px;
  color: var(--white);
  font-size: var(--fs-btn);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease;
}
.site-nav__link:hover { opacity: .75; }
.site-nav__link.is-active { font-weight: 700; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 11px 9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: clamp(440px, 41.67vw, 600px);
  padding-block: clamp(52px, 6.11vw, 88px) clamp(118px, 10.77vw, 155px);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Velo azul del hero. Va en degradado, no plano: arriba tiene que tapar
   bastante para que el titular se lea, pero abajo se aligera para que se vea
   el apretón de manos. Con el velo plano al 78 % la fotografía desaparecía. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(0, 12, 39, .86) 0%,
    rgba(0, 12, 39, .82) 34%,
    rgba(0, 12, 39, .60) 70%,
    rgba(0, 12, 39, .50) 100%);
}
.hero__inner { max-width: 1240px; }

.hero__title {
  max-width: 1010px;
  margin: 5px auto 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.138;
  font-weight: 700;
}
.hero__lead {
  max-width: 810px;
  margin: clamp(12px, 1.16vw, 17px) auto 0;
  font-size: var(--fs-lead);
  line-height: 1.2308;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.25vw, 18px);
  margin-top: clamp(28px, 2.97vw, 43px);
}

/* =========================================================
   FRANJA DE VALORES (superpuesta al hero)
   ========================================================= */
.stats-wrap {
  position: relative;
  z-index: 10;
  margin-top: clamp(-122px, -8.47vw, -80px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  max-width: 1171px;
  margin-inline: auto;
  padding: clamp(20px, 2.43vw, 35px) clamp(10px, 1.6vw, 24px) clamp(24px, 3.13vw, 45px);
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, .69vw, 10px);
  padding-inline: clamp(6px, 1.4vw, 20px);
  text-align: center;
  --icon-size: clamp(34px, 5.7vw, 82px);
}
.stats__item + .stats__item { border-left: 1px solid var(--navy); }
.stats__icon {
  width: auto;
  /* --ratio alinea la base de los tres iconos aunque tengan distinta altura */
  height: calc(var(--ratio, 1) * var(--icon-size));
  margin-top: calc((1 - var(--ratio, 1)) * var(--icon-size));
  color: var(--navy);
}
.stats__label {
  font-size: var(--fs-btn);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

/* =========================================================
   UNA FIRMA QUE HABLA CLARO
   ========================================================= */
.firma {
  position: relative;
  isolation: isolate;
  padding-block: clamp(34px, 3.89vw, 56px) clamp(40px, 3.96vw, 57px);
  overflow: hidden;
}
.firma__decor {
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: -1;
  width: min(475px, 34%);
  background: url('/assets/img/decorativo.webp') center / cover no-repeat;
  opacity: .2;
  pointer-events: none;
}
.firma__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 4.86vw, 70px);
  max-width: 1215px;   /* 1167 px de contenido + 2 × 24 px */
}
.firma__title { margin-bottom: clamp(20px, 2.38vw, 34px); }
.firma__body {
  margin-bottom: clamp(18px, 1.7vw, 25px);
  text-align: justify;
  text-justify: inter-word;
}
.firma__figure img {
  width: 100%;
  aspect-ratio: 549 / 463;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* =========================================================
   ÁREAS DE PRÁCTICA
   ========================================================= */
.areas {
  padding-block: clamp(44px, 5.42vw, 78px) clamp(46px, 5.28vw, 76px);
  background: var(--navy);
}
.areas__title {
  margin-top: 5px;
  text-align: center;
}
.areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.47vw, 50px);
  margin-top: clamp(30px, 3.6vw, 52px);
}
.area-card {
  min-height: clamp(0px, 14.59vw, 210px);
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.area-card__media {
  position: relative;
  flex: 0 0 clamp(84px, 10.56vw, 152px);
  width: clamp(84px, 10.56vw, 152px);
}
.area-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.area-card__body {
  padding: clamp(22px, 2.85vw, 41px) clamp(20px, 3.47vw, 50px) clamp(24px, 3.06vw, 44px) clamp(20px, 3.06vw, 44px);
}
.area-card__title {
  font-size: var(--fs-h3);
  line-height: 1.2222;
  font-weight: 700;
  color: var(--navy);
}
.area-card__text {
  margin-top: clamp(8px, .81vw, 12px);
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.areas__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(20px, 2.2vw, 32px);
  margin-top: clamp(34px, 3.4vw, 49px);
  padding-inline: clamp(0px, 3.9vw, 56px);
}
.areas__cta-text {
  max-width: 680px;
  font-size: var(--fs-h3);
  line-height: 1.2222;
  font-weight: 700;
  color: var(--white);
}
.areas__cta .btn { font-size: var(--fs-btn-lg); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros {
  padding-top: clamp(44px, 4.65vw, 67px);
  background: var(--white);
}
.nosotros__title {
  margin-top: 5px;
  text-align: center;
}
.nosotros__body {
  max-width: 746px;
  margin: clamp(18px, 1.78vw, 26px) auto 0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.2273;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 5.76vw, 83px);
  max-width: 952px;
  margin: clamp(40px, 4.3vw, 62px) auto 0;
}
.values__item {
  padding-left: clamp(14px, 1.18vw, 17px);
  border-left: 4px solid var(--navy);
}
.values__title {
  font-size: var(--fs-body);
  line-height: 1.2;
  font-weight: 700;
}
.values__text {
  font-size: var(--fs-sm);
  line-height: 1.2;
}

/* --- Tarjeta del socio director --- */
.socio {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(24px, 3.96vw, 57px);
  margin-top: clamp(48px, 5.67vw, 82px);
  margin-bottom: clamp(-140px, -9.72vw, -50px);
  padding: clamp(28px, 3.61vw, 52px) clamp(24px, 3.82vw, 55px) clamp(28px, 3.19vw, 46px) clamp(24px, 3.13vw, 45px);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-panel);
}
.socio__figure { flex: 0 0 auto; }
.socio__figure img {
  width: clamp(160px, 27.78vw, 400px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.socio__body { margin-top: clamp(-10px, -.69vw, 0px); }
.socio__name {
  font-family: var(--font-display);
  font-size: var(--fs-h2-sm);
  line-height: 1.1458;
  font-weight: 700;
}
.socio__role {
  margin-top: clamp(10px, 1.08vw, 16px);
  font-size: var(--fs-btn);
  line-height: 1.2;
  text-transform: uppercase;
}
.socio__text {
  margin-top: clamp(16px, 1.98vw, 29px);
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: justify;
  text-justify: inter-word;
}
.socio__text + .socio__text { margin-top: 0; }
.socio__text--spaced { margin-top: clamp(16px, 1.67vw, 24px) !important; }

/* =========================================================
   PROCESO
   ========================================================= */
.proceso {
  position: relative;
  isolation: isolate;
  padding-block: clamp(115px, 17.36vw, 250px) clamp(46px, 6.67vw, 96px);
  background: #FDFDFD;
}
.proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/img/columnas-1440.webp') center top / cover no-repeat;
  opacity: .58;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
          mask-image: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
.proceso__title {
  margin-top: 5px;
  text-align: center;
}
.proceso__card {
  max-width: 1171px;
  margin: clamp(40px, 4.79vw, 69px) auto 0;
  padding: clamp(24px, 1.88vw, 27px) clamp(20px, 4.31vw, 62px) clamp(28px, 4.03vw, 58px);
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 6.39vw, 92px);
}
.steps__item { position: relative; }
.steps__num {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.67vw, 24px);
  font-family: var(--font-display);
  font-size: var(--fs-num);
  line-height: 1.05;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  color: var(--navy);
}
.steps__item:not(:last-child) .steps__num::after {
  content: '';
  flex: 1 1 auto;
  min-width: 0;
  height: 15px;
  margin-right: clamp(-81px, -5.63vw, -18px);
  background: currentColor;
  color: var(--navy-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 15' preserveAspectRatio='none'%3E%3Cpath d='M0 7.25h236M229.5 1.5 236 7.5l-6.5 6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 15' preserveAspectRatio='none'%3E%3Cpath d='M0 7.25h236M229.5 1.5 236 7.5l-6.5 6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.steps__title {
  margin-top: clamp(2px, .21vw, 3px);
  font-size: var(--fs-body);
  line-height: 1.2;
  font-weight: 700;
}
.steps__text {
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: justify;
  text-justify: inter-word;
}

.proceso__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 3.4vw, 49px);
  margin-top: clamp(30px, 3.3vw, 48px);
  padding-top: clamp(22px, 2.22vw, 32px);
  border-top: 1px solid var(--navy-soft);
}
.proceso__note {
  max-width: 660px;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: justify;
  text-justify: inter-word;
}

/* =========================================================
   CTA FINAL + FORMULARIO + PIE
   ========================================================= */
.contacto {
  padding-top: clamp(46px, 5.56vw, 80px);
  background: var(--navy);
}
.contacto__title {
  max-width: 1048px;
  margin-inline: auto;
  text-align: center;
}
.contacto__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(20px, 2.2vw, 32px);
  max-width: 945px;
  margin: clamp(40px, 5.76vw, 83px) auto 0;
}
.contacto__cta-text {
  max-width: 465px;
  font-size: var(--fs-cta);
  font-weight: 500;
  line-height: 1.232;
  color: var(--white);
}
.contacto__cta .btn { font-size: var(--fs-btn-lg); }

.form-card {
  max-width: 1193px;
  margin: clamp(48px, 5.28vw, 76px) auto 0;
  padding: clamp(32px, 2.85vw, 41px) clamp(18px, 9.58vw, 138px) clamp(40px, 3.89vw, 56px);
  background: var(--white);
  border-radius: var(--radius-form);
}
.form-card__title { text-align: center; }
.form-card__subtitle {
  margin-top: clamp(12px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.form { margin-top: clamp(26px, 2.7vw, 39px); }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.04vw, 15px) clamp(14px, 2.29vw, 33px);
}
.form__field { position: relative; }

.form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--navy);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__input::placeholder { color: var(--placeholder); opacity: 1; }
.form__input:hover { border-color: #7C8395; }
.form__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(38, 56, 96, .18);
}
.form__input[aria-invalid='true'] { border-color: var(--error); }

.form__select-wrap { position: relative; }
.form__select {
  appearance: none;
  padding-right: 46px;
  color: var(--navy);
  cursor: pointer;
}
.form__select:invalid { color: var(--placeholder); }
.form__select-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  color: var(--placeholder);
  pointer-events: none;
}
.form__textarea {
  height: 86px;
  min-height: 86px;
  margin-top: clamp(12px, 1.04vw, 15px);
  resize: vertical;
}
.form__error {
  margin-top: 6px;
  color: var(--error);
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 500;
}
.form__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 2.01vw, 29px);
}
.form__submit { min-height: 47px; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__consent {
  margin-top: clamp(12px, 1.1vw, 16px);
  font-size: clamp(.8125rem, 1.04vw, .9375rem);
  line-height: 1.4;
  text-align: center;
  color: var(--navy);
}
.form__consent a {
  padding-block: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__consent a:hover { text-decoration: none; }

.form__status {
  margin-top: 16px;
  font-size: var(--fs-sm);
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
}
.form__status:empty { margin-top: 0; }
.form__status[data-state='error'] { color: var(--error); }
.form__status[data-state='ok'] { color: #1E6B41; }

/* --- Pie --- */
.site-footer {
  padding-top: clamp(46px, 5.83vw, 84px);
  padding-bottom: clamp(40px, 5.97vw, 86px);
  background: var(--navy);
  color: var(--white);
}
.site-footer__top {
  display: grid;
  grid-template-columns: .87fr 1fr .99fr;
  align-items: stretch;
}
.site-footer__brand { display: flex; align-items: center; justify-content: center; }
.site-footer__brand img { width: clamp(140px, 15.28vw, 220px); }
.site-footer__col {
  padding-block: 14px;
  padding-left: clamp(20px, 3.3vw, 48px);
  border-left: 1px solid var(--white);
}
.site-footer__heading {
  font-size: var(--fs-btn);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}
.site-footer__list {
  display: grid;
  gap: clamp(14px, 1.39vw, 20px);
  margin-top: clamp(18px, 1.6vw, 23px);
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.site-footer__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(10px, .97vw, 14px);
}
.site-footer__icon {
  width: clamp(18px, 1.53vw, 22px);
  height: clamp(18px, 1.53vw, 22px);
  margin-top: .1em;
  flex: 0 0 auto;
  color: var(--white);
}
.site-footer__list a {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.site-footer__list a:hover { opacity: .75; text-decoration: underline; }
.site-footer__address { max-width: 270px; font-style: normal; }
.site-footer__address a { display: inline; padding-block: 0; margin-block: 0; }
.site-footer__credit strong { font-weight: 800; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1380px;
  margin: clamp(30px, 2.71vw, 39px) auto 0;
  padding-top: clamp(24px, 2.5vw, 36px);
  font-size: var(--fs-sm);
  line-height: 1.2;
  position: relative;
}
.site-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(-70px, -4.86vw, 0px);
  right: clamp(-70px, -4.86vw, 0px);
  height: 1px;
  background: var(--white);
}

/* =========================================================
   ADAPTACIÓN A TABLET Y MÓVIL
   ========================================================= */
/* =========================================================
   PÁGINA LEGAL (aviso de privacidad)
   ========================================================= */
.legal {
  padding-block: clamp(40px, 5.21vw, 75px) clamp(46px, 5.76vw, 83px);
  background: var(--white);
}
.legal__inner { max-width: 908px; }   /* 860 px de texto + respiro */

.legal__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.1406;
  font-weight: 700;
  color: var(--navy);
}
.legal__date {
  margin-top: clamp(8px, .83vw, 12px);
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--navy-soft);
}
.legal__body { margin-top: clamp(28px, 3.06vw, 44px); }

.legal__h2 {
  margin-top: clamp(28px, 2.78vw, 40px);
  font-size: var(--fs-body);
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}
.legal__body > p,
.legal__list {
  margin-top: clamp(10px, 1.11vw, 16px);
  font-size: var(--fs-sm);
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal__list {
  list-style: disc;
  padding-left: 1.4em;
}
.legal__list li + li { margin-top: 6px; }
.legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { text-decoration: none; }
.legal__body code {
  padding: 1px 5px;
  background: var(--field-bg);
  border: 1px solid rgba(38, 56, 96, .14);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}
.legal__back { margin-top: clamp(32px, 3.47vw, 50px); }

/* =========================================================
   MOVIMIENTO
   Dos capas independientes que se componen sin pisarse:
     · transform  → revelado al entrar en pantalla (con transición)
     · translate  → parallax ligado al scroll (sin transición)
   La clase .js la añade un script en línea del <head>: sin JS
   no se oculta nada y la página se ve completa.
   ========================================================= */

/* --- Hero fijo: la fotografía se queda quieta y la sección
       se desliza sobre ella al hacer scroll --- */
@media (min-width: 901px) {
  .hero { clip-path: inset(0); }
  .hero__media { position: fixed; height: 100vh; }
}

/* --- Paralaje de la fotografía del hero siguiendo al ratón ---
   El zoom del 8 % da margen para desplazarla sin que asomen los bordes.
   Solo se activa con ratón: en táctil no hay puntero al que responder y
   el zoom recortaría la foto a cambio de nada. */
.hero__media {
  transform: scale(var(--hero-zoom, 1)) translate3d(var(--mx, 0px), var(--my, 0px), 0);
}
@media (hover: hover) and (pointer: fine) {
  .hero { --hero-zoom: 1.08; }
  .hero__media { will-change: transform; }
}

/* --- Entrada de la cabecera al cargar --- */
.js .site-header__inner > * {
  opacity: 0;
  animation: enterDown .7s var(--ease) both;
}
.js .site-header__inner > *:nth-child(2) { animation-delay: .06s; }
.js .site-header__inner > *:nth-child(3) { animation-delay: .12s; }

@keyframes enterDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

/* --- Entrada del hero al cargar --- */
.js .hero__inner > * {
  opacity: 0;
  transform: translateY(28px);
}
.js .hero.is-in .hero__inner > * {
  animation: enterUp .85s var(--ease) both;
}
/* El H1 es el elemento LCP: apenas se retrasa para no penalizar la métrica.
   El escalonado se percibe igual en el resto del bloque. */
.js .hero.is-in .eyebrow      { animation-delay: 0s; }
.js .hero.is-in .hero__title  { animation-delay: .06s; }
.js .hero.is-in .hero__lead   { animation-delay: .20s; }
.js .hero.is-in .hero__actions{ animation-delay: .32s; }

@keyframes enterUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* El texto del hero se aleja y se desvanece al salir de pantalla. Con la foto
   anclada, esa diferencia de velocidad es la que da sensación de profundidad. */
.hero__inner { translate: 0 var(--py, 0px); }

/* --- Revelado al entrar en pantalla --- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease) var(--delay, 0s),
              transform .85s var(--ease) var(--delay, 0s);
}
.js [data-reveal="left"]   { transform: translateX(-36px); }
.js [data-reveal="right"]  { transform: translateX(36px); }
.js [data-reveal="zoom"]   { transform: scale(.96); }
.js [data-reveal="rise"]   { transform: translateY(44px) scale(.985); }
.js [data-reveal="fade"]   { transform: none; }
.js [data-reveal].is-in    { opacity: 1; transform: none; }

/* --- Revelado escalonado: los hijos entran uno tras otro --- */
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease) var(--delay, 0s),
              transform .8s var(--ease) var(--delay, 0s);
}
.js [data-reveal-group="left"]  > * { transform: translateX(-32px); }
.js [data-reveal-group="right"] > * { transform: translateX(32px); }
.js [data-reveal-group="cards"] > * { transform: translateY(34px) scale(.985); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }

.js [data-reveal-group] > *:nth-child(1) { --delay: 0s; }
.js [data-reveal-group] > *:nth-child(2) { --delay: .09s; }
.js [data-reveal-group] > *:nth-child(3) { --delay: .18s; }
.js [data-reveal-group] > *:nth-child(4) { --delay: .27s; }
.js [data-reveal-group] > *:nth-child(5) { --delay: .36s; }
.js [data-reveal-group] > *:nth-child(6) { --delay: .45s; }
.js [data-reveal-group] > *:nth-child(7) { --delay: .54s; }
.js [data-reveal-group] > *:nth-child(8) { --delay: .63s; }

/* Las flechas del proceso se trazan de izquierda a derecha */
.js .steps__item:not(:last-child) .steps__num::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s var(--ease) .4s;
}
.js .steps.is-in .steps__item:not(:last-child) .steps__num::after { transform: scaleX(1); }

/* Las fotografías entran con un acercamiento muy leve */
.js .socio__figure img,
.js .firma__figure img { transition: transform 1.2s var(--ease); }
.js .socio[data-reveal] .socio__figure img,
.js .firma__figure[data-reveal] img { transform: scale(1.07); }
.js .socio[data-reveal].is-in .socio__figure img,
.js .firma__figure[data-reveal].is-in img { transform: none; }

/* El contador de años cuenta hasta su valor al aparecer. Ancho fijo y cifras
   tabulares para que el texto de alrededor no se mueva mientras corre. */
.stats__count {
  display: inline-block;
  min-width: 3ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- Parallax ligado al scroll (solo escritorio, lo activa el JS) --- */
.firma__decor,
.firma__figure,
.socio__figure { translate: 0 var(--py, 0px); }

/* --- Estados de interacción --- */
.area-card {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .32);
}
.area-card__media img { transition: transform .7s var(--ease); }
.area-card:hover .area-card__media img { transform: scale(1.07); }

.btn { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--white:hover  { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.btn--navy:hover   { box-shadow: 0 10px 24px rgba(38, 56, 96, .32); }

.site-nav__link { position: relative; }
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }

.stats__item { transition: transform .4s var(--ease); }
.stats__item:hover { transform: translateY(-4px); }
.stats__icon { transition: transform .5s var(--ease); }
.stats__item:hover .stats__icon { transform: scale(1.08); }

.values__item { transition: border-color .35s var(--ease), transform .35s var(--ease); }
.values__item:hover { transform: translateX(4px); }

.steps__item { transition: transform .4s var(--ease); }
.steps__item:hover { transform: translateY(-4px); }

.form__input { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.form__input:focus { background: var(--white); }

.site-footer__icon { transition: transform .35s var(--ease); }
.site-footer__list li:hover .site-footer__icon { transform: scale(1.15); }
.site-footer__legal,
.site-footer__credit a {
  padding-block: 13px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.site-footer__legal:hover,
.site-footer__credit a:hover { opacity: .75; text-decoration: underline; }

.site-footer__brand img { transition: opacity .4s var(--ease); }
.site-footer__brand:hover img { opacity: .82; }


/* =========================================================
   ADAPTACIÓN A TABLET Y MÓVIL (continuación)
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .hero { clip-path: none; }
  .hero__media { position: absolute; height: 100%; }

  /* En pantallas estrechas el desplazamiento lateral empujaría el bloque
     fuera del borde: se convierte en vertical. */
  .js [data-reveal="left"],
  .js [data-reveal="right"],
  .js [data-reveal-group="left"] > *,
  .js [data-reveal-group="right"] > * { transform: translateY(24px); }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 88px 24px 32px;
    background: var(--navy);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__link { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }

  .stats { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid rgba(38, 56, 96, .25); padding-top: 26px; }
  .stats__icon { height: 54px; }

  .firma__inner { grid-template-columns: 1fr; }
  .firma__figure { order: -1; }
  .firma__decor { width: 40%; opacity: .12; }

  .areas__grid { grid-template-columns: 1fr; }
  .areas__cta { flex-direction: column; align-items: flex-start; }
  .areas__cta-text { max-width: none; }

  .values { grid-template-columns: 1fr; gap: 24px; }

  .socio { grid-template-columns: 1fr; justify-items: start; }
  .socio__figure img { width: min(360px, 70vw); }

  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps__item:not(:last-child) .steps__num::after { display: none; }
  .proceso__foot { grid-template-columns: 1fr; }
  .proceso__note { max-width: none; }

  .contacto__cta { flex-direction: column; align-items: flex-start; }
  .contacto__cta-text { max-width: none; }

  .form__row { grid-template-columns: 1fr; }

  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__col { padding-left: 0; padding-top: 28px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
}

@media (max-width: 600px) {
  .area-card { flex-direction: column; }
  .area-card__media { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero__actions .btn { flex: 1 1 auto; }
  .areas__cta .btn, .contacto__cta .btn { width: 100%; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  /* El cliente pide justificado también en móvil. Se activa la partición de
     palabras para que en pantallas estrechas no se abran huecos entre palabras. */
  .area-card__text,
  .nosotros__body,
  .socio__text,
  .steps__text,
  .proceso__note,
  .firma__body,
  .legal__body > p,
  .legal__list { hyphens: auto; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Nada se oculta ni se desplaza: el contenido aparece ya colocado */
  .js [data-reveal],
  .js [data-reveal-group] > *,
  .js .hero__inner > *,
  .js .site-header__inner > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .firma__decor, .firma__figure, .socio__figure, .hero__inner { translate: none !important; }
  .hero { --hero-zoom: 1 !important; }
  .hero__media { transform: none !important; }
  .js .steps__item:not(:last-child) .steps__num::after { transform: scaleX(1) !important; }
  .hero { clip-path: none; }
  .hero__media { position: absolute; height: 100%; }
  .btn:hover, .area-card:hover, .stats__item:hover, .values__item:hover { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero__media, .firma__decor { display: none !important; }
  body { color: #000; background: #fff; }
}
