﻿/* InfoSec Build v3 · estudio digital
   Dirección: suizo / neobrutalista técnico. Archivo condensada + Inter + JetBrains Mono.
   Colores: lima #c6f432 · violeta #5a34ff · tinta #0b0b10 · crema #f3efe6 */

:root {
  --lime: #c6f432;
  --violet: #5a34ff;
  --violet-hi: #9d8bff;
  --ink: #0b0b10;
  --cream: #f3efe6;
  --ok: #3ddc84;
  --warn: #ffb020;
  --bad: #ff5c6c;
  --r: 18px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --f-disp: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root,
:root[data-theme="dark"] {
  --bg: #0b0b10;
  --bg-2: #111118;
  --bg-3: #191923;
  --text: #f3efe6;
  --muted: #a8a5b6;
  --line: rgba(243, 239, 230, .12);
  --line-2: rgba(243, 239, 230, .22);
  --card: rgba(17, 17, 24, .72);
  --acc: #c6f432;
  --acc2: #5a34ff;
  --hl: #c6f432;
  --link: #c6f432;
  --on-acc: #0b0b10;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --bg-3: #e1d9c8;
  --text: #0b0b10;
  --muted: #55526a;
  --line: rgba(11, 11, 16, .13);
  --line-2: rgba(11, 11, 16, .26);
  --card: rgba(250, 247, 240, .78);
  --acc: #c6f432;
  --acc2: #5a34ff;
  --hl: #4a26f0;
  --link: #4a26f0;
  --on-acc: #0b0b10;
  --shadow: 0 30px 70px -35px rgba(40, 30, 80, .35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--f-body); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--f-mono); font-size: .88em; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; font-size: .78em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--acc); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
main { overflow-x: clip; }

/* fondo interactivo, grano y grilla */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -3; opacity: .5; pointer-events: none; }
:root[data-theme="light"] #bg { opacity: .42; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gridlines { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: flex; justify-content: center; }
.gridlines i { flex: 0 0 auto; width: calc((min(100vw, var(--wrap)) - 2 * var(--gut)) / 6); border-left: 1px solid var(--line); opacity: .35; }
.gridlines i:last-child { border-right: 1px solid var(--line); }
@media (max-width: 700px) { .gridlines i:nth-child(n+4) { display: none; } .gridlines i { width: calc((100vw - 2 * var(--gut)) / 3); } }

