/* Joseteasiste — candidato de landing/onboarding SaaS (SAAS-LANDING-ONBOARDING-COMPETITIVO-001)
   2026-09-03. Candidato de diseño, NO publicado. Reutiliza los tokens de marca de
   web/landing/styles.css (mismo teal, misma tipografía del sistema) en una hoja propia para no
   tocar el CSS de producción. Mobile-first, sin build, sin dependencias externas. */

:root {
  --bg: #ffffff;
  --bg-alt: #eef6f7;
  --surface: #ffffff;
  --surface-2: #f6fafb;
  --border: #dde7ea;
  --text: #16242e;
  --muted: #5b6b78;
  --brand: #0e9aa3;
  --brand-dark: #0b7e86;
  --brand-soft: #e3f4f5;
  --ok: #1b8a5a;
  --ok-soft: #e5f6ee;
  --warn: #9a6b12;
  --warn-soft: #fbf0dc;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --maxw-narrow: 780px;
  --shadow: 0 10px 30px rgba(16, 40, 50, .08);
  --shadow-sm: 0 4px 14px rgba(16, 40, 50, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--maxw-narrow); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand-logo { display: block; }
.brand-word span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a.navlink { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 8px 6px; }
.nav a.navlink:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; letter-spacing: .01em;
}
.hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.16; margin: .6em 0 .4em; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--brand-dark); }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--muted); max-width: 48ch; }
.hero-proof {
  margin-top: 22px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--surface-2); font-size: .9rem; color: var(--text); max-width: 50ch;
}
.hero-proof strong { color: var(--brand-dark); }

