/* Portada (/), ingreso (/login), registro (/register) y selector de idioma.
   Tema oscuro como el juego. Radios: botones 14px (de app.css), tarjetas 20px, chips en píldora. */

/* ---------- selector de idioma ---------- */
.langpick { position: relative; }
.langpick__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--text);
  font: 700 13px/1 var(--font-ui); letter-spacing: .04em; cursor: pointer; transition: background-color .2s;
}
.langpick__btn:hover { background: rgba(255, 255, 255, .12); }
.langpick .flag { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.langpick__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--asphalt-850); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-3);
  animation: lp-in .18s var(--ease-out);
}
.langpick--up .langpick__menu, .langpick.is-up .langpick__menu { top: auto; bottom: calc(100% + 8px); }
.langpick__menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: 600 14.5px var(--font-ui); text-align: left; cursor: pointer;
}
.langpick__menu button span { flex: 1; }
.langpick__menu button b { font-size: 11px; color: var(--text-mute); letter-spacing: .06em; }
.langpick__menu button:hover { background: rgba(255, 255, 255, .07); }
.langpick__menu button.is-on { color: var(--taxi); }
.langpick__menu button.is-on b { color: var(--taxi); }
.langpick--inline { margin-left: auto; }
.pop__lang { cursor: default; }
.more-lang { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; color: var(--text-dim); font-weight: 600; }
@keyframes lp-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- portada ---------- */
.app[data-screen="landing"] { display: block; }
.pub { background: var(--asphalt-950); color: var(--text); overflow-x: clip; }
.pub-h2 {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08;
}
.pub-lead { margin: 0 0 28px; max-width: 58ch; color: var(--text-dim); font-size: 17px; line-height: 1.6; }
.pub-eyebrow { margin: 0 0 10px; color: var(--taxi); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.pub main > section { padding: 96px max(16px, calc((100vw - 1180px) / 2)); }

.pub-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; display: flex; align-items: center; gap: 28px;
  padding: 0 max(16px, calc((100vw - 1240px) / 2)); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.pub-nav.is-solid { background: rgba(18, 22, 32, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.pub-nav__logo .logo__sign { transform: scale(.82); transform-origin: left center; }
.pub-nav__links { display: flex; gap: 22px; margin-right: auto; }
.pub-nav__links a { color: var(--text-dim); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: color .2s; }
.pub-nav__links a:hover { color: var(--text); }
.pub-nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 96px max(16px, calc((100vw - 1240px) / 2)) 72px !important; overflow: hidden; }
.hero__scene { position: absolute; inset: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 14, 20, .94) 0%, rgba(11, 14, 20, .78) 34%, rgba(11, 14, 20, .12) 64%, rgba(11, 14, 20, 0) 100%),
    linear-gradient(180deg, rgba(11, 14, 20, .5) 0%, rgba(11, 14, 20, 0) 22%, rgba(11, 14, 20, 0) 78%, var(--asphalt-950) 100%);
}
.hero__copy { position: relative; z-index: 2; max-width: 720px; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__gift {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 99px;
  background: rgba(255, 198, 41, .12); border: 1px solid rgba(255, 198, 41, .4); color: var(--taxi-soft); font-weight: 700; font-size: 14px;
}
.hero__gift .i { width: 18px; height: 18px; color: var(--taxi); }
.hero__title {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.08;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero__title em { display: block; font-style: normal; color: var(--taxi); }
.hero__lead { margin: 0 0 32px; max-width: 44ch; font-size: 18.5px; line-height: 1.55; color: #D2D8E4; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn--ghost { background: rgba(11, 14, 20, .5); }

/* entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .8s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
}
/* solo movimiento: si el navegador pausa la animación, el texto igual se ve */
@keyframes rise { from { transform: translateY(18px); } }

/* cómo se juega: una calle con paradas */
.route { position: relative; margin-top: 36px; }
.route__road {
  position: absolute; left: 0; right: 0; top: 34px; height: 30px; border-radius: 99px; background: #2B3141;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.route__road::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 13px; height: 4px;
  background: repeating-linear-gradient(90deg, #EFE6CC 0 26px, transparent 26px 52px); opacity: .8;
}
.route__car { position: absolute; top: -26px; left: 0; width: 120px; transform: translateX(-20%); }
.route__car svg { width: 100%; height: auto; display: block; }
.how.is-in .route__car { animation: drive 9s cubic-bezier(.45, 0, .25, 1) .3s infinite; }
@keyframes drive {
  0% { transform: translateX(-20%); }
  22%, 30% { transform: translateX(calc(25vw - 60px)); }
  52%, 60% { transform: translateX(calc(50vw - 90px)); }
  82%, 100% { transform: translateX(calc(min(1180px, 100vw - 32px) - 110px)); }
}
.route__stops { position: relative; list-style: none; margin: 0; padding: 96px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.route__stop h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.route__stop p { margin: 0; color: var(--text-dim); line-height: 1.55; font-size: 15px; }
.route__pin {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px;
  background: var(--taxi); color: var(--text-on-taxi); box-shadow: 0 6px 0 var(--taxi-deep);
}
.route__pin .i { width: 22px; height: 22px; }

/* taxis: carril con scroll */
.fleet__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fleet__nav { display: flex; gap: 8px; margin-bottom: 14px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--asphalt-600) transparent;
}
.rail:focus-visible { outline: 2px solid var(--taxi); outline-offset: 4px; border-radius: 12px; }
.rail__card {
  position: relative; scroll-snap-align: start; padding: 18px 18px 20px; border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, var(--asphalt-850)), var(--asphalt-900) 62%);
  border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); transition: transform .25s var(--ease-out), border-color .25s;
}
.rail__card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); }
.rail__art { height: 120px; display: grid; place-items: center; }
.rail__art svg { width: 100%; height: 100%; }
.rail__year { position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: 20px; color: var(--rc); }
.rail__card h3 { margin: 10px 0 2px; font-size: 17px; font-weight: 800; }
.rail__nick { margin: 0 0 14px; color: var(--text-mute); font-size: 13.5px; }
.rail__specs { margin: 0; display: grid; gap: 8px; }
.rail__specs div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rail__specs dt { color: var(--text-mute); }
.rail__specs dd { margin: 0; text-align: right; }
.rail__specs b { color: var(--usdt-bright); }
.rail__rarity { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }

