/* Adaptive Profit Model — estilos derivados del look & feel de eseailab.ai
   Tokens tomados de /assets/t101-home-v1/styles.css (2026-11-03) */
:root {
  --blue: #0527d5; --blue-dark: #06165e; --blue-soft: #e9edff;
  --ink: #17182a; --muted: #5b6276; --paper: #fbfaf6; --white: #fff;
  --line: #dfe2ec; --gold: #bc8d36;
  --ok: #1d7a3e; --ok-soft: #e4f5ea; --warn: #9a6b00; --warn-soft: #fdf3d9;
  --bad: #a3232b; --bad-soft: #fbe9ea; --neutral-soft: #eef0f6;
  --shadow: 0 18px 55px rgba(21, 31, 77, .11);
  --radius: 1.2rem; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 24rem; z-index: -1;
  background: radial-gradient(circle at 12% 8%, rgba(5,39,213,.16), transparent 34%),
              radial-gradient(circle at 88% 4%, rgba(188,141,54,.12), transparent 25%); }
a { color: inherit; } img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .65rem 1rem;
  color: #fff; background: var(--ink); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(23,24,42,.08);
  background: rgba(251,250,246,.94); backdrop-filter: blur(16px); }
.nav-shell, .container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.nav-shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: .7rem; object-fit: cover; box-shadow: 0 8px 22px rgba(5,39,213,.2); }
.brand span small { display: block; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav a { text-decoration: none; font-weight: 650; font-size: .95rem; }
.primary-nav a:hover { color: var(--blue); }
.hero { padding: 3.2rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 750; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; margin-bottom: .4rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; margin-bottom: .8rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.status-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--blue-soft);
  border: 1px solid rgba(5,39,213,.18); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.2rem 0; }
.status-note span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue); margin-top: .45rem; flex: none; }
.limits { color: var(--muted); font-size: .88rem; }
.cta { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 750;
  padding: .85rem 1.5rem; border-radius: 999px; box-shadow: 0 12px 28px rgba(5,39,213,.28); margin-top: .6rem; }
