/* Página web de Torvix — primer diseño (2026-11-15). Mismo lenguaje que la app: grafito, blanco roto y el lima
   solo como acento; la curva de la silueta como hilo conductor y el emblema hexagonal como protagonista. */
:root {
  --bg: #0b1012; --bg2: #0f1619; --card1: #1d262b; --card2: #172024;
  --line: rgb(255 255 255 / 8%); --line-hi: rgb(255 255 255 / 16%);
  --ink: #eef3f1; --sub: #9aaba8; --dim: #6f8086;
  --ac: #a5f12d; --ac-ink: #10170a; --warn: #f1bb3c;
  --r: 14px; --max: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.defs { position: absolute; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }

/* ---------- Barra superior ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: rgb(11 16 18 / 72%); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); background: rgb(11 16 18 / 88%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .18em; font-size: 15px; }
.brand-logo { width: 26px; height: 30px; color: var(--ac); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--sub); font-size: 14.5px; text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { height: 32px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line-hi); border-radius: 99px; background: none; color: var(--sub); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: rgb(255 255 255 / 30%); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 99px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.primary { color: var(--ac-ink); background: linear-gradient(180deg, #b8ff4f, var(--ac)); box-shadow: 0 8px 26px -8px rgb(165 241 45 / 55%), inset 0 1px 0 rgb(255 255 255 / 45%); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { color: var(--ink); background: rgb(255 255 255 / 4%); border-color: var(--line-hi); }
.btn.ghost:hover { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 30%); }
.btn[aria-disabled="true"] { cursor: not-allowed; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 110px 20px 80px; overflow: hidden;
  /* La capa de arriba funde el final de la portada con el fondo de la página: sin línea de corte al pasar a la sección siguiente. */
  background: linear-gradient(180deg, transparent 70%, var(--bg) 100%), radial-gradient(900px 520px at 72% 38%, rgb(165 241 45 / 9%), transparent 60%), radial-gradient(700px 420px at 10% 72%, rgb(45 212 191 / 5%), transparent 60%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-curve { position: absolute; left: 50%; top: 50%; width: 470px; height: 480px; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.curve-line { stroke: var(--ac); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgb(165 241 45 / 60%)); stroke-dasharray: 6200; stroke-dashoffset: 6200; animation: draw 3s .3s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Destello: main.js mide el tramo visible de la curva (--s0 → --s1, en unidades del trazo) y añade .flash cada pocos segundos. */
.curve-flash { fill: none; stroke: #f6ffe6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 120 12000; opacity: 0; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px var(--ac)) drop-shadow(0 0 28px rgb(165 241 45 / 60%)); }
.curve-flash.tail { stroke: var(--ac); stroke-width: 2.4; stroke-dasharray: 420 12000; filter: drop-shadow(0 0 10px var(--ac)); }
.hero-art.flash .curve-flash { animation: flash-head 1.6s cubic-bezier(.45, .05, .55, .95) forwards; }
.hero-art.flash .curve-flash.tail { animation-name: flash-tail; }
@keyframes flash-head { 0% { stroke-dashoffset: calc(-1px * var(--s0)); opacity: 0; } 8%, 88% { opacity: 1; } 100% { stroke-dashoffset: calc(-1px * var(--s1)); opacity: 0; } }
@keyframes flash-tail { 0% { stroke-dashoffset: calc(-1px * (var(--s0) - 300)); opacity: 0; } 10%, 85% { opacity: .7; } 100% { stroke-dashoffset: calc(-1px * (var(--s1) - 300)); opacity: 0; } }
/* El anillo exterior y el emblema se encienden un instante cuando el destello pasa a su lado. */
.emblem.glow .ring.r3 { animation: ring-glow 1s ease-out; }
.emblem.glow .emblem-logo { animation: logo-glow 1s ease-out; }
@keyframes ring-glow { 0% { border-color: rgb(255 255 255 / 6%); box-shadow: none; } 25% { border-color: rgb(200 255 120 / 75%); box-shadow: 0 0 26px rgb(165 241 45 / 45%), inset 0 0 22px rgb(165 241 45 / 25%); } 100% { border-color: rgb(255 255 255 / 6%); box-shadow: none; } }
@keyframes logo-glow { 25% { filter: drop-shadow(0 0 36px rgb(165 241 45 / 90%)) drop-shadow(0 18px 30px rgb(0 0 0 / 60%)); } }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: var(--max); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--ac); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; font-weight: 750; }
.hero h1 { font-size: clamp(38px, 4.4vw, 64px); }
h1 .accent { background: linear-gradient(92deg, var(--ink) 0%, #c9ff7a 55%, var(--ac) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 560px; margin: 22px 0 30px; color: var(--sub); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 22px 0 0; color: var(--dim); font-size: 13.5px; }

/* Emblema animado */
.hero-art { position: relative; height: 480px; display: grid; place-items: center; }
.hero-copy { position: relative; z-index: 2; }
.emblem { position: relative; width: 300px; height: 300px; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgb(165 241 45 / 42%), transparent 66%); filter: blur(22px); animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.92); } }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgb(165 241 45 / 40%); }
.ring.r1 { inset: 0; border-style: dashed; animation: spin 40s linear infinite; }
.ring.r2 { inset: 9%; border-color: rgb(255 255 255 / 12%); border-top-color: var(--ac); border-width: 2px; animation: spin 9s linear infinite reverse; }
.ring.r3 { inset: -9%; border-color: rgb(255 255 255 / 6%); }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-logo { position: relative; width: 150px; height: 170px; color: var(--ac); filter: drop-shadow(0 0 22px rgb(165 241 45 / 55%)) drop-shadow(0 18px 30px rgb(0 0 0 / 60%)); }
.scan { position: absolute; inset: 9%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgb(165 241 45 / 22%) 92%, transparent); animation: spin 5s linear infinite; mask: radial-gradient(circle, transparent 58%, #000 59%); }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-hi); border-radius: 12px;
  background: linear-gradient(180deg, rgb(32 42 47 / 88%), rgb(22 30 33 / 88%)); backdrop-filter: blur(8px); box-shadow: 0 16px 40px -14px rgb(0 0 0 / 70%); font-size: 13.5px; white-space: nowrap; }