/* ---------- tipografía display ---------- */
.disp {
  font-family: var(--f-disp); font-stretch: 68%; font-weight: 800; text-transform: uppercase;
  line-height: .9; letter-spacing: -.005em; font-variation-settings: "wdth" 68;
}
h1.disp { font-size: clamp(3.3rem, 7vw, 6.6rem); margin-bottom: .32em; }
h2.disp { font-size: clamp(2.3rem, 5.2vw, 4.5rem); margin-bottom: .38em; }
h3.disp { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.hl { color: var(--hl); }
.mark { background: var(--acc); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.out { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.lead strong, .sub strong { color: var(--text); font-weight: 600; }
.sub { color: var(--muted); max-width: 64ch; }
.kicker {
  display: block; margin: 0 0 1.4em;
  font: 500 .76rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; display: inline-block; width: .62em; height: .62em; background: var(--acc); margin-right: .6em; vertical-align: .05em; }
.kicker b { color: var(--text); font-weight: 600; }
.mono { font-family: var(--f-mono); }
.note { font-size: .86rem; color: var(--muted); }
.vwrap [data-vw] { display: inline-block; transition: font-variation-settings .35s var(--ease), font-stretch .35s var(--ease); }

/* ---------- navegación ---------- */
.nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); border-color: var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.12rem/1 var(--f-disp); letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--hl); font-weight: 800; }
.logo .lm-s { fill: var(--violet); }
.logo .lm-c { stroke: var(--lime); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu > a, .menu > .dd > button {
  border: 0; background: none; padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500;
  color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.menu > a:hover, .menu > .dd > button:hover, .menu > a[aria-current="page"], .menu > .dd.cur > button { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.dd { position: relative; }
.dd svg { width: 12px; height: 12px; transition: transform .2s; }
.dd.open svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(760px, 92vw);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.dd.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; padding: 12px; border-radius: 12px; text-decoration: none; }
.mega a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.mega .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--acc)) 16%, transparent); color: var(--c, var(--acc)); }
.mega .ic svg { width: 20px; height: 20px; }
.mega b { font-size: .95rem; }
.mega small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.nav-act { display: flex; align-items: center; gap: 6px; }
.ibtn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  display: inline-grid; place-items: center; color: var(--text); flex: none; position: relative;
}
.ibtn:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--text) 6%, transparent); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn[aria-pressed="true"] { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.kbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--muted); font-size: .86rem; }
.kbtn:hover { color: var(--text); border-color: var(--line-2); }
.kbtn svg { width: 16px; height: 16px; }
.cart-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--violet); color: #fff; font: 700 .68rem/19px var(--f-mono); text-align: center; }
.cart-n:empty, .cart-n[data-n="0"] { display: none; }
.burger { display: none; }
@media (max-width: 1080px) { .kbtn span, .kbtn kbd { display: none; } .kbtn { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 980px) {
  .burger { display: inline-grid; }
  .menu {
    position: fixed; inset: 70px 0 0; z-index: 59; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 16px var(--gut) 40px; overflow-y: auto; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu > a, .menu > .dd > button { font: 800 1.9rem/1.1 var(--f-disp); font-stretch: 68%; text-transform: uppercase; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); width: 100%; justify-content: space-between; }
  .mega { position: static; translate: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; background: none; padding: 0 0 10px; display: none; opacity: 1; visibility: visible; transform: none; }
  .dd.open .mega { display: grid; }
  .nav-cta { display: none; }
}
.nav-cta { white-space: nowrap; }

/* ---------- botones ---------- */
.btn {
  --b: var(--acc); --t: var(--on-acc);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em;
  border: 1.5px solid var(--b); border-radius: var(--r-sm); background: var(--b); color: var(--t);
  font-weight: 650; font-size: .98rem; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
  translate: var(--mx, 0) var(--my, 0);
}
.btn:hover { color: var(--t); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--violet); }
:root[data-theme="light"] .btn:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --b: transparent; --t: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-v { --b: var(--violet); --t: #fff; }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .87rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
button.lnk { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.lnk { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--hl); }
.lnk svg { width: 16px; height: 16px; transition: transform .2s; }
.lnk:hover svg { transform: translateX(4px); }

/* ---------- secciones ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.sec.tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head.split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; }
.sec-head.split .sub { margin-bottom: .6em; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; gap: 0; } }
.idx { font: 500 .76rem/1 var(--f-mono); color: var(--muted); letter-spacing: .1em; }

/* hero */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); position: relative; }
.hero-g { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { margin-top: .1em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--acc); }
:root[data-theme="light"] .hero-meta svg { color: var(--violet); }
@media (max-width: 900px) { .hero-g { grid-template-columns: 1fr; } }

.stack { position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; margin-inline: auto; width: 100%; }
.stack .ph { position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); translate: var(--dx, 0) var(--dy, 0); transition: translate .5s var(--ease); background: var(--bg-3); }
.stack .ph img { width: 100%; height: 100%; object-fit: cover; }
.stack .p1 { inset: 4% 0 22% 8%; }
.stack .p2 { width: 44%; aspect-ratio: 1; left: 0; bottom: 0; }
.stack .p3 { width: 34%; aspect-ratio: 1; right: 4%; bottom: 4%; }
.chip-f {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font: 500 .8rem/1.2 var(--f-mono); white-space: nowrap;
  translate: var(--dx, 0) var(--dy, 0); transition: translate .5s var(--ease);
}
.chip-f i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.chip-f.c1 { top: 0; left: 0; }
.chip-f.c2 { top: 38%; right: -2%; }
.chip-f.c3 { bottom: 30%; left: 30%; }
.chip-f b { color: var(--hl); }
@media (max-width: 520px) { .chip-f.c2 { right: 0; } .chip-f.c3 { left: 20%; } }

