/**
 * Pinch of Blonde — sitio estático.
 *
 * Paleta: los seis colores exactos de `constants/theme.ts` (MARCA), sin
 * inventar ninguno nuevo. Dos fondos, cada uno con su propia tinta medida:
 *
 *   ── Fondo crema (páginas de texto: soporte, privacidad)
 *   `--crema` #EFE4C9, luminancia relativa 0.7783.
 *   Sobre crema, `--marron` #4F3117 (luminancia 0.0392) da **9.29:1** — pasa
 *   AAA (7:1) para cuerpo de texto, no sólo AA. `--tinta` #1C1C1A
 *   (luminancia 0.0115) da **13.46:1** — se usa en los títulos.
 *   (Cálculo WCAG 2.1 manual: linealizar cada canal sRGB, L = 0.2126 R +
 *   0.7152 G + 0.0722 B, contraste = (L1+0.05)/(L2+0.05).)
 *
 *   ── Fondo azul (portada `body.inicio`, y `header.cabecera` / `footer.pie`
 *      en las tres páginas)
 *   Es el mismo `MARCA.azul` #6E8295 que usa la app como fondo de pantalla,
 *   y la tinta que lleva encima es la misma que ya está verificada y en uso
 *   en `constants/theme.ts` (`POB.onGround`): #121211 a **4.72:1** — AA
 *   limpio para cuerpo de texto. No se remide aquí: es el mismo fondo, la
 *   misma tinta, el mismo número, y moverlo sería deshacer una decisión de
 *   dirección ya tomada para la app.
 *
 *   `--crema` sobre este azul es la pareja que `theme.ts` descarta por
 *   nombre — 3.14:1, falla AA — así que el pie de página **no** puede llevar
 *   texto crema, aunque sea sobre un footer que visualmente "parece" oscuro.
 *   `.pie` entero hereda `--on-azul`, para que hasta un nodo de texto suelto
 *   (el separador ` · ` de `privacidad.html`) quede a 4.72:1 sin que haga
 *   falta seleccionarlo aparte.
 *
 *   ── El aviso `mark.pendiente`
 *   Fondo `--ladrillo` #84322C (luminancia 0.0737), texto `--crema`
 *   (luminancia 0.7783): **6.70:1**. Ladrillo es la familia de aviso/peligro
 *   de la app (`terracotta`), así que el tono ya se lee como "atención" antes
 *   de leer la palabra.
 *
 * Nada de esto se sube a un CDN: las tres familias de Montserrat que hacen
 * falta (Regular, Medium y SemiBold) están auto-alojadas en `marca/fuentes/`,
 * así que cargar esta hoja no dispara ninguna petición a terceros. Ver el
 * bloque de @font-face más abajo para la razón.
 */

@font-face {
  font-family: 'Montserrat';
  src: url('/marca/fuentes/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/marca/fuentes/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/marca/fuentes/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --crema: #efe4c9;
  --tinta: #1c1c1a;
  --oro: #cc962b;
  --marron: #4f3117;
  --ladrillo: #84322c;
  --azul: #6e8295;
  --on-azul: #121211; /* MARCA.azul + esta tinta = POB.onGround, 4.72:1 */

  --fuente: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.5;
}

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

/* ── header.cabecera / footer.pie — comunes a las tres páginas ───────── */

.cabecera,
.pie {
  background: var(--azul);
  padding: 20px clamp(20px, 6vw, 48px);
}

.cabecera {
  display: flex;
}

.marca {
  display: inline-block;
}

.marca img {
  width: 168px;
}

.pie {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--on-azul);
}

.pie a {
  color: var(--on-azul);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 18, 17, 0.35);
}

.pie a:hover,
.pie a:focus-visible {
  border-bottom-color: var(--on-azul);
}

/* ── body.documento — soporte.html y privacidad.html ──────────────────── */

body.documento {
  background: var(--crema);
  color: var(--marron);
}

body.documento main {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 8vw, 56px) 20px clamp(56px, 10vw, 96px);
}

.texto-legal {
  width: 100%;
  max-width: 38rem; /* ~65 caracteres por línea con Montserrat a 1rem */
}

.texto-legal h1 {
  color: var(--tinta);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}

.texto-legal p.fecha {
  color: var(--marron);
  opacity: 0.75;
  font-size: 0.875rem;
  margin: 0 0 32px;
}

.texto-legal h2 {
  color: var(--tinta);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 12px;
}

.texto-legal h3 {
  color: var(--tinta);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 24px 0 8px;
}

.texto-legal p,
.texto-legal li {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.texto-legal ul,
.texto-legal ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.texto-legal li {
  margin-bottom: 8px;
}

.texto-legal a {
  color: var(--marron);
  text-decoration-color: rgba(79, 49, 23, 0.4);
  text-underline-offset: 3px;
}

.texto-legal a:hover,
.texto-legal a:focus-visible {
  text-decoration-color: var(--marron);
}

.texto-legal strong {
  font-weight: 600;
  color: var(--tinta);
}

/**
 * `mark.pendiente` — un vacío del estudio, no un error de estilo.
 *
 * Tiene que ser imposible publicar la página sin verlo: fondo sólido de
 * ladrillo (la familia de aviso de la app), texto en crema, mayúsculas y
 * peso fuerte. Sigue siendo legible —6.70:1— porque un aviso que nadie puede
 * leer tampoco sirve.
 */
mark.pendiente {
  display: inline;
  background: var(--ladrillo);
  color: var(--crema);
  font-weight: 600;
  font-style: normal;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── body.inicio — index.html, la portada ─────────────────────────────── */

body.inicio {
  background: var(--azul);
  color: var(--on-azul);
  min-height: 100vh;
  min-height: 100svh; /* no queda centrado bajo la barra del navegador móvil */
  display: flex;
  flex-direction: column;
}

body.inicio main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: clamp(32px, 10vw, 72px) clamp(20px, 6vw, 48px);
  max-width: 34rem;
  margin-inline: auto;
}

body.inicio .marca img {
  width: clamp(240px, 60vw, 420px);
}

.eslogan {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.contactos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contactos a {
  display: inline-block;
  padding-block: 10px;
  color: var(--on-azul);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgba(18, 18, 17, 0.35);
  text-underline-offset: 4px;
  border-bottom: none;
}

.contactos a:hover,
.contactos a:focus-visible {
  text-decoration-color: var(--on-azul);
}

.contactos .etiqueta {
  display: block;
  color: var(--on-azul);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.25;
  margin-bottom: 4px;
}

body.inicio .pie {
  background: transparent;
  padding-top: 0;
}
