/* NyxqLab — sistema de diseño corporativo v2.
   Base tomada del diseño aprobado por Andrés (fondo casi negro, paneles con
   blur, gradientes radiales muy sutiles, tipografía grande, reveal-on-scroll)
   y extendida al resto del sitio: servicios, blog, contacto, legal, cookies. */

:root {
  --bg: #060a12;
  --bg-soft: #0a1120;
  --panel: rgba(13, 23, 42, 0.78);
  --panel-strong: #0e1930;
  --line: rgba(133, 177, 255, 0.16);
  --line-strong: rgba(115, 171, 255, 0.34);
  --text: #f4f7fb;
  --muted: #a6b3c7;
  --blue: #54a8ff;
  --blue-2: #7fcbff;
  --gold: #d8a64a;
  --green: #6ce1a2;
  --violet: #b98bff;
  --danger: #ff7a8b;
  --shadow: 0 30px 90px rgba(0,0,0,.42);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(59, 139, 246, .14), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(216, 166, 74, .08), transparent 22%),
    linear-gradient(180deg, #050912 0%, #07101f 48%, #050912 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
p { color: var(--muted); }
h1, h2, h3, h4 { margin: 0; }

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 2; }

/* ── Fondo de constelación (canvas, ver particles.js) ── */
#constellation {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 0%, transparent 78%);
}

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(6, 10, 18, .72); border-bottom: 1px solid rgba(132, 176, 255, .12); }
.nav-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; filter: drop-shadow(0 8px 18px rgba(84, 168, 255, .18)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 1.02rem; font-weight: 760; letter-spacing: .14em; }
.brand-name span { color: var(--blue-2); }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: .95rem; align-items: center; }
.nav-links a:hover { color: white; }
.nav-links a.active { color: var(--blue-2); }
.nav-cta { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: #eaf5ff; background: rgba(84, 168, 255, .08); transition: .2s ease; white-space: nowrap; }
.nav-cta:hover { transform: translateY(-1px); background: rgba(84, 168, 255, .15); }
#menuToggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* ── Hero ── */
.hero { padding: 96px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(108, 225, 162, .24); color: #aaf0ca; background: rgba(108, 225, 162, .07); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.eyebrow.blue { border-color: rgba(84,168,255,.28); color: #bfe0ff; background: rgba(84,168,255,.08); }
.eyebrow.blue::before { background: var(--blue-2); box-shadow: 0 0 18px var(--blue-2); }

h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .96; letter-spacing: -.05em; margin: 24px 0 24px; max-width: 15ch; font-weight: 820; }
h1 .proof { color: var(--blue-2); }
.hero-copy { color: var(--muted); font-size: 1.18rem; max-width: 690px; margin-bottom: 32px; }
.hero-copy strong { color: #eaf4ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent; font-weight: 760; transition: .2s ease; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #62b4ff, #3388e8); color: #04101e; box-shadow: 0 12px 30px rgba(84, 168, 255, .24); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(84, 168, 255, .32); }
.btn-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.025); color: #edf6ff; }
.btn-secondary:hover { background: rgba(255,255,255,.06); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .86rem; }

.micro-proof { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.micro-proof span { display: inline-flex; align-items: center; gap: 8px; }
.micro-proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(108,225,162,.8); }

/* ── Hero visual (escudo + órbitas + tarjetas flotantes) ── */
.hero-panel { position: relative; min-height: 560px; border: 1px solid rgba(115, 171, 255, .18); border-radius: 34px; background: linear-gradient(145deg, rgba(25, 48, 85, .72), rgba(5, 10, 18, .92)), radial-gradient(circle at 70% 30%, rgba(84, 168, 255, .19), transparent 34%); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: 50%; top: 44%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(88,174,255,.24), rgba(88,174,255,.04) 50%, transparent 70%); filter: blur(3px); z-index: -1; }
.orbit { position: absolute; border: 1px solid rgba(127, 203, 255, .18); border-radius: 50%; left: 50%; top: 43%; transform: translate(-50%, -50%) rotate(12deg); animation: spin 18s linear infinite; }
.orbit.o1 { width: 360px; height: 360px; }
.orbit.o2 { width: 470px; height: 220px; animation-direction: reverse; animation-duration: 22s; }
.orbit.o3 { width: 280px; height: 520px; animation-duration: 26s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(372deg); } }
.titan-core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.titan-core svg { width: 228px; filter: drop-shadow(0 24px 60px rgba(84,168,255,.33)); }
.float-card { position: absolute; border: 1px solid rgba(126, 185, 255, .18); background: rgba(8, 16, 30, .82); backdrop-filter: blur(14px); border-radius: 16px; padding: 14px 16px; box-shadow: 0 15px 48px rgba(0,0,0,.28); max-width: 230px; }
.float-card strong { display: block; color: white; margin-bottom: 2px; font-size: .92rem; }
.float-card span { color: var(--muted); font-size: .84rem; }
.fc1 { top: 44px; left: 34px; } .fc2 { right: 28px; top: 160px; } .fc3 { left: 46px; bottom: 42px; } .fc4 { right: 34px; bottom: 58px; }

