/* Sitio de FABOgados · Fuentes y Abogados.

   Colores de la casa (Contenido/estudio/src/marca/tokens.ts, que a su vez
   salen del sitio de FOJA UNO). FABO le habla a personas con un problema
   legal: cabecera guinda y cálida, cuerpo en papel para leer sin cansarse.

   Sin JavaScript, sin cookies, sin recursos de terceros. */

:root {
  --guinda: #8E1B2E;
  --guinda-oscura: #6E1424;
  --guinda-noche: #4E0F1B;
  --rosa: #E7B9BF;
  --rosa-tenue: #F7EDEE;
  --papel: #FAF7F6;
  --hueso: #F6F3F2;
  --tinta: #16110F;
  --gris: #6A625F;
  --borde: #E4DEDC;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--guinda); text-underline-offset: 0.18em; }
a:hover { color: var(--guinda-oscura); }
a:focus-visible { outline: 2px solid var(--guinda); outline-offset: 2px; border-radius: 2px; }

.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinta); color: var(--papel); padding: 0.5rem 1rem;
}
.saltar:focus { left: 1rem; top: 1rem; z-index: 10; }

.ancho { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

/* Cabecera */
.barra {
  background: radial-gradient(circle at 50% 40%, var(--guinda) 0%, var(--guinda-oscura) 60%, var(--guinda-noche) 100%);
  color: var(--papel);
}
.barra .ancho { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--papel); text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 600; letter-spacing: 0.01em; }
.logo i { font-weight: 400; color: var(--rosa); }
.logo:hover { color: var(--papel); }
.barra nav a { color: var(--rosa); font-size: 0.95rem; text-decoration: none; }
.barra nav a:hover { color: var(--papel); text-decoration: underline; }

/* Documento */
.documento { padding: 2.5rem 0 3rem; }
.documento h1 {
  font-family: var(--serif); font-weight: 600; color: var(--guinda-oscura);
  font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 0.4rem;
}
.documento .sub { font-family: var(--serif); font-size: 1.2rem; color: var(--gris); margin: 0 0 0.25rem; }
.fecha-doc { color: var(--gris); font-size: 0.95rem; margin: 0 0 2rem; }
.documento h2 {
  font-family: var(--serif); font-weight: 600; color: var(--guinda);
  font-size: 1.45rem; line-height: 1.25; margin: 2.6rem 0 0.8rem;
  padding-top: 1.2rem; border-top: 1px solid var(--borde);
  scroll-margin-top: 1rem;
}
.documento h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.5rem; }
.documento p { margin: 0 0 1rem; }
.documento ol, .documento ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.documento li { margin-bottom: 0.45rem; }
.documento b, .documento strong { font-weight: 600; }

.en-breve {
  background: var(--rosa-tenue); border-left: 4px solid var(--guinda);
  border-radius: 0 8px 8px 0; padding: 1.2rem 1.3rem 0.4rem; margin: 0 0 2rem;
}
.en-breve h2 { border: 0; padding: 0; margin: 0 0 0.8rem; font-size: 1.25rem; }
.en-breve dl { margin: 0; }
.en-breve dt { font-weight: 600; margin-top: 0.6rem; }
.en-breve dd { margin: 0.15rem 0 0.8rem; }

.indice { background: var(--hueso); border: 1px solid var(--borde); border-radius: 8px; padding: 1rem 1.3rem; margin: 0 0 1rem; }
.indice p { margin: 0 0 0.4rem; font-weight: 600; }
.indice ol { margin: 0; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; }
.indice li { margin-bottom: 0.3rem; break-inside: avoid; }

.clave { font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; background: var(--hueso); border: 1px solid var(--borde); border-radius: 4px; padding: 0 0.3rem; }

/* Portada */
.portada { padding: 3.5rem 0 3rem; }
.portada h1 { font-family: var(--serif); font-weight: 600; color: var(--guinda-oscura); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.12; margin: 0 0 1rem; }
.portada .lema { font-size: 1.15rem; color: var(--gris); margin: 0 0 2rem; max-width: 34rem; }
.boton {
  display: inline-block; background: var(--guinda); color: var(--papel);
  font-weight: 600; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 999px;
}
.boton:hover { background: var(--guinda-oscura); color: var(--papel); }
.datos { margin-top: 2.5rem; color: var(--gris); font-size: 0.98rem; }
.datos p { margin: 0 0 0.4rem; }

/* Pie */
.pie { border-top: 1px solid var(--borde); background: var(--hueso); color: var(--gris); font-size: 0.9rem; padding: 1.5rem 0 2rem; }
.pie p { margin: 0 0 0.4rem; }

@media print {
  .barra, .pie, .indice, .saltar { display: none; }
  body { background: #fff; font-size: 11pt; }
  .documento { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