.cta:hover { background: var(--blue-dark); }
.hero-visual .signal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); }
.signal p { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 750; margin-bottom: .2rem; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.signal-grid span { background: var(--blue-soft); color: var(--blue-dark); border-radius: .7rem; padding: .5rem .7rem; font-size: .8rem; font-weight: 650; text-align: center; }
/* step nav */
.stepnav { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0 1.4rem; position: sticky; top: 74px; z-index: 20; background: rgba(251,250,246,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.stepbtn { border: 1px solid var(--line); background: var(--white); color: var(--muted); font-weight: 650;
  font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.stepbtn:disabled { opacity: .45; cursor: not-allowed; }
.stepbtn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepbtn:not(:disabled):hover { border-color: var(--blue); color: var(--blue); }
.stepbtn.is-active:hover { color: #fff; }
/* screens */
.screen { padding: 1.6rem 0 3rem; }
.screen h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.pantalla-lead { color: var(--muted); max-width: 46rem; margin-bottom: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: .35rem; }
.field input { width: 100%; max-width: 22rem; padding: .7rem .9rem; border: 1.5px solid var(--line);
  border-radius: .8rem; font-size: 1rem; font-family: inherit; background: var(--white); color: var(--ink); }
.field input:focus { border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.field.inline label { margin: 0; }
.field.inline input { max-width: 8rem; }
.field-error { color: var(--bad); font-size: .88rem; font-weight: 600; min-height: 1.2em; margin: .3rem 0 0; }
.help { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0; }
.help summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.help p { color: var(--muted); font-size: .92rem; }
.help .field label { font-weight: 600; }
.btn { border: 1.5px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 750;
  padding: .7rem 1.3rem; border-radius: 999px; cursor: pointer; font-size: .95rem; font-family: inherit; }
.btn:hover { background: var(--blue-soft); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(5,39,213,.25); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { border-color: var(--gold); color: var(--gold); }
.btn.secondary:hover { background: #f7efdd; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--white); }
.est-out { font-weight: 700; color: var(--blue-dark); }
.est-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
/* eco card */
.card-eco { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.card-eco h3 { margin-bottom: .6rem; font-family: Georgia, serif; }
.eco-table { width: 100%; border-collapse: collapse; }
.eco-table caption { text-align: left; color: var(--muted); font-size: .82rem; padding-bottom: .5rem; }
.eco-table th, .eco-table td { padding: .5rem .3rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.eco-table th { text-align: left; font-weight: 650; }
.eco-table td { font-weight: 750; }
.eco-result th, .eco-result td { border-bottom: none; font-size: 1.1rem; }
.eco-msg { font-size: .9rem; font-weight: 600; margin: .7rem 0 0; }
.eco-msg.ok { color: var(--ok); } .eco-msg.warn { color: var(--warn); } .eco-msg.bad { color: var(--bad); }
.mini-eco { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
/* result cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.rcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 8px 24px rgba(21,31,77,.07); }
.rcard h3 { margin: 0 0 .3rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: Inter, sans-serif; font-weight: 750; }
.rcard .big { font-size: 1.7rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rcard .dir { display: inline-block; font-size: .85rem; font-weight: 750; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.rcard .exp { color: var(--muted); font-size: .86rem; margin: .5rem 0 0; }
.rcard.state-valido .big { color: var(--ink); }
.rcard.state-limite { background: var(--warn-soft); border-color: rgba(154,107,0,.3); }
.rcard.state-limite .big { color: var(--warn); }
.rcard.state-no_factible, .rcard.state-no_definido { background: var(--neutral-soft); }
.rcard.state-no_factible .big, .rcard.state-no_definido .big { color: var(--muted); font-size: 1.2rem; }
.rcard.state-sin_efecto { background: var(--blue-soft); }
.rcard.state-sin_efecto .big { color: var(--blue-dark); font-size: 1.2rem; }
.dir.up { background: var(--ok-soft); color: var(--ok); }
.dir.down { background: var(--bad-soft); color: var(--bad); }
.dir.flat { background: var(--neutral-soft); color: var(--muted); }
/* tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(21,31,77,.07); }
.data-table caption { caption-side: top; text-align: left; padding: .8rem 1rem; color: var(--muted); font-size: .88rem; }
.data-table th, .data-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; }
.data-table th { background: var(--blue-soft); color: var(--blue-dark); font-weight: 750; }
.data-table thead th:first-child { text-align: left; }
.data-table tbody th { text-align: left; background: var(--white); font-weight: 650; }
.data-table td.na { color: var(--muted); font-weight: 600; }
.data-table td.lim { background: var(--warn-soft); color: var(--warn); font-weight: 800; }
.data-table td.se { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.data-table tr.diag td { background: var(--neutral-soft); color: var(--muted); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.table-scroll .data-table th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
/* matrix mobile */
.comp-mobile-only { display: none; }
.mfield { margin-bottom: 1rem; }
.mfield label { display: block; font-weight: 700; margin-bottom: .35rem; }
.mfield select { padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: .8rem; font-size: 1rem; font-family: inherit; background: var(--white); width: 100%; max-width: 24rem; }
/* chart */
.chart-wrap { margin: 1.6rem 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.chart-wrap figcaption { color: var(--muted); font-size: .86rem; margin-bottom: .8rem; }
#vol-chart svg { width: 100%; height: auto; display: block; }
.chart-alt { color: var(--muted); font-size: .86rem; margin-top: .6rem; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; font-weight: 700; margin-top: .5rem; }
.legend .sw { display: inline-block; width: .9rem; height: .9rem; border-radius: .25rem; margin-right: .35rem; vertical-align: -1px; }
.note { color: var(--muted); font-size: .86rem; }
.navrow { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.privacy-note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-top: 1.6rem; max-width: 40rem; }
.privacy-note h3 { font-size: .95rem; color: var(--blue-dark); margin-bottom: .3rem; }
.privacy-note p { color: var(--muted); font-size: .9rem; margin: 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 1.6rem 0; margin-top: 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; font-size: .88rem; }
.footer-grid .muted { color: var(--muted); max-width: 30rem; }
@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .comp-desktop-only { display: none; }
  .comp-mobile-only { display: block; }
  .stepnav { top: 74px; }
}
@media (min-width: 901px) {
  .comp-mobile-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.detalle-cell details summary { cursor: pointer; color: var(--blue); font-weight: 650; font-size: .85rem; }
.detalle-cell details p, .detalle-cell details { font-size: .85rem; color: var(--muted); }

/* Reflexión final (Pantalla 6) — elasticidad y palancas, contenido conceptual */
.reflection-note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-top: 1.6rem; max-width: 56rem; }
.reflection-note h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; color: var(--blue-dark); margin-bottom: .6rem; }
.reflection-note p { color: var(--muted); font-size: .95rem; margin: 0 0 .8rem; }
.reflection-note p:last-child { margin-bottom: 0; }
.elas-table { width: 100%; border-collapse: collapse; background: var(--white); }
.elas-table caption { caption-side: top; text-align: left; color: var(--muted); font-size: .82rem; padding-bottom: .5rem; }
.elas-table th, .elas-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); font-size: .88rem; text-align: left; vertical-align: top; }
.elas-table thead th { background: var(--blue-soft); color: var(--blue-dark); font-weight: 750; }
.elas-table tbody th { font-weight: 650; white-space: nowrap; }
.elas-table td:last-child, .elas-table thead th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.elas-table td { color: var(--muted); }
.elas-foot { font-size: .8rem !important; }
@media (max-width: 720px) {
  .elas-table tbody th { white-space: normal; }
}