.float svg { width: 16px; height: 16px; color: var(--ac); }
.float .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--ac); box-shadow: 0 0 0 4px rgb(165 241 45 / 18%); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 7px rgb(165 241 45 / 0%); } }
.f1 { top: 12%; left: 0; animation: float 6s .5s ease-in-out infinite; }
.f2 { top: 46%; right: -4%; animation: float 7s 1s ease-in-out infinite; }
.f3 { bottom: 10%; left: 10%; animation: float 8s ease-in-out infinite; }

/* ---------- Secciones ---------- */
.sec { position: relative; max-width: var(--max); margin: 0 auto; padding: 84px 20px; }
.sec-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 700; }
.sub { margin: 16px 0 0; color: var(--sub); font-size: 17px; }

/* Tarjetas de protección */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--card1), var(--card2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); transition: border-color .3s, transform .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgb(165 241 45 / 9%), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card .ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; color: var(--ink);
  background: radial-gradient(circle at 50% 30%, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%)); border: 1px solid var(--line-hi); }
.card .ic::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ac); border: 2.5px solid var(--card2); }
.card .ic svg { width: 26px; height: 26px; stroke-width: 1.5; }
.card h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.card p { margin: 0; color: var(--sub); font-size: 15px; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.extra { display: flex; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--card1), var(--card2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); }
.extra svg { flex: none; width: 24px; height: 24px; color: var(--ac); margin-top: 2px; }
.extra b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.extra span { color: var(--sub); font-size: 14px; }

