:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --panel: #141a22;
  --panel-raised: #19212b;
  --line: #343e4c;
  --text: #f4f5f7;
  --muted: #b5becb;
  --red: #ff4059;
  --button: #cc1839;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-weight: 900; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.85rem); }
h3 { font-size: 1.1rem; }
em { color: var(--red); font-style: normal; }
:focus-visible { outline: 2px solid #ff8294; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(73rem, calc(100% - 4rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; left: 1rem; top: 1rem; padding: .85rem; background: var(--panel); }
#ruta, #comunidad, #planes { scroll-margin-top: 5.75rem; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 4.65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1rem; font-weight: 800; letter-spacing: .095em; white-space: nowrap; }
.brand img { border-radius: 50%; border: 1px solid var(--line); }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.header-nav { display: flex; margin-left: auto; gap: 1.35rem; align-items: center; }
.header-nav a { display: grid; place-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.header-nav a:hover { color: var(--text); }
.preview-label { font-size: .75rem; color: #ffd6de; border: 1px solid #61404b; padding: .42rem .65rem; border-radius: 3px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(2rem, 5.3vw, 5rem); align-items: center; padding-block: clamp(3.25rem, 6.5vw, 6.25rem); }
.overline { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.hero h1 { margin-top: 1.05rem; font-size: clamp(3.1rem, 5.3vw, 4.75rem); line-height: .99; }
.hero-lead, .route-copy > p:not(.overline), .campus p:not(.overline), .plans-intro > p { color: var(--muted); line-height: 1.65; }
.hero-lead { margin-top: 1.28rem; max-width: 31rem; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.hero-actions, .quiz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.button-primary { color: #fff; background: var(--button); border-color: #e83b56; }
.button-primary:hover { background: #d72343; }
.button-secondary { color: var(--text); background: #10151c; border-color: #505d70; }
.button-secondary:hover { background: var(--panel-raised); border-color: #8591a6; }
.button-text { color: var(--muted); background: transparent; padding-inline: .4rem; }
.button-text:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.hero-note { margin-top: .8rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.case-card { margin: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #11161d; box-shadow: 0 1.6rem 3.7rem #0005; }
.case-card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #080a0d; }
.case-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.08rem 1.15rem; border-top: 1px solid var(--line); }
.case-card figcaption strong { display: block; margin-top: .3rem; font-size: 1rem; line-height: 1.3; }
.caption-tag { color: var(--muted); font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .075em; }
.case-card .button { flex: none; }

.route-band { background: linear-gradient(110deg, #121820, #0f141b); border-block: 1px solid var(--line); }
.route-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.8rem); align-items: start; padding-block: clamp(3.2rem, 6vw, 5.2rem); }
.route-copy h2, .campus h2, .plans-intro h2 { margin-top: .65rem; }
.route-copy > p:not(.overline), .campus p:not(.overline) { margin-top: 1rem; max-width: 29rem; }
.route-copy .route-preview { font-size: .85rem; }
.quiz-panel { min-width: 0; min-height: 22rem; padding: clamp(1.15rem, 3.2vw, 2.45rem); border: 1px solid #445164; border-radius: 5px; background: #0d1219; box-shadow: 0 1.4rem 3.5rem #0004; }
.quiz-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .95rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .83rem; font-weight: 700; }
#quiz-progress { width: min(8rem, 36%); height: 6px; border: 0; border-radius: 2px; overflow: hidden; background: #2b3440; color: var(--red); accent-color: var(--red); }
#quiz-progress::-webkit-progress-bar { background: #2b3440; }
#quiz-progress::-webkit-progress-value { background: var(--red); }
#quiz-progress::-moz-progress-bar { background: var(--red); }
#quiz-stage { margin-top: 1.4rem; }
.quiz-title { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.quiz-title:focus { outline: none; }
.quiz-description, .result-detail, .demo-note { margin-top: .6rem; color: var(--muted); line-height: 1.55; }
.quiz-options { display: grid; gap: .56rem; margin-top: 1.1rem; }
.quiz-option {
  position: relative;
  width: 100%;
  min-height: 3.35rem;
  padding: .74rem 2.5rem .74rem .95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--panel);
  text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.quiz-option::after { content: ""; position: absolute; width: .65rem; height: .65rem; border: 1px solid #8b9ab0; border-radius: 2px; right: 1rem; top: calc(50% - .32rem); }
.quiz-option:hover, .quiz-option[aria-pressed="true"] { border-color: #f05870; background: #241823; }
.quiz-option[aria-pressed="true"]::after { background: var(--red); border-color: var(--red); }
.option-title { font-weight: 750; display: block; }
.option-note { display: block; margin-top: .2rem; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.quiz-actions { margin-top: 1.2rem; }
.result-price { margin-top: 1rem; font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; }
.result-benefits { margin: .8rem 0 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.55; }
.result-benefits li + li { margin-top: .3rem; }
.result-benefits li::marker { color: var(--red); }
.demo-note { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .95rem; font-size: .82rem; }

.campus { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.campus img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; }
.plans-band { background: #11161e; border-block: 1px solid var(--line); padding-block: clamp(3.4rem, 6.5vw, 5.5rem); }
.plans-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.4rem; align-items: end; }
.plans-intro > p { max-width: 25rem; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.7rem 0 1.35rem; }
.plan-card { padding: 1.25rem; border: 1px solid var(--line); background: #151c25; border-radius: 4px; }
.plan-card h3 { min-height: 2.3em; overflow-wrap: anywhere; }
.plan-price { margin-block: .4rem .65rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -.035em; }
.plan-card p:last-child { color: var(--muted); line-height: 1.55; }
.site-footer { padding: 2rem 1.15rem; text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.site-footer small { display: block; margin-top: .6rem; font-size: .8rem; }

dialog { padding: 0; width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; color: var(--text); background: #121820; border: 1px solid #5b677a; border-radius: 6px; }
dialog::backdrop { background: #05070ccc; }
.case-dialog-inner { padding: clamp(1.2rem, 5vw, 2.4rem); }
.close-case { float: right; margin: -.45rem -.3rem 0 .55rem; }
.case-dialog-inner h2 { clear: both; font-size: clamp(1.65rem, 4.2vw, 2.65rem); margin: .65rem 0 .8rem; }
.case-dialog-inner > p:not(.overline), .case-points dd { color: var(--muted); line-height: 1.55; }
.case-points { margin: 1rem 0 1.4rem; border-top: 1px solid var(--line); }
.case-points div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.case-points dt { font-weight: 750; }
.case-points dd { margin: .15rem 0 0; }

@media (max-width: 56rem) {
  .hero, .route-layout, .campus { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.15rem, 10vw, 5.25rem); }
  .hero, .campus { gap: 1.8rem; }
  .route-layout { gap: 1.5rem; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 37rem) {
  .wrap { width: calc(100% - 2.4rem); }
  #ruta, #comunidad, #planes { scroll-margin-top: 1rem; }
  .header-inner { min-height: 4.1rem; gap: .55rem; justify-content: space-between; }
  .header-nav { display: none; }
  .brand { font-size: .9rem; }
  .brand img { width: 37px; height: 37px; }
  .hero { padding-block: 3.35rem 2.7rem; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4rem); }
  .hero-actions .button { flex: 1 1 auto; }
  .case-card figcaption { align-items: flex-start; flex-direction: column; }
  .case-card figcaption .button { width: 100%; }
  .quiz-panel { min-height: 0; }
  .quiz-actions .button-primary, .quiz-actions .button-secondary { width: 100%; }
  .plans-intro { grid-template-columns: 1fr; gap: .75rem; }
  .plans-grid { gap: .65rem; }
  .plan-card { padding: .95rem; }
  .plan-card h3 { font-size: 1rem; }
}
@media (max-width: 22.5rem) {
  .wrap { width: calc(100% - 1.8rem); }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .quiz-option { transition: none; }
}
