/* Identidad editorial de la Auditoría RESET: Playfair Display + DM Sans, ámbar
   comedido sobre fondo oscuro. Tomada de legacy/test.html y legacy/informe.html
   (conservada, no reinventada) y repartida en fichero para poder servirla sin
   estilos en línea (CSP sin 'unsafe-inline'). */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dmsans-variable.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: 'Playfair Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-italic.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: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-normal.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;
}

:root {
  --bg: #0C0B0A;
  --card: #1A1714;
  --card2: #15110d;
  --card3: #211c17;
  --gold: #C9A96E;
  --gr: 201, 169, 110;
  --gold-light: #E8D5AA;
  --cream: #F5F0E8;
  --tx: #E8E2D8;
  --hi: #F5F0E8;
  --muted: #8A8378;
  --dim: #807A6C;
  --line: rgba(201, 169, 110, .16);
  --line2: rgba(201, 169, 110, .28);
  --green: #67d295;
  --red: #d8695b;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, 'SF Mono', Consolas, monospace;
  color-scheme: dark;
}

/* el atributo hidden debe ganar siempre: sin esto, cualquier regla de autor con
   display:block/flex (p.ej. .seenow, .err) lo pisa porque el origen de autor manda
   sobre la hoja del user-agent aunque la especificidad sea la misma. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px;
}
::selection { background: rgba(var(--gr), .3); color: #fff; }

h1, h2, h3 { font-family: var(--serif); color: var(--cream); margin: 0 0 16px; font-weight: 600; }
h1 em, h2 em, h3 em { color: var(--gold); font-style: italic; font-weight: 500; }
p { margin: 0 0 16px; color: var(--tx); font-weight: 400; }
strong { color: var(--hi); font-weight: 500; }

a { color: var(--gold); }

/* foco visible global (hallazgo 5 de 2-diseno-y-usabilidad.md: ninguna página lo tenía) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
/* El foco que pone el programa al cambiar de pantalla no pinta contorno: el contorno es para quien tabula. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1206;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 17px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--sans);
  min-height: 56px;
  letter-spacing: .2px;
  transition: transform .12s, box-shadow .25s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 16px rgba(0, 0, 0, .3);
}
.btn:active { transform: scale(.99); }
@media (hover: hover) {
  .btn:hover { box-shadow: 0 12px 32px rgba(var(--gr), .24), 0 1px 0 rgba(255, 255, 255, .35) inset; }
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; padding: 18px 22px; border-radius: 5px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .92rem; font-weight: 700; letter-spacing: .04em;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .05), transparent 50%), radial-gradient(circle at 50% 50%, #2a2520, #15110d);
  border: 1px solid rgba(var(--gr), .4); color: var(--gold); min-height: 56px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .4);
  transition: all .3s;
}
@media (hover: hover) {
  .wa-btn:hover { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 18px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold), 0 0 30px rgba(var(--gr), .2); }
}
.wa-btn:active { transform: scale(.985); }
.wa-btn svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}

.trust {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.6;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0;
}

.brand { text-align: center; margin-bottom: 30px; }
.brand .nm { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--gold); letter-spacing: .3px; }

.err {
  background: rgba(216, 105, 91, .1); border: 1px solid var(--red); color: #f3cabf;
  border-radius: 6px; padding: 14px 16px; font-size: .88rem; margin-top: 12px; line-height: 1.55;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
