/* ── Thim · sitio de transición ──────────────────────────────────────────────
   Provisional: mismo contenido que el sitio de Hostinger, sin WordPress.
   Sale cuando llegue la Etapa 3 de marca y se construya el sitio en Astro.   */

@font-face {
  font-family: "Instrument Sans";
  src: url("InstrumentSans-Variable.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:       #202A44;
  --navy-suave: #3B4763;
  --tinta:      #1A1F2E;
  --texto:      #333A4B;
  --tenue:      #6B7488;
  --linea:      #DDDFE5;
  --papel:      #FBFBF9;
  --papel-alt:  #F4F4F1;

  --medida:  62ch;
  --ancho:   1120px;
  --aire:    clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.envoltura { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

/* ── Tipografía ───────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--tinta); font-stretch: 92%; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem);   font-weight: 600; letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.017em; }
h3 { font-size: 1.13rem; font-weight: 600; font-stretch: 100%; letter-spacing: -.005em; }
p  { margin: 0 0 1.15em; max-width: var(--medida); }
p:last-child { margin-bottom: 0; }
a  { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* La etiqueta de sección: mayúsculas SIN condensar y con tracking moderado.
   Condensar al 75% y separar a la vez es lo que hacía que se leyeran raras. */
.etiqueta {
  font-size: .715rem; font-weight: 600; font-stretch: 100%;
  letter-spacing: .085em; text-transform: uppercase; color: var(--tenue);
  margin: 0 0 1.1rem;
}

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.cabecera > .envoltura {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.marca img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.1rem); }
.nav a {
  font-size: .9rem; font-weight: 500; color: var(--texto);
  text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .3em; }
.nav .cta {
  border: 1px solid var(--navy); color: var(--navy);
  padding: .5rem 1.05rem; font-weight: 600;
}
.nav .cta:hover { background: var(--navy); color: #fff; text-decoration: none; }
@media (max-width: 620px) { .nav .oculta-movil { display: none; } }

/* ── Secciones ────────────────────────────────────────────────────────────── */
section { border-top: 1px solid var(--linea); }
section:first-of-type { border-top: 0; }
.bloque { padding-block: var(--aire); }
/* Rejilla editorial: etiqueta a la izquierda, contenido en columna medida. */
.rejilla { display: grid; gap: clamp(1.6rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .rejilla { grid-template-columns: 200px minmax(0, 1fr); } }

.hero { padding-block: clamp(4.5rem, 11vw, 9rem) var(--aire); }
.hero h1 { max-width: 17ch; }
.entradilla {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem); color: var(--navy-suave);
  max-width: 54ch; margin-top: 1.6rem; font-stretch: 96%;
}

/* Los tres frentes */
.frentes { display: grid; gap: 0; margin-top: .5rem; border-top: 1px solid var(--linea); }
@media (min-width: 760px) { .frentes { grid-template-columns: repeat(3, 1fr); } }
.frente { padding: 1.7rem 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 760px) {
  .frente { padding: 1.9rem 1.8rem 1.9rem 0; border-bottom: 0; border-right: 1px solid var(--linea); }
  .frente:last-child { border-right: 0; padding-right: 0; }
  .frente + .frente { padding-left: 1.8rem; }
}
.frente .indice {
  font-size: .7rem; font-weight: 600; letter-spacing: .085em;
  text-transform: uppercase; color: var(--tenue); display: block; margin-bottom: .5rem;
}
.frente p { font-size: .96rem; margin-top: .45rem; }

/* Las tres capas */
.capas { list-style: none; margin: 0; padding: 0; }
.capa { padding: 1.5rem 0; border-top: 1px solid var(--linea); }
.capa:first-child { border-top: 0; padding-top: 0; }
.capa p { margin-top: .4rem; }

/* Cita */
.cita {
  margin: 0; padding-left: 1.35rem; border-left: 2px solid var(--navy);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--tinta);
  font-stretch: 96%; max-width: 56ch;
}

/* Banda de contacto */
.banda { background: var(--navy); color: #E8EAF0; border-top: 0; }
.banda h2 { color: #fff; }
.banda .etiqueta { color: #97A0B8; }
.banda a { color: #fff; }
.datos { list-style: none; margin: 1.9rem 0 0; padding: 0; display: grid; gap: .85rem; }
.datos a { font-size: 1.06rem; font-weight: 500; }

/* ── Pie ──────────────────────────────────────────────────────────────────── */
.pie { background: var(--papel-alt); border-top: 1px solid var(--linea); padding-block: 3rem; }
.pie img { display: block; height: 26px; width: auto; margin-bottom: 1.4rem; }
.pie-filas { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.pie p, .pie address {
  font-size: .87rem; color: var(--tenue); font-style: normal; line-height: 1.6; margin: 0; max-width: 46ch;
}
.pie nav { display: flex; flex-direction: column; gap: .5rem; }
.pie nav a { font-size: .87rem; color: var(--texto); text-decoration: none; }
.pie nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ── Página legal ─────────────────────────────────────────────────────────── */
.legal { padding-block: clamp(3rem, 7vw, 5rem) var(--aire); }
.legal .cuerpo { max-width: 72ch; }
.legal h2 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); margin-top: 2.8rem; }
.legal h3 { margin-top: 1.9rem; }
.legal ul { padding-left: 1.15rem; max-width: var(--medida); }
.legal li { margin-bottom: .4rem; }
.legal .intro { font-size: 1.05rem; color: var(--navy-suave); max-width: 62ch; }
.legal hr { border: 0; border-top: 1px solid var(--linea); margin: 2.6rem 0; }
.volver { display: inline-block; margin-bottom: 2rem; font-size: .88rem; text-decoration: none; color: var(--tenue); }
.volver:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .25em; }

:where(a, button):focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