/* alquileres: texto + calculadora */
.rent { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.rent__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rent__facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); line-height: 1.5; }
.rent__facts .i { flex: none; width: 22px; height: 22px; color: var(--taxi); margin-top: 1px; }
.rent__facts b { color: var(--text); }
.calc {
  padding: 24px; border-radius: 20px; background: linear-gradient(180deg, var(--asphalt-800), var(--asphalt-900));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc__head strong { font-size: 17px; }
.calc__models { display: flex; gap: 6px; }
.calc__model {
  height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: none; color: var(--text-dim);
  font: 700 13px var(--font-ui); cursor: pointer;
}
.calc__model.is-on { background: var(--taxi); border-color: var(--taxi); color: var(--text-on-taxi); }
.calc__car { height: 130px; margin: 14px 0 6px; display: grid; place-items: center; }
.calc__car svg { height: 100%; width: auto; max-width: 100%; }
.calc__slider { display: grid; gap: 10px; font-weight: 600; color: var(--text-dim); }
.calc__slider b { color: var(--text); }
.calc__slider input { width: 100%; accent-color: var(--taxi); }
.calc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.calc__split > div { padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); display: grid; gap: 2px; }
.calc__split small { color: var(--text-mute); font-weight: 600; }
.calc__split b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--usdt-bright); }
.calc__split span { font-size: 12.5px; color: var(--text-mute); }
.calc__fine { margin: 14px 0 0; font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }

/* más que viajes: bento de 5 */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.bento__cell { position: relative; padding: 26px; border-radius: 20px; background: var(--asphalt-850); border: 1px solid var(--line); overflow: hidden; }
.bento__cell h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.bento__cell p { margin: 0; color: var(--text-dim); line-height: 1.55; }
.bento__cell > .i { width: 28px; height: 28px; color: var(--taxi); }
.bento__cell--event {
  grid-column: span 2;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 198, 41, .28), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 28px),
    var(--asphalt-850);
  border-color: rgba(255, 198, 41, .3);
}
.bento__cell--event h3 { font-size: clamp(22px, 2.4vw, 30px); max-width: 22ch; }
.bento__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--taxi); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.bento__tag .i { width: 18px; height: 18px; }
.podium-mini { list-style: none; margin: 20px 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.podium-mini li { display: grid; justify-items: center; min-width: 92px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.podium-mini li:first-child { border-color: rgba(255, 198, 41, .55); }
.podium-mini span { font-size: 13px; color: var(--text-mute); font-weight: 700; }
.podium-mini b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--taxi); }
.podium-mini small { color: var(--text-dim); font-weight: 700; }
.bento__count { color: var(--text-dim) !important; }
.bento__count b { color: var(--text); }
.bento__cell--guild { background: linear-gradient(160deg, #2A2412 0%, var(--asphalt-850) 60%); border-color: rgba(255, 198, 41, .22); }
.bento__badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--taxi); color: var(--text-on-taxi); box-shadow: 0 6px 0 var(--taxi-deep); }
.bento__badge .i { width: 28px; height: 28px; }
.bento__price { margin-top: 16px !important; color: var(--text-dim); }
.bento__price b { color: var(--usdt-bright); font-size: 18px; }
.bento__cell--refs { background: linear-gradient(160deg, #10261F, var(--asphalt-850) 65%); }
.bento__cell--refs > .i { color: var(--usdt-bright); }
.bento__cell--chat > .i { color: var(--info); }

/* lo que viene */
.soon__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.soon__tile {
  display: grid; align-content: start; gap: 2px; padding: 20px 18px; border-radius: 20px; border: 1px dashed rgba(255, 198, 41, .35);
  background: repeating-linear-gradient(-45deg, rgba(255, 198, 41, .05) 0 10px, transparent 10px 20px);
}
.soon__day { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--taxi); }
.soon__month { color: var(--text-mute); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.soon__tile b { font-size: 15.5px; }

/* preguntas */
.faq { max-width: 860px; margin: 0 auto; }
.pub main > section.faq { padding-left: 16px; padding-right: 16px; }
.faq__list { margin-top: 24px; display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--asphalt-850); border: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
  list-style: none; font-weight: 700; font-size: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { flex: none; width: 18px; height: 18px; color: var(--text-mute); transition: transform .25s var(--ease-out); }
.faq__item[open] summary .i { transform: rotate(180deg); color: var(--taxi); }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--text-dim); line-height: 1.6; }

