/* fonts.css — generado por scripts/descargar-fuentes.js.
   Inter y Sora bajo SIL Open Font License 1.1 (assets/fonts/OFL.txt).
   Se alojan aquí para no enviar la IP de quien visita a un tercero. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sora-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sora-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sora-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   Utilince — sistema visual rojo · negro · blanco
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Cabecera y buscador · 7 Hero y home · 8 Secciones y tarjetas
   9 Herramienta (shell) · 10 Generador QR · 11 Blog · 12 Anuncios
   13 Pie · 14 Animaciones · 15 Responsive
   ============================================================= */

/* 1. Tokens */
:root {
  --accent: #E0182D; --accent-2: #FF4B5C; --accent-deep: #9E0F1F;
  --ink: #0A0A0F; --ink-2: #4A4A57; --ink-3: #8B8B98;
  --bg: #FAFAFB; --surface: #FFFFFF; --surface-2: #F2F2F5; --line: #E6E6EB;
  --dark: #0A0A0F; --dark-2: #141419; --dark-line: rgba(255,255,255,.1); --on-dark: #F5F5F7; --on-dark-2: #B5B5C2;
  --ok: #178A4C; --warn: #B45309; --err: #C81E3C;
  --radius: 20px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(10,10,15,.05), 0 16px 40px -18px rgba(10,10,15,.18);
  --shadow-red: 0 18px 44px -18px rgba(224,24,45,.55);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Sora", var(--sans);
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-soft: cubic-bezier(.25,.46,.45,.94);
  --gutter: clamp(1rem, 4vw, 2.25rem); --maxw: 1200px;
  color-scheme: light;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
ul, ol { padding-left: 1.25rem; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilidades */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-s); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink-2); border-left: 3px solid var(--accent); }
.notice a, .seo-text a, .legal a, .faq a, .privacy-note a, .privacy-x__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.todo { background: #FFF4CC; color: #7A5A00; padding: .1rem .35rem; border-radius: 4px; font-weight: 600; }

/* 4. Tipografía */
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--display); }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: #fff; } .eyebrow--light::before { background: #fff; }
.hl { color: var(--accent); background: linear-gradient(90deg, rgba(224,24,45,.35), rgba(255,75,92,.35)) no-repeat 0 92% / 100% .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .04em; }
.seo-text p + p, .seo-text h2, .seo-text h3, .seo-text ul, .seo-text ol { margin-top: 1rem; }
.seo-text h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.seo-text h3 { margin-top: 1.5rem; }
.seo-text li + li { margin-top: .35rem; }
.seo-text code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: .6rem; }
.legal { max-width: 760px; }