/* Demo */
.device { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line-hi); border-radius: 16px; overflow: hidden; background: #0e1214;
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / 90%), 0 0 0 1px rgb(0 0 0 / 40%), 0 0 80px -30px rgb(165 241 45 / 35%); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #121a1d; border-bottom: 1px solid var(--line); }
.device-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3439; }
.device-bar b { margin-left: 8px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.device-screen { position: relative; aspect-ratio: 1024 / 610; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 40%, rgb(165 241 45 / 8%), transparent 70%), linear-gradient(180deg, #111a1d, #0d1315); }
.device-screen iframe { position: absolute; left: 0; top: 0; width: 1024px; height: 610px; border: 0; transform-origin: 0 0; }
.demo-start { position: absolute; inset: 0; margin: auto; width: max-content; height: 56px; display: inline-flex; align-items: center; gap: 12px; padding: 0 26px;
  border: 1px solid rgb(165 241 45 / 45%); border-radius: 99px; background: rgb(165 241 45 / 10%); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.demo-start svg { width: 20px; height: 20px; color: var(--ac); fill: var(--ac); }
.demo-start.busy { z-index: 2; cursor: progress; }
.demo-start.busy svg { animation: spin 1s linear infinite; }
.device-screen iframe { transition: opacity .5s ease; }
.device-screen iframe.loading { opacity: 0; }
.demo-start:hover { background: rgb(165 241 45 / 18%); }
.note { margin: 16px 0 0; color: var(--dim); font-size: 13.5px; text-align: center; }

/* Ligero */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
  box-shadow: inset 0 0 0 1.5px var(--ac); }

/* Ligero: tres hechos de la app */
.facts3 { display: grid; gap: 12px; }
.fact { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--card1), var(--card2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); }
.fact .ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ac); background: rgb(165 241 45 / 9%); border: 1px solid rgb(165 241 45 / 22%); }
.fact .ic svg { width: 22px; height: 22px; }
.fact h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 650; }
.fact p { margin: 0; color: var(--sub); font-size: 14.5px; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--card1), var(--card2)); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { position: relative; padding: 18px 54px 18px 22px; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: var(--r); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--sub); font-size: 15px; }

/* Descarga */
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; align-items: center; padding: 44px 48px; border: 1px solid rgb(165 241 45 / 22%); border-radius: 22px;
  background: radial-gradient(600px 260px at 0% 0%, rgb(165 241 45 / 12%), transparent 60%), linear-gradient(180deg, var(--card1), var(--card2)); box-shadow: 0 40px 100px -50px rgb(165 241 45 / 40%); }
.dl-logo { width: 96px; height: 110px; color: var(--ac); filter: drop-shadow(0 0 18px rgb(165 241 45 / 45%)); }
.dl h2 { text-align: left; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 22px 0 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px !important; color: var(--sub); }
.dl-act { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.facts .wide { grid-column: 1 / -1; }
.hash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hash span { overflow-wrap: anywhere; }
.copy { height: 26px; padding: 0 10px; border: 1px solid var(--line-hi); border-radius: 99px; background: rgb(255 255 255 / 4%); color: var(--ink); font: inherit; font-family: inherit; font-size: 12px; cursor: pointer; }
.copy:hover { border-color: rgb(255 255 255 / 30%); }
.dl-price { margin: 14px 0 0; padding: 10px 14px; border-left: 2px solid var(--ac); border-radius: 0 10px 10px 0; background: rgb(165 241 45 / 7%); color: var(--sub); font-size: 14px; line-height: 1.45; }
.dl-price b { color: var(--ink); font-weight: 600; }
.dl-legal { margin: 10px 0 0; color: var(--dim); font-size: 13px; }
.dl-legal a { color: var(--sub); }

/* Páginas legales */
.legal-page .top { position: sticky; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 90px; }
html[lang="es"] .legal [data-lang="en"], html[lang="en"] .legal [data-lang="es"] { display: none; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; }
.legal .draft { display: inline-block; margin: 14px 0 0; padding: 4px 12px; border-radius: 99px; color: var(--warn); background: rgb(241 187 60 / 10%); font-size: 13px; }
.legal .lead { max-width: none; margin: 22px 0 8px; color: var(--ink); font-size: 18px; }
.legal h2 { margin: 42px 0 10px; font-size: 22px; }
.legal h3 { margin: 0 0 6px; font-size: 16.5px; }
.legal p, .legal li { color: var(--sub); font-size: 15.5px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--ac); }
.legal code { padding: 1px 6px; border-radius: 5px; background: rgb(255 255 255 / 6%); color: var(--ink); font-family: "Cascadia Mono", Consolas, monospace; font-size: 13.5px; }
.legal .who { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.flows { display: grid; gap: 12px; margin-top: 12px; }
.flows section { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--card1), var(--card2)); }
.flows p { margin: 0 0 8px; } .flows p:last-child { margin-bottom: 0; }