/* cierre */
.finale { text-align: center; display: grid; justify-items: center; }
.finale__sign { width: min(340px, 80vw); margin-bottom: 12px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.finale__sign svg { width: 100%; height: auto; }
.finale .pub-lead { margin-left: auto; margin-right: auto; }
.finale .tg-row { margin-top: 28px; justify-content: center; }

.pub-foot { padding: 36px max(16px, calc((100vw - 1180px) / 2)) 48px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 13.5px; line-height: 1.6; }
.pub-foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pub-foot p { margin: 0 0 6px; max-width: 80ch; }
.logo__sign--sm { transform: scale(.7); transform-origin: left center; }

/* ---------- ingreso y registro ---------- */
.app[data-screen="auth"] { display: block; }
.authp { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); background: var(--asphalt-950); }
.authp__visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.authp__scene { position: absolute; inset: 0; }
.authp__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 14, 20, .1) 0%, rgba(11, 14, 20, .2) 45%, rgba(11, 14, 20, .9) 100%), linear-gradient(270deg, rgba(11, 14, 20, .6), transparent 30%); }
.authp__pitch { position: relative; z-index: 2; padding: 0 48px 56px; max-width: 560px; pointer-events: none; }
.authp__pitch h1 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; text-shadow: 0 4px 22px rgba(0, 0, 0, .5); }
.authp__pitch p { margin: 0; color: #D2D8E4; font-size: 17px; line-height: 1.55; }
.authp__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.authp__perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #E3E8F1; }
.authp__perks .i { width: 22px; height: 22px; color: var(--taxi); }

.authp__panel { display: flex; flex-direction: column; padding: 20px clamp(16px, 4vw, 56px) 28px; background: var(--asphalt-900); border-left: 1px solid var(--line); }
.authp__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.authp__logo .logo__sign { transform: scale(.8); transform-origin: left center; }
.authp__card { width: 100%; max-width: 420px; margin: auto; padding: 28px 0; }
.authp__form h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.authp__invite { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(61, 219, 168, .1); border: 1px solid rgba(61, 219, 168, .35); color: #BFF3E2; font-size: 14px; }
.authp__invite .i { flex: none; width: 18px; height: 18px; color: var(--usdt-bright); }
.authp__aside, .authp__switch, .authp__fine { margin: 0; text-align: center; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.authp__fine { font-size: 12.5px; color: var(--text-mute); }
.authp__aside a, .authp__switch a, .check a { color: var(--taxi); font-weight: 700; }
.authp__back { display: inline-flex; align-items: center; gap: 4px; align-self: center; color: var(--text-mute); font-weight: 600; font-size: 14px; }
.authp__back:hover { color: var(--text); }
.authp__back .i { width: 16px; height: 16px; }

.field__error { min-height: 0; color: #FF8C8F; font-size: 13px; font-weight: 600; }
.field__error:empty { display: none; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-mute); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pw-toggle .i { width: 18px; height: 18px; }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--asphalt-700); transition: background-color .25s; }
.pw-meter[data-meter="1"] i:nth-child(1) { background: var(--warn); }
.pw-meter[data-meter="2"] i:nth-child(-n+2) { background: var(--usdt-bright); }
.pw-meter[data-meter="3"] i { background: var(--usdt-bright); }
.authp .check { align-items: flex-start; font-weight: 500; line-height: 1.45; }
.authp .check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--taxi); }
.authp .check.is-invalid span { color: #FF8C8F; }

/* ---------- celular y tablet ---------- */
@media (max-width: 1080px) {
  .pub-nav__links { display: none; }
}
@media (max-width: 900px) {
  .pub main > section { padding-top: 72px; padding-bottom: 72px; }
  .route__road { display: none; }
  .route__stops { grid-template-columns: 1fr 1fr; padding-top: 8px; }
  .rent { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--event { grid-column: 1 / -1; }
  .soon__strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 170px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .soon__tile { scroll-snap-align: start; }
  .authp { grid-template-columns: 1fr; }
  .authp__visual { min-height: 230px; }
  .authp__pitch { padding: 0 20px 22px; }
  .authp__pitch p, .authp__perks { display: none; }
  .authp__pitch h1 { font-size: 30px; }
  .authp__panel { border-left: 0; }
  .authp__top { position: absolute; top: 12px; left: 16px; right: 16px; z-index: 5; }
  .authp__card { padding-top: 8px; }
}
@media (max-width: 640px) {
  .pub-nav { gap: 10px; height: 60px; }
  .pub-nav__logo .logo__sign { transform: scale(.66); }
  .pub-nav__cta { display: none; }
  .hero { align-items: flex-end; padding-bottom: 48px !important; }
  .hero__shade { background: linear-gradient(180deg, rgba(11, 14, 20, .35) 0%, rgba(11, 14, 20, .55) 40%, rgba(11, 14, 20, .96) 72%, var(--asphalt-950) 100%); }
  .hero__lead { font-size: 16.5px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .route__stops { grid-template-columns: 1fr; gap: 22px; }
  .bento { grid-template-columns: 1fr; }
  .calc__split b { font-size: 22px; }
  .pub-foot__row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .how.is-in .route__car { animation: none; }
  .langpick__menu { animation: none; }
}

/* ---------- textos legales (/terminos y /privacidad) ---------- */
.legal .pub-nav__actions { gap: 10px; }
.legal__wrap {
  display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start;
  padding: 116px max(16px, calc((100vw - 1180px) / 2)) 80px;
}
.legal__toc { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow-y: auto; padding-right: 6px; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: 10px; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
  color: var(--text-mute); font-size: 13.5px; font-weight: 600; line-height: 1.35; transition: color .2s, border-color .2s;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--asphalt-500); font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--text); }
.legal__toc a.is-on { color: var(--taxi); border-left-color: var(--taxi); }
.legal__toc a.is-on::before { color: var(--taxi-deep); }

.legal__switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; padding: 4px; border-radius: 99px; background: var(--asphalt-900); border: 1px solid var(--line); }
.legal__switch a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 99px;
  color: var(--text-dim); font-weight: 700; font-size: 14px; transition: background-color .2s, color .2s;
}
.legal__switch a .i { width: 16px; height: 16px; }
.legal__switch a:hover { color: var(--text); }
.legal__switch a.is-on { background: var(--taxi); color: var(--text-on-taxi); }