/* 5. Componentes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; line-height: 1.2; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .2s, border-color .2s, color .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: var(--shadow-red); }
.btn--glow { box-shadow: 0 10px 30px -10px rgba(224,24,45,.7); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: #fff; color: var(--accent); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--3d { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #fff; padding: 1rem 1.4rem; font-size: 1.02rem; width: 100%; box-shadow: var(--shadow-red); }
.btn--3d:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(224,24,45,.7); }
.btn--ghost { background: transparent; }
.btn--link { border: 0; background: none; padding: .4rem .2rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease-soft); }
.btn--primary:hover::after { left: 130%; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s, transform .3s var(--ease-out); }
.chip:hover, .chip.is-active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); transform: translateY(-1px); }
.chip--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-dark); }
.chip--dark:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; vertical-align: middle; }
.badge--new { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.badge--soon { background: var(--surface-2); color: var(--ink-3); }
.badge--local { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--on-dark-2); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(224,24,45,.25); animation: pulse 2s infinite; }
.field { display: grid; gap: .35rem; }
.field > label, .block__title { font-weight: 600; font-size: .9rem; }
.input, select.input, textarea.input { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); background: var(--surface); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.input { min-height: 5rem; resize: vertical; }
.input--lg { font-size: 1.05rem; padding: .95rem 1.1rem; }
.row { display: grid; gap: .75rem; }
.row--2 { grid-template-columns: 1fr 1fr; }
.msg-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 70; padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }
.section-head { max-width: 64ch; margin-bottom: 1.75rem; }
.section-head p { margin-top: .6rem; color: var(--ink-2); }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { color: var(--accent); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--tight { padding: 1.5rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .section-head p, .section--dark .lead { color: var(--on-dark-2); }
.section--dark .card { background: var(--dark-2); border-color: var(--dark-line); }

/* 6. Cabecera, navegación y buscador */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,15,.72); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(10,10,15,.92); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.site-header__row { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.header-search { position: relative; flex: 1; max-width: 400px; display: flex; align-items: center; }
.header-search input { width: 100%; padding: .55rem 2.6rem .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; font-size: .92rem; }
.header-search input::placeholder { color: rgba(255,255,255,.55); }
.header-search input:focus { border-color: var(--accent); background: rgba(255,255,255,.12); outline: none; box-shadow: 0 0 0 3px rgba(224,24,45,.25); }
.header-search button { position: absolute; right: .35rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.header-search button svg { width: 18px; height: 18px; }
.search-results { position: absolute; top: calc(100% + .45rem); left: 0; right: 0; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); overflow: hidden; max-height: 70vh; overflow-y: auto; text-align: left; }
.search-result { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: var(--surface-2); }
.search-result__icon { font-size: 1.3rem; width: 1.6rem; text-align: center; flex: none; }
.search-result__name { display: block; font-weight: 600; font-size: .95rem; }
.search-result__short { display: block; font-size: .8rem; color: var(--ink-2); }
.search-result--all { justify-content: center; color: var(--accent); font-weight: 600; font-size: .9rem; }
.search-empty { padding: .85rem; font-size: .9rem; color: var(--ink-2); }
.search-empty a { color: var(--accent); text-decoration: underline; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.8); white-space: nowrap; transition: background .2s, color .2s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
.nav__link svg { width: 16px; height: 16px; }
.nav__link--cta { background: var(--accent); color: #fff; margin-left: .35rem; font-weight: 600; }
.nav__link--cta:hover { background: var(--accent-deep); }
.nav__item { position: relative; }
.megamenu { position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%); width: min(780px, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(10,10,15,.35); padding: 1rem; z-index: 60; }
.megamenu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.megamenu__cat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .65rem; padding: .6rem .7rem; border-radius: var(--radius-s); align-items: center; transition: background .2s; }
.megamenu__cat:hover { background: var(--surface-2); }
.megamenu__icon { grid-row: 1 / 3; font-size: 1.4rem; }
.megamenu__name { font-weight: 600; font-size: .92rem; }
.megamenu__count { font-size: .76rem; color: var(--ink-3); }
.megamenu__all { display: block; margin-top: .75rem; padding: .7rem; text-align: center; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-left: auto; color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }

/* 7. Hero (home) y hero compacto */
.hero-x { position: relative; background: var(--dark); color: var(--on-dark); overflow: clip; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-x__bg { position: absolute; inset: 0; pointer-events: none; }
.hero-x__art { position: absolute; inset: 0; background-size: cover; background-position: 70% 50%; opacity: .32; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 35%, #000 70%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 35%, #000 70%); mask-composite: intersect; -webkit-mask-composite: source-in; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow--a { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(224,24,45,.75), transparent 62%); top: -20%; right: -10%; animation: drift 14s ease-in-out infinite alternate; }
.glow--b { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; background: radial-gradient(circle, rgba(255,75,92,.4), transparent 60%); bottom: -25%; left: -8%; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero-x__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-x__copy h1 { margin-top: 1.2rem; font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); max-width: 14ch; }
.hero-x__copy .lead { margin-top: 1.1rem; color: var(--on-dark-2); }
.hero-search { position: relative; display: flex; gap: .5rem; max-width: 640px; margin-top: 1.6rem; }
.hero-search input { flex: 1; padding: 1rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 1.02rem; box-shadow: var(--shadow); }
.hero-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-search--x { align-items: center; }
.hero-search--x input { padding-left: 2.9rem; color: var(--ink); }
.hero-search__icon { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.hero-chips { margin-top: 1rem; }
.stats { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(4, auto); gap: 1.25rem 2rem; justify-content: start; }
.stats li { display: grid; gap: .1rem; }
.stats strong { font-family: var(--display); font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1; }
.stats span { font-size: .78rem; color: var(--on-dark-2); max-width: 14ch; }
.hero-x__visual { position: relative; min-height: 380px; display: grid; place-items: center; perspective: 1200px; }
.stack { position: relative; width: min(100%, 420px); height: 400px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); }
.stack__card { position: absolute; left: 50%; width: 300px; padding: 1.2rem 1.25rem; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(245,245,247,.96)); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.5) inset; display: grid; grid-template-columns: auto 1fr auto; column-gap: .9rem; align-items: center; transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.stack__card--1 { top: 10%; transform: translateX(-62%) rotate(-6deg) translateZ(40px); animation-delay: 0s; }
.stack__card--2 { top: 38%; transform: translateX(-46%) rotate(3deg) translateZ(80px); animation-delay: -2.3s; z-index: 2; }
.stack__card--3 { top: 66%; transform: translateX(-56%) rotate(-2deg) translateZ(20px); animation-delay: -4.6s; }
.stack__icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--dark); color: #fff; grid-row: 1 / 3; }
.stack__title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.stack__text { font-size: .8rem; color: var(--ink-2); grid-column: 2; }
.stack__qr { grid-row: 1 / 3; grid-column: 3; width: 44px; height: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.stack__qr i { display: block; background: var(--ink); border-radius: 2px; }
.stack__qr i:nth-child(2), .stack__qr i:nth-child(6), .stack__qr i:nth-child(8) { background: var(--accent); }
.stack__qr i:nth-child(5) { background: transparent; }
.stack__badge { position: absolute; right: 0; top: -6%; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; box-shadow: var(--shadow-red); transform: translateZ(120px); animation: spin-slow 22s linear infinite; }
.stack__badge span { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; text-transform: none; }
/* Slider del hero */
.slider { position: relative; width: 100%; }
.slider__track { position: relative; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px) scale(.98); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s; border-radius: 26px; background: linear-gradient(160deg, #15151c, #0f0f14); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(224,24,45,.08); overflow: hidden; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s; }
.slide__media { position: relative; aspect-ratio: 1200 / 630; background: var(--dark-2); display: grid; place-items: center; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__glyph { font-size: 5rem; filter: drop-shadow(0 20px 40px rgba(224,24,45,.45)); }
.slide__rank { position: absolute; top: .9rem; left: .9rem; padding: .35rem .7rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-red); }
.slide__body { padding: 1.25rem 1.35rem 1.4rem; display: grid; gap: .65rem; }
.slide__title { font-size: 1.35rem; color: #fff; }
.slide__text { font-size: .92rem; color: var(--on-dark-2); }
.slide__tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.slide__tools .chip { font-size: .78rem; padding: .3rem .65rem; }
.chip--soon { opacity: .6; cursor: default; }
.slide__body .btn { justify-self: start; margin-top: .25rem; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .9rem; }
.slider__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; transition: background .2s, transform .2s; }
.slider__arrow:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.slider__arrow svg { width: 18px; height: 18px; }
.slider__dots { display: flex; gap: .4rem; }
.slider__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); transition: width .3s var(--ease-out), background .3s; }
.slider__dot.is-active { width: 28px; background: var(--accent); }
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: .75rem 0; font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .02em; border-top: 1px solid rgba(255,255,255,.15); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track span { white-space: nowrap; opacity: .95; }
.hero { padding: clamp(1.75rem, 4vw, 3rem) 0 1.25rem; }
.hero--compact { padding-bottom: 1rem; }
.hero--dark { background: var(--dark); color: var(--on-dark); }
.hero--dark .lead, .hero--dark .breadcrumbs { color: var(--on-dark-2); }
.hero .lead { margin-top: .75rem; }
.hero .lead p { color: inherit; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font-size: .88rem; color: var(--ink-2); }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges--dark { color: var(--on-dark-2); margin-top: 1.5rem; }
.breadcrumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; }
.breadcrumbs a:hover { color: var(--accent); }

