/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #eef0f5;
  --ink: #12151c;
  --ink-muted: #5b6472;
  --ink-faint: #667085;
  --border: #e2e5ec;
  --border-strong: #c9cedb;

  --accent: #3654ff;
  --accent-ink: #1b2e9c;
  --accent-soft: #e8ecff;
  --success: #16a34a;
  --success-soft: #e7f7ed;
  --warn: #d08b28;
  --warn-soft: #fbf1e2;
  --danger: #d1332f;
  --danger-soft: #fdeceb;

  --dark: #12151c;
  --dark-2: #1b2030;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.06);
  --shadow: 0 8px 24px rgba(18, 21, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 21, 28, 0.14);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.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; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(54, 84, 255, .28); }
.btn--primary:hover { background: #2a45e0; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #262b39; }
.btn--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink-muted); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--danger-outline { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn--danger-outline:hover { background: var(--danger-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* =============================================================
   5. Components
   ============================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.badge--demo { background: var(--warn-soft); color: #8a5a10; }
.badge--ok { background: var(--success-soft); color: #12783a; }

.demo-banner {
  background: var(--warn-soft); color: #7a5410;
  border: 1px solid #f0dcb2;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}

/* Site header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245, 246, 249, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand__txt { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand__txt small { font-family: var(--sans); font-weight: 600; font-size: .6rem; letter-spacing: .02em; color: var(--ink-muted); margin-top: .12rem; white-space: nowrap; }
.hero__marca { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: .2rem; }
.hero__marca strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.hero__marca span { font-size: .95rem; font-weight: 600; color: var(--ink-muted); }
.hero__lema { margin: 0 0 1.1rem; font-size: .95rem; font-weight: 700; color: var(--accent); }
.hero__precios { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.1rem 0 0; font-size: .95rem; color: var(--ink-muted); }
.hero__precios strong { color: var(--ink); }
.hero__precios em { font-style: normal; }
.plan__alt { min-height: 1.2em; margin-bottom: .55rem; font-size: .85rem; color: var(--ink-muted); }
.extras__lista em { display: block; font-style: normal; font-size: .75rem; color: var(--ink-muted); margin-top: .1rem; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: .95rem;
}
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--ink-muted); transition: color .25s var(--ease-out); }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 300; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out), visibility .4s;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }

/* =============================================================
   6. Sections — landing
   ============================================================= */
.hero { padding-top: clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1.1rem; }
.hero__title .hl { color: var(--accent); }
.hero__subtitle { font-size: 1.08rem; color: var(--ink-muted); max-width: 46ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero__trust { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-faint); }
.hero__trust svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* Mock PDF illustration — pure CSS/SVG, no real file needed */
.mock-doc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.6rem 2.1rem;
  transform: rotate(1.2deg);
  overflow: hidden;
}
.mock-doc::before {
  content: "";
  position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.mock-doc__head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.mock-doc__head span { font-size: .75rem; font-weight: 700; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.mock-doc__dots { display: flex; gap: 5px; }
.mock-doc__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.mock-doc__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .55rem; }
.mock-line { height: 11px; border-radius: 4px; background: var(--surface-2); }
.mock-line.w-90 { width: 90%; } .mock-line.w-80 { width: 80%; } .mock-line.w-60 { width: 60%; } .mock-line.w-40 { width: 40%; }
.mock-box {
  height: 11px; border-radius: 4px; background: var(--ink);
  position: relative; overflow: hidden;
  /* La barra negra «tapa» el dato: entra de izquierda a derecha, se queda un rato y vuelve a empezar (así se ve qué hace ReichRedacta). */
  transform-origin: left center;
  animation: mockCensura 7s cubic-bezier(.65, 0, .35, 1) infinite backwards;
  animation-delay: var(--d, 0s);
}
.mock-box::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: mockShimmer 3.2s ease-in-out infinite;
}
@keyframes mockCensura {
  0%, 8% { transform: scaleX(0); }
  22%, 86% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
@keyframes mockShimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.mock-doc__watermark {
  position: absolute; z-index: 1; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}
.mock-doc__watermark span {
  transform: rotate(-28deg);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .08em;
  color: rgba(18, 21, 28, .08);
  white-space: nowrap;
}
.mock-doc__foot { position: relative; z-index: 1; margin-top: 1.3rem; display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--success); font-weight: 700; }

/* How it works */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 3vw, 2rem); }
.step { position: relative; }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--ink-muted); font-size: .95rem; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature { padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(18,21,28,.1)); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }
.feature__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--ink-muted); }

