/* Veyra: estilo comun de las paginas de servicio (cuenta, gracias, descargar, ayuda,
   legales, 404). Mismos tokens que la portada y el chat. */
:root {
  --ink: #05070F; --ink-2: #0A1022; --ink-3: #111A33; --navy: #14306E; --royal: #2F5BD3; --ice: #A9C8FF;
  --paper: #F4F7FF; --muted: #9AA8C7; --line: rgba(169, 200, 255, .14); --bad: #FFB4B4; --good: #A9FFD4;
  --body: "Geist", "Segoe UI", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px); --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--paper); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ice); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.muted { color: var(--muted); }

/* Cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(5, 7, 15, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.logo svg { width: 34px; transition: transform .4s var(--ease); } .logo:hover svg { transform: translateY(-3px); }
.logo b { font: 800 23px/1 var(--body); letter-spacing: -.05em; }
.links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 28px); }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.links a:hover, .links a[aria-current] { color: var(--paper); }
.links a.btn, .links a.btn:hover { color: var(--paper); }   /* el botón de la cabecera, legible (no gris como los enlaces) */
@media (max-width: 640px) { .links a:not(.btn) { display: none; } }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
       background: var(--royal); color: var(--paper); font: 600 15.5px/1 var(--body); text-decoration: none; transition: transform .3s var(--ease), background .2s, box-shadow .3s; }
.btn:hover { background: #3A68E6; transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(47, 91, 211, .9); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--paper); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ice); background: rgba(169, 200, 255, .06); }
.btn.sm { padding: 10px 16px; font-size: 14.5px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.input { width: 100%; background: var(--ink); border: 0; border-radius: 14px; padding: 15px 16px; color: var(--paper); font: 600 17px var(--mono); letter-spacing: .06em;
         box-shadow: inset 0 0 0 1px var(--line); outline: none; text-transform: uppercase; }
.input.txt { font: 500 16px var(--body); letter-spacing: 0; text-transform: none; }   /* correo, contraseña, búsquedas: tal cual se escriben (las claves VEY- van en mayúsculas) */
.input:focus { box-shadow: inset 0 0 0 1.5px var(--ice); }
.msg { min-height: 1.5em; font-size: 15px; color: var(--muted); } .msg.err { color: var(--bad); } .msg.ok { color: var(--good); }

/* Bloques */
main { flex: 1; }
.page { padding-block: clamp(56px, 9vw, 110px); display: grid; gap: clamp(28px, 4vw, 44px); }
.head { display: grid; gap: 16px; max-width: 760px; }
.head h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 60ch; margin: 0; }
.card { background: var(--ink-2); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 18px; align-content: start; }
.card.main { background: var(--navy); box-shadow: inset 0 0 0 1px rgba(169, 200, 255, .3); }
.card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; background: var(--navy); color: var(--ice); text-transform: uppercase; }
.pill.on { background: var(--royal); color: var(--paper); }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--ink); border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.keybox code { font: 600 clamp(20px, 3.4vw, 28px)/1.2 var(--mono); letter-spacing: .08em; color: var(--paper); overflow-wrap: anywhere; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 13px/40px var(--mono); color: var(--ice); background: var(--ink-3); border-radius: 12px; text-align: center; height: 40px; }
.steps b { color: var(--paper); font-weight: 600; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec li:last-child { border-bottom: 0; } .spec span { color: var(--muted); } .spec b { font-weight: 600; text-align: right; }

/* Texto largo (legales, ayuda) */
.prose { max-width: 72ch; display: grid; gap: 14px; color: #D3DCF2; }
.prose h2 { font-size: 24px; font-weight: 700; margin-top: 18px; color: var(--paper); letter-spacing: -.02em; }
.prose p, .prose ul { margin: 0; } .prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose .note { font: 500 13.5px/1.6 var(--mono); color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); }
.toc a:hover { box-shadow: inset 0 0 0 1px var(--ice); }

/* Acordeon */
.q { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--ink-2); }
.q summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; color: var(--ice); font: 500 22px/1 var(--mono); transition: transform .35s var(--ease); }
.q[open] summary::after { transform: rotate(45deg); }
.q p { margin: 0; padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }
.faq { display: grid; gap: 10px; max-width: 860px; }

/* Coso */
.coso rect { fill: var(--royal); }
.coso.big { width: 120px; animation: flota 3.2s ease-in-out infinite alternate; }
@keyframes flota { to { transform: translateY(-8px); } }

/* Pie */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--paper); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 50; }
.appear { animation: sube .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Resumen en lectura fácil de condiciones y privacidad (M-6136) */
.facil { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(169, 200, 255, .08); border: 1px solid rgba(169, 200, 255, .25); font-size: 16px; line-height: 1.6; }
.facil ul { margin: 8px 0 0; padding-left: 20px; } .facil li { margin: 4px 0; }
