/* Páginas legales de ViTec Datum (aviso legal, privacidad, cookies) */
:root {
  --bg: #f8fafc; --surface: #ffffff; --ink: #0f172a; --text: #334155; --muted: #64748b;
  --line: #e2e8f0; --line-strong: #cbd5e1; --brand: #e8710a; --cta: #c2410c; --brand-soft: #fff4eb;
  --font: "Plus Jakarta Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--surface); }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 10; }
.nav .wrap { max-width: 1160px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-weight: 800; font-size: 18px; color: #334155; letter-spacing: -.03em; }
.brand b span { color: var(--brand); font-weight: 600; }
.volver { font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; white-space: nowrap; }
.volver:hover { border-color: var(--ink); }

main { padding: 56px 0 72px; }
.tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.tag::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
h1 { color: var(--ink); font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 8px; }
.fecha { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
h2 { color: var(--ink); font-size: 20px; letter-spacing: -.02em; line-height: 1.3; margin: 40px 0 10px; }
h3 { color: var(--ink); font-size: 16.5px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }
.mono { font-family: var(--mono); font-size: 14px; }

.ficha { border: 1.5px solid var(--ink); border-radius: 4px; margin: 8px 0 24px; font-size: 15px; }
.ficha div { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line-strong); }
.ficha div:last-child { border-bottom: 0; }
.ficha dt, .ficha dd { padding: 10px 14px; margin: 0; }
.ficha dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-right: 1px solid var(--line-strong); }
.ficha dd { color: var(--ink); font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 18px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
.tabla { overflow-x: auto; }

/* Datos que faltan por rellenar antes de publicar */
.falta { background: #fef08a; color: #713f12; padding: 0 4px; border-radius: 4px; font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { max-width: 1160px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover, footer a[aria-current] { color: var(--ink); text-decoration: underline; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main { padding: 36px 0 48px; }
  .ficha div { grid-template-columns: 1fr; }
  .ficha dt { border-right: 0; padding-bottom: 0; }
  .brand b { display: none; }
  /* Tablas como fichas apiladas: cada celda con su título delante */
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; margin-bottom: 12px; }
  td { border: 0; padding: 6px 14px; }
  td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}