.legal__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: .01em; text-wrap: balance; }
.legal__date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; color: var(--text-mute); font-size: 13.5px; font-weight: 600; }
.legal__date .i { width: 15px; height: 15px; }
.legal__intro {
  margin: 0 0 40px; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255, 198, 41, .1), rgba(255, 198, 41, .02));
  border: 1px solid rgba(255, 198, 41, .22); color: var(--text); font-size: 17px; line-height: 1.65;
}
.legal__sec { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.legal__sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.legal__sec h2 span {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--asphalt-800); border: 1px solid var(--line-strong); color: var(--taxi); font-size: 14px; font-variant-numeric: tabular-nums;
}
.legal__sec p { margin: 0 0 12px; max-width: 70ch; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.legal__sec ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal__sec li { position: relative; max-width: 70ch; padding-left: 22px; color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.legal__sec li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--taxi); opacity: .85; }
.legal__sec b, .legal__intro b { color: var(--text); font-weight: 700; }
.legal__doc a:not(.legal__next):not(.legal__switch a) { color: var(--taxi); text-decoration: underline; text-underline-offset: 3px; }
.legal__next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; margin-top: 24px; padding: 20px 22px;
  border-radius: var(--radius-lg); background: var(--asphalt-850); border: 1px solid var(--line-strong); transition: border-color .2s, transform .2s var(--ease-out);
}
.legal__next small { color: var(--text-mute); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal__next b { grid-column: 1; font-size: 19px; }
.legal__next .i { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; color: var(--taxi); }
.legal__next:hover { border-color: var(--taxi); transform: translateY(-2px); }
.pub-foot__copy span { margin: 0 8px; color: var(--asphalt-500); }
.pub-foot__copy a { color: var(--text-dim); }
.pub-foot__copy a:hover { color: var(--text); }

@media (max-width: 900px) {
  .legal__wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 92px; }
  .legal__toc { display: none; }
  .legal__login { display: none; }
}
@media (max-width: 520px) {
  .legal__switch { display: flex; }
  .legal__switch a { flex: 1; justify-content: center; padding: 0 10px; font-size: 13px; line-height: 1.15; text-align: center; }
  .legal__switch a .i { display: none; }
  .legal__intro { font-size: 16px; padding: 16px; }
  .legal__sec h2 { font-size: 18.5px; }
}

/* Olvidé mi contraseña */
.authp__lead { margin: -4px 0 4px; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }
.code-input { font: 700 26px/1 ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: .45em; text-align: center; padding-left: .45em !important; }
.authp__aside .link-btn { font-size: 14px; }
.authp__aside .link-btn:disabled { color: var(--text-mute); text-decoration: none; cursor: default; }
