@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/archivo-latin-v25.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin-v20.woff2') format('woff2');
}

/* ==========================================================================
   Garrido & Ormazábal Abogados — Sistema de diseño "Sello institucional"
   Tinta y hueso · un solo acento azul institucional
   ========================================================================== */

:root {
  /* --- Color: superficies ------------------------------------------------ */
  --bone:        #F3F1EC;   /* fondo base                                    */
  --bone-raised: #FAF9F6;   /* tarjetas sobre el fondo                       */
  --paper:       #FFFFFF;
  --ink:         #14181C;   /* tinta: texto principal y bloques sólidos      */
  --ink-soft:    #2B3238;   /* tinta sobre bloque oscuro, un punto más clara */

  /* --- Color: texto ------------------------------------------------------ */
  --fg:          #14181C;   /* 15.8:1 sobre hueso                            */
  --fg-muted:    #575F6B;   /*  5.7:1 sobre hueso                            */
  --fg-invert:   #F3F1EC;
  --fg-invert-muted: #A9B0B8;

  /* --- Color: acento ----------------------------------------------------- */
  --blue:        #143D6B;   /* azul del logo entregado por el estudio         */
  --blue-hover:  #24507D;
  --blue-wash:   #E9EDF2;

  /* --- Color: líneas ----------------------------------------------------- */
  --rule:        #D8D4CB;   /* filete sobre hueso                            */
  --rule-strong: #B9B4A8;
  --rule-invert: rgba(243, 241, 236, 0.22);

  --focus:       #1B3A5C;

  /* --- Tipografía -------------------------------------------------------- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Escala fluida: 12 14 16 17 20 25 31 39 49 61 */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --t-xl:   clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --t-2xl:  clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --t-3xl:  clamp(2.75rem, 1.7rem + 4.4vw, 5rem);

  /* --- Ritmo espacial (4/8) ---------------------------------------------- */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 68ch;
  --container: 1360px;

  /* --- Movimiento -------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* --- Capas ------------------------------------------------------------- */
  --z-base: 0; --z-sticky: 40; --z-nav: 100; --z-overlay: 1000;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Sobre bloque oscuro el foco necesita invertirse para seguir siendo visible */
:is(.block--ink, .block--blue) :where(a, button, input, textarea, select):focus-visible {
  outline-color: var(--fg-invert);
}

::selection { background: var(--blue); color: var(--fg-invert); }

/* ==========================================================================
   Utilidades de layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, var(--s-9)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-8)); }

.skip-link {
  position: absolute;
  left: var(--s-4); top: var(--s-4);
  transform: translateY(-200%);
  z-index: var(--z-overlay);
  background: var(--ink);
  color: var(--fg-invert);
  padding: var(--s-3) var(--s-5);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Rótulo de sección: versalita con filete, el tic institucional del sistema */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-5);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
:is(.block--ink, .block--blue) .eyebrow { color: var(--fg-invert-muted); }
:is(.block--ink, .block--blue) .eyebrow::after { background: var(--rule-invert); }

.lede {
  font-size: var(--t-lg);
  line-height: 1.45;
  letter-spacing: -0.012em;
  max-width: 46ch;
  color: var(--fg);
}

.prose { max-width: var(--measure); color: var(--fg-muted); }
.prose > * + * { margin-top: var(--s-4); }

/* ==========================================================================
   Marca
   ========================================================================== */

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: clamp(180px, 18vw, 220px); height: auto; }
.site-footer .brand img { width: 220px; }

/* ==========================================================================
   Navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--rule); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-muted);
  padding: var(--s-2) 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--fg); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__toggle:hover { border-color: var(--ink); }
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1130px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-top: 1px solid var(--rule);
    padding: var(--s-2) var(--gutter) var(--s-6);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__links[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link {
    /* En línea, el filete medía sólo el ancho del texto y el área táctil
       quedaba reducida a la palabra. En bloque ocupa toda la fila. */
    display: block;
    padding: var(--s-4) 0;
    font-size: var(--t-md);
    border-bottom: 1px solid var(--rule-strong);
  }
  .nav__link::after { display: none; }
  .nav__links .btn { margin-top: var(--s-5); justify-content: center; }
}

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--fg-invert); border-color: var(--ink); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--fg-invert); }

