/* Hispapost · web de mantenimiento. Sin JS ni estilos inline (CSP: style-src 'self'). */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --brand-50:  #EFF5FA;
  --brand-100: #DCE9F3;
  --brand-600: #00548B;
  --brand-700: #00456F;
  --brand-800: #073350;
  --ink-900: #0F1B26;
  --ink-600: #3A4753;
  --ink-400: #5B6772;
  --hair: #E3E7EB;
  --surface: #FFFFFF;
  --surface-alt: #F4F6F8;
  --red-500: #E52C1D;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrapper: 60rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --focus-ring: 0 0 0 3px rgba(0, 84, 139, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--surface);
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }

.wrapper { width: 100%; max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--brand-800); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Cabecera ---------- */
.site-header { border-top: 4px solid var(--red-500); border-bottom: 1px solid var(--hair); }
.site-header .wrapper { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-block; }
.brand img { width: 128px; height: auto; }

/* ---------- Portada ---------- */
.hero { padding: clamp(3rem, 2rem + 6vw, 6.5rem) 0; background: linear-gradient(180deg, var(--brand-50), var(--surface) 70%); }
.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.25rem; padding: 0.35rem 0.85rem;
  font-size: 0.875rem; font-weight: 600; color: var(--brand-800);
  background: var(--brand-100); border-radius: 999px;
}
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #D98E04; }
h1 {
  margin: 0 0 1rem; max-width: 18ch;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.025em;
}
.lead { margin: 0 0 2.5rem; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-600); }

.actions { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.actions li { display: flex; }
.action {
  flex: 1;
  display: flex; align-items: center; gap: 1rem;
  min-height: 5.5rem; padding: 1.25rem 1.4rem;
  border: 2px solid var(--brand-600); border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.action:hover { transform: translateY(-2px); }
.action-primary { background: var(--brand-600); color: #fff; }
.action-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.action-secondary { background: var(--surface); color: var(--brand-800); }
.action-secondary:hover { background: var(--brand-50); color: var(--brand-800); }
.action > svg:first-child { flex: none; }
.action-text { flex: 1; display: flex; flex-direction: column; }
.action-text strong { font-size: 1.1875rem; font-weight: 650; line-height: 1.25; }
.action-text span { font-size: 0.9375rem; opacity: 0.88; }
.action-arrow { flex: none; }
.action-inline { display: inline-flex; min-height: 0; padding: 0.85rem 1.4rem; font-weight: 600; }

.contact { margin: 0; color: var(--ink-600); }

/* ---------- Páginas legales ---------- */
.doc { padding-top: 2.5rem; padding-bottom: 4rem; max-width: 46rem; }
.doc h1 { max-width: none; font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem); margin-bottom: 1.5rem; }
.doc h2 { margin: 2.25rem 0 0.6rem; font-size: 1.3rem; line-height: 1.25; }
.doc h3 { margin: 1.5rem 0 0.4rem; font-size: 1.0625rem; }
.doc p, .doc ul { margin: 0 0 1rem; color: var(--ink-600); }
.doc-meta { font-size: 0.9rem; color: var(--ink-400); }
.back { margin: 0 0 1.5rem; font-size: 0.9375rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-800); color: #DCE6EE; font-size: 0.875rem; }
.site-footer .wrapper { padding-top: 2rem; padding-bottom: 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-100); }
.legal-links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.legal-id { margin: 0; color: #B9C8D5; }

@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
  .action:hover { transform: none; }
}