/* marquesina */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.marquee .tr { display: flex; width: max-content; gap: 0; animation: mq 60s linear infinite; }
.marquee span { font: 800 clamp(1.4rem, 3vw, 2.2rem)/1 var(--f-disp); font-stretch: 68%; text-transform: uppercase; padding: 0 .55em; white-space: nowrap; }
.marquee span:nth-child(odd) { color: var(--muted); }
.marquee span::after { content: "✦"; margin-left: 1.1em; color: var(--acc); font-size: .6em; vertical-align: middle; }
:root[data-theme="light"] .marquee span::after { color: var(--violet); }
.marquee:hover .tr { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- tarjetas ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease);
}
.card::before { /* foco de luz que sigue al cursor */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--acc) 13%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card > * { position: relative; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--c, var(--acc)) 15%, transparent); color: var(--c, var(--acc)); }
.card .ic svg { width: 24px; height: 24px; }
:root[data-theme="light"] .card .ic { color: color-mix(in srgb, var(--c, var(--violet)) 80%, var(--ink)); }
.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 .72rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* bento de áreas */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.bento .area { grid-column: span 2; display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-height: 300px; }
.bento .area.big { grid-column: span 3; }
.bento .area .num { position: absolute; top: clamp(20px, 2.4vw, 30px); right: clamp(20px, 2.4vw, 30px); font: 500 .75rem var(--f-mono); color: var(--muted); }
.bento .area h3 { font: 800 clamp(1.7rem, 2.6vw, 2.25rem)/.95 var(--f-disp); font-stretch: 70%; text-transform: uppercase; margin-bottom: .4em; }
.bento .area p { margin-bottom: 1.2em; }
.bento .area .tags { margin-top: auto; padding-top: 10px; }
.bento .area .go { position: absolute; right: clamp(20px, 2.4vw, 30px); bottom: clamp(20px, 2.4vw, 30px); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .25s var(--ease); }
.bento .area .go svg { width: 16px; height: 16px; }
.bento .area:hover .go { background: var(--acc); color: var(--ink); border-color: var(--acc); transform: rotate(-45deg); }
.bento .area .tags { padding-right: 50px; }
.bento .area .thumb { margin: -6px -6px 18px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8; border: 1px solid var(--line); }
.bento .area .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento .area:hover .thumb img { transform: scale(1.05); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .area, .bento .area.big { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .area { min-height: 0; } }

/* imagen con marco */
.frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.cap { font: 500 .74rem/1.4 var(--f-mono); color: var(--muted); margin-top: 10px; letter-spacing: .03em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.duo.rev > :first-child { order: 2; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo.rev > :first-child { order: 0; } }

/* lista con checks */
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%230b0b10' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* pasos del proceso */
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; border-top: 1px solid var(--line-2); counter-reset: st; position: relative; }
.steps-line::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--acc); transition: width .2s; }
.steps-line li { padding: 26px 22px 0 0; counter-increment: st; }
.steps-line li::before { content: "0" counter(st); display: block; font: 500 .78rem var(--f-mono); color: var(--muted); margin-bottom: 14px; }
.steps-line b { display: block; font: 800 1.45rem/1 var(--f-disp); font-stretch: 70%; text-transform: uppercase; margin-bottom: 8px; }
.steps-line p { color: var(--muted); font-size: .93rem; }
.steps-line li.done::before { color: var(--hl); }
@media (max-width: 860px) { .steps-line { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); } .steps-line::before { width: 2px; height: calc(var(--p, 0) * 100%); left: -1px; } .steps-line li { padding: 0 0 26px 24px; } }

/* preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-mono); color: var(--hl); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 72ch; margin: 0; }
.faq details a { color: var(--link); }

/* ---------- formularios ---------- */
.lbl { display: block; font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent); }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.field { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line-2); background: transparent; font-size: .9rem; font-weight: 500; color: var(--text); transition: .2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip svg { width: 16px; height: 16px; }
.chip .sw { width: 14px; height: 14px; border-radius: 4px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .2s; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, transparent); }
.opt input { width: 18px; height: 18px; accent-color: var(--violet); margin: 0; }
.opt small { display: block; color: var(--muted); font-size: .82rem; }
.opt b { font: 600 .78rem var(--f-mono); color: var(--hl); }
input[type="range"] { width: 100%; accent-color: var(--acc); }