.btn--invert { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--invert:hover { background: transparent; color: var(--fg-invert); border-color: var(--fg-invert); }

.btn--quiet {
  padding: 0; min-height: 0; border: 0;
  background: none; color: var(--blue);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.btn--quiet:hover { color: var(--ink); }

/* ==========================================================================
   Hero — a sangre, oscuro, sin fotografía de acompañamiento
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(28rem, 74vh, 42rem);
  padding-block: clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

/* La imagen es fondo y atmósfera, no ilustración: va detrás de un velo que
   garantiza el contraste del texto pase lo que pase con la foto. */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  object-position: 67% center;
}
.hero__bg--two { opacity: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(20,24,28,.92) 0%, rgba(20,24,28,.83) 32%, rgba(20,24,28,.48) 56%, rgba(20,24,28,.06) 100%),
    linear-gradient(to top, rgba(20,24,28,0.55) 0%, rgba(20,24,28,0) 40%);
}

.hero__inner { width: 100%; max-width: var(--container); }
.hero .eyebrow { color: #D7DADE; }

.hero__title {
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  max-width: 21ch;
}
/* El <em> baja el remate a una segunda línea, en gris, como en Cariola. */
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--fg-invert-muted);
}
.hero__brand {
  width: min(100%, 38rem);
  margin-block: .5rem 0;
}
.hero__brand svg {
  width: 100%;
  height: auto;
}

.hero__lede {
  margin-top: var(--s-6);
  max-width: 44ch;
  font-size: var(--t-md);
  line-height: 1.5;
  color: #D7DADE;
}

.hero .btn { margin-top: clamp(2rem, 4vw, 2.75rem); }

@media (max-width: 700px) {
  .hero { min-height: clamp(24rem, 68vh, 34rem); }
  .hero__bg { object-position: 72% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(20,24,28,.63) 0%, rgba(20,24,28,.65) 55%, rgba(20,24,28,.84) 100%);
  }
}

/* ==========================================================================
   Bloques de color plano
   ========================================================================== */

.block--ink { background: var(--ink); color: var(--fg-invert); }
:is(.block--ink, .block--blue) h2, :is(.block--ink, .block--blue) h3 { color: var(--fg-invert); }
:is(.block--ink, .block--blue) .prose { color: var(--fg-invert-muted); }
/* Todo bloque oscuro comparte las reglas de inversión: escribirlas sólo para
   --ink dejó el rótulo y el cuerpo del bloque azul en 1.8:1. */
.block--blue { background: var(--blue); color: var(--fg-invert); }
.block--wash { background: var(--blue-wash); }

.statement {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

/* ==========================================================================
   Grilla bento
   ========================================================================== */

.bento {
  display: grid;
  /* Siete áreas + una celda de contacto = ocho: cuatro columnas cierran la
     grilla sin celdas de relleno. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.bento__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 13rem;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  background: var(--bone-raised);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.bento__cell::before { content: ""; width: 2.25rem; height: 1px; background: var(--blue); }
.bento__cell--cta::before { background: var(--fg-invert); }
a.bento__cell:hover { background: var(--ink); color: var(--fg-invert); }
a.bento__cell:hover .bento__num,
a.bento__cell:hover .bento__desc { color: var(--fg-invert-muted); }

.bento__cell--media { padding: 0; overflow: hidden; }
.bento__cell--media img { width: 100%; height: 100%; min-height: 17rem; object-fit: cover; }

.bento__cell--cta { background: var(--ink); color: var(--fg-invert); }
.bento__cell--cta .bento__title { color: var(--fg-invert); }
.bento__cell--cta .bento__desc,
.bento__cell--cta .bento__num { color: var(--fg-invert-muted); border-bottom-color: var(--rule-invert); }

.bento__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.bento__cell:hover .bento__num { border-bottom-color: var(--rule-invert); }
.bento__title {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: var(--s-4);
}
.bento__desc { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.6; }

@media (max-width: 1180px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .bento { grid-template-columns: minmax(0, 1fr); } .bento__cell { min-height: 0; } }
.bento--experience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .bento--experience { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Equipo
   ========================================================================== */

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }

.person__figure { position: relative; background: var(--rule); }
/* A color: las dos fotos son de la misma sesión —misma oficina, mismo fondo—
   así que conviven sin necesidad de desaturarlas. */
.person__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.person__role {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--fg-invert);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: var(--s-3) var(--s-5);
}
.person__name { font-size: var(--t-xl); margin-top: var(--s-5); }
.person__creds { margin-top: var(--s-4); }
.person__creds li {
  display: flex; gap: var(--s-4);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.person__creds b { flex: none; width: 8.5rem; font-weight: 600; color: var(--fg); }
.person__contact { display: inline-flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--t-sm); }