/* Chat mock in hero */
.chat-mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; max-width: 420px; margin-left: auto;
}
.chat-mock .chat-head { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.chat-mock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.bubble { border-radius: 12px; padding: 10px 13px; font-size: .9rem; margin-bottom: 10px; max-width: 92%; }
.bubble-user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble-bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble-source { display: block; margin-top: 8px; font-size: .78rem; color: var(--brand-dark); font-weight: 600; }
.bubble-abstain { background: var(--warn-soft); border: 1px solid #eddca6; color: #6b4b0a; border-bottom-left-radius: 4px; }
.chat-mock .fictional { margin-top: 10px; font-size: .74rem; color: var(--muted); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 10px; text-align: center; letter-spacing: -0.01em; }
.section-lead { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 34px; }
.centered { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Comparison */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.col-us { color: var(--brand-dark); font-weight: 600; }
.compare-table td.col-them { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.compare-note { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Steps / onboarding */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: 12px;
}
.step-card h3 { font-size: .98rem; margin: 0 0 6px; }
.step-card p { font-size: .84rem; color: var(--muted); margin: 0; }
.step-tag { display: inline-block; margin-top: 10px; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.step-tag.who-you { background: var(--brand-soft); color: var(--brand-dark); }
.step-tag.who-us { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* Product states (favoritos grid mock) */
.states-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.state-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.state-card h3 { margin: 0 0 6px; font-size: 1rem; }
.state-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: .85rem; }
.state-row:first-of-type { border-top: none; }
.pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-vinculado { background: var(--ok-soft); color: var(--ok); }
.pill-sin { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.state-cta { font-size: .78rem; font-weight: 700; color: var(--brand-dark); border: 1px solid var(--brand); border-radius: 999px; padding: 4px 10px; background: var(--brand-soft); }
.state-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* Ficha tabs mock */
.ficha-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.ficha-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ficha-tab { font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.ficha-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ficha-desc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ficha-desc div h4 { margin: 0 0 4px; font-size: .86rem; }
.ficha-desc div p { margin: 0; font-size: .78rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 8px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Trust / revision */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.trust-item h4 { margin: 0 0 6px; font-size: .92rem; }
.trust-item p { margin: 0; font-size: .84rem; color: var(--muted); }
.callout-review {
  margin-top: 22px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius);
  padding: 18px 20px; font-size: .92rem; color: var(--brand-dark); text-align: center;
}

/* Pricing / consumption */
.pricing-band { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; text-align: center; box-shadow: var(--shadow-sm); min-width: 220px; }
.price-card .price-label { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.price-card .price-amount { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-dark); margin: 4px 0; }
.price-card .price-detail { display: block; font-size: .82rem; color: var(--muted); }
.consumo-list { max-width: 640px; margin: 24px auto 0; }
.consumo-list li { font-size: .9rem; margin-bottom: 8px; }
.consumo-list strong { color: var(--text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.cta-band p { color: #d9f0f1; max-width: 56ch; margin: 0 auto 20px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--brand-soft); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Footer */
.site-footer { padding: 32px 0 46px; text-align: center; }
.site-footer .brand-foot { font-weight: 700; margin: 0 0 4px; }
.site-footer a { color: var(--brand-dark); }

/* Bullets */
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 24px; font-size: .92rem; }
.bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* Progress checklist (onboarding page) */
.checklist { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.check-item {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
}
.check-item .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.check-item.done .dot { background: var(--ok); border-color: var(--ok); position: relative; }
.check-item.done .dot::after { content: "✓"; color: #fff; font-size: .7rem; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.check-item .label { font-size: .92rem; }
.check-item .sub { font-size: .78rem; color: var(--muted); }
.check-item.done .label { color: var(--muted); text-decoration: line-through; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .chat-mock { margin: 0 auto; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: 1fr; }
  .ficha-desc { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { font-size: .84rem; padding: 10px 12px; }
}
@media (max-width: 640px) {
  .nav a.navlink { display: none; }
  .steps { grid-template-columns: 1fr; }
  .ficha-desc { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .pricing-band { flex-direction: column; align-items: center; }
}

/* ================================================================
   WEB-UI-T1A-LANDING-SAAS-002 (T92 OP2, 2026-09-05)
   Bloques nuevos de la tanda T1a. Se AGREGAN al final para no tocar
   ninguna regla ya publicada: alta.html, login.html y set-password.html
   siguen usando styles.css (otra hoja), y onboarding.html comparte esta
   sin depender de las clases nuevas.
   ================================================================ */

/* Un [hidden] explícito: el bloque de novedades por mail (UI-52) queda
   preparado pero OCULTO hasta que el envío esté PASS. Sin esta regla,
   cualquier `display` que se agregue después a .section lo destaparía. */
[hidden] { display: none !important; }

/* ---------- WhatsApp (UI-24: presente en header, CTA final y pie) ---------- */
.btn-wa { background: var(--wa); color: #08331a; border-color: var(--wa); font-weight: 700; }
.btn-wa:hover { background: #1fbb59; border-color: #1fbb59; color: #08331a; }
.cta-band .btn-wa { color: #08331a; }
.wa-ico {
  display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.6 2 2.2 6.4 2.2 11.84c0 1.74.46 3.44 1.32 4.94L2 22l5.36-1.4a9.8 9.8 0 0 0 4.68 1.2h.01c5.43 0 9.84-4.4 9.84-9.84C21.89 6.4 17.48 2 12.04 2Zm5.76 14.06c-.24.68-1.4 1.3-1.94 1.34-.5.05-.98.23-3.3-.69-2.78-1.1-4.55-3.94-4.69-4.13-.14-.19-1.12-1.49-1.12-2.84 0-1.35.71-2.02.96-2.29.25-.27.55-.34.73-.34l.53.01c.17 0 .4-.06.62.48.24.57.8 1.98.87 2.12.07.14.12.31.02.5-.1.19-.15.31-.29.48-.14.17-.3.38-.43.51-.14.14-.29.29-.12.57.17.28.74 1.22 1.59 1.98 1.09.97 2.01 1.27 2.29 1.41.28.14.45.12.61-.07.17-.19.71-.83.9-1.11.19-.28.38-.24.63-.14.25.09 1.66.78 1.94.93.28.14.47.21.54.32.07.12.07.68-.17 1.36Z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.6 2 2.2 6.4 2.2 11.84c0 1.74.46 3.44 1.32 4.94L2 22l5.36-1.4a9.8 9.8 0 0 0 4.68 1.2h.01c5.43 0 9.84-4.4 9.84-9.84C21.89 6.4 17.48 2 12.04 2Zm5.76 14.06c-.24.68-1.4 1.3-1.94 1.34-.5.05-.98.23-3.3-.69-2.78-1.1-4.55-3.94-4.69-4.13-.14-.19-1.12-1.49-1.12-2.84 0-1.35.71-2.02.96-2.29.25-.27.55-.34.73-.34l.53.01c.17 0 .4-.06.62.48.24.57.8 1.98.87 2.12.07.14.12.31.02.5-.1.19-.15.31-.29.48-.14.17-.3.38-.43.51-.14.14-.29.29-.12.57.17.28.74 1.22 1.59 1.98 1.09.97 2.01 1.27 2.29 1.41.28.14.45.12.61-.07.17-.19.71-.83.9-1.11.19-.28.38-.24.63-.14.25.09 1.66.78 1.94.93.28.14.47.21.54.32.07.12.07.68-.17 1.36Z'/%3E%3C/svg%3E");
}
/* Dentro de un .btn el espacio ya lo da el `gap: 8px` del botón: sumar margin duplicaría
   la separación. El margin del icono queda solo para el link de texto del pie. */
.btn .wa-ico { margin-right: 0; }
.wa-link { font-weight: 700; color: #0f8a3d; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }

/* ---------- Hero con imagen (UI-01 / UI-17) ---------- */
.hero-img {
  width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface-2);
}

/* ---------- Bloque del problema ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.problem-card h3 { margin: 0 0 6px; font-size: .95rem; }
.problem-card p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- Tres capas (UI-14) ---------- */
.layers { display: grid; gap: 14px; }
.layer {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.layer-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.layer h3 { margin: 3px 0 6px; font-size: 1rem; }
.layer p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Mundos (UI-15) ---------- */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
}
.world-card h3 { margin: 0; font-size: 1.02rem; }
.world-card p { margin: 0; font-size: .86rem; color: var(--muted); flex: 1 1 auto; }
.world-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.world-on { background: var(--ok-soft); color: var(--ok); }
.world-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ---------- Capacidades: archivos (UI-80) y personalización (UI-91) ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.cap-card h3 { margin: 0 0 8px; font-size: 1rem; }
.cap-card p { font-size: .88rem; color: var(--muted); }
.cap-card .bullets { margin: 12px 0; }
.bullets.small li { font-size: .86rem; }

/* ---------- "Próximamente" (D27) ---------- */
.badge-soon {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid #eddca6;
  vertical-align: middle; white-space: nowrap;
}

/* ---------- Costos (UI-18 / UI-19) ---------- */
.sub-title { font-size: 1rem; margin: 30px 0 12px; text-align: center; }
.price-note {
  background: var(--brand-soft); border: 1px solid #bfe4e6; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .88rem; text-align: center; margin: 0 0 6px;
}
.price-table td.col-us { white-space: nowrap; }
.price-table td.col-them { font-weight: 400; }
.soon-panel {
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.soon-panel p { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.soon-panel .bullets li { font-size: .88rem; }

/* ---------- Entrada visible al onboarding ---------- */
.onboarding-cta {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.onboarding-cta h3 { margin: 0 0 4px; font-size: 1rem; }
.onboarding-cta p { margin: 0; }

/* ---------- Pie: bandera argentina (UI-23) ---------- */
.flag-line { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 62ch; margin: 10px auto 0; text-align: left; }
.flag { width: 24px; height: 16px; flex: 0 0 auto; margin-top: 3px; border: 1px solid var(--border); border-radius: 2px; }

/* ---------- Responsive de los bloques nuevos ---------- */
@media (max-width: 920px) {
  .problem-grid { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .layer { flex-direction: column; gap: 10px; }
  .onboarding-cta { flex-direction: column; align-items: stretch; }
  .onboarding-cta .btn { width: 100%; text-align: center; }
  .flag-line { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Utilería de accesibilidad ---------- */
/* Oculta visualmente sin ocultar para lectores de pantalla (distinto de [hidden]/display:none,
   que sí deben desaparecer también del árbol de accesibilidad -- ver UI-52). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Selector de contexto (UI-16 / UI-50 / D2, tanda T1b) ----------
   Radios nativos + <label> como "globo": mínima superficie de JS, teclado (Tab, flechas,
   espacio) y disabled 100% nativos. El fieldset es el contenedor flex; los 3 <p class=
   "context-desc"> son hijos DIRECTOS del fieldset (mismo padre que los radios, no un div
   envolvente aparte) para que el selector CSS de hermanos (~) pueda mostrarlos según cuál
   input está :checked, sin una sola línea de JS para ese comportamiento. */
fieldset.context-switch {
  border: 0; margin: 18px 0 4px; padding: 0; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.context-radio {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.context-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.context-radio:checked + .context-pill {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark);
}
.context-radio:focus-visible + .context-pill {
  outline: 2px solid var(--brand-dark); outline-offset: 2px;
}
.context-radio:disabled + .context-pill {
  cursor: not-allowed; color: var(--muted);
}
.context-radio:disabled:checked + .context-pill {
  border-color: var(--border); background: var(--surface-2); color: var(--muted);
}
.context-pill .badge-soon { margin-left: 2px; }
.context-desc {
  flex-basis: 100%; display: none; margin: 4px 0 0; font-size: .92rem; color: var(--text);
  max-width: 52ch;
}
/* Solo se muestra la descripción del contexto seleccionado -- también correcto para lectores
   de pantalla: display:none saca las otras 2 del árbol de accesibilidad, igual que del visual. */
#ctx-legal:checked ~ #context-desc-legal,
#ctx-libre:checked ~ #context-desc-libre,
#ctx-economico:checked ~ #context-desc-economico {
  display: block;
}
.context-desc strong { color: var(--brand-dark); }
.context-desc-cta {
  display: inline-block; margin-left: 6px; font-weight: 700; color: var(--brand-dark);
  text-decoration: underline; text-underline-offset: 2px;
}
.context-desc-cta:hover { color: var(--brand); }
@media (max-width: 480px) {
  fieldset.context-switch { gap: 8px; }
  .context-pill { padding: 7px 13px; font-size: .84rem; }
}