/* 8. Secciones y tarjetas */
.adv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.adv { position: relative; padding: 1.6rem 1.5rem 1.5rem; display: grid; gap: .55rem; align-content: start; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.adv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at 100% 0%, rgba(224,24,45,.10), transparent 60%); opacity: 0; transition: opacity .4s; }
.adv:hover { box-shadow: 0 30px 60px -28px rgba(10,10,15,.35); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.adv:hover::before { opacity: 1; }
.adv__num { position: absolute; top: 1.1rem; right: 1.25rem; font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--ink-3); letter-spacing: .06em; }
.adv__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--dark); color: #fff; font-size: 1.5rem; margin-bottom: .4rem; }
.adv p { color: var(--ink-2); font-size: .95rem; }
.bento { display: grid; gap: .85rem; grid-template-columns: repeat(4, 1fr); }
.bento__card { display: grid; gap: .3rem; align-content: start; padding: 1.25rem; border-radius: var(--radius); background: var(--dark-2); border: 1px solid var(--dark-line); color: var(--on-dark); position: relative; overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s, background .3s; }
.bento__card::after { content: "→"; position: absolute; right: 1.1rem; bottom: .9rem; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.bento__card:hover { transform: translateY(-4px); border-color: rgba(224,24,45,.6); background: #1a1a22; }
.bento__card:hover::after { opacity: 1; transform: none; }
.bento__card--big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--accent), var(--accent-deep)); border-color: transparent; }
.bento__card--big .bento__icon { font-size: 3rem; }
.bento__card--big .bento__name { font-size: 1.6rem; }
.bento__card--big .bento__short, .bento__card--big .bento__count { color: rgba(255,255,255,.85); }
.bento__card--big::after { color: #fff; }
.bento__icon { font-size: 1.7rem; line-height: 1; margin-bottom: .4rem; }
.bento__name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.bento__short { font-size: .84rem; color: var(--on-dark-2); }
.bento__count { font-size: .74rem; color: var(--ink-3); margin-top: .35rem; }
.cat-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-grid--compact .cat-card__short { display: none; }
.cat-card { padding: 1.15rem; display: grid; gap: .25rem; align-content: start; transition: transform .3s var(--ease-out), border-color .2s; }
@media (hover: hover) { .cat-card:hover, .tool-card:hover, .post-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } }
.cat-card__icon { font-size: 1.7rem; line-height: 1; margin-bottom: .35rem; }
.cat-card__name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.cat-card__short { font-size: .86rem; color: var(--ink-2); }
.cat-card__count { font-size: .76rem; color: var(--ink-3); margin-top: .35rem; }
.tool-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tool-card { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: start; padding: 1.05rem 1.1rem; transition: transform .35s var(--ease-out), border-color .2s, box-shadow .35s; }
.tool-card:hover { box-shadow: 0 24px 50px -26px rgba(10,10,15,.35); }
.tool-card__icon { font-size: 1.35rem; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--dark); color: #fff; }
.tool-card__body { display: grid; gap: .2rem; min-width: 0; }
.tool-card__name { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.tool-card__short { font-size: .84rem; color: var(--ink-2); }
.tool-card__meta { display: grid; gap: .25rem; justify-items: end; }
.tool-card--soon { opacity: .7; background: var(--surface-2); box-shadow: none; }
.tool-card--soon .tool-card__icon { background: var(--ink-3); }
.timeline { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.timeline__step { position: relative; text-align: center; padding: 0 1rem; display: grid; gap: .5rem; justify-items: center; }
.timeline__num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; box-shadow: var(--shadow-red); position: relative; z-index: 1; }
.timeline__step p { color: var(--ink-2); font-size: .95rem; max-width: 30ch; }
.privacy-x { display: grid; gap: 3rem; align-items: center; }
.privacy-x__text { margin-top: 1rem; color: var(--on-dark-2); font-size: 1rem; max-width: 56ch; }
.privacy-x__visual { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 260px; }
.device { width: 150px; height: 280px; border-radius: 30px; background: #1c1c24; border: 3px solid #2a2a35; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); justify-self: end; }
.device__screen { height: 100%; border-radius: 20px; background: #fff; display: grid; place-content: center; gap: .6rem; justify-items: center; }
.device__bar { width: 40px; height: 5px; border-radius: 3px; background: #ddd; margin-bottom: 1rem; }
.device__qr { width: 84px; height: 84px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.device__qr i { background: var(--ink); border-radius: 3px; }
.device__qr i:nth-child(2), .device__qr i:nth-child(6), .device__qr i:nth-child(8) { background: var(--accent); }
.device__qr i:nth-child(5) { background: transparent; }
.device__label { font-size: .7rem; font-weight: 700; color: var(--ink); }
.privacy-x__line { height: 2px; width: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: .5; position: relative; }
.privacy-x__line::after { content: "✕"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--dark); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.cloud { justify-self: start; padding: 1.2rem 1.4rem; border-radius: 22px; background: var(--dark-2); border: 1px dashed var(--dark-line); color: var(--on-dark-2); display: grid; gap: .2rem; text-align: center; font-size: .8rem; }
.cloud__zero { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.benefits { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.privacy-note { margin-top: 1.75rem; padding: 1.2rem 1.35rem; color: var(--ink-2); font-size: .95rem; }
.seo-columns { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.seo-columns h3 { margin-bottom: .3rem; }
.seo-columns h3 a:hover { color: var(--accent); }
.seo-columns p { color: var(--ink-2); font-size: .94rem; }
.faq { max-width: 820px; display: grid; gap: .6rem; }
.faq details { padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex: none; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.1rem; color: var(--ink-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: var(--shadow-red); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.12); right: -120px; top: -160px; }
.cta h2 { margin-top: .5rem; }
.cta p { margin-top: .4rem; color: rgba(255,255,255,.88); max-width: 50ch; }
.cta .btn { position: relative; }

/* 9. Página de herramienta (shell) */
.hero--tool { padding-bottom: 1rem; }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.privacy-badge { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); font-size: .8rem; font-weight: 700; margin-top: .4rem; }
.privacy-badge svg { width: 15px; height: 15px; }
.tool-layout { display: grid; gap: 1.5rem; }
.tool-main { min-width: 0; display: grid; gap: 1rem; }
.tool-shell { padding: clamp(1rem, 2.5vw, 1.75rem); }
.tool-aside { display: none; }
.tool-error { padding: 1rem; border-radius: var(--radius-s); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); color: var(--warn); margin-bottom: 1rem; }
noscript .tool-error { display: block; }
.privacy { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--ink-2); padding: .75rem .9rem; border-radius: var(--radius-s); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.privacy svg { width: 18px; height: 18px; flex: none; color: var(--ok); }
.tool-content { max-width: 820px; }
.steps-list { display: grid; gap: .6rem; counter-reset: step; list-style: none; padding: 0; }
.steps-list li { position: relative; padding-left: 2.6rem; color: var(--ink-2); }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 9px; display: grid; place-items: center; background: var(--dark); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.examples { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: .75rem; }
.example { padding: 1rem 1.1rem; border-left: 3px solid var(--accent); }
.example strong { display: block; font-family: var(--display); margin-bottom: .25rem; }
.example p { color: var(--ink-2); font-size: .92rem; }
.limits-list li { color: var(--ink-2); margin-bottom: .35rem; }
.draft-note { margin-top: 1.5rem; padding: 1rem 1.1rem; background: #FFF9E6; border-color: #F1DFA0; color: #6B5300; }

/* 9b. Calculadoras y formularios de herramienta */
.calc { display: grid; gap: 1.1rem; }
.calc__form { display: grid; gap: .9rem; }
.calc__modes { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mode { position: relative; display: block; }
.mode input { position: absolute; opacity: 0; inset: 0; }
.mode span { display: block; padding: .7rem .9rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.mode input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink); font-weight: 600; }
.mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.calc__more { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem .9rem; background: var(--surface-2); }
.calc__more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.calc__msg { padding: .6rem .8rem; border-radius: 9px; background: color-mix(in srgb, var(--err) 9%, var(--surface)); color: var(--err); font-size: .9rem; border-left: 3px solid var(--err); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { accent-color: var(--accent); margin-top: .25rem; }
.calc__result { display: grid; gap: .9rem; padding: 1.25rem 1.35rem; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.calc__result::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -120px; background: radial-gradient(circle, rgba(224,24,45,.55), transparent 65%); pointer-events: none; }
.result-main { display: grid; gap: .2rem; position: relative; }
.result-label { font-size: .85rem; color: var(--on-dark-2); }
.result-value { font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; word-break: break-word; }
.result-grid { display: grid; gap: .6rem 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; position: relative; }
.result-grid div { display: grid; gap: .1rem; padding: .6rem .75rem; border-radius: 10px; background: rgba(255,255,255,.06); }
.result-grid dt { font-size: .72rem; color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.result-grid dd { margin: 0; font-weight: 600; font-size: 1rem; }
.result-formula { font-size: .82rem; color: var(--on-dark-2); position: relative; }
.result-formula code { color: #fff; background: rgba(255,255,255,.08); padding: .15rem .45rem; border-radius: 6px; }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; }
.result-actions .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.result-actions .btn:hover { background: var(--accent); border-color: var(--accent); }
.calc__examples { align-items: center; }
.result-value--link { font-family: var(--sans); font-size: 1rem; font-weight: 500; word-break: break-all; color: #fff; }
.result-grid code { font-size: .78rem; word-break: break-all; }
.ar-preview { display: grid; place-items: center; padding: .75rem; background: rgba(255,255,255,.06); border-radius: 12px; position: relative; }
.ar-box { max-width: 220px; max-height: 220px; width: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-radius: 8px; box-shadow: var(--shadow-red); transition: width .3s var(--ease-out); }
.amort { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.amort th, .amort td { padding: .4rem .5rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.amort th:first-child, .amort td:first-child { text-align: left; }
.amort th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.chart { width: 100%; height: 220px; border-radius: var(--radius-s); background: var(--surface-2); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .82rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.is-bad { color: var(--accent-2) !important; }
.is-good { color: #4ade80 !important; }
.calc[data-state="empty"] .calc__result { display: none; }

/* 9c. Herramientas de texto, contraseñas y ruleta */
.texttool { display: grid; gap: .9rem; }
.texttool__area { min-height: 12rem; font-size: 1rem; line-height: 1.6; }
.texttool__bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.stat-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.stat { display: grid; gap: .1rem; padding: .8rem .9rem; border-radius: var(--radius-s); background: var(--dark); color: var(--on-dark); }
.stat strong { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .74rem; color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat--big { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.stat--big span { color: rgba(255,255,255,.85); }
.limits { display: grid; gap: .45rem; }
.limit { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .7rem .55rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; overflow: hidden; }
.limit i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ok); max-width: 100%; }
.limit.is-over { color: var(--err); } .limit.is-over i { background: var(--err); }
.topwords { display: grid; gap: .3rem; padding-left: 1.4rem; font-size: .9rem; }
.topwords li { display: flex; justify-content: space-between; gap: 1rem; }
.pw-out { display: grid; gap: .75rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--dark); color: #fff; }
.pw-value { font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: clamp(1.1rem, .9rem + 1.2vw, 1.6rem); word-break: break-all; line-height: 1.4; letter-spacing: .02em; }
.pw-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pw-actions .btn:not(.btn--primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.pw-meter { display: flex; align-items: center; gap: .75rem; font-size: .88rem; font-weight: 600; }
.pw-meter__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pw-meter__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ok); transition: width .4s var(--ease-out), background .3s; }
.pw-meter__bar i[data-cls="bad"] { background: var(--err); } .pw-meter__bar i[data-cls="warn"] { background: var(--warn); }
.wheel-tool { display: grid; gap: 1.5rem; }
.wheel-tool__right { display: grid; gap: .9rem; justify-items: center; }
.wheel-wrap { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 30px 60px -28px rgba(10,10,15,.5); cursor: pointer; }
.wheel__pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 34px solid var(--accent); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.wheel-tool .btn--3d { max-width: 420px; }
.wheel-result { display: grid; gap: .2rem; justify-items: center; padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--dark); color: #fff; width: min(100%, 420px); text-align: center; }
.wheel-result span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); }
.wheel-result strong { font-family: var(--display); font-size: 1.8rem; word-break: break-word; }
.history { font-size: .9rem; padding-left: 1.4rem; display: grid; gap: .2rem; }
@media (min-width: 720px) { .wheel-tool { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* 9d. Cronómetro, temporizador y teleprompter */
.timer-tool { display: grid; gap: 1rem; justify-items: center; }
.timer-display { position: relative; width: 100%; padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--dark); color: #fff; display: grid; justify-items: center; gap: .2rem; }
.timer-time { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: clamp(3rem, 2rem + 8vw, 7rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.timer-state { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); font-weight: 600; }
.timer-display--ring { padding: 1.25rem; }
.ring { width: min(60vw, 300px); height: auto; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 8; }
.ring__fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.timer-display__inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .2rem; }
.timer-display--ring .timer-time { font-size: clamp(2.2rem, 1.5rem + 5vw, 4.2rem); }
.timer-controls { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; width: 100%; }
.timer-controls .btn--3d { width: auto; min-width: 200px; }
.timer-controls kbd { font-family: var(--sans); font-size: .68rem; padding: .1rem .35rem; border-radius: 5px; background: rgba(0,0,0,.15); margin-left: .25rem; }
.btn--3d kbd { background: rgba(255,255,255,.2); }
.timer-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: min(100%, 420px); }
.timer-set label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.timer-set input { text-align: center; font-size: 1.1rem; }
.laps { width: 100%; display: grid; gap: .5rem; }
.laps__head { display: flex; justify-content: space-between; align-items: center; }
.laps__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.laps__table th, .laps__table td { padding: .45rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.laps__table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.is-finished .timer-display { animation: flash 1s infinite; }
@keyframes flash { 0%, 100% { background: var(--dark); } 50% { background: var(--accent); } }
:fullscreen .tool-shell, [data-fs-root]:fullscreen { background: var(--dark); display: grid; place-content: center; padding: 2rem; }
:fullscreen .timer-time { font-size: clamp(5rem, 18vw, 18rem); }
.tp { display: grid; gap: 1rem; }
.tp__settings { display: grid; gap: .8rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.tp__settings input[type="range"] { width: 100%; accent-color: var(--accent); }
.tp-stage { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden; display: grid; place-items: start center; }
.tp-stage__text { padding: 40vh 1.5rem 60vh; font-family: var(--display); font-weight: 600; line-height: 1.45; text-align: center; will-change: transform; width: 100%; }
.tp-stage__text p + p { margin-top: 1em; }
.tp-stage.is-mirror .tp-stage__text { transform: scaleX(-1); }
.tp-stage.is-mirror .tp-stage__text { transform-origin: center; }
.tp-stage__line { position: absolute; left: 0; right: 0; top: 40vh; height: 2px; background: var(--accent); opacity: .6; pointer-events: none; }
.tp-stage__count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 30vh; font-weight: 700; background: rgba(0,0,0,.7); }
.tp-stage__bar { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; gap: .4rem; align-items: center; padding: .5rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.tp-stage__bar button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; }
.tp-stage__bar button:hover { background: var(--accent); }
.tp-stage__bar span { min-width: 2.2rem; text-align: center; font-weight: 700; }
body.tp-open { overflow: hidden; }
kbd { font-family: var(--sans); font-size: .75rem; padding: .1rem .4rem; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }

/* 9e. Herramientas de archivos (imágenes, PDF) */
.filetool { display: grid; gap: 1rem; }
.dropzone { position: relative; display: grid; justify-items: center; gap: .4rem; padding: 2rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); text-align: center; transition: border-color .2s, background .2s; }
.dropzone.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.dropzone__icon { font-size: 2.2rem; line-height: 1; }
.dropzone__title { font-weight: 600; }
.dropzone__title .btn--link { color: var(--accent); font-weight: 600; padding: 0; }
.dropzone__hint { font-size: .82rem; color: var(--ink-3); }
.dropzone--compact { padding: 1rem; }
.filetool__options { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.filetool__options .field { gap: .3rem; font-size: .88rem; font-weight: 600; }
.filetool__options input[type="range"] { width: 100%; accent-color: var(--accent); }
.filelist { list-style: none; padding: 0; display: grid; gap: .5rem; }
.file { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.file__thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; font-size: 1.5rem; }
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__body { display: grid; gap: .15rem; min-width: 0; }
.file__name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__meta { font-size: .8rem; color: var(--ink-2); }
.file__meta b { color: var(--ok); }
.file__bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: .3rem; }
.file__bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.file__actions { display: flex; gap: .4rem; align-items: center; }
.file__actions .btn { padding: .5rem .9rem; font-size: .85rem; }
.file--done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.file--error { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.file--working .file__thumb { animation: pulse-bg 1.2s infinite; }
@keyframes pulse-bg { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.filelist__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pages { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.page { position: relative; display: grid; gap: .3rem; justify-items: center; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .75rem; color: var(--ink-2); cursor: pointer; }
.page img, .page canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.page.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.page.is-dragging { opacity: .4; }
.page__x { position: absolute; top: .2rem; right: .2rem; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: .7rem; }
@media (max-width: 539px) { .file { grid-template-columns: 44px 1fr; } .file__actions { grid-column: 1 / -1; justify-content: flex-end; } .file__thumb { width: 44px; height: 44px; } }

/* 9f. Generadores de documentos (cotizaciones, recibos) */
.doc { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
.doc__form { display: grid; gap: .75rem; min-width: 0; }
.doc__block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.doc__block > summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; font-family: var(--font-display); list-style: none; display: flex; align-items: center; gap: .5rem; }
.doc__block > summary::-webkit-details-marker { display: none; }
.doc__block > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); transition: transform .2s; }
.doc__block[open] > summary::after { transform: rotate(180deg); }
.doc__block[open] > summary { border-bottom: 1px solid var(--line); }
.doc__hint { font-weight: 500; font-size: .78rem; color: var(--ok); font-family: var(--font-body); }
.doc__fields { display: grid; grid-template-columns: 1fr; gap: .7rem .8rem; padding: .9rem 1rem 1.1rem; }
.doc__wide { grid-column: 1 / -1; }
.doc__fields .field { gap: .3rem; font-size: .85rem; min-width: 0; }
.doc__fields label { font-weight: 600; }
.doc__fields .input { padding: .55rem .7rem; font-size: .92rem; }
.doc__fields textarea.input { min-height: 3.2rem; line-height: 1.5; }
.doc__fields input[type="color"] { padding: .2rem; height: 2.4rem; }
.doc__logo { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.doc__logo .input { flex: 1 1 11rem; min-width: 0; font-size: .8rem; }
.doc__logo img { max-height: 44px; max-width: 130px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.doc__items { padding: .9rem 1rem; display: grid; gap: .5rem; }
.doc__itemhead { display: none; }
.doc__item { display: grid; grid-template-columns: 1fr 1fr 1.6rem; grid-template-areas: "desc desc del" "qty unit unit" "price amount amount"; gap: .4rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.doc__item .input { padding: .45rem .55rem; font-size: .88rem; min-width: 0; }
.doc__item .input[data-c="desc"] { grid-area: desc; }
.doc__item .input[data-c="qty"] { grid-area: qty; text-align: right; }
.doc__item .input[data-c="unit"] { grid-area: unit; }
.doc__item .input[data-c="price"] { grid-area: price; text-align: right; }
.doc__amount { grid-area: amount; text-align: right; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; align-self: center; }
.doc__item [data-del] { grid-area: del; color: var(--ink-3); justify-self: center; padding: 0; }
.doc__item [data-del]:hover { color: var(--accent); }
.doc__totals { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .3rem; }
.doc__totals li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc__totals .doc__total { font-size: 1.15rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: .45rem; margin-top: .25rem; font-family: var(--font-display); }
.doc__totals .doc__words { font-size: .78rem; color: var(--ink-3); font-style: italic; display: block; }
.doc__amountwords { margin: 0 1rem 1rem; font-size: .85rem; color: var(--ink-2); font-style: italic; }
.doc__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc__legal { font-size: .78rem; color: var(--ink-3); }
.doc__preview { display: grid; gap: .5rem; min-width: 0; }
.doc__previewbar { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-family: var(--font-display); }
.doc__frame { width: 100%; aspect-ratio: 1 / 1.2; max-height: 78vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.doc__fallback { font-size: .82rem; color: var(--ink-3); }
@media (min-width: 560px) {
  .doc__fields { grid-template-columns: 1fr 1fr; }
  .doc__fields--totals { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--line); }
  .doc__itemhead { display: grid; grid-template-columns: minmax(5.5rem, 1fr) 3.6rem 3.6rem 5.2rem 5.4rem 1.4rem; gap: .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; }
  .doc__itemhead span:nth-child(n+2) { text-align: right; }
  .doc__item { grid-template-columns: minmax(5.5rem, 1fr) 3.6rem 3.6rem 5.2rem 5.4rem 1.4rem; grid-template-areas: "desc qty unit price amount del"; padding: 0; border: 0; background: none; }
}
@media (min-width: 1200px) {
  .doc { grid-template-columns: minmax(0, 1fr) minmax(290px, 36%); }
  .doc__preview { position: sticky; top: 5.5rem; }
  .doc__frame { aspect-ratio: 1 / 1.35; max-height: none; }
}

/* 10. Generador QR */
.qr-grid { display: grid; gap: 1.5rem; }
.qr-controls { display: grid; gap: 1.4rem; min-width: 0; }
.qr-side { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.block { display: grid; gap: .7rem; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.block__title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.block__title .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; padding: .25rem; background: var(--surface-2); border-radius: 12px; }
.tab { padding: .45rem .8rem; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.style-btn { display: grid; gap: .35rem; justify-items: center; padding: .6rem .4rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, background .2s; }
.style-btn svg { width: 36px; height: 36px; }
.style-btn.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink); }
.colors { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; }
.color-field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; min-width: 0; }
.color-input { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem .35rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.color-input input[type="color"] { width: 40px; height: 34px; border: 0; padding: 0; background: none; border-radius: 8px; cursor: pointer; flex: none; }
.color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 7px; }
.color-input span { font-size: .82rem; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: linear-gradient(135deg, var(--sw-base) 50%, var(--sw-code) 50%); transition: transform .2s var(--ease-out), border-color .2s; }
.swatch:hover { transform: scale(1.12); border-color: var(--accent); }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .3rem; }
.emoji { font-size: 1.35rem; line-height: 1; padding: .35rem 0; border-radius: 9px; border: 1px solid transparent; background: var(--surface-2); transition: transform .2s var(--ease-out), border-color .2s; }
.emoji:hover { transform: scale(1.12); }
.emoji.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.center-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.format-btn { display: grid; gap: .3rem; justify-items: center; padding: .7rem .4rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s; }
.format-btn svg { width: 44px; height: 44px; }
.format-btn.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink); }
.format-hint { font-size: .85rem; color: var(--ink-2); min-height: 1.4em; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.range-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-row input[type="number"] { width: 5.5rem; text-align: right; padding: .5rem .6rem; }
.range-row .unit { font-size: .85rem; color: var(--ink-2); }
.warnings { display: grid; gap: .4rem; font-size: .85rem; list-style: none; padding: 0; }
.warn { padding: .55rem .75rem; border-radius: 9px; border-left: 3px solid; }
.warn--err { background: color-mix(in srgb, var(--err) 9%, var(--surface)); border-color: var(--err); color: color-mix(in srgb, var(--err) 80%, var(--ink)); }
.warn--warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: var(--warn); color: color-mix(in srgb, var(--warn) 85%, var(--ink)); }
.warn--info { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink-2); }
.stats-line, .stats-qr { font-size: .82rem; color: var(--ink-2); }
p.stats { font-size: .82rem; color: var(--ink-2); display: block; margin: 0; }
p.stats b { font-weight: 600; color: var(--ink); }
p.stats .is-bad { color: var(--err); }
.preview-2d { padding: 1rem; display: grid; gap: .6rem; justify-items: center; }
.preview-2d__canvas { width: min(100%, 240px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.preview-2d__canvas canvas, .preview-2d__canvas svg { width: 100% !important; height: 100% !important; }
.preview-2d__hint { font-size: .8rem; color: var(--ink-3); text-align: center; }
.viewer-wrap { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 10%, var(--surface-2)), var(--surface-2) 70%); border: 1px solid var(--line); }
#viewer { position: absolute; inset: 0; touch-action: none; cursor: grab; }
#viewer:active { cursor: grabbing; }
.viewer-status { position: absolute; inset: auto .75rem .75rem; padding: .55rem .8rem; border-radius: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); text-align: center; }
.viewer-status[data-kind="warn"] { color: var(--warn); }
.viewer-label { position: absolute; top: .75rem; left: .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.viewer-hint { position: absolute; top: .75rem; right: .75rem; font-size: .75rem; color: var(--ink-3); pointer-events: none; }
.downloads { display: grid; gap: .6rem; padding: 1rem; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.dl-row select { padding: .6rem .7rem; }
.downloads .btn--link { justify-self: center; font-size: .85rem; }
.recent { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; }
.recent-label { color: var(--ink-3); }

/* 11. Blog */
.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .35s var(--ease-out), border-color .2s, box-shadow .35s; }
.post-card:hover { box-shadow: 0 30px 60px -28px rgba(10,10,15,.4); }
.post-card__cover { display: block; aspect-ratio: 1200 / 630; background: var(--dark); overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover .post-card__cover img { transform: scale(1.04); }
.post-card__cover--gen { display: grid; place-items: center; background: radial-gradient(120% 100% at 80% 0%, rgba(224,24,45,.5), transparent 55%), var(--dark); }
.post-card__glyph, .article__glyph { font-size: 4rem; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.post-card__body { display: grid; gap: .45rem; align-content: start; padding: 1.15rem 1.25rem 1.3rem; }
.post-card__meta { font-size: .76rem; color: var(--ink-3); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.post-card__title { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.post-card__excerpt { font-size: .9rem; color: var(--ink-2); }
.post-card__more { font-size: .88rem; font-weight: 600; color: var(--accent); margin-top: .25rem; }
.hero--article { padding-bottom: 1.5rem; }
.hero--article h1 { max-width: 24ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--ink-3); }
.article__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1200 / 630; max-height: 520px; background: var(--dark); box-shadow: var(--shadow); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__cover--gen { display: grid; place-items: center; background: radial-gradient(120% 100% at 80% 0%, rgba(224,24,45,.55), transparent 55%), var(--dark); }
.article__glyph { font-size: 6rem; }
.article__layout { display: grid; gap: 2rem; padding-top: 2rem; }
.article__body { max-width: 760px; min-width: 0; font-size: 1.05rem; line-height: 1.75; }
.article__body h2 { scroll-margin-top: 90px; }
.article__aside { display: grid; gap: 1rem; align-content: start; }
.aside-block { padding: 1.1rem 1.15rem; display: grid; gap: .75rem; }
.aside-tools { display: grid; gap: .35rem; }
.aside-tool { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: center; padding: .55rem .6rem; border-radius: var(--radius-s); transition: background .2s; }
.aside-tool:hover { background: var(--surface-2); }
.aside-tool > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--dark); color: #fff; font-size: 1.1rem; }
.aside-tool strong { display: block; font-size: .9rem; }
.aside-tool small { display: block; font-size: .76rem; color: var(--ink-2); }
.toc { padding: 1rem 1.25rem; border-radius: var(--radius-s); background: var(--surface-2); margin: .5rem 0 1.5rem; font-size: .92rem; }
.toc strong { display: block; margin-bottom: .4rem; font-family: var(--display); }
.toc ol { display: grid; gap: .25rem; padding-left: 1.2rem; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }


/* 11b. Blog: temas y paginación */
.hub-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip--hub { display: inline-flex; align-items: center; gap: .4rem; }
.chip--hub small { color: var(--ink-3); font-weight: 700; font-size: .72rem; background: var(--surface-2); border-radius: 99px; padding: .05rem .4rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; margin-top: 2rem; }
.pagination__list { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.pagination__list a, .pagination__cur { display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: var(--radius-s); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pagination__list a:hover { border-color: var(--accent); color: var(--accent); }
.pagination__cur { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 12. Anuncios: huecos con altura reservada, separados de botones */
.ad-slot { display: grid; place-items: center; border-radius: var(--radius-s); position: relative; overflow: hidden; }
.ad-slot--placeholder { border: 1px dashed var(--line); background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 20px); color: var(--ink-3); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot--placeholder::after { content: attr(data-size); position: absolute; right: .6rem; bottom: .4rem; font-size: .65rem; font-weight: 500; letter-spacing: 0; opacity: .7; }
.ad-slot--leaderboard { min-height: 100px; margin: 1.5rem auto 0; max-width: 970px; }
.ad-slot--content { min-height: 280px; max-width: 728px; margin: 2rem auto; }
.ad-slot--sidebar { min-height: 600px; width: 300px; position: sticky; top: 84px; }

/* 13. Pie */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 3rem 0 2rem; font-size: .9rem; margin-top: 2rem; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; }
.footer-brand p { margin-top: .75rem; font-size: .88rem; max-width: 40ch; }
.footer-title { font-family: var(--display); font-size: .95rem; margin-bottom: .7rem; color: #fff; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--dark-line); font-size: .8rem; color: var(--ink-3); display: grid; gap: .4rem; }
.footer-bottom a:hover { color: var(--accent-2); }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* 14. Animaciones */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; } .reveal[data-delay="5"] { transition-delay: .4s; }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.is-ready) .reveal { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin-slow { from { transform: translateZ(120px) rotate(0deg); } to { transform: translateZ(120px) rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(224,24,45,.25); } 50% { box-shadow: 0 0 0 8px rgba(224,24,45,.08); } }

/* 15. Responsive */
@media (min-width: 720px) {
  .hero-x__grid { grid-template-columns: 1.15fr .85fr; }
}
@media (min-width: 960px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .tool-aside { display: block; }
  .qr-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .qr-side { position: sticky; top: 84px; }
  .preview-2d { padding: .85rem; }
  .preview-2d__canvas { width: 200px; }
  .privacy-x { grid-template-columns: 1.1fr .9fr; }
  .article__layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .qr-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1099px) {
  .stack__card { width: 250px; padding: .95rem 1rem; }
  .stack__card--1 { transform: translateX(-58%) rotate(-6deg) translateZ(40px); }
  .stack__card--2 { transform: translateX(-42%) rotate(3deg) translateZ(80px); }
  .stack__card--3 { transform: translateX(-52%) rotate(-2deg) translateZ(20px); }
}
@media (max-width: 959px) {
  .header-search { display: none; }
  .qr-side, .downloads, .downloads > *, .viewer-wrap { min-width: 0; max-width: 100%; }
  .btn { white-space: normal; }
  .preview-2d { grid-template-columns: 132px 1fr; align-items: center; justify-items: start; text-align: left; padding: .75rem; }
  .preview-2d__canvas { width: 132px; }
  .preview-2d__hint { text-align: left; font-size: .85rem; color: var(--ink-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__card--big { grid-column: span 3; grid-row: span 1; }
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline::before { display: none; }
  .timeline__step { text-align: left; justify-items: start; padding: 0; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .timeline__step h3 { grid-column: 2; }
  .timeline__step p { grid-column: 2; }
  .timeline__num { grid-row: 1 / 3; }
}
@media (max-width: 719px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1rem; background: var(--dark); border-bottom: 1px solid var(--dark-line); box-shadow: var(--shadow); margin: 0; }
  .nav.is-open { display: flex; }
  .nav__link { padding: .85rem .8rem; border-radius: 10px; font-size: 1rem; }
  .nav__link--cta { margin: .5rem 0 0; justify-content: center; }
  .nav__item--menu .megamenu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: .25rem 0 .5rem; background: transparent; color: var(--on-dark); }
  .megamenu__cat:hover { background: rgba(255,255,255,.08); }
  .megamenu__grid { grid-template-columns: 1fr 1fr; }
  .megamenu__all { border-top-color: var(--dark-line); }
  .nav-toggle { display: inline-flex; }
  .hero-x__visual { min-height: 300px; }
  .stack { height: 320px; width: min(100%, 340px); }
  .stack__card { width: 250px; padding: .9rem 1rem; }
  .stack__badge { width: 84px; height: 84px; font-size: .6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--big { grid-column: span 2; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .colors { grid-template-columns: 1fr 1fr; }
  .colors .btn { grid-column: 1 / -1; }
  .row--2 { grid-template-columns: 1fr; }
  .ad-slot--leaderboard { min-height: 250px; }
  .tool-head { flex-direction: column; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-search__icon { top: 1.55rem; transform: none; }
  .privacy-x__visual { grid-template-columns: 1fr; justify-items: center; }
  .device { justify-self: center; }
  .privacy-x__line { width: 2px; height: 60px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
  .cloud { justify-self: center; }
}
@media (max-width: 539px) {
  .hero { padding-top: 1.25rem; }
  .hero .lead { font-size: 1rem; margin-top: .5rem; }
  .hero-badges { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stack__card--1 { top: 6%; } .stack__card--2 { top: 36%; } .stack__card--3 { top: 66%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .stack__card, .stack__badge, .marquee__track, .pill__dot { animation: none !important; }
  .reveal { transition-duration: .3s; }
}
@media print { .doc__form, .doc__previewbar, .site-header, .ad-slot, .site-footer, .nav, .marquee { display: none !important; } }