/* ── Sections ── */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 820px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--blue-2); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ── Manifesto / statement cards ── */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.statement { min-height: 280px; border-radius: 28px; border: 1px solid var(--line); padding: 36px; position: relative; overflow: hidden; background: linear-gradient(155deg, rgba(18, 31, 56, .78), rgba(7, 13, 23, .9)); }
.statement h3 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 14px; max-width: 16ch; }
.statement p { max-width: 54ch; }
.statement .big-number { position: absolute; right: 18px; bottom: -28px; font-size: 8rem; font-weight: 900; line-height: 1; color: rgba(127, 203, 255, .055); letter-spacing: -.08em; }

/* ── TitanVault feature block ── */
.titanvault { border: 1px solid rgba(84, 168, 255, .21); border-radius: 34px; background: linear-gradient(145deg, rgba(10, 21, 39, .96), rgba(5, 10, 18, .98)); overflow: hidden; box-shadow: var(--shadow); }
.tv-top { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; }
.tv-copy { padding: 46px; }
.tv-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; margin: 12px 0 18px; letter-spacing: -.03em; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 28px; }
.feature-pills span { padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); color: #c8d5e7; font-size: .82rem; background: rgba(255,255,255,.025); }
.tv-screen { display: flex; align-items: center; padding: 34px 34px 34px 0; min-width: 0; }
.tv-screen img { width: 100%; border-radius: 18px; border: 1px solid rgba(134, 180, 255, .2); box-shadow: 0 30px 90px rgba(0,0,0,.44); }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.proof-item { padding: 26px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item b { display: block; color: white; margin-bottom: 4px; }
.proof-item span { color: var(--muted); font-size: .9rem; }

/* ── Card grids (stack / usecases / pillars) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-card { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.018); min-height: 200px; position: relative; overflow: hidden; }
.info-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -38px; bottom: -42px; background: radial-gradient(circle, rgba(84,168,255,.14), transparent 70%); }
.info-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(84,168,255,.09); border: 1px solid rgba(84,168,255,.16); margin-bottom: 20px; font-size: 1.1rem; }
.info-card .tag { color: var(--blue-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 12px; display: block; }
.info-card h3 { margin: 0 0 8px; font-size: 1.14rem; }
.info-card p { margin: 0; font-size: .93rem; }
.info-card .go { display: inline-block; margin-top: 14px; font-size: .86rem; font-weight: 700; color: var(--blue-2); }

/* ── Lab-style grid (used in services detail) ── */
.lab-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.lab-card { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(15, 28, 52, .68), rgba(6, 12, 22, .86)); min-height: 220px; }
.lab-card h3 { font-size: 1.5rem; margin: 0 0 12px; }
.lab-card.large { grid-row: span 2; min-height: 480px; }
.lab-lines { margin-top: 28px; display: grid; gap: 12px; }
.lab-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lab-line span { color: var(--muted); }
.lab-line b { font-size: .9rem; color: #dcecff; }

/* ── Mock panel (data-style card) ── */
.mock-panel { background: var(--panel-strong); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; }
.mock-panel .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.mock-panel .row:last-child { border-bottom: none; }
.mock-panel .k { color: var(--muted); }
.mock-panel .v { color: var(--green); font-weight: 600; text-align: right; }
.mock-panel .v.blue { color: var(--blue-2); }

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.checklist .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; margin-top: 2px; background: rgba(108,225,162,.14); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: .72rem; }