@media (max-width: 800px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Casos y listas
   ========================================================================== */

.cases { border-top: 1px solid var(--rule); }
.case {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--s-6);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
.case--area { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); scroll-margin-top: 7rem; }
.case__tag {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
  padding-top: 0.35rem;
}
.case__tag--num {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0;
}
.case__title { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.018em; line-height: 1.22; }
.case__desc { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.65; }
.case--breve .case__rol { margin-top: 0; }
.case__rol {
  display: inline-block; margin-top: var(--s-4);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--rule-strong);
  padding: 0.25rem 0.6rem;
}
@media (max-width: 860px) {
  .case { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .case__tag { padding-top: 0; }
}

.editorial-image { aspect-ratio: 16 / 7; overflow: hidden; background: var(--blue-wash); }
.editorial-image--shallow { aspect-ratio: 16 / 6; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .editorial-image, .editorial-image--shallow { aspect-ratio: 4 / 3; }
}

/* Fila de cifras del bloque de protección de datos */
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule-invert);
}
.figures b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.figures span {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--fg-invert-muted);
}
@media (max-width: 700px) {
  .figures { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .figures li { padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule-invert); }
  .figures li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Nota de atribución normativa: rigor, no letra chica de descargo */
.nota-norma {
  max-width: 62ch;
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--fg-muted);
}

/* Listado de prestaciones dentro de cada área */
.checklist { display: flex; flex-direction: column; gap: var(--s-3); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--fg-muted);
}
/* Un filete corto en vez de un visto: el visto se lee como tabla de precios. */
.checklist li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1.5px;
  margin-top: 0.72em;
  background: var(--blue);
}

/* Nómina de clientes: columnas densas, sin viñetas */
.roster { columns: 3; column-gap: var(--s-7); }
.roster li {
  break-inside: avoid;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
@media (max-width: 860px) { .roster { columns: 2; } }
@media (max-width: 520px) { .roster { columns: 1; } }

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* La lista de contacto aparece sobre hueso (página de contacto) y sobre tinta
   (bloque de cierre). Por defecto va en claro y el bloque oscuro la invierte;
   al revés, los rótulos quedaban en 2.3:1 sobre fondo claro. */
.contact-list li { padding: var(--s-5) 0; border-top: 1px solid var(--rule); }
.contact-list dt {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
:is(.block--ink, .block--blue) .contact-list li { border-top-color: var(--rule-invert); }
:is(.block--ink, .block--blue) .contact-list dt { color: var(--fg-invert-muted); }
/* El correo del estudio es una cadena larga sin espacios: sin esto desborda
   la caja en pantallas angostas. */
.contact-list dd {
  margin: 0;
  font-size: var(--t-md);
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) { .contact-list dd { font-size: var(--t-base); } }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field .req { color: var(--blue); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--fg);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.8rem 1rem;
  min-height: 48px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--fg-muted); }
.field__help { font-size: var(--t-xs); color: var(--fg-muted); }
.field__error { font-size: var(--t-xs); color: #A31515; font-weight: 500; display: none; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #A31515; }
.field[data-invalid="true"] .field__error { display: block; }

.form-note { font-size: var(--t-xs); color: var(--fg-muted); margin-top: var(--s-4); max-width: 44ch; }
.form-note[data-state="success"] { color: #23513b; font-weight: 600; }
.form-note[data-state="error"] { color: #a31515; font-weight: 600; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field[data-invalid="true"] select { border-color: #a31515; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--fg-invert); padding-block: var(--s-7) var(--s-5); }
.footer-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule-invert);
}
.footer-compact p { font-size: var(--t-sm); line-height: 1.65; color: var(--fg-invert-muted); }
.footer-compact__social { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-compact a { font-size: var(--t-sm); color: var(--fg-invert); }
.footer-compact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--fg-invert-muted);
}
@media (max-width: 900px) { .footer-compact { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* ==========================================================================
   Movimiento — entrada escalonada, desactivable
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-drift 12s linear infinite alternate; }
  .hero__bg--two {
    animation: hero-drift-reverse 12s linear infinite alternate, hero-crossfade 14s ease-in-out infinite;
  }
  .hero__inner > * { animation: hero-arrive 800ms var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: 100ms; }
  .hero__inner > :nth-child(3) { animation-delay: 220ms; }
  .hero__inner > :nth-child(4) { animation-delay: 340ms; }
  .editorial-image img { animation: editorial-drift 24s ease-in-out infinite alternate; }
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  }
  [data-reveal][data-visible="true"] { opacity: 1; transform: none; }
}
@keyframes hero-drift {
  from { transform: scale(1.12) translate(3%, 1%); }
  to { transform: scale(1.28) translate(-3%, -1%); }
}
@keyframes hero-drift-reverse {
  from { transform: scale(1.28) translate(-3%, -1%); }
  to { transform: scale(1.12) translate(3%, 1%); }
}
@keyframes hero-crossfade { 0%, 18%, 82%, 100% { opacity: 0; } 32%, 68% { opacity: 1; } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes editorial-drift { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .nav__toggle, .hero__bg, .btn { display: none; }
  body { background: #fff; color: #000; }
}