/* Pricing */
.pricing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; align-items: stretch; }
@media (max-width: 1180px) { .pricing__grid { grid-template-columns: repeat(2, 1fr); } }
.plan--premium { border-color: #b8893a; background: linear-gradient(180deg, rgba(184, 137, 58, .09), transparent 55%); }
.plan--premium .plan__tag { background: #8a6420; color: #fff; }
.plan { padding: 1.9rem; display: flex; flex-direction: column; position: relative; }
.plan--highlight { border-color: var(--accent); box-shadow: 0 16px 36px rgba(54, 84, 255, .16); }
.plan__tag {
  position: absolute; top: -13px; left: 1.9rem;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .03em;
}
.plan__name { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.plan__price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; margin-bottom: .15rem; }
.plan__price small { font-size: .95rem; font-weight: 600; color: var(--ink-faint); }
.plan__credits { color: var(--ink-muted); font-size: .88rem; margin-bottom: 1.4rem; }
.plan__list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.6rem; flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--ink); }
.plan__list svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.extras { margin: 2rem auto 0; max-width: 760px; text-align: center; padding: 1.4rem 1.2rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.extras h3 { margin-bottom: .4rem; }
.extras p { color: var(--ink-muted); font-size: .92rem; margin: 0 auto .9rem; max-width: 560px; }
.extras__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.extras__lista li { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .4rem; font-size: .85rem; color: var(--ink-muted); }
.extras__lista strong { display: block; font-size: 1.15rem; color: var(--ink); }
.extras__lista span { display: block; margin-top: .25rem; font-weight: 700; color: var(--accent); }
.extras .extras__nota { margin: .9rem auto 0; font-size: .8rem; }
@media (max-width: 640px) { .extras__lista { grid-template-columns: repeat(2, 1fr); } }
.pricing__note { text-align: center; color: var(--ink-faint); font-size: .85rem; margin-top: 1.6rem; }

/* FAQ */
.faq__list { display: flex; flex-direction: column; gap: .7rem; max-width: 760px; margin-inline: auto; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--ink-faint); flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--ink-muted); font-size: .93rem; }

/* Final CTA */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.7); margin-bottom: 1.8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer__brand p { color: var(--ink-muted); font-size: .88rem; max-width: 32ch; margin-top: .6rem; }
.footer__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col h3, .footer__col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: .8rem; }
.footer__col a { display: block; font-size: .9rem; color: var(--ink-muted); padding-block: .3rem; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; color: var(--ink-faint); }

/* =============================================================
   7. App shell (app.html / cuenta.html)
   ============================================================= */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.app-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.app-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.app-bar__right { display: flex; align-items: center; gap: .7rem; }
.credits-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: .5rem .9rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  transition: transform .3s var(--ease-out);
}
.credits-pill.is-pulsing { animation: pillPulse .5s var(--ease-out); }
@keyframes pillPulse { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.account-menu { position: relative; }
.account-menu__btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.account-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 190px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
}
.account-menu.is-open .account-menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.account-menu__panel a, .account-menu__panel button {
  display: block; width: 100%; text-align: left; padding: .6rem .7rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
}
.account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--surface-2); }

.app-main { flex: 1; padding-block: clamp(1.8rem, 4vw, 3rem); }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 6vw, 3.4rem); text-align: center;
  background: var(--surface);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon { width: 52px; height: 52px; margin-inline: auto 1rem; color: var(--accent); }
.dropzone h2, .dropzone h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.dropzone p { color: var(--ink-muted); font-size: .88rem; }
.dropzone[data-state="uploading"] .dropzone__idle,
.dropzone[data-state="idle"] .dropzone__busy { display: none; }
.dropzone[data-state="idle"] .dropzone__idle,
.dropzone[data-state="uploading"] .dropzone__busy { display: block; }

.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  margin-inline: auto 1rem; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: .9rem; }
.progress-bar__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s var(--ease-out); width: 0%; }

/* Tool workspace */
.tool-workspace { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
.tool-pages { display: flex; flex-direction: column; gap: 1.3rem; }
.page-card { padding: 1rem; }
.page-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; font-size: .85rem; font-weight: 700; color: var(--ink-muted); }
.page-card__canvas-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.page-card__canvas-wrap canvas { width: 100%; display: block; }
.page-card__overlay { position: absolute; inset: 0; cursor: crosshair; }
.redbox { position: absolute; background: rgba(18, 21, 28, 0.86); border-radius: 2px; }
.redbox.is-off { background: rgba(209, 51, 47, 0.18); outline: 1.5px dashed var(--danger); }
.redbox.is-manual { outline: 1.5px solid var(--accent); }

.side-panel { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.side-panel .card { padding: 1.2rem; }
.side-panel h3 { font-size: .95rem; margin-bottom: .8rem; }

.cost-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
}
.cost-banner strong { font-family: var(--display); font-size: 1.15rem; }

.detection-list { display: flex; flex-direction: column; gap: .5rem; max-height: 280px; overflow-y: auto; }
.detection-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem; border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: .82rem;
}
.detection-item__tipo { font-weight: 700; color: var(--ink-muted); flex-shrink: 0; min-width: 60px; }
.detection-item__texto { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detection-item.is-off { opacity: .55; }
.detection-item.is-off .detection-item__texto { text-decoration: line-through; }
.detection-item__toggle {
  width: 32px; height: 18px; border-radius: 999px; background: var(--border-strong);
  position: relative; flex-shrink: 0; transition: background-color .2s var(--ease-out);
}
.detection-item__toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform .2s var(--ease-out);
}
.detection-item.is-on .detection-item__toggle { background: var(--accent); }
.detection-item.is-on .detection-item__toggle::after { transform: translateX(14px); }
.detection-item__del { color: var(--danger); font-size: 1rem; flex-shrink: 0; }
.detection-empty { font-size: .85rem; color: var(--ink-faint); padding: .6rem 0; }
.detection-item--no-localizada { border: 1px dashed var(--warn); background: var(--warn-soft); }