/* ── CTA band ── */
.cta { position: relative; overflow: hidden; border-radius: 34px; padding: 54px; border: 1px solid rgba(84,168,255,.24); background: radial-gradient(circle at 85% 20%, rgba(84,168,255,.22), transparent 30%), linear-gradient(135deg, rgba(15,31,58,.96), rgba(5,10,18,.98)); box-shadow: var(--shadow); text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto 16px; }
.cta p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; margin-top: 26px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { padding: 26px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.018); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card .meta { font-family: "SF Mono", Menlo, monospace; font-size: .74rem; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card .excerpt { font-size: .9rem; flex: 1; }
.post-card .read { font-size: .86rem; font-weight: 700; color: var(--blue-2); margin-top: 14px; }

/* ── Article (blog post / legal pages) ── */
.article { max-width: 720px; margin: 0 auto; padding: 20px 0 40px; position: relative; z-index: 2; }
.article .meta { font-family: "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: none; }
.article .lede { font-size: 1.1rem; color: var(--muted); }
.article h2 { font-size: 1.4rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.article h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article p, .article li { font-size: 1rem; color: var(--muted); }
.article a { color: var(--blue-2); text-decoration: underline; }
.article ul { padding-left: 1.3em; }
.article blockquote { border-left: 3px solid var(--blue); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; color: var(--text); font-style: italic; }

/* ── Artículo con índice lateral (a la izquierda) ── */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 40px; justify-content: center; align-items: start; }
.article-layout .article { margin: 0; max-width: none; }
.toc { position: sticky; top: 96px; font-size: .85rem; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; color: var(--muted); margin-bottom: 10px; }
.toc-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc-list li { margin: 0; }
.toc-list a { display: block; color: var(--muted); text-decoration: none; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.toc-list a:hover { color: var(--blue-2); border-left-color: var(--blue-2); }
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .toc { display: none; }
}

/* ── Contact ── */
.contact-card { background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 30px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 16px; flex-wrap: wrap; }
.contact-row:last-child { border-bottom: none; }
.contact-row .who { font-weight: 700; color: var(--text); }
.contact-row .what { font-size: .84rem; color: var(--muted); }
.contact-row .email { font-family: "SF Mono", Menlo, monospace; color: var(--blue-2); font-size: .92rem; }

/* ── Footer ── */
footer.site { padding: 42px 0 52px; color: var(--muted); position: relative; z-index: 2; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: .86rem; max-width: 420px; margin-top: 10px; }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Cookie consent (mismo look que TitanVault, adaptado a esta paleta) ── */
#cookieBanner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: rgba(6,10,18,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); padding: 20px 24px; transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
#cookieBanner.show { transform: translateY(0); }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 260px; font-size: .88rem; color: var(--muted); }
.cookie-text strong { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookieModal { position: fixed; inset: 0; z-index: 110; background: rgba(3,5,10,.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
#cookieModal.show { display: flex; }
.cookie-modal-box { background: var(--panel-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 30px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow); }
.cookie-cat { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; }
.cookie-cat-head strong { font-size: .95rem; }
.cookie-cat p { font-size: .82rem; margin: 6px 0 0; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }
#regionNote { font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 16px 0; }
#regionSelect { background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: .78rem; font-family: "SF Mono", Menlo, monospace; }

.skiplink { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #04101e; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; font-weight: 700; }
.skiplink:focus { left: 0; }

/* ── Idioma ES/EN (toggle cliente, español por defecto) ── */
html:not([data-lang="en"]) .lang-en { display: none !important; }
html[data-lang="en"] .lang-es { display: none !important; }
.lang-toggle { display: flex; gap: 4px; margin-right: 4px; }
.lang-btn { font-family: "SF Mono", Menlo, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; transition: all .15s; }
.lang-btn:hover { color: var(--text); border-color: var(--line-strong); }
.lang-btn.active { background: rgba(84,168,255,.14); border-color: var(--line-strong); color: var(--blue-2); }

/* ── Materialización "cuántica" — para el banner de cookies y las páginas
   legales: un barrido + aberración cromática breve antes de asentarse,
   coherente con la estética de criptografía/físICA cuántica de la marca. ── */
@keyframes quantumIn {
  0%   { opacity: 0; filter: blur(7px) saturate(2.2); clip-path: inset(0 0 100% 0); }
  28%  { opacity: 1; filter: blur(3px) saturate(1.7); clip-path: inset(0 0 58% 0); }
  55%  { filter: blur(.5px) saturate(1.25) hue-rotate(6deg); clip-path: inset(0 0 12% 0); text-shadow: 1px 0 0 rgba(255,110,150,.4), -1px 0 0 rgba(94,168,255,.45); }
  78%  { clip-path: inset(0 0 0 0); text-shadow: .5px 0 0 rgba(255,110,150,.2), -.5px 0 0 rgba(94,168,255,.2); }
  100% { opacity: 1; filter: none; clip-path: inset(0 0 0 0); text-shadow: none; }
}
.quantum-in { animation: quantumIn .9s cubic-bezier(.2,.9,.25,1) both; }
.quantum-scan { position: relative; overflow: hidden; }
.quantum-scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(94,168,255,.4), rgba(185,139,255,.25), transparent);
  animation: quantumSweep .9s ease-out both; pointer-events: none; z-index: 5;
}
@keyframes quantumSweep { from { top: -40%; } to { top: 120%; } }

/* ── Botón flotante de WhatsApp ── */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2fd66b, #1fa855);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(31,168,85,.4), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: bottom .3s ease, transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.04); }
.whatsapp-float svg { width: 28px; height: 28px; }
body.cookie-banner-visible .whatsapp-float { bottom: 96px; }
/* Reserva espacio para el banner de cookies sin fijar su altura por JS (evita
   estilos inline — la CSP de producción no permite style-src inline). */
body.cookie-banner-visible { padding-bottom: 110px; }
@media (max-width: 760px) {
  .whatsapp-float { right: 16px; bottom: 18px; width: 50px; height: 50px; }
  body.cookie-banner-visible .whatsapp-float { bottom: 150px; }
  body.cookie-banner-visible { padding-bottom: 190px; }
}

/* ── Responsive ── */
@media (max-width: 1050px) {
  .hero-grid, .tv-top, .lab-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 480px; order: -1; }
  .tv-screen { padding: 0 34px 34px; }
  .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-card.large { min-height: 380px; }
  .manifesto { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 26px, var(--max)); }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; z-index: 39; background: var(--bg-soft); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 0 24px; gap: 14px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease, padding .25s ease; }
  .nav-links.open { max-height: 70vh; opacity: 1; padding: 18px 24px; overflow-y: auto; }
  #menuToggle { display: block; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .float-card { max-width: 170px; padding: 10px 12px; }
  .fc1 { top: 24px; left: 16px; } .fc2 { right: 16px; top: 120px; } .fc3 { left: 16px; bottom: 28px; } .fc4 { right: 16px; bottom: 32px; }
  .tv-copy, .cta { padding: 26px; }
  .tv-screen { padding: 0 16px 16px; }
  .section { padding: 56px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .card-grid.cols-5 { grid-template-columns: 1fr; }
  .cta { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Utilidades — extraídas de estilos inline (endurecimiento CSP: style-src sin 'unsafe-inline') */
.u-mb-12 { margin-bottom: 12px; }
.u-meta { font-size: .8rem; color: var(--muted); }
.u-mw-none { max-width: none; }
.u-pt-0 { padding-top: 0; }
.u-pb-20 { padding-bottom: 20px; }
.u-pb-40 { padding-bottom: 40px; }
.u-pb-56 { padding-bottom: 56px; }
.u-mw-720 { max-width: 720px; }
.u-mw-760 { max-width: 760px; }
.u-mw-56ch { max-width: 56ch; }
.u-fs-clamp-lg { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.u-mono-stat { font-family: monospace; font-size: 1.5rem; color: var(--blue-2); }
.u-border-top-pt20 { border-top: 1px solid var(--line); padding-top: 20px; }
.u-border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.u-mt-2em { margin-top: 2em; }
.u-py-36-center { padding: 36px 0; text-align: center; }
.u-minh-400 { min-height: 400px; }
.u-grid-3 { grid-template-columns: repeat(3, 1fr); }
.u-muted-link { color: var(--muted); text-decoration: none; }
.cc-modal-title { margin-bottom: 6px; }
.cc-region-label { font-size: .85rem; margin-bottom: 0; }
.cc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.article-hero-img { width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
