/* AccessFlow Guard — hoja de estilos de la web pública y el panel.
   Sigue brand-assets/BRAND_GUIDELINES.md: lienzo piedra, tinta obsidiana, verde de verificación,
   radios de 6px como máximo, bordes finos en lugar de sombras, sin degradados de color. */

/* Tipografías de la guía de marca, servidas desde este mismo servidor (licencia OFL 1.1, ver /fonts/LICENSE-*.txt). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.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: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  --canvas: #FAF9F5;
  --surface: #F2F0E8;
  --white: #FFFFFF;
  --ink: #111210;
  --ink-2: #474843;
  --ink-3: #666760;
  --green: #0B6E4F;
  --green-dark: #095840;
  --green-tint: #E7F1EC;
  --red: #C8322B;
  --red-tint: #FBEDEB;
  --brass: #9A6700;
  --brass-tint: #F8F0DC;
  --line: #DDD9CE;
  --line-dark: #2E2F2B;
  --on-dark: #FAF9F5;
  --on-dark-2: #DDD9CE;
  --on-dark-3: #B4B2A8;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible, .jr-window :focus-visible { outline-color: var(--on-dark); }
.section-dark .signup-card :focus-visible { outline-color: var(--green); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--canvas); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.2;
  border: 1px solid transparent; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 1; background: var(--surface); border-color: var(--line); color: var(--ink-3); cursor: progress; }
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-ink { background: var(--ink); color: var(--canvas); }
.btn-ink:hover { background: #2A2B27; color: var(--canvas); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--canvas); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--white); color: #A8261F; border-color: #A8261F; transition: none; }
.btn-danger:hover { background: #A8261F; color: #FFFFFF; border-color: #A8261F; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 245, 0.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-word { font-weight: 400; }
.brand-word strong { font-weight: 600; }
.logo-mark { flex: none; }
.logo-node { fill: var(--green); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-sections, .nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-sections a, .nav-login { display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; position: relative; }
.nav-sections a::after, .nav-login::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-sections a:hover, .nav-login:hover { color: var(--ink); }
.nav-sections a:hover::after, .nav-login:hover::after { transform: scaleX(1); }
.nav-actions { gap: 14px; }
.lang-switch ul { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--white); }
.lang-switch a { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; }
.lang-switch li + li a { border-left: 1px solid var(--line); }
.lang-switch a:hover { background: var(--surface); color: var(--ink); }
.lang-switch a[aria-current='true'] { background: var(--ink); color: var(--canvas); }

/* ---------- Portada: hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(221, 217, 206, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(221, 217, 206, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 56px; align-items: start; }
.eyebrow, .kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.05rem, 4.1vw, 3.3rem); letter-spacing: -0.038em; line-height: 1.06; text-wrap: balance; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

.scan-box { margin-top: 28px; background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: 20px; box-shadow: 0 2px 8px rgba(17, 18, 16, 0.04); }
.scan-title { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 14px; }
.scan-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 12px; align-items: end; }
.scan-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.scan-demos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.chip-btn { min-height: 32px; padding: 5px 12px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color 0.18s, background-color 0.18s; }
.chip-btn:hover { border-color: var(--ink); background: var(--white); }
.scan-progress { margin-top: 12px; height: 3px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.scan-progress span { display: block; height: 100%; width: 40%; background: var(--green); animation: progress-slide 1.6s var(--ease) infinite; }
@keyframes progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--ink); }
.facts > div { padding: 18px 20px 6px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
input[type='text'], input[type='email'], input[type='password'], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid #8A8B84; border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 84px; font-family: var(--mono); font-size: 13px; resize: vertical; }
input::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14.5px; font-weight: 500; color: var(--green); min-height: 0; }
.form-status:not(:empty) { margin-top: 10px; padding: 10px 12px; background: var(--green-tint); border-left: 3px solid var(--green); border-radius: 2px; color: #084D38; }
.form-actions .form-status:not(:empty) { margin-top: 0; }
.form-status.error:not(:empty) { background: var(--red-tint); border-left-color: var(--red); color: #8F1F19; }
.form-legal { font-size: 13px; color: var(--ink-3); }
.check-field { display: flex; align-items: flex-start; gap: 10px; }
.check-field input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.check-field label { font-size: 14.5px; color: var(--ink); }

/* ---------- Recorrido animado ---------- */
.journey { position: relative; }
.jr-window { container-type: inline-size; background: var(--ink); border-radius: 6px; padding: 10px; box-shadow: 0 2px 8px rgba(17, 18, 16, 0.04); }
.jr-chrome { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.jr-dots { display: flex; gap: 5px; }
.jr-dots i { width: 8px; height: 8px; border: 1px solid #6E6F68; border-radius: 2px; }
.jr-url { flex: 1; min-width: 0; padding: 4px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-2); background: #1E1F1C; border: 1px solid var(--line-dark); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-2); }
.jr-live i { width: 7px; height: 7px; border-radius: 50%; background: #3FB58A; }
.journey.is-playing .jr-live i { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }

.jr-stage { position: relative; aspect-ratio: 16 / 11.5; background: var(--canvas); border-radius: 3px; overflow: hidden; font-size: clamp(7.5px, 2.2cqw, 13px); color: var(--ink); }
.jr-scene { position: absolute; inset: 0; padding: 5% 5.5%; background: var(--canvas); visibility: hidden; z-index: 0; clip-path: inset(0 100% 0 0); }
.jr-scene.is-prev { visibility: visible; z-index: 1; clip-path: inset(0); }
.jr-scene.is-active { visibility: visible; z-index: 2; clip-path: inset(0); transition: clip-path 0.7s var(--ease); }
.jr-scene u { display: block; height: 0.636em; background: var(--line); border-radius: 2px; text-decoration: none; }
.jr-scene u.short { width: 55%; }
.jr-scene u.title { height: 1.091em; width: 80%; background: #BDB9AC; }
.jr-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.636em 1.091em; background: var(--ink); color: var(--canvas); font-weight: 600; font-size: 1em; border-radius: 3px; white-space: nowrap; }
.jr-label { display: block; font-family: var(--mono); font-size: 0.864em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

.jr-topbar { display: flex; align-items: center; gap: 0.727em; padding-bottom: 4%; border-bottom: 1px solid var(--line); }
.jr-topbar b { font-size: 1.091em; margin-right: auto; }
.jr-topbar span { width: 9%; height: 0.545em; background: var(--line); border-radius: 2px; }
.jr-banner { height: 22%; margin-top: 4%; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.jr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 5%; }
.jr-cards div { display: flex; flex-direction: column; gap: 0.455em; }
.jr-cards i { display: block; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }

.jr-s1 { display: grid; grid-template-columns: 42% 1fr; gap: 6%; }
.jr-photo { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.jr-info { display: flex; flex-direction: column; gap: 0.636em; align-items: flex-start; }
.jr-info u { width: 100%; }
.jr-swatches, .jr-sizes { display: flex; gap: 0.636em; }
.jr-swatches i { width: 1.818em; height: 1.818em; border-radius: 3px; border: 1px solid var(--ink); background: #2F4A6B; }
.jr-swatches i:nth-child(2) { background: #8A3A12; }
.jr-swatches i:nth-child(3) { background: #DDD9CE; }
.jr-sizes b { display: flex; align-items: center; justify-content: center; width: 2.182em; height: 2em; border: 1px solid #8A8B84; border-radius: 3px; font-size: 0.909em; background: var(--white); }
.jr-sizes b:nth-child(2) { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.jr-info .jr-btn { margin-top: 0.545em; }

.jr-s2 { padding: 0; background: var(--canvas); }
.jr-dim { position: absolute; inset: 0; background: #C9C6BB; }
.jr-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; padding: 6% 5%; background: var(--white); border-left: 1px solid var(--ink); display: flex; flex-direction: column; gap: 0.818em; transform: translateX(100%); }
.jr-s2.is-active .jr-drawer { transform: none; transition: transform 0.6s var(--ease) 0.35s; }
.jr-drawer b { font-size: 1.091em; }
.jr-line { display: flex; align-items: center; gap: 0.727em; }
.jr-line i { width: 2.364em; height: 2.364em; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.jr-line u { flex: 1; }
.jr-drawer .jr-btn { margin-top: auto; }

.jr-s3 { display: flex; justify-content: center; }
.jr-form { width: 72%; display: flex; flex-direction: column; gap: 0.636em; align-items: stretch; }
.jr-input { height: 2.182em; background: var(--white); border: 1px solid #8A8B84; border-radius: 3px; }
.jr-input-err { border-color: var(--red); border-width: 2px; }
.jr-err { font-size: 0.955em; font-weight: 600; color: #A8261F; }
.jr-form .jr-btn { align-self: flex-start; margin-top: 4px; }

.jr-s4 { background: var(--surface); display: flex; align-items: center; justify-content: center; }
.jr-pdf { position: relative; width: 58%; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 0 6% 5%; display: flex; flex-direction: column; gap: 0.545em; box-shadow: 0 2px 8px rgba(17, 18, 16, 0.04); transform: translateY(12%); }
.jr-s4.is-active .jr-pdf { transform: none; transition: transform 0.7s var(--ease) 0.3s; }
.jr-pdf-bar { height: 0.545em; margin: 0 -6.6% 0.545em; background: var(--green); border-radius: 3px 3px 0 0; }
.jr-pdf-type { font-family: var(--mono); font-size: 0.818em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.jr-pdf-agency { font-size: 1.182em; letter-spacing: -0.02em; }
.jr-pdf-row { display: flex; align-items: center; justify-content: space-between; padding-top: 0.455em; border-top: 1px solid var(--line); font-size: 0.955em; color: var(--ink-2); }
.jr-pdf-dot { width: 0.727em; height: 0.727em; border-radius: 50%; background: var(--brass); }
.jr-pdf-row:nth-of-type(3) .jr-pdf-dot { background: var(--red); }
.jr-pdf-ready { display: inline-flex; align-items: center; gap: 0.455em; align-self: flex-start; margin-top: 4px; padding: 4px 0.727em; background: var(--green); color: #FFFFFF; font-family: var(--mono); font-size: 0.909em; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; }
.jr-pdf-ready svg { width: 1.091em; height: 1.091em; }

.jr-reticle { position: absolute; z-index: 5; left: var(--rx, 37%); top: var(--ry, 45%); width: var(--rw, 26%); height: var(--rh, 30%); pointer-events: none; transition: left 0.75s var(--ease), top 0.75s var(--ease), width 0.75s var(--ease), height 0.75s var(--ease); }
.jr-reticle i { position: absolute; width: 1.2em; height: 1.2em; border: 3px solid var(--green); }
.jr-reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.jr-reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.jr-reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.jr-reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.journey[data-stage='0'] { --rx: 36.5%; --ry: 46%; --rw: 27%; --rh: 30%; }
.journey[data-stage='1'] { --rx: 46.5%; --ry: 20%; --rw: 21%; --rh: 13%; }
.journey[data-stage='2'] { --rx: 56%; --ry: 76%; --rw: 42%; --rh: 19%; }
.journey[data-stage='3'] { --rx: 15%; --ry: 10.5%; --rw: 70%; --rh: 16%; }
.journey[data-stage='4'] { --rx: 17.5%; --ry: 8%; --rw: 65%; --rh: 84%; }

.jr-finding { position: absolute; z-index: 6; left: 4%; bottom: 5%; max-width: 62%; padding: 0.727em 0.909em; background: var(--white); border: 1px solid var(--ink); border-left: 4px solid var(--red); border-radius: 3px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 8px rgba(17, 18, 16, 0.04); transform: translateY(160%); }
.journey.show-finding .jr-finding { transform: none; transition: transform 0.5s var(--ease) 0.75s; }
.journey[data-stage='2'] .jr-finding { bottom: auto; top: 6%; }
.jr-finding-label { font-family: var(--mono); font-size: 0.818em; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #A8261F; }
.jr-finding b { font-size: 1.091em; line-height: 1.25; letter-spacing: -0.01em; }
.jr-finding-wcag { font-family: var(--mono); font-size: 0.909em; color: var(--ink-2); }

.jr-caption { margin-top: 14px; min-height: 3em; font-size: 15px; color: var(--ink); font-weight: 500; }
.jr-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.jr-steps { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.jr-step { width: 100%; min-height: 40px; padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font: inherit; text-align: left; color: var(--ink-2); background: transparent; border: 0; border-top: 3px solid var(--line); cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.jr-step-num { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; }
.jr-step-label { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jr-step:hover { border-top-color: var(--ink-3); color: var(--ink); }
.jr-step[aria-pressed='true'] { border-top-color: var(--green); color: var(--ink); }
.jr-toggle { flex: none; min-height: 36px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.jr-toggle:hover { border-color: var(--ink); }
.jr-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Resultado del escáner ---------- */
.scan-result { margin-top: 28px; background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: 24px; }
.scan-result:focus { outline: none; }
.demo-note { margin-bottom: 16px; padding: 10px 12px; background: var(--brass-tint); border-left: 3px solid var(--brass); border-radius: 2px; font-size: 14px; color: var(--ink); }
.demo-note strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; }
.score-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.score-summary strong { font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); }
.score-verdict { font-weight: 600; font-size: 15px; }
.score-verdict.ok { color: var(--green); }
.score-verdict.bad { color: #A8261F; }
.score-counts { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); flex-basis: 100%; }
.overlay-note { margin-top: 14px; padding: 10px 12px; background: var(--surface); border-left: 3px solid var(--ink); font-size: 14px; color: var(--ink); }
.stage-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--canvas); }
.chip small { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); }
.chip-fail { border-top-color: var(--red); }
.chip-fail small { color: #A8261F; }
.chip-skip { border-top-color: #8A8B84; border-top-style: dashed; background: var(--surface); }
.chip-skip small { color: var(--ink-2); }
.coverage-note { margin: 0 0 16px; padding: 12px 14px; background: var(--surface); border-left: 3px solid #8A8B84; border-radius: 2px; font-size: 14.5px; color: var(--ink); }
.coverage-note strong { display: block; margin-bottom: 2px; }
.coverage-note ul { margin: 6px 0 0 18px; list-style: disc; color: var(--ink-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
.issue-item { padding: 16px 0; border-top: 1px solid var(--line); }
.issue-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.issue-head strong { color: var(--ink); font-size: 15.5px; flex-basis: 100%; }
.tag { display: inline-block; padding: 2px 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 2px; border: 1px solid transparent; white-space: nowrap; }
.tag-crit { background: var(--red-tint); color: #8F1F19; border-color: #E9B9B5; }
.tag-warn { background: var(--brass-tint); color: #6B4700; border-color: #E4D2A4; }
.tag-pass { background: var(--green-tint); color: #084D38; border-color: #B5D6C8; }
.tag-plain { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.issue-head .tag { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.issue-desc { font-size: 14.5px; color: var(--ink-2); }
.issue-meta { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.patch-pre { margin: 10px 0; padding: 12px 14px; background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; border-radius: 4px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-next { margin-top: 18px; padding: 18px 20px; background: var(--ink); color: var(--on-dark-2); border-radius: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.result-next strong { display: block; color: var(--on-dark); font-size: 1.05rem; letter-spacing: -0.02em; }
.result-next .btn-green:focus-visible { outline-color: var(--on-dark); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--on-dark-2); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .kicker { color: var(--on-dark-3); }
.section-dark a { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; text-wrap: balance; }
.section-lead { margin-top: 16px; font-size: 1.08rem; line-height: 1.55; max-width: 62ch; }
.fine { font-size: 13.5px; color: var(--ink-3); }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 4px; color: var(--green); }
.section-dark .check-list svg { color: #6FCBA6; }

/* Cómo funciona */
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); counter-reset: none; }
.how-step { position: relative; padding: 28px 24px 8px 0; }
.how-step + .how-step { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.how-step::before { content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 3px; background: var(--on-dark); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.how-step.is-in::before { transform: scaleX(0.28); }
.how-num { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--on-dark-3); margin-bottom: 14px; }
.how-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.how-step p { font-size: 15px; line-height: 1.55; }
.how-outcome { margin-top: 56px; padding: 28px; border: 1px solid var(--line-dark); border-radius: 6px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.how-outcome h3 { font-size: 1.2rem; }
.how-outcome .check-list { margin-top: 0; }

/* El informe */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sample-cta { margin: 28px 0 10px; }
.report-sim { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.sim-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 20px; }
.sim-controls h3 { grid-column: 1 / -1; font-size: 1.05rem; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 36px; height: 36px; padding: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 2px; }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-pressed='true'] { border: 2px solid var(--ink); padding: 2px; }
.sheet { --accent: #0B6E4F; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(17, 18, 16, 0.04); }
.sheet-bar { height: 8px; background: var(--accent); transition: background-color 0.35s var(--ease); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.sheet-mono { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 16px; letter-spacing: 0.02em; border-radius: 4px; transition: background-color 0.35s var(--ease); }
.sheet-head div { display: flex; flex-direction: column; min-width: 0; }
.sheet-head strong { font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet-head span:not(.sheet-mono) { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.sheet-target { display: flex; justify-content: space-between; gap: 16px; margin: 0 20px; padding: 14px 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: 3px; }
.sheet-k { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.sheet-target strong { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.sheet-score { text-align: right; }
.sheet-score strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.sheet-score small { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px 16px; font-size: 12.5px; color: var(--ink-2); }
.report-sim > .fine { margin-top: 12px; }

/* Dudas */
.objections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.objection { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px; transition: border-color 0.25s var(--ease), transform 0.5s var(--ease); }
.objection:hover { border-color: var(--ink); }
.objection-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 0.06em; }
.objection h3 { font-size: 1.22rem; margin: 10px 0 12px; text-wrap: balance; }
.objection p { font-size: 15px; line-height: 1.55; }
.objection p + p { margin-top: 10px; }
.table-scroll { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
.compare { min-width: 680px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); }
.compare thead td { background: var(--surface); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .cell-afg { background: var(--green-tint); color: #084D38; font-weight: 600; }
.compare thead .cell-afg { background: var(--green); color: #FFFFFF; }
.limits { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--ink); background: var(--white); border-radius: 0 6px 6px 0; }
.limits h3 { font-size: 1.05rem; margin-bottom: 6px; }
.limits p { font-size: 15px; max-width: 90ch; }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px 22px; transition: border-color 0.25s var(--ease), transform 0.5s var(--ease); }
.plan:hover { border-color: var(--ink); }
.plan-featured { border: 2px solid var(--ink); padding: 25px 21px 21px; }
.plan-badge { position: absolute; top: -13px; left: 20px; padding: 3px 10px; background: var(--ink); color: var(--canvas); font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 2px; }
.plan h3 { font-size: 1.15rem; }
.plan-price { margin: 12px 0 6px; color: var(--ink); }
.plan-amount { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 15px; color: var(--ink-2); margin-left: 2px; }
.plan-desc { font-size: 14.5px; min-height: 3em; }
.plan-feats { flex: 1; display: flex; flex-direction: column; gap: 9px; margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.plan-feats svg { flex: none; margin-top: 3px; color: var(--green); }
.plans-note { margin-top: 20px; }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--green); }
.faq-item p { padding: 0 40px 20px 0; max-width: 72ch; }

/* Crear cuenta */
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.signup-steps { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--line-dark); }
.signup-steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); font-size: 1.02rem; }
.signup-steps .how-num { margin: 0; }
.signup-card { background: var(--canvas); color: var(--ink-2); border-radius: 6px; padding: 28px; }
.signup-card a { color: var(--ink); }
.signup-alt { margin-top: 16px; font-size: 14.5px; }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 56px 0 32px; border-top: 1px solid var(--line-dark); }
.page-landing .site-footer { border-top-color: var(--line-dark); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.brand-footer { color: var(--on-dark); margin-bottom: 14px; }
.brand-footer .logo-node { fill: #3FB58A; }
.footer-brand p { font-size: 14.5px; max-width: 44ch; }
.footer-brand p + p { margin-top: 10px; }
.footer-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 12px; }
.footer-col a { display: inline-block; padding: 4px 0; font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--on-dark-3); }
.footer-base p { max-width: 110ch; }

/* ---------- Aparición al hacer scroll (solo movimiento, sin transparencias) ---------- */
.js-reveal [data-reveal] { transform: translateY(22px); transition: transform 0.8s var(--ease); }
.js-reveal [data-reveal].is-in { transform: none; }
.js-reveal .how-step:nth-child(2), .js-reveal .objection:nth-child(2), .js-reveal .plan:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .how-step:nth-child(3), .js-reveal .objection:nth-child(3), .js-reveal .plan:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .how-step:nth-child(4), .js-reveal .plan:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Panel ---------- */
.ws { padding: 40px 0 88px; }
.ws.narrow .container { max-width: 520px; }
.ws-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ws-top h1 { font-size: 1.9rem; }
.ws-user { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-block; padding: 6px 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow-wrap: anywhere; }
.toast:not(:empty) { position: sticky; top: 76px; z-index: 20; margin-bottom: 16px; padding: 12px 16px; background: var(--ink); color: var(--on-dark); font-size: 15px; font-weight: 500; border-left: 4px solid #3FB58A; border-radius: 4px; }
.toast.error:not(:empty) { border-left-color: #F08A84; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.card h1 { font-size: 1.6rem; }
.card h2 { font-size: 1.3rem; }
.card-lead { margin: 6px 0 20px; font-size: 15px; }
.card-accent { border: 2px solid var(--ink); padding: 27px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.forgot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.forgot summary, .advanced summary { display: inline-block; padding: 4px 0; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.forgot[open] summary, .advanced[open] summary { margin-bottom: 10px; }
.dash { display: flex; flex-direction: column; gap: 20px; }
.trial-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; background: var(--ink); color: var(--on-dark); border-radius: 6px; }
.trial-banner p { font-weight: 600; font-size: 1.02rem; }
.trial-banner .fine { font-weight: 400; color: var(--on-dark-2); font-size: 14px; margin-top: 2px; }
.trial-banner :focus-visible { outline-color: var(--on-dark); }

.onboarding { border: 2px solid var(--ink); padding: 27px; }
.ob-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ob-progress { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); padding: 5px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.ob-steps { border-top: 1px solid var(--line); }
.ob-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ob-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.ob-step h3 { font-size: 1rem; letter-spacing: -0.015em; }
.ob-step p { font-size: 14px; color: var(--ink-2); }
.ob-state { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.ob-step.is-done .ob-mark { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.ob-step.is-done .ob-state { color: var(--green); }
.ob-step.is-done .ob-go { visibility: hidden; }
.ob-step.is-next { background: var(--canvas); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.ob-step.is-next .ob-go { background: var(--ink); color: var(--canvas); }
.ob-done { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--green); }

.quota dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.quota dl > div { padding: 18px 20px; }
.quota dl > div + div { border-left: 1px solid var(--line); }
.quota dt { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.quota dd { margin: 6px 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

.color-input { display: flex; align-items: center; gap: 8px; }
.color-input span { width: 46px; height: 46px; flex: none; border: 1px solid #8A8B84; border-radius: 4px; background: #0B6E4F; }
.advanced { padding-top: 4px; }
.store-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 170px auto; gap: 12px; align-items: end; }
.stores-list { margin-top: 18px; display: flex; flex-direction: column; }
.stores-list:empty { display: none; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.store-row strong { color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.store-meta { font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.store-meta a { display: inline-block; padding: 3px 0; }
.store-actions { display: flex; gap: 8px; }
.stores-empty { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
.report-empty { padding: 28px 20px; background: var(--canvas); border: 1px dashed #8A8B84; border-radius: 4px; font-size: 15px; text-align: center; }
.bill-current { margin-bottom: 14px; }
.bill-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bill-plan { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.bill-plan h3 { font-size: 1.02rem; }
.bill-price { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.bill-price span { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.bill-desc { font-size: 14px; flex: 1; }
.bill-plan.is-current { border: 2px solid var(--green); padding: 17px; background: var(--white); }
.bill-tag { align-self: flex-start; }
.key-row { margin-bottom: 12px; }
.key-reveal { margin: 12px 0; padding: 16px; background: var(--green-tint); border: 1px solid #B5D6C8; border-radius: 4px; }
.key-reveal label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: #084D38; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input, .copy-row textarea { font-family: var(--mono); font-size: 13px; }
.copy-row .btn { flex: none; }
#ws-integrations > .fine { margin: 10px 0 14px; }
.widget-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.widget-box h3 { font-size: 1.02rem; }

.account-export { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.danger-zone { padding-top: 14px; border-top: 1px solid var(--line); }
.danger-zone .form-stack { max-width: 420px; }

/* ---------- Informe por enlace privado ---------- */
.rl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rl-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.rl-head .card-lead { margin-bottom: 0; max-width: 70ch; }
.rl-frame { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid var(--ink); border-radius: 6px; background: var(--white); }
.rl-try { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rl-try .card-lead { margin-bottom: 0; }
@media (max-width: 720px) { .rl-frame { display: none; } .rl-head .btn { width: 100%; } }

/* ---------- Legales ---------- */
.legal { padding: 48px 0 88px; }
.legal-body { max-width: 860px; }
.legal-back { margin-bottom: 24px; font-size: 14.5px; }
.legal-note { margin-bottom: 24px; padding: 12px 14px; background: var(--brass-tint); border-left: 3px solid var(--brass); color: var(--ink); font-size: 14.5px; }
.legal-body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.legal-body h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px 22px; list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 6px; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal-body .table-scroll { margin: 16px 0 20px; }
.legal-body table { min-width: 640px; }
.legal-body th, .legal-body td { padding: 10px 12px; text-align: left; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--line); }
.legal-body thead th { background: var(--surface); color: var(--ink); }
.legal-dl { margin: 20px 0; border-top: 1px solid var(--ink); }
.legal-dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font-weight: 600; color: var(--ink); }
.legal-dl dd { margin: 0; }
.pending { color: #6B4700; background: var(--brass-tint); padding: 2px 6px; border-radius: 2px; font-size: 14px; }

/* ---------- Página interna ---------- */
.admin { padding-top: 40px; padding-bottom: 80px; }
.admin h1 { font-size: 1.8rem; }
.admin h2 { font-size: 1.2rem; margin: 36px 0 0; }
.admin .table-scroll { margin-top: 12px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.admin-table thead th { background: var(--surface); color: var(--ink); font-size: 13px; }
.admin-table tbody th { font-weight: 500; color: var(--ink); }
.admin-table td { font-variant-numeric: tabular-nums; }
.admin-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.admin-kpis > div { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.admin-kpis dt { font-size: 13.5px; }
.admin-kpis dd { margin: 4px 0 0; font-size: 1.8rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; }

/* ---------- Pantallas medianas y chicas ---------- */
@media (max-width: 1080px) {
  .nav-sections { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { max-width: 640px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .how-step:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .report-grid, .signup-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .objections { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .store-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .container { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 17px; }
  .lang-switch { margin-left: auto; order: 2; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .hero { padding: 32px 0 32px; }
  .scan-box { padding: 16px; }
  .scan-form { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .how-step, .how-step + .how-step { padding: 24px 0 8px; border-left: 0; }
  .how-step + .how-step { border-top: 1px solid var(--line-dark); }
  .how-outcome { grid-template-columns: minmax(0, 1fr); padding: 20px; margin-top: 40px; }
  .report-sim { padding: 16px; }
  .sim-controls { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-desc { min-height: 0; }
  .stage-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-result { padding: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .signup-card, .card { padding: 20px; }
  .card-accent, .onboarding { padding: 19px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .quota dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quota dl > div:nth-child(3) { border-left: 0; }
  .quota dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .store-form, .bill-plans, .admin-kpis { grid-template-columns: minmax(0, 1fr); }
  .ob-step { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ob-state { display: none; }
  .copy-row { flex-direction: column; }
  .legal-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .jr-step-label { font-size: 11.5px; }
  .jr-controls { flex-wrap: wrap; }
  .jr-steps { flex-basis: 100%; }
  .faq-item p { padding-right: 0; }
  .result-next { flex-direction: column; align-items: flex-start; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js-reveal [data-reveal] { transform: none; }
  .how-step::before { transform: scaleX(0.28); }
  .scan-progress span { width: 100%; animation: none; }
}