/* Novedades */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.news article { padding: 24px 22px; border-left: 2px solid rgb(165 241 45 / 50%); background: linear-gradient(90deg, rgb(255 255 255 / 3%), transparent); border-radius: 0 var(--r) var(--r) 0; }
.news b { display: block; margin-bottom: 8px; font-size: 16.5px; }
.news p { margin: 0; color: var(--sub); font-size: 14.5px; }

/* Soporte */
.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.help-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
  background: linear-gradient(180deg, var(--card1), var(--card2)); transition: border-color .3s, transform .3s; }
.help-card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.help-card svg { width: 28px; height: 28px; color: var(--ac); margin-bottom: 8px; }
.help-card b { font-size: 18px; }
.help-card span { color: var(--sub); font-size: 14.5px; overflow-wrap: anywhere; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 34px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--dim); font-size: 13.5px; }
.foot nav { margin-left: auto; display: flex; gap: 20px; }
.foot nav a, .foot p a { color: var(--sub); font-size: 13.5px; text-decoration: none; }
.foot nav a:hover, .foot p a:hover { color: var(--ink); }

/* Aparición al desplazarse */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .news .reveal:nth-child(2), .help .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .news .reveal:nth-child(3), .help .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(5) { transition-delay: .08s; } .cards .reveal:nth-child(6), .news .reveal:nth-child(4) { transition-delay: .16s; }

/* Botón del menú (solo en pantallas estrechas) */
.menu-btn { display: none; width: 38px; height: 36px; padding: 0 9px; border: 1px solid var(--line-hi); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; margin: 0; flex-direction: column; gap: 2px; padding: 8px;
    border: 1px solid var(--line-hi); border-radius: 14px; background: rgb(15 22 25 / 97%); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 80%); }
  .nav.open { display: flex; animation: menu-in .18s ease-out; }
  .nav a { padding: 12px 14px; border-radius: 9px; font-size: 16px; color: var(--ink); }
  .nav a:hover, .nav a.on { background: rgb(255 255 255 / 6%); }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; } .lead { margin-left: auto; margin-right: auto; }
  .hero-art { height: 380px; order: -1; }
  .emblem { width: 230px; height: 230px; } .emblem-logo { width: 115px; height: 130px; }
  .cards, .extras, .help { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .dl { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .dl-logo { margin: 0 auto; } .dl h2 { text-align: center; } .facts { text-align: left; }
}
@media (max-width: 620px) {
  .top { gap: 12px; } .top .btn.sm span { display: none; } .top .btn.sm { width: 36px; padding: 0; justify-content: center; }
  .sec { padding: 80px 16px; }
  .cards, .extras, .help, .news, .facts { grid-template-columns: 1fr; }
  .float { font-size: 12px; } .f2 { right: 0; }
  .hero { padding-top: 90px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
/* Móvil pequeño: el emblema arriba y los tres avisos debajo, en rejilla, sin montarse sobre él. */
@media (max-width: 480px) {
  .hero-art { height: auto; display: grid; grid-template-columns: auto auto; justify-content: center; gap: 10px 8px; padding: 6px 0 4px; }
  .hero-art .emblem { grid-column: 1 / -1; justify-self: center; width: 210px; height: 210px; margin-bottom: 6px; }
  .hero-art .emblem-logo { width: 104px; height: 118px; }
  .hero-curve { display: none; }
  .float { position: static; animation: none; justify-self: center; }
  .f3 { grid-column: 1 / -1; }
}
/* Pantallas muy anchas a escala 100 % (p. ej. 4K): todo crece en proporción, en vez de quedarse en una columna pequeña. */
@media (min-width: 2200px) { :root { --z: 1.3; } }
@media (min-width: 2900px) { :root { --z: 1.65; } }
@media (min-width: 3500px) { :root { --z: 2; } }
@media (min-width: 2200px) {
  body { zoom: var(--z); }
  .hero { min-height: calc(100vh / var(--z)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .curve-line { stroke-dashoffset: 0; }
}