/* ---------- herramientas / paneles ---------- */
.tool { background: var(--card); border: 1px solid var(--line-2); border-radius: calc(var(--r) + 4px); padding: clamp(18px, 3vw, 36px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.tool-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 900px) { .tool-g { grid-template-columns: 1fr; } }
.tool-bar { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; font: 500 .74rem var(--f-mono); color: var(--muted); }
.tool-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.tool-bar i:nth-child(1) { background: #ff5f57; } .tool-bar i:nth-child(2) { background: #febc2e; } .tool-bar i:nth-child(3) { background: #28c840; }
.tool-bar span { margin-left: 8px; }
.out-box { padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.meter { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--acc); transition: width .4s var(--ease), background .3s; }
.big-n { font: 800 clamp(3rem, 7vw, 5rem)/.9 var(--f-disp); font-stretch: 70%; }
.prog { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.prog i { display: block; height: 100%; background: var(--acc); transition: width .35s var(--ease); }
.ans { display: block; width: 100%; text-align: left; padding: 15px 18px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 55%, transparent); font-weight: 500; transition: .2s; }
.ans:hover { border-color: var(--acc); transform: translateX(4px); }
.fb { margin-top: 16px; padding: 16px 18px; border-radius: 12px; border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.fb.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.fb .btn { margin-top: 12px; }
.res-h { font: 800 clamp(2rem, 4vw, 3rem)/.95 var(--f-disp); font-stretch: 70%; text-transform: uppercase; }

/* celular de vista previa */
.phone { width: min(330px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #0e0e14; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow), inset 0 0 0 2px #23232e; position: relative; }
.phone-in { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; color: #111; font-family: var(--f-body); transition: opacity .2s; }
.phone-in.swap { opacity: 0; }
.phone .notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #0e0e14; z-index: 3; }
.ph-top { display: flex; justify-content: space-between; padding: 14px 22px 6px; font: 600 .7rem var(--f-body); }
.ph-scroll { height: calc(100% - 36px); overflow-y: auto; scrollbar-width: none; }
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-b { padding: 16px 18px 20px; }
.ph-b h4 { font: 800 1.45rem/1 var(--f-disp); font-stretch: 75%; text-transform: uppercase; margin: 0 0 6px; color: var(--c); }
.ph-b p { font-size: .8rem; color: #555; margin-bottom: 12px; }
.ph-btn { display: block; text-align: center; padding: 11px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; font-size: .82rem; }
.ph-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ph-row span { font-size: .66rem; text-align: center; padding: 8px 2px; border-radius: 8px; background: #f2f2f2; font-weight: 600; }
.ph-foot { font: 500 .62rem var(--f-mono); color: #777; margin-top: 12px; text-align: center; }
.ig-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ig-av { width: 58px; height: 58px; border-radius: 50%; padding: 2px; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); flex: none; }
.ig-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--c); color: #fff; font: 800 1.2rem var(--f-disp); }
.ig-stats { display: flex; gap: 14px; font-size: .68rem; text-align: center; }
.ig-stats b { display: block; font-size: .85rem; }
.ig-bio { padding: 0 14px 10px; font-size: .74rem; }
.ig-bio b { display: block; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid span { aspect-ratio: 1; background: var(--c) center / cover; opacity: .9; display: grid; place-items: center; color: #fff; font: 800 .7rem/1.05 var(--f-disp); text-transform: uppercase; text-align: center; padding: 6px; }
.ig-grid span:nth-child(3n+2) { background-color: #222; }
.ig-grid span:nth-child(4n) { background-color: #c6f432; color: #111; }
.gm-map { height: 150px; background: #e6eef2 linear-gradient(115deg, transparent 46%, #fff 46% 50%, transparent 50%), linear-gradient(25deg, transparent 60%, #fff 60% 63%, transparent 63%) #dfe9df; position: relative; }
.gm-map::after { content: ""; position: absolute; left: 50%; top: 42%; width: 26px; height: 26px; translate: -50% -50%; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #ea4335; box-shadow: 0 6px 10px rgba(0, 0, 0, .25); }
.gm-card { padding: 14px 16px; }
.gm-card h4 { font: 600 1.05rem var(--f-body); margin: 0 0 4px; }
.gm-stars { color: #f5a623; font-size: .78rem; letter-spacing: 1px; }
.gm-stars em { color: #555; font-style: normal; letter-spacing: 0; margin-left: 4px; }
.gm-meta { font-size: .72rem; color: #555; margin: 6px 0 10px; }
.gm-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-size: .6rem; color: #1a73e8; font-weight: 600; }
.gm-acts i { display: block; width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; border: 1px solid #dadce0; }
.gm-open { color: #188038; font-weight: 600; }

/* antes / después */
.ba { position: relative; aspect-ratio: 16 / 8.6; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); --pos: 50%; background: #fff; user-select: none; }
.ba-l { position: absolute; inset: 0; }
.ba-old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-h { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--acc); translate: -1px 0; pointer-events: none; z-index: 3; }
.ba-h span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.ba-h svg { width: 20px; height: 20px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.ba-tag { position: absolute; top: 14px; z-index: 2; padding: 5px 10px; border-radius: 8px; font: 600 .72rem var(--f-mono); background: rgba(11, 11, 16, .78); color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; background: var(--acc); color: var(--ink); }
.ba-new { background: #fff; color: #1c1917; font-family: var(--f-body); display: flex; flex-direction: column; }
.bn-bar, .bo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f1f1f1; font-size: .72rem; color: #444; border-bottom: 1px solid #e5e5e5; }
.bn-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd; }
.bn-bar span { margin-left: 8px; background: #fff; border-radius: 6px; padding: 3px 10px; flex: 1; }
.bn-nav { display: flex; gap: 18px; align-items: center; padding: 14px 24px; font-size: .78rem; color: #57534e; }
.bn-nav b { font: 800 1.15rem var(--f-disp); font-stretch: 75%; text-transform: uppercase; color: #9a3412; margin-right: auto; }
.bn-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 8px 24px 24px; align-items: center; }
.bn-hero small { color: #9a3412; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.bn-hero h3 { font: 800 clamp(1.3rem, 3.2vw, 2.4rem)/.95 var(--f-disp); font-stretch: 72%; text-transform: uppercase; margin: 8px 0 14px; color: #1c1917; }
.bn-btn { display: inline-block; background: #9a3412; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.bn-hero p { font-size: .72rem; color: #57534e; margin-top: 12px; }
.bn-hero img { border-radius: 12px; height: 100%; max-height: 240px; width: 100%; object-fit: cover; }
.ba-oldw { background: #c0c0c0; color: #000; font-family: "Times New Roman", serif; }
.bo-bar { background: #d4d0c8; font-family: Tahoma, sans-serif; }
.bo { padding: 14px 20px; text-align: center; background: #ffffcc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='%23ffff99'/%3E%3C/svg%3E"); height: 100%; }
.bo h3 { font: 700 1.6rem "Comic Sans MS", "Comic Sans", cursive; color: #ff0000; margin: 6px 0; text-shadow: 2px 2px #ffff00; }
.bo p { margin: 6px 0; font-size: .85rem; }
.bo u { color: #0000ee; }
.bo table { margin: 8px auto; border: 3px outset #999; background: #fff; font-size: .8rem; }
.bo td { border: 1px inset #999; padding: 3px 8px; }
.bo .mq { background: #000080; color: #ffff00; font-family: monospace; font-size: .75rem; padding: 3px; overflow: hidden; white-space: nowrap; }
.bo .mq span { display: inline-block; animation: mq2 12s linear infinite; padding-left: 100%; }
@keyframes mq2 { to { transform: translateX(-100%); } }
.lens-box { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); cursor: crosshair; }
.lens-box img { width: 100%; }
.lens { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 3px solid var(--acc); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transition: opacity .2s; background-repeat: no-repeat; translate: -50% -50%; z-index: 3; }
.lens-box:hover .lens { opacity: 1; }
@media (hover: none) { .lens { display: none; } }
.split-tags { position: absolute; inset: 0; pointer-events: none; }
.tabs-ba { margin-bottom: 18px; }

/* combos */
.combo { display: flex; flex-direction: column; }
.combo h3 { font: 800 2rem/1 var(--f-disp); font-stretch: 70%; text-transform: uppercase; }
.combo ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .93rem; }
.combo li { display: flex; gap: 10px; color: var(--muted); }
.combo li::before { content: "+"; font-family: var(--f-mono); color: var(--hl); }
.combo .btn { margin-top: auto; }
.combo .for { font: 500 .74rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.combo.feat { border-color: var(--acc); }
.combo.feat .for { padding-right: 104px; }
.combo.feat::after { content: "Recomendado"; position: absolute; top: 18px; right: 18px; font: 600 .68rem var(--f-mono); background: var(--acc); color: var(--ink); padding: 4px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }

/* servicios de un área */
.svc { display: flex; flex-direction: column; }
.svc .kw { font: 500 .72rem var(--f-mono); color: var(--muted); margin-bottom: 10px; }
.svc .add { margin-top: auto; align-self: flex-start; }
.add[aria-pressed="true"] { background: var(--acc); color: var(--ink); border-color: var(--acc); }

/* métricas en vivo */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.metrics div { padding: 26px 22px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.metrics b { display: block; font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--f-disp); font-stretch: 70%; color: var(--hl); }
.metrics span { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* laboratorio (accesos a herramientas) */
.lab a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; min-height: 210px; }
.lab a .lnk { margin-top: auto; }

/* CTA final */
.cta-big { text-align: center; }
.cta-big h2 { font-size: clamp(3.2rem, 11vw, 10rem); margin-bottom: .2em; }
.cta-big .cta-row { justify-content: center; }
.cta-big .lead { margin-inline: auto; }

/* migas */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 .76rem var(--f-mono); color: var(--muted); margin-bottom: 26px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--text); }

/* área: cabecera */
.area-hero .frame { aspect-ratio: 4 / 3.4; }
.pains { counter-reset: pn; }
.pains .card::after { counter-increment: pn; content: "0" counter(pn); position: absolute; right: 22px; top: 18px; font: 800 2.6rem var(--f-disp); color: color-mix(in srgb, var(--text) 10%, transparent); }

/* galería horizontal */
.hs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.hs > * { scroll-snap-align: start; }
@media (max-width: 640px) { .hs { grid-auto-columns: 78%; } }
.logo-tile { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.gal { columns: 3 280px; column-gap: 16px; }
.gal figure { break-inside: avoid; margin: 0 0 16px; }
.gal button { padding: 0; border: 0; background: none; width: 100%; display: block; border-radius: 14px; overflow: hidden; }
.gal img { width: 100%; transition: transform .6s var(--ease); }
.gal button:hover img { transform: scale(1.04); }
.gal figcaption { font: 500 .74rem var(--f-mono); color: var(--muted); padding: 8px 2px 0; }
.gal figure[hidden] { display: none; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
dialog.lb::backdrop { background: rgba(5, 5, 8, .88); backdrop-filter: blur(6px); }
dialog.lb img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 12px; }
dialog.lb p { color: #ddd; text-align: center; font-size: .9rem; margin-top: 10px; }
dialog.lb .x { position: fixed; top: 16px; right: 16px; }

/* ---------- paleta de comandos ---------- */
dialog.cmd { width: min(640px, 94vw); border: 1px solid var(--line-2); border-radius: 18px; padding: 0; background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); margin-top: 12vh; }
dialog.cmd::backdrop { background: rgba(5, 5, 10, .6); backdrop-filter: blur(4px); }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmd-in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cmd-in input { flex: 1; border: 0; background: none; outline: none; font-size: 1.05rem; }
.cmd-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmd-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.cmd-list li[aria-selected="true"] { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.cmd-list li small { margin-left: auto; font: 500 .7rem var(--f-mono); color: var(--muted); }
.cmd-list li svg { width: 16px; height: 16px; color: var(--muted); }
.cmd-list .grp { font: 500 .68rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; padding: 10px 12px 4px; cursor: default; }
.cmd-out { padding: 10px 20px 16px; font: 500 .82rem/1.5 var(--f-mono); color: var(--hl); white-space: pre-wrap; }
.cmd-out:empty { display: none; }
.cmd-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }

/* ---------- modo desarrollador ---------- */
:root[data-dev] main *:not(svg *):not(canvas) { outline: 1px dashed color-mix(in srgb, var(--violet-hi) 45%, transparent); outline-offset: -1px; }
:root[data-dev] .gridlines i { opacity: 1; border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.dev-hud { position: fixed; left: 14px; bottom: 14px; z-index: 80; width: 250px; padding: 14px 16px; border-radius: 14px; background: rgba(8, 8, 12, .92); color: #e9e6dc; border: 1px solid rgba(198, 244, 50, .4); font: 500 .74rem/1.7 var(--f-mono); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dev-hud b { color: var(--lime); font-weight: 600; float: right; }
.dev-hud .t { color: var(--lime); margin-bottom: 6px; display: block; letter-spacing: .1em; }
.dev-tip { position: fixed; z-index: 81; pointer-events: none; padding: 4px 8px; border-radius: 6px; background: var(--violet); color: #fff; font: 500 .7rem var(--f-mono); white-space: nowrap; }

/* píldora del fondo */
.bg-pill { position: fixed; left: 14px; bottom: 14px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--line); font: 500 .72rem var(--f-mono); color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: calc(100vw - 100px); }
.bg-pill b { color: var(--text); font-weight: 600; }
.bg-pill .ibtn { width: 30px; height: 30px; border-radius: 50%; }
.bg-pill .ibtn svg { width: 13px; height: 13px; }
:root[data-dev] .bg-pill { display: none; }
@media (max-width: 640px) { .bg-pill .hint { display: none; } }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s var(--ease); }
.fab.on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 110px; position: relative; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.foot-g { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.foot a { text-decoration: none; color: var(--text); }
.foot a:hover { color: var(--link); }
.foot .big { font: 800 clamp(3rem, 10vw, 9rem)/.8 var(--f-disp); font-stretch: 66%; text-transform: uppercase; margin: 56px 0 18px; color: color-mix(in srgb, var(--text) 9%, transparent); white-space: nowrap; overflow: hidden; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); }
.foot .term { font: 500 .8rem var(--f-mono); color: var(--muted); }
.foot .term b { color: var(--hl); }
@media (max-width: 860px) { .foot-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-g { grid-template-columns: 1fr; } }

/* ---------- aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  .wd { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
  .split-in .wd { opacity: 1; transform: none; }
}

/* ---------- utilidades varias ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt1 { margin-top: 18px; } .mt2 { margin-top: 36px; } .mt3 { margin-top: 64px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.pill-ok { color: var(--ok); } .pill-bad { color: var(--bad); }
.src { font-size: .8rem; color: var(--muted); }
.src a { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 120; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.badge-demo { display: inline-block; font: 600 .66rem var(--f-mono); background: var(--violet); color: #fff; padding: 3px 8px; border-radius: 6px; letter-spacing: .08em; text-transform: uppercase; }
.stamp { font: 500 .72rem var(--f-mono); color: var(--muted); }

@media print { #bg, .gridlines, .nav, .bg-pill, .fab, .foot .big { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- componentes de herramientas ---------- */
.checks li.no::before { background: color-mix(in srgb, var(--text) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23999' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks li.no { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cot-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.cot-step legend { padding: 0; margin-bottom: .4em; }
.cot-area { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.cot-area summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 650; }
.cot-area summary::-webkit-details-marker { display: none; }
.cot-area summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--hl); margin-left: 8px; }
.cot-area[open] summary::after { content: "–"; }
.cot-area summary span:first-child { margin-right: auto; }
.cot-area .tag:empty { display: none; }
.cot-area > .grid { padding: 0 14px 14px; }
.prose h2 { font: 800 1.9rem/1 var(--f-disp); font-stretch: 70%; text-transform: uppercase; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--link); }

/* glosario */
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.flip { position: relative; min-height: 150px; border: 0; padding: 0; background: none; perspective: 900px; text-align: left; }
.flip > span { position: absolute; inset: 0; border-radius: 16px; padding: 18px; border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); }
.flip .fr { background: var(--card); }
.flip .fr b { font: 800 1.5rem/1 var(--f-disp); font-stretch: 72%; text-transform: uppercase; }
.flip .fr small { font: 500 .7rem var(--f-mono); color: var(--muted); }
.flip .bk { background: var(--acc); color: var(--ink); transform: rotateY(180deg); font-size: .9rem; line-height: 1.45; justify-content: center; }
.flip[aria-pressed="true"] .fr { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .bk { transform: rotateY(0); }
@media (prefers-reduced-motion: reduce) { .flip > span { transition: none; } }

/* cómo viaja tu web */
.fl-track { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.fl-track::before { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; background: var(--line-2); }
.fl-track .node { position: relative; z-index: 1; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font: 600 .8rem var(--f-mono); transition: .3s; }
.fl-track .node.on { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.fl-track .packet { position: absolute; top: calc(50% - 11px); left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 6px color-mix(in srgb, var(--violet) 30%, transparent); transition: left .8s var(--ease); z-index: 2; }
@media (max-width: 560px) { .fl-track .node { font-size: .66rem; padding: 8px; } }

/* LinkedIn */
.li-card { background: #fff; color: #1d1d1d; overflow: hidden; }
.li-cover { height: 90px; background: linear-gradient(120deg, #5a34ff, #9d8bff 60%, #c6f432); }
.li-body { padding: 0 20px 20px; position: relative; }
.li-av { display: grid; place-items: center; width: 92px; height: 92px; margin-top: -46px; border-radius: 50%; border: 4px solid #fff; background: #0b0b10; color: #c6f432; font: 800 2.4rem var(--f-disp); }
.li-body b { display: block; font: 700 1.2rem var(--f-body); margin-top: 10px; }
.li-body p { color: #1d1d1d; font-size: .95rem; margin: 4px 0 6px; min-height: 2.8em; }
.li-body small { color: #666; font-size: .8rem; }

/* WhatsApp demo */
.wa-ui { display: flex; flex-direction: column; background: #efeae2; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 46px 14px 10px; background: #075e54; color: #fff; }
.wa-top small { display: block; font-size: .66rem; opacity: .8; }
.wa-top b { font-size: .88rem; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: #c6f432; color: #0b0b10; display: grid; place-items: center; font-weight: 800; }
.wa-chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.wa-msg { max-width: 82%; padding: 7px 10px 16px; border-radius: 10px; background: #fff; font-size: .78rem; line-height: 1.35; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); align-self: flex-start; color: #111; }
.wa-msg.me { align-self: flex-end; background: #d9fdd3; }
.wa-msg small { position: absolute; right: 8px; bottom: 3px; font-size: .58rem; color: #667; }
.wa-typing { display: flex; gap: 4px; padding: 10px 12px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: wt 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wt { 50% { transform: translateY(-4px); opacity: .5; } }
.wa-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #f0f2f5; }
.wa-quick button { border: 1px solid #c8d1d6; background: #fff; color: #0b6e5f; border-radius: 99px; padding: 7px 11px; font-size: .72rem; font-weight: 600; }
.wa-quick button:hover { background: #e7f6f3; }

/* semáforo */
.sem { display: inline-flex; gap: 6px; padding: 6px 8px; border-radius: 99px; background: #111; }
.sem i { width: 16px; height: 16px; border-radius: 50%; background: #333; transition: .3s; }
.sem[data-l="0"] i:nth-child(1) { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.sem[data-l="1"] i:nth-child(2) { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.sem[data-l="2"] i:nth-child(3) { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.ley-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ley-q p { margin-bottom: 8px; font-size: .95rem; }
.ley-q .chip { min-height: 34px; padding: 5px 12px; font-size: .82rem; }

/* juego de phishing */
.g-box { white-space: pre-wrap; padding: 18px 20px; border-radius: 12px; background: #fff; color: #111; border: 1px solid var(--line-2); font-size: 1rem; line-height: 1.5; }
.g-box.url { font-family: var(--f-mono); font-size: .92rem; word-break: break-all; background: #f1f3f4; }

/* google maps extra */
.gm-search { margin: 8px 12px; padding: 10px 14px; border-radius: 99px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font-size: .74rem; color: #444; }
.gm-ver { color: #1a73e8; font-size: .8rem; }
.gm-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px 0; }
.gm-fotos img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gm-post { font-size: .7rem; background: #f1f3f4; padding: 8px 10px; border-radius: 8px; color: #333; }

/* radar */
.radar { width: 100%; max-width: 420px; margin-inline: auto; color: var(--text); overflow: visible; }
.radar text { font: 600 11px var(--f-mono); fill: var(--muted); }
.radar-p { fill: color-mix(in srgb, var(--acc) 30%, transparent); stroke: var(--acc); stroke-width: 2; }
:root[data-theme="light"] .radar-p { fill: color-mix(in srgb, var(--violet) 22%, transparent); stroke: var(--violet); }
.radar-d { fill: var(--acc2); }

/* varios */
.idea { list-style: none; }
#idList { padding: 0; margin-bottom: 0; }
.idea .kw { font: 500 .72rem var(--f-mono); color: var(--hl); display: block; margin-bottom: 8px; }
.ex-th { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
#exOut .opt { grid-template-columns: auto 1fr auto; }
#psCanvas, #kitCanvas { width: 100%; height: auto; }
#pgPrev { width: 100%; height: 100%; min-height: 300px; background: #fff; }
#pgCode { min-height: 300px; font-size: .85rem; line-height: 1.55; }
#coPrev { border: 1px solid var(--line-2); }
#coPrev .disp { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.lab-c { text-decoration: none; color: var(--text); display: block; }
.res-h + .big-n { flex: none; }

@media (max-width: 700px) {
  .ba { aspect-ratio: 3 / 4; }
  .bn-hero { grid-template-columns: 1fr; }
  .bn-hero img { max-height: 160px; }
  .bn-nav span { display: none; }
}
@media (max-width: 980px) { .nav .nav-cta { display: none; } }
@media (max-width: 600px) { #devBtn { display: none; } .nav-in { gap: 10px; } .nav-act { gap: 5px; } .logo { font-size: 1.02rem; } }
@media (max-width: 360px) { .logo span { display: none; } }
.bg-pill { opacity: .8; transition: opacity .2s; } .bg-pill:hover { opacity: 1; }.hs > figure { margin: 0; }
.hs .frame { aspect-ratio: 4 / 3; }
.hs .frame img { height: 100%; }

#pw .row { flex-wrap: nowrap; } #pw .row .input { flex: 1; width: auto; min-width: 0; }
