/* Estilos de las páginas públicas secundarias (legales, gracias, 404) y del aviso de cookies.
   Usa la misma identidad visual del landing. */
:root {
  --ink: #0E2A47; --ink-2: #17395C; --sky: #EAF4F8; --sky-2: #D7EAF2; --teal: #139C97; --teal-text: #086B67;
  --blue: #2A74D4; --paper: #FFFFFF; --muted: #48617A; --line: rgba(14, 42, 71, .13);
  --brand-grad: linear-gradient(120deg, #0F9590, #2566C0);
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Figtree", system-ui, sans-serif;
  --deep: #0E2A47; --hd-bg: rgba(234, 244, 248, .92); --text: #24384f;
  color-scheme: light;
}
/* Modo noche (prefs.js pone data-theme antes de pintar) */
[data-theme="dark"] {
  --ink: #E6EEF5; --ink-2: #C9D8E6; --sky: #0F2238; --sky-2: #1D3753; --teal: #22B5B0; --teal-text: #5CD6CF;
  --blue: #6AA8F0; --paper: #0A1A2B; --muted: #A3B6CA; --line: rgba(230, 238, 245, .14);
  --deep: #050F1A; --hd-bg: rgba(15, 34, 56, .92); --text: #C9D8E6;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.hd { background: var(--hd-bg); border-bottom: 1px solid var(--line); }
.hd nav { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--teal-text); }
.hd .back { font-weight: 600; text-decoration: none; color: var(--ink); }
.hd .back:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 600; padding: .95rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(37, 102, 192, .55); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
/* Verde WhatsApp oscurecido para que el texto blanco se lea (5:1) */
.btn-wa { background: #15803D; color: #fff; }

/* Documentos legales */
.legal { padding: 3rem 0 5rem; }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5rem; }
.legal .updated { color: var(--muted); margin: 0 0 2rem; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--sky); }
.toc { background: var(--sky); border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc ol { margin: .3rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } .legal table { font-size: .88rem; } }

/* Mensajes centrados (gracias, 404) */
.center-page { min-height: calc(100vh - 4.25rem - 5rem); display: grid; place-items: center; padding: 3rem 1.25rem; background: var(--sky); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.75rem, 5vw, 3rem); max-width: 38rem; width: 100%; text-align: center; box-shadow: 0 30px 60px -40px rgba(14, 42, 71, .5); }
.panel h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 1rem 0 .75rem; }
.panel p { color: var(--muted); margin: 0 0 1.5rem; }
.panel .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.big-code { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 16vw, 7rem); line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.check-ic { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--brand-grad); color: #fff; }
.links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-weight: 600; }

.ft { background: var(--deep); color: rgba(255, 255, 255, .7); font-size: .92rem; padding: 1.75rem 0; }
.ft .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Idioma y tema (página de gracias) */
.hd-right { display: flex; align-items: center; gap: .9rem; }
.hd-tools { display: flex; gap: .4rem; }
.tool { width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; font: 700 .8rem var(--body); letter-spacing: .04em; color: var(--ink); cursor: pointer; }
.tool:hover { border-color: var(--teal); background: var(--paper); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
@media (max-width: 480px) { .hd .back { font-size: .92rem; } }

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

/* Botones de idioma y tema del encabezado */
.hd-tools { display: flex; gap: .45rem; }
.tool { width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s; }
.tool:hover { border-color: var(--teal); background: var(--paper); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
@media (max-width: 420px) { .hd-tools { gap: .3rem; } .tool { width: 2.15rem; height: 2.15rem; } }
.legal .legal-note { margin: -1rem 0 2rem; padding: .8rem 1rem; border-radius: 12px; background: var(--sky); color: var(--muted); font-size: .92rem; }
.hd-right .back { white-space: nowrap; }
@media (max-width: 440px) { .hd-right .back { display: none; } }
.logo svg { width: 42px; height: auto; flex-shrink: 0; }
@media (max-width: 420px) { .logo { font-size: 1.45rem; } .logo svg { width: 36px; } }