.watermark-form label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-muted); margin-bottom: .35rem; }
.watermark-form input[type="text"] {
  width: 100%; padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); margin-bottom: .9rem;
}
.watermark-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background-color .2s var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease-out); box-shadow: var(--shadow-sm); }
.switch.is-on { background: var(--accent); }
.switch.is-on::after { transform: translateX(18px); }
.watermark-preview {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); height: 80px;
  display: grid; place-items: center; overflow: hidden; position: relative; background: var(--surface-2);
  margin-bottom: .9rem;
}
.watermark-preview span { transform: rotate(-28deg); font-family: var(--display); font-weight: 800; color: rgba(18,21,28,.22); white-space: nowrap; font-size: 1rem; }

.manual-btn { width: 100%; }
.manual-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.honest-note {
  font-size: .82rem; color: var(--ink-muted); background: var(--surface-2);
  padding: .8rem .9rem; border-radius: var(--radius-sm); line-height: 1.5;
}

/* Toasts (never alert()) */
.toast-stack { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 999; display: flex; flex-direction: column; gap: .6rem; max-width: 340px; }
.toast {
  background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .88rem; box-shadow: var(--shadow-lg);
  transform: translateY(10px); opacity: 0; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast--error { background: var(--danger); }
.toast--ok { background: var(--success); }

/* Upgrade modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(18,21,28,.5);
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-out), visibility .25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); max-width: 460px; width: 100%;
  padding: 1.8rem; box-shadow: var(--shadow-lg);
  transform: scale(.96); transition: transform .25s var(--ease-out);
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal h3 { margin-bottom: .5rem; }
.modal p { color: var(--ink-muted); font-size: .92rem; margin-bottom: 1.2rem; }
.modal__plans { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.modal { max-height: calc(100vh - 2.4rem); overflow-y: auto; }
.modal__plan { gap: .8rem; }
.modal__plan-detalle { font-size: .82rem; color: var(--ink-muted); }
.modal__plan-precio { text-align: right; white-space: nowrap; }
.modal__plan-precio small { display: block; font-size: .75rem; color: var(--ink-muted); }
.modal__grupo { margin-top: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.modal__grupo span { display: block; margin-top: .15rem; font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.modal__nota { margin: .2rem 0 0; font-size: .8rem !important; }
.moneda { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-muted); }
.moneda button { border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; }
.moneda button.is-on { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.modal__plan {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s var(--ease-out);
}
.modal__plan:hover { border-color: var(--accent); }
.modal__plan.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.fake-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .9rem 1rem;
  font-family: var(--mono); font-size: .95rem; letter-spacing: .06em; color: var(--ink-muted);
  background: var(--surface-2); margin-bottom: 1.2rem;
}

/* Account page */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; align-items: start; }
.account-grid .card { padding: 1.4rem; }
.plan-summary__row { display: flex; justify-content: space-between; font-size: .88rem; padding-block: .5rem; border-bottom: 1px solid var(--border); }
.plan-summary__row:last-child { border-bottom: none; }
.history-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.history-table th { text-align: left; color: var(--ink-faint); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.history-table td { padding-block: .65rem; border-bottom: 1px solid var(--border); color: var(--ink-muted); }
.history-empty { padding: 2rem 0; text-align: center; color: var(--ink-faint); font-size: .9rem; }

/* Auth page */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card { max-width: 400px; width: 100%; padding: 2rem; }
.auth-tabs { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }
.auth-tabs button { flex: 1; padding: .55rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-muted); transition: all .2s var(--ease-out); }
.auth-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-muted); }
.field input {
  padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); transition: border-color .2s var(--ease-out);
}
.field select { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field small { color: var(--ink-faint); font-size: .78rem; }
.auth-error { background: var(--danger-soft); color: #9c2521; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 1rem; }

[hidden] { display: none !important; }
.auth-ok { background: var(--success-soft); color: #12783a; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 1rem; }
.auth-link { text-align: right; margin: -.5rem 0 1rem; font-size: .84rem; }
.auth-link a { color: var(--accent); font-weight: 600; }

/* Admin panel */
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.admin-tabs button { padding: .7rem 1.1rem; font-weight: 700; font-size: .9rem; color: var(--ink-muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.admin-stat { padding: 1.1rem 1.2rem; }
.admin-stat span { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: .35rem; }
.admin-stat strong { font-family: "Manrope", sans-serif; font-size: 1.7rem; letter-spacing: -.02em; }
.admin-stat small { display: block; color: var(--ink-muted); font-size: .78rem; margin-top: .2rem; }
.admin-toolbar { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-toolbar input { flex: 1; min-width: 220px; padding: .7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
.admin-toolbar input:focus { border-color: var(--accent); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
.admin-table th { text-align: left; color: var(--ink-faint); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .7rem .7rem 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: .65rem .7rem .65rem 0; border-bottom: 1px solid var(--border); color: var(--ink-muted); vertical-align: middle; }
.admin-table td strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.admin-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.admin-actions button { padding: .32rem .65rem; font-size: .78rem; font-weight: 700; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--ink); background: var(--surface); }
.admin-actions button:hover { border-color: var(--accent); color: var(--accent); }
.admin-actions button.is-danger { color: var(--danger); border-color: var(--danger); }
.admin-actions button.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--surface-2); color: var(--ink-muted); }
.pill--ok { background: var(--success-soft); color: #12783a; }
.pill--bad { background: var(--danger-soft); color: #9c2521; }
.pill--info { background: var(--accent-soft); color: var(--accent-ink); }
.admin-note { font-size: .84rem; color: var(--ink-muted); margin-top: 1rem; }

/* ReichRedacta premium: perfiles, términos, calidad */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--ink); transition: all .2s var(--ease-out); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip--term { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .4rem .3rem .7rem; font-weight: 500; }
.chip--term button { width: 18px; height: 18px; border-radius: 50%; line-height: 1; color: var(--ink-faint); }
.chip--term button:hover { background: var(--danger-soft); color: var(--danger); }
.term-row { display: flex; gap: .5rem; }
.term-row input { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
.term-row input:focus { border-color: var(--accent); }
.chk { display: flex; align-items: flex-start; gap: .55rem; margin: .8rem 0 .6rem; font-size: .82rem; color: var(--ink-muted); cursor: pointer; }
.chk input { margin-top: .2rem; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.chk input:disabled + span { opacity: .6; }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .2rem; }
.field-inline label { font-size: .82rem; font-weight: 700; color: var(--ink-muted); }
.field-inline select { padding: .5rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: .85rem; }
.card--ia { border-color: var(--accent); box-shadow: 0 10px 28px rgba(54, 84, 255, .10); }
.ia-bloque { margin-top: 1.1rem; }
.ia-bloque h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: .45rem; }
.ia-resumen { font-size: .92rem; color: var(--ink); line-height: 1.55; }
.ia-tipo { display: inline-block; margin-bottom: .5rem; }
.ia-lista { list-style: disc; padding-left: 1.1rem; font-size: .86rem; color: var(--ink-muted); display: grid; gap: .25rem; }
.ia-par { display: flex; justify-content: space-between; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.ia-par:last-child { border-bottom: 0; }
.ia-par span:first-child { color: var(--ink-muted); }
.ia-par span:last-child { font-weight: 600; text-align: right; }
.ia-alerta { border-radius: var(--radius-sm); padding: .6rem .75rem; margin-bottom: .5rem; font-size: .84rem; border-left: 4px solid var(--border-strong); background: var(--surface-2); }
.ia-alerta strong { display: block; margin-bottom: .15rem; }
.ia-alerta p { color: var(--ink-muted); margin: 0; }
.ia-alerta--alto { border-left-color: var(--danger); background: var(--danger-soft); }
.ia-alerta--medio { border-left-color: #d98a00; background: #fff6e0; }
.ia-alerta--bajo { border-left-color: var(--accent); }
.ia-acciones { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.ia-pregunta { margin-top: .8rem; font-size: .86rem; }
.ia-pregunta .q { font-weight: 700; color: var(--ink); }
.ia-pregunta .a { margin-top: .2rem; color: var(--ink-muted); white-space: pre-wrap; }
.ia-pregunta .f { margin-top: .3rem; padding: .35rem .6rem; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-style: italic; font-size: .8rem; }
.ia-pregunta .nf { margin-top: .3rem; font-size: .78rem; color: var(--ink-faint); }
.semaforo { display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: var(--radius-sm); margin-bottom: .8rem; font-size: .82rem; border-left: 4px solid; }
.semaforo strong { font-size: .86rem; }
.semaforo--verde { background: var(--success-soft); border-color: var(--success); color: #12783a; }
.semaforo--amarillo { background: #fff6e0; border-color: #d98a00; color: #7a5200; }
.semaforo--rojo { background: var(--danger-soft); border-color: var(--danger); color: #9c2521; }
.doc-hash { font-family: ui-monospace, monospace; font-size: .78rem; }

/* Legal pages */
.legal { padding-block: 3rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .8rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-muted); font-size: .96rem; margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }

/* =============================================================
   8. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .mock-box::after { animation: none; }
  .spinner { animation-duration: 1.6s; }
}

/* =============================================================
   9. Responsive
   ============================================================= */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .mock-doc { max-width: 420px; margin-inline: auto; }
  .steps__grid, .features__grid, .pricing__grid { grid-template-columns: 1fr; }
  .tool-workspace { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-actions .btn--outline { display: none; }
  .footer__grid { flex-direction: column; }
}
@media (max-width: 540px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* =============================================================
   10. Lote (varios PDF → un ZIP)
   ============================================================= */
.panel-lote { padding: 1.4rem; margin-top: 1.2rem; text-align: left; }
.panel-lote h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.panel-lote label:not(.chk) { display: block; margin: .9rem 0 .3rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
.panel-lote select, .panel-lote input[type="password"] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.lote-lista { list-style: none; margin: .4rem 0 .6rem; padding: 0; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.lote-lista li { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; font-size: .85rem; border-bottom: 1px solid var(--border); }
.lote-lista li:last-child { border-bottom: 0; }
.lote-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lote-peso { color: var(--ink-muted); font-size: .78rem; white-space: nowrap; }
.lote-estado { width: 1.2rem; text-align: center; font-weight: 800; color: var(--ink-muted); }
.lote-ok .lote-estado { color: #12783a; }
.lote-mal .lote-estado { color: #b3261e; }
.lote-actual { background: var(--warn-soft); }
.lote-omitido { opacity: .55; }
.lote-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.lote-barra { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 1rem 0 .4rem; }
.lote-barra > div { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.lote-resultado { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--success-soft); }
.lote-resultado p { margin: .5rem 0; font-size: .85rem; }
.lote-resultado .btn { margin-top: .6rem; }
@media (max-width: 540px) { .lote-acciones .btn { width: 100%; } }

/* Marca de agua: fichas que se rellenan solas */
.watermark-fichas { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: -.2rem 0 .8rem; }
.ficha { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .2rem .65rem; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.ficha:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   11. Novedades (página de inicio)
   ============================================================= */
.novedades { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-block: 1px solid var(--border); }
.novedades__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.nov { position: relative; padding: 1.5rem 1.3rem; transition: transform .18s ease, box-shadow .18s ease; }
.nov:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(18,21,28,.1)); }
.nov h3 { margin: .9rem 0 .5rem; font-size: 1.05rem; }
.nov p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-muted); }
.nov a { color: var(--accent); font-weight: 600; }
.nov__tag { position: absolute; top: .9rem; right: .9rem; background: var(--accent); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.novedades__nota { text-align: center; margin: 1.6rem auto 0; font-size: .82rem; color: var(--ink-muted); }
@media (max-width: 1100px) { .novedades__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .novedades__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nov { transition: none; } .nov:hover { transform: none; } }

/* =============================================================
   12. Acceso por API (cuenta y documentación)
   ============================================================= */
.api-llaves { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.api-llaves li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
.api-llaves li:last-child { border-bottom: 0; }
.api-llaves__nombre { font-weight: 700; }
.api-llaves__meta { color: var(--ink-muted); font-size: .78rem; flex: 1; min-width: 10rem; }
.api-llaves__vacia { color: var(--ink-muted); }
.api-llaves code, .api-nueva code, .doc-api code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.api-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.api-form input { flex: 1; min-width: 12rem; padding: .55rem .75rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; }
.api-nueva { background: var(--warn-soft); border: 1px solid #f0dcb2; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; font-size: .85rem; }
.api-nueva__fila { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .5rem; }
.api-nueva__fila code { flex: 1; min-width: 14rem; word-break: break-all; background: var(--surface); padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--border); user-select: all; }

.doc-api { max-width: 860px; padding-block: 2.5rem 4rem; }
.doc-api h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .3rem 0 .8rem; }
.doc-api h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.doc-api h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.doc-api p, .doc-api li { line-height: 1.65; color: var(--ink-muted); }
.doc-api__intro { font-size: 1.05rem; }
.doc-api__aviso { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .92rem; line-height: 1.6; }
.doc-api pre { background: #12151c; color: #e8ecf5; border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .82rem; line-height: 1.55; margin: .8rem 0 1.2rem; }
.doc-api pre code { color: inherit; background: none; }
.doc-api p code, .doc-api td code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .05rem .35rem; }
.doc-api__tabla { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .88rem; display: block; overflow-x: auto; }
.doc-api__tabla th, .doc-api__tabla td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-api__tabla th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }

/* Panel lateral de la herramienta: lo que se usa siempre arriba (censurar, revisar lo encontrado y descargar); lo de ajustes, debajo. */
.side-panel > .card { order: 10; }
.side-panel > #tarjetaAuto { order: 1; }
.side-panel > #tarjetaAnalisis { order: 2; }
.side-panel > #tarjetaDatos { order: 3; }
.side-panel > #tarjetaDescarga { order: 4; border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* En celular el encabezado no cabe con la marca completa «by Reichtum Group International»: el botón «Probar gratis» ya está en el menú y en la portada. */
@media (max-width: 480px) {
  .header-actions .btn--primary { display: none; }
  .header-inner { gap: .8rem; }
}

/* Aviso para quien no tiene JavaScript activado (la herramienta lo necesita). */
.noscript-aviso { margin: 0; padding: .9rem 1.2rem; background: #fff7e6; color: #5c3b00; border-bottom: 1px solid #f0d9a8; font-size: .95rem; text-align: center; }
.noscript-aviso a { color: inherit; font-weight: 700; }
/* Mostrar / ocultar contraseña */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 5.2rem; width: 100%; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-faint); font: inherit; font-size: .8rem; font-weight: 700; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--ink); background: rgba(18, 21, 28, .06); }

/* Pedir la contraseña de un PDF protegido */
.dlg-clave { border: 0; border-radius: 16px; padding: 1.6rem; width: min(92vw, 420px); box-shadow: 0 24px 60px rgba(18, 21, 28, .35); background: #fff; color: var(--ink); }
.dlg-clave::backdrop { background: rgba(18, 21, 28, .55); }
.dlg-clave h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.dlg-clave p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .92rem; }
.dlg-clave p.is-error { color: #b42318; font-weight: 600; }
.dlg-clave input { width: 100%; }
.dlg-clave__acciones { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }

/* ---------- Jurisdicción, auditoría previa y secciones de transparencia (2026-10-23) ---------- */
.card--juris { margin-bottom: 1.2rem; padding: 1.2rem 1.4rem; }
.juris__fila { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.juris__fila label { margin: 0; font-weight: 700; }
.juris__fila select { flex: 1 1 14rem; max-width: 24rem; }
.juris__ley { margin: .6rem 0 .3rem; font-size: .9rem; color: var(--ink); }
.juris__cubre { margin: .2rem 0 .4rem; font-size: .85rem; color: var(--ink-muted); }
.juris__cubre summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.juris__cubre ul { margin: .4rem 0 0 1.1rem; padding: 0; list-style: disc; }
.auditoria { margin-top: .9rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .85rem; }
.auditoria p { margin: .3rem 0 0; }
.auditoria__ok { color: #12783a; font-weight: 600; }
.auditoria__aviso { color: #7a5410; font-weight: 600; }
.juris-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.juris-grid article { padding: 1rem 1.1rem; }
.honestidad .card { padding: 1.3rem 1.4rem; }
.juris-grid h3 { font-size: 1rem; margin-bottom: .3rem; }
.juris-grid p { font-size: .85rem; color: var(--ink-muted); margin: 0; }
.honestidad { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.honestidad h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.honestidad ul { margin: 0 0 0 1.1rem; padding: 0; list-style: disc; font-size: .92rem; color: var(--ink-muted); }
.honestidad li { margin-bottom: .45rem; }
.honestidad .pronto { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--warn-soft); color: #7a5410; font-size: .72rem; font-weight: 800; }
.aviso-legal { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-muted); text-align: center; }

/* ───────────── Pulido visual (2026-10-26) ───────────── */

/* Los botones «se hunden» un poco al presionarlos: se siente que responden (también con el dedo). */
button:not(:disabled), .btn, [role="button"] { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
button:not(:disabled):active, .btn:active, [role="button"]:active { transform: scale(.975); }

/* Con el teclado, el foco lleva un halo suave además del contorno. */
:focus-visible:not(input):not(textarea):not(select) { box-shadow: 0 0 0 5px rgba(54, 84, 255, .16); }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(54, 84, 255, .14); }

/* Las filas de las tablas se iluminan al pasar el mouse. */
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background-color: rgba(54, 84, 255, .04); }

/* Cursor y selección de texto en el color de la marca. */
input, textarea { caret-color: var(--accent); }
::selection { background: rgba(54, 84, 255, .22); }

/* Títulos balanceados y párrafos sin palabras sueltas en la última línea. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Cifras alineadas en columnas. */
td, th, .num { font-variant-numeric: tabular-nums; }

/* Al cambiar de página completa, un fundido corto en lugar de un parpadeo (navegadores que lo soportan). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* Plan más elegido (2026-10-26): el Anual Premium va destacado */
.plan--premium.plan--highlight { border-width: 2px; box-shadow: 0 18px 44px rgba(184, 137, 58, .28); }
.plan__ahorro { align-self: flex-start; margin-bottom: .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: .22rem .6rem; border-radius: 999px; background: rgba(184, 137, 58, .16); color: #7a5617; }
@media (min-width: 1181px) { .plan--premium.plan--highlight { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) { .plan--premium.plan--highlight { transition: transform .2s ease, box-shadow .2s ease; } }

/* Revisión legal (2026-10-26) */
.card--legal { border-color: #b8893a; }
.pill--ok { background: rgba(26, 138, 90, .14); color: #11643f; }
.legal-cab { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--radius); margin: .8rem 0 .6rem; border: 1px solid var(--border); }
.legal-cab__num { font-family: var(--display); font-size: 1.9rem; font-weight: 800; min-width: 2.6ch; text-align: center; }
.legal-cab__sub { font-size: .8rem; color: var(--ink-muted); }
.legal-cab--ok { background: rgba(26, 138, 90, .08); } .legal-cab--ok .legal-cab__num { color: #11643f; }
.legal-cab--medio { background: rgba(214, 150, 20, .1); } .legal-cab--medio .legal-cab__num { color: #8a5a00; }
.legal-cab--alto { background: rgba(200, 50, 50, .08); } .legal-cab--alto .legal-cab__num { color: #a42222; }
.legal-item { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: .5rem .7rem; margin-bottom: .45rem; font-size: .86rem; }
.legal-item summary { cursor: pointer; font-weight: 600; }
.legal-item p { margin: .4rem 0 0; color: var(--ink-muted); }
.legal-item blockquote { margin: .4rem 0 0; padding: .3rem .6rem; border-left: 2px solid var(--border-strong); font-size: .8rem; color: var(--ink-muted); background: var(--surface); }
.legal-item--alto { border-left-color: #c83232; } .legal-item--medio { border-left-color: #d69614; } .legal-item--bajo { border-left-color: #6b7a99; }
.legal-nivel { display: inline-block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; padding: .08rem .45rem; border-radius: 999px; background: #eef0f6; margin-right: .25rem; }
.legal-hacer { color: var(--ink) !important; }
.legal-base, .legal-borrador { font-size: .78rem; }
.legal-acciones { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }

/* Diez toques visuales (2026-10-26) */
/* 1. Anillo de foco claro en todo lo que se puede usar con teclado */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
/* 2. Botones: se hunden al pulsar */
.btn:active { transform: translateY(0) scale(.98); }
/* 3. Tarjetas: se elevan con suavidad al pasar el mouse */
.card { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
@media (hover: hover) { .plan.card:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 30, 70, .12); } }
/* 4. Zona de arrastre: borde que respira y se ilumina */
.dropzone { transition: border-color .2s ease, background .2s ease, box-shadow .25s ease; }
.dropzone:hover, .dropzone.is-drag { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
/* 5. Cabecera con vidrio esmerilado al bajar */
.site-header.is-scrolled { backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--bg, #fff) 82%, transparent); }
/* 6. Subrayado dorado bajo la palabra destacada del título */
.hero__title .hl { background: linear-gradient(transparent 82%, rgba(184, 137, 58, .38) 0); padding-inline: .1em; border-radius: 3px; }
/* 7. Barra de desplazamiento fina y a juego */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 35%, #c9cfdd) transparent; }
/* 8. Datos detectados: resaltan al pasar el mouse */
.detection-item { transition: background .15s ease, transform .15s ease; }
@media (hover: hover) { .detection-item:hover { background: var(--accent-soft); transform: translateX(2px); } }
/* 9. Avisos (toasts) que entran deslizando */
@keyframes redacta-entra { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.toast { animation: redacta-entra .28s cubic-bezier(.2, .8, .2, 1); }
/* 10. Texto más nítido y números alineados en precios y créditos */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.plan__price, .plan__credits, #creditsPill { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .card, .dropzone, .detection-item, .toast, .btn { transition: none !important; animation: none !important; } }
@media (min-width: 1101px) { .novedades__grid .nov:nth-child(1), .novedades__grid .nov:nth-child(4), .novedades__grid .nov:nth-child(5) { grid-column: span 2; } }

/* ===== Más pulido visual (2026-10-29) ===== */
/* 1. La zona de arrastre: icono y texto centrados (antes el icono se iba a la derecha) */
.dropzone__icon { display: block; margin: 0 auto .9rem; width: 56px; height: 56px; }
.spinner { margin: 0 auto 1rem; }
.dropzone__idle h2 { margin-bottom: .35rem; }
@media (prefers-reduced-motion: no-preference) { .dropzone__icon { animation: dz-flota 3.2s ease-in-out infinite; } }
@keyframes dz-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* 2. Listas desplegables y campos con el mismo estilo del resto */
select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  max-width: 100%; font: inherit; color: var(--ink);
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: .62rem 2.2rem .62rem .85rem; border: 1px solid var(--border-strong); border-radius: 12px; background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:hover { border-color: var(--accent); }
select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.side-panel select, .card select { width: 100%; }
/* 3. Casillas y botones de opción con el color de la marca */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
/* 4. Barra del documento: en celular se apila para que no se rompa palabra por palabra */
.cost-banner > div:first-child { min-width: 0; }
@media (max-width: 640px) {
  .cost-banner { flex-direction: column; align-items: stretch; gap: .9rem; }
  .cost-banner > div:last-child { width: 100%; }
  .cost-banner .btn--primary { flex: 1 1 100%; justify-content: center; }
  .cost-banner .btn--outline { flex: 1 1 auto; justify-content: center; }
}
/* 5. Créditos en la cabecera: una sola línea, sin agrandarse */
.credits-pill { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 420px) { .credits-pill { padding: .4rem .7rem; font-size: .8rem; } }
/* 6. Tarjetas de la herramienta con título más firme y un poco más de aire */
.side-panel .card { padding: 1.25rem; }
.side-panel .card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.side-panel .card + .card { margin-top: .9rem; }
/* 7. Botón principal con brillo suave al pasar el mouse */
@media (hover: hover) { .btn--primary { position: relative; overflow: hidden; } .btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s ease; } .btn--primary:hover::after { transform: translateX(120%); } }
/* 8. Páginas del documento: marco con sombra suave y esquinas redondas */
.tool-pages canvas { border-radius: 8px; box-shadow: 0 6px 22px rgba(20, 30, 70, .10); }
/* 9. Etiquetas pequeñas (píldoras) más nítidas */
.pill { font-weight: 800; letter-spacing: .02em; }
/* 10. Avisos de la revisión legal con las tarjetas más ligeras en celular */
@media (max-width: 640px) { .legal-item { padding: .55rem .6rem; } .legal-cab { padding: .6rem .7rem; } }

/* 11. En el celular la página del documento se salía por la derecha: la columna ahora puede encogerse y la imagen se ajusta al ancho */
.tool-workspace { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 900px) { .tool-workspace { grid-template-columns: minmax(0, 1fr); } }
.tool-workspace > *, .tool-pages > * { min-width: 0; }
.side-panel select { font-size: .86rem; }

/* ===== Encabezado de la portada, más profesional (2026-10-29) ===== */
.hero { position: relative; background: radial-gradient(60% 55% at 12% 0%, rgba(54, 84, 255, .10), transparent 70%), radial-gradient(40% 40% at 95% 20%, rgba(184, 137, 58, .08), transparent 70%); }
.hero__badge { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.3rem; padding: .42rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (prefers-reduced-motion: no-preference) { .hero__badge-dot { animation: hero-late 2.4s ease-in-out infinite; } }
@keyframes hero-late { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 6%, transparent); } }
.hero__title { font-size: clamp(2.3rem, 4.3vw, 3.45rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; text-wrap: pretty; margin-bottom: 1.3rem; }
.hero__title .hl { position: relative; display: inline-block; padding-inline: 0; background: linear-gradient(100deg, var(--accent) 10%, #7a5cff 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 3px; border-radius: 3px; background: var(--accent); }
.hero__subtitle { font-size: 1.14rem; line-height: 1.7; color: var(--ink-muted); max-width: 52ch; margin-bottom: 1.4rem; }
.hero__subtitle strong { color: var(--ink); font-weight: 650; }
.hero__puntos { display: flex; flex-wrap: wrap; gap: .5rem .6rem; list-style: none; margin: 0 0 1.9rem; padding: 0; }
.hero__puntos li { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--ink); }
.hero__puntos li::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.05rem, 9.4vw, 2.6rem); }
  .hero__subtitle { font-size: 1.04rem; }
  .hero__badge { font-size: .72rem; letter-spacing: .05em; }
  .hero__puntos li { font-size: .78rem; }
}

/* ===== Toda la portada, con acabado de producto de primera (2026-10-29) ===== */
/* Encabezados de sección: la etiqueta con su rayita y el título con más presencia */
.section-head h2 { letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.section-head .eyebrow { margin-bottom: .7rem; }
/* Cómo funciona: tres tarjetas unidas por una línea, con el número en degradado */
.steps__grid { position: relative; counter-reset: paso; }
.step { padding: 1.5rem 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) { .step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 30, 70, .10); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); } }
.step__num { background: linear-gradient(135deg, var(--accent), #7a5cff) !important; color: #fff !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (min-width: 901px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 2.55rem; left: calc(100% + .1rem); width: calc(clamp(1.3rem, 3vw, 2rem) - .2rem); height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); opacity: .5; }
}
/* Jurisdicciones: tarjetas con una franja de color y respuesta al pasar el mouse */
.juris-grid article { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.juris-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--accent), #7a5cff); opacity: .75; }
@media (hover: hover) { .juris-grid article:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 30, 70, .10); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); } }
.juris-grid h3 { padding-left: .25rem; }
.juris-grid p { padding-left: .25rem; }
/* Precios: el precio y la unidad siempre alineados entre tarjetas */
.plan { padding: 1.7rem 1.5rem; }
.plan__price { min-height: 4.7rem; font-size: clamp(1.9rem, 2.3vw, 2.25rem); line-height: 1.05; }
.plan__price small { display: block; margin-top: .3rem; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.plan--premium .plan__price { font-size: clamp(1.7rem, 2.05vw, 2rem); }
.plan__alt { min-height: 1.3rem; font-size: .82rem; color: var(--ink-faint); margin: -.3rem 0 .35rem; }
.plan__ahorro { position: absolute; top: -13px; right: 1.2rem; margin: 0; padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid #e3cf9f; box-shadow: 0 4px 10px rgba(138, 100, 32, .15); }
.plan__credits { min-height: 2.6rem; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--border-strong); font-weight: 600; color: var(--ink); }
.plan .btn--block { margin-top: auto; }
.plan--premium.plan--highlight .plan__tag { background: linear-gradient(135deg, #b8893a, #8a6420); box-shadow: 0 6px 14px rgba(138, 100, 32, .35); }
/* Preguntas: filas con más aire y el signo + dentro de un círculo */
.faq-item { transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 10px 26px rgba(20, 30, 70, .07); }
.faq-item summary { padding-block: 1.1rem; font-weight: 650; }
/* Aparición suave de las secciones al bajar la página (solo si el navegador lo permite) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step, .feature, .nov, .juris-grid article, .plan { animation: aparece linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes aparece { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 1180px) { .plan__price { min-height: 0; } .plan__credits { min-height: 0; } }

/* Indicador de pasos de la herramienta */
.pasos { display: flex; gap: .5rem; list-style: none; margin: 0 0 1.1rem; padding: 0; counter-reset: p; }
.pasos__item { flex: 1 1 0; display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-faint); font-size: .85rem; font-weight: 650; transition: background .25s ease, border-color .25s ease, color .25s ease; min-width: 0; }
.pasos__num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--surface-2, #eef0f6); color: var(--ink-muted); }
.pasos__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pasos__item.is-activo { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 14%, transparent); }
.pasos__item.is-activo .pasos__num { background: var(--accent); color: #fff; }
.pasos__item.is-hecho { color: var(--ink-muted); }
.pasos__item.is-hecho .pasos__num { background: var(--success); color: #fff; font-size: 0; }
.pasos__item.is-hecho .pasos__num::before { content: "✓"; font-size: .8rem; }
@media (max-width: 640px) { .pasos { gap: .3rem; } .pasos__item { flex-direction: column; gap: .25rem; padding: .5rem .3rem; text-align: center; font-size: .7rem; } .pasos__txt { white-space: normal; line-height: 1.15; } }
@media (prefers-reduced-motion: reduce) { .pasos__item { transition: none; } }
