/* =========================================================
   TÓTEM DE PASAJES · PROTOTIPO FULL SCREEN
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --primary-950: #032e72;
  --primary-900: #063b8d;
  --primary-800: #064eb7;
  --primary-700: #075fd8;
  --primary-600: #0d73f0;
  --primary-500: #1686ff;

  --cyan-100: #e9faff;
  --cyan-200: #c9f1ff;
  --cyan-300: #9ce4fb;

  --ink-950: #10263f;
  --ink-800: #223c56;
  --ink-600: #61758a;
  --ink-500: #7b8da0;

  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-blue: #edf5ff;
  --line: #dce7f2;
  --success: #15905a;
  --danger: #cf3d45;
  --warning: #ef9c20;

  --shadow-sm: 0 8px 22px rgba(12, 63, 119, .08);
  --shadow-md: 0 20px 45px rgba(12, 63, 119, .13);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;

  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #eef4f9;
  color: var(--ink-950);
}

body {
  min-height: 100dvh;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="date"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(13, 115, 240, .16);
  outline-offset: 2px;
}

.app {
  width: 100%;
  min-height: 100dvh;
  background: var(--surface);
  overflow-x: hidden;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100dvh;
}

.screen.active {
  display: block;
}

/* =========================================================
   HOME
   ========================================================= */

.screen-home.active {
  display: grid;
  grid-template-columns: minmax(340px, 42vw) minmax(0, 1fr);
  background: var(--surface);
}

.home-hero {
  min-height: 100dvh;
  padding: clamp(34px, 6vw, 84px);
  color: white;
  background:
    radial-gradient(circle at 82% 16%, rgba(74, 190, 255, .48), transparent 25%),
    linear-gradient(145deg, var(--primary-950) 0%, var(--primary-700) 58%, #0f84f4 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: clamp(36px, 8vh, 90px);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .82;
}

.eyebrow.dark {
  color: var(--primary-700);
  opacity: 1;
}

.eyebrow.light {
  color: rgba(255,255,255,.72);
  opacity: 1;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.055em;
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 420px;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.55;
}

.hero-art {
  width: min(100%, 660px);
  align-self: flex-end;
  margin: 30px -8% -2% 0;
}

.bus-svg {
  width: 100%;
  display: block;
  filter: drop-shadow(0 25px 32px rgba(1, 28, 66, .26));
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.glow-one {
  width: 470px;
  height: 470px;
  right: -160px;
  bottom: -120px;
  background: rgba(81, 207, 255, .14);
}

.glow-two {
  width: 300px;
  height: 300px;
  left: -160px;
  top: 34%;
  background: rgba(255,255,255,.05);
}

.home-panel {
  min-height: 100dvh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 0%, rgba(13,115,240,.06), transparent 28%),
    var(--surface);
}

.tabs {
  width: min(100%, 720px);
  margin: 0 auto 34px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  background: #f2f6fa;
  border: 1px solid #e5edf5;
  border-radius: 18px;
}

.tab {
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-500);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: .2s ease;
}

.tab:hover {
  color: var(--primary-700);
}

.tab.active {
  background: var(--surface);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface-blue);
  color: var(--primary-700);
  font-size: 16px;
  font-weight: 900;
}

.utility-view {
  display: none;
  width: min(100%, 720px);
  margin: 0 auto;
}

.utility-view.active {
  display: block;
}

.panel-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.step-badge {
  flex: 0 0 auto;
  background: var(--surface-blue);
  color: var(--primary-700);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 850;
}

.search-form {
  display: grid;
  gap: 18px;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  margin-left: 4px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 850;
}

.control {
  min-height: 64px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  transition: .2s ease;
}

.control:focus-within {
  background: white;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(22, 134, 255, .10);
}

.control-icon {
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 900;
}

.control select,
.control input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  color: var(--ink-950);
  background: transparent;
  font-size: 16px;
  font-weight: 720;
}

.swap-btn {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--primary-700);
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}

.swap-btn:hover {
  transform: rotate(180deg);
}

.form-message {
  min-height: 20px;
  margin: -4px 4px -3px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  min-height: 60px;
  border-radius: 15px;
  border: 0;
  font-weight: 850;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.primary-btn {
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: white;
  box-shadow: 0 14px 26px rgba(7, 95, 216, .20);
}

.primary-btn .btn-arrow {
  font-size: 21px;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(.99);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.primary-btn.compact {
  min-height: 54px;
  min-width: 230px;
}

.secondary-btn {
  padding: 0 20px;
  background: var(--surface-blue);
  color: var(--primary-700);
}

.safe-banner {
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  color: var(--ink-950);
  background: linear-gradient(135deg, var(--cyan-100), var(--cyan-200));
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.safe-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: white;
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.safe-copy {
  min-width: 0;
}

.safe-copy strong,
.safe-copy small {
  display: block;
}

.safe-copy strong {
  font-size: 13px;
  margin-bottom: 3px;
}

.safe-copy small {
  color: var(--ink-600);
  font-size: 11px;
}

.safe-arrow {
  color: var(--primary-700);
  font-size: 26px;
}

.lookup-card,
.trip-demo,
.info-note {
  border-radius: var(--radius-md);
}

.lookup-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  gap: 14px;
}

.trip-demo {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #cfe9dd;
  background: #f2fbf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trip-demo h3 {
  margin: 10px 0 4px;
}

.trip-demo p {
  margin: 0;
  color: var(--ink-600);
  font-size: 12px;
}

.trip-demo > strong {
  color: var(--primary-700);
  font-size: 20px;
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--success);
  background: #e4f5ed;
  font-size: 10px;
  font-weight: 900;
}

.info-note {
  margin-top: 16px;
  padding: 16px;
  background: #f5f8fb;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.55;
}

.help-grid {
  display: grid;
  gap: 12px;
}

.help-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--ink-950);
  transition: .2s ease;
}

.help-card:hover {
  border-color: #bcd7f6;
  background: #fbfdff;
  transform: translateY(-1px);
}

.help-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-blue);
  color: var(--primary-700);
  font-weight: 900;
}

.help-card strong,
.help-card small {
  display: block;
}

.help-card strong {
  margin-bottom: 3px;
}

.help-card small {
  color: var(--ink-600);
  font-size: 11px;
}

/* =========================================================
   FLUJO INTERNO
   ========================================================= */

.screen-flow {
  background:
    radial-gradient(circle at 100% 0%, rgba(13,115,240,.08), transparent 26%),
    #f5f8fb;
}

.screen-flow.active {
  display: block;
}

.flow-header {
  min-height: 96px;
  padding: 20px clamp(20px, 4vw, 60px);
  color: white;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700));
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 18px;
  align-items: center;
}

.flow-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 37px);
  letter-spacing: -.035em;
}

.back-btn,
.home-btn {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: white;
  background: rgba(255,255,255,.08);
  font-size: 22px;
  font-weight: 800;
}

.progress-wrap {
  padding: 18px clamp(20px, 4vw, 60px) 8px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-600), #3cc6ee);
}

.progress-labels {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #9aabba;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.progress-labels .active {
  color: var(--primary-700);
}

.progress-labels .done {
  color: var(--success);
}

.flow-layout {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.trip-summary-card,
.notice-card {
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trip-summary-card {
  padding: 22px;
  position: sticky;
  top: 22px;
}

.summary-kicker {
  display: block;
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.trip-summary-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.summary-list {
  display: grid;
}

.summary-list > div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf2f6;
  font-size: 12px;
}

.summary-list span {
  color: var(--ink-600);
}

.summary-list strong {
  text-align: right;
}

.link-btn {
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--primary-700);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.flow-content {
  min-width: 0;
}

.content-heading,
.seat-toolbar {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
}

.section-caption {
  margin: 0 0 5px;
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.content-heading h3,
.seat-toolbar h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.035em;
}

.results-count,
.amount-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 900;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-card {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  text-align: left;
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}

.schedule-card:hover {
  transform: translateY(-2px);
  border-color: #b8d5f7;
  box-shadow: var(--shadow-md);
}

.schedule-main {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(120px, .6fr) 1fr;
  gap: 20px;
  align-items: center;
}

.schedule-time strong {
  display: block;
  font-size: 24px;
  margin-bottom: 3px;
}

.schedule-time small,
.schedule-service small {
  color: var(--ink-600);
}

.schedule-service strong {
  display: block;
  margin-bottom: 4px;
}

.schedule-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feature-chip {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f3f7fb;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 750;
}

.schedule-price {
  min-width: 116px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  text-align: right;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.schedule-price strong {
  color: var(--primary-700);
  font-size: 24px;
}

.schedule-price small {
  color: var(--ink-600);
  font-size: 10px;
}

/* =========================================================
   ASIENTOS
   ========================================================= */

.seat-layout {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  justify-content: flex-end;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 750;
}

.legend-seat {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.legend-seat.available {
  background: white;
}

.legend-seat.selected {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.legend-seat.occupied {
  background: #dfe6ed;
  border-color: #d3dde6;
}

.bus-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  border: 2px solid #c8d8e6;
  border-radius: 56px 56px 26px 26px;
  background: white;
  box-shadow: var(--shadow-md);
}

.bus-front {
  padding: 8px 4px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px dashed #d5e0e9;
}

.driver {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  font-size: 11px;
}

.driver span {
  font-size: 25px;
}

.door {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-600);
  background: #f4f7fa;
  font-size: 10px;
  font-weight: 800;
}

.seats-grid {
  padding: 18px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 28px 1fr 1fr;
  gap: 10px;
}

.seat,
.aisle {
  min-height: 54px;
}

.seat {
  border: 1px solid #cbd8e4;
  border-radius: 12px 12px 9px 9px;
  background: white;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 900;
  position: relative;
  box-shadow: inset 0 -6px 0 #f2f6f9;
  transition: .15s ease;
}

.seat::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 7px;
  border-radius: 5px;
  background: #eef3f7;
}

.seat:not(.occupied):hover {
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

.seat.selected {
  color: white;
  border-color: var(--primary-600);
  background: var(--primary-600);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}

.seat.selected::before {
  background: rgba(255,255,255,.33);
}

.seat.occupied {
  cursor: not-allowed;
  color: #a4b1bd;
  border-color: #dce4ea;
  background: #e9eef2;
  box-shadow: none;
}

.seat.occupied::before {
  background: #d1dae2;
}

.aisle {
  position: relative;
}

.aisle::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  border-left: 1px dashed #e2e8ee;
}

.bus-back {
  padding-top: 12px;
  border-top: 1px dashed #d5e0e9;
  color: #9aabba;
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sticky-action {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.selection-summary span,
.selection-summary strong {
  display: block;
}

.selection-summary span {
  color: var(--ink-600);
  font-size: 10px;
  margin-bottom: 3px;
}

.selection-summary strong {
  font-size: 13px;
}

/* =========================================================
   RESUMEN
   ========================================================= */

.summary-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.ticket {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #cfddea;
  background: white;
  box-shadow: var(--shadow-md);
}

.ticket-brand {
  padding: 18px 20px;
  color: white;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700));
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ticket-brand span {
  font-weight: 900;
  letter-spacing: .12em;
}

.ticket-brand small {
  color: rgba(255,255,255,.72);
}

.ticket-route {
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 16px;
  align-items: center;
}

.ticket-route small {
  display: block;
  color: var(--ink-600);
  margin-bottom: 5px;
}

.ticket-route strong {
  font-size: clamp(22px, 3vw, 32px);
}

.align-right {
  text-align: right;
}

.route-line {
  height: 1px;
  background: #cbd9e5;
  position: relative;
}

.route-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-700);
  background: var(--surface-blue);
  font-weight: 900;
}

.ticket-grid {
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ticket-grid > div {
  padding: 13px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.ticket-grid span,
.ticket-grid strong {
  display: block;
}

.ticket-grid span {
  color: var(--ink-600);
  font-size: 10px;
  margin-bottom: 5px;
}

.ticket-grid strong {
  font-size: 13px;
}

.ticket-total-row {
  padding: 18px 22px;
  background: #f0f7ff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.ticket-total-row span,
.ticket-total-row small {
  display: block;
}

.ticket-total-row span {
  font-weight: 850;
}

.ticket-total-row small {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 10px;
}

.ticket-total-row > strong {
  color: var(--primary-700);
  font-size: 27px;
}

.check-row {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
}

.check-row input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-600);
}

.notice-card {
  padding: 20px;
  display: flex;
  gap: 12px;
}

.notice-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-700);
  background: var(--surface-blue);
  font-weight: 900;
}

.notice-card strong {
  display: block;
  margin-bottom: 5px;
}

.notice-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.55;
}

/* =========================================================
   PAGO
   ========================================================= */

.payment-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
}

.amount-chip {
  font-size: 13px;
}

.payment-methods {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-card {
  min-height: 110px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink-950);
  text-align: left;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  transition: .18s ease;
}

.payment-card:hover {
  border-color: #bad6f6;
}

.payment-card.selected {
  border-color: var(--primary-500);
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(22, 134, 255, .08);
}

.payment-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-blue);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.payment-card strong,
.payment-card small {
  display: block;
}

.payment-card small {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 10px;
}

.payment-card i {
  width: 18px;
  height: 18px;
  border: 2px solid #b7c5d2;
  border-radius: 50%;
}

.payment-card.selected i {
  border: 5px solid var(--primary-600);
}

.payment-panel {
  display: none;
  min-height: 250px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.payment-panel.active {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.demo-terminal {
  width: min(100%, 330px);
  padding: 22px;
  border-radius: 24px;
  background: #213446;
  box-shadow: var(--shadow-md);
}

.terminal-screen {
  min-height: 100px;
  padding: 16px;
  border-radius: 11px;
  background: #d8f4df;
  color: #234431;
  display: grid;
  align-content: center;
  gap: 8px;
}

.terminal-screen span {
  font-size: 10px;
  font-weight: 900;
}

.terminal-screen strong {
  font-size: 25px;
}

.terminal-symbol {
  margin-top: 14px;
  color: #a9c0d5;
  font-weight: 900;
  text-align: center;
}

.payment-hint {
  margin: 0;
  color: var(--ink-600);
  font-size: 11px;
  text-align: center;
}

.qr-demo,
.fake-qr {
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.qr-pattern {
  width: 170px;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, #10263f 12px, transparent 12px) 0 0/34px 34px,
    linear-gradient(#10263f 12px, transparent 12px) 0 0/34px 34px,
    linear-gradient(90deg, transparent 18px, #10263f 18px 27px, transparent 27px) 0 0/47px 47px,
    linear-gradient(transparent 18px, #10263f 18px 27px, transparent 27px) 0 0/47px 47px,
    #fff;
  image-rendering: pixelated;
}

.cash-demo {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 16px;
  background: #f5f9fd;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cash-demo > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--success);
  background: #e0f5ea;
  font-weight: 900;
  font-size: 22px;
}

.cash-demo strong,
.cash-demo small {
  display: block;
}

.cash-demo small {
  margin-top: 4px;
  color: var(--ink-600);
  line-height: 1.45;
}

.payment-summary h3 {
  color: var(--primary-700);
  font-size: 30px;
}

.secure-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.45;
}

/* =========================================================
   CONFIRMACIÓN
   ========================================================= */

.success-screen.active {
  display: grid;
  place-items: center;
  padding: 28px;
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 196, 255, .28), transparent 30%),
    linear-gradient(145deg, var(--primary-950), var(--primary-700));
}

.success-card {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 30px;
  color: var(--ink-950);
  background: white;
  box-shadow: 0 35px 80px rgba(0,0,0,.22);
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-size: 33px;
  font-weight: 900;
}

.success-card h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.045em;
}

.success-card > p {
  margin: 10px 0 22px;
  color: var(--ink-600);
}

.success-route {
  margin: 0 auto 18px;
  padding: 15px;
  border-radius: 16px;
  background: var(--surface-blue);
}

.success-route strong,
.success-route span {
  display: block;
}

.success-route strong {
  color: var(--primary-700);
  font-size: 18px;
}

.success-route span {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 11px;
}

.fake-qr {
  width: fit-content;
  margin: 0 auto 20px;
}

.ticket-qr {
  width: 145px;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success-footnote {
  display: block;
  margin-top: 14px;
  color: #95a5b4;
}

/* =========================================================
   DIÁLOGOS / OVERLAY
   ========================================================= */

dialog {
  width: min(calc(100% - 36px), 430px);
  padding: 26px;
  border: 0;
  border-radius: 22px;
  color: var(--ink-950);
  box-shadow: 0 30px 90px rgba(2, 28, 62, .28);
}

dialog::backdrop {
  background: rgba(2, 24, 53, .58);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #7f91a3;
  font-size: 26px;
}

.dialog-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-blue);
  color: var(--primary-700);
  font-weight: 900;
}

dialog h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

dialog p {
  margin: 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.6;
}

.dialog-action {
  width: 100%;
  margin-top: 20px;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 24, 53, .58);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.processing-overlay[hidden] {
  display: none;
}

.processing-card {
  width: min(100%, 390px);
  padding: 30px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  text-align: center;
}

.processing-card strong,
.processing-card span {
  display: block;
}

.processing-card strong {
  margin-top: 16px;
}

.processing-card span {
  margin-top: 5px;
  color: var(--ink-600);
  font-size: 11px;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 5px solid #dbe9f7;
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   RESPONSIVE · TABLET / TÓTEM VERTICAL
   ========================================================= */

@media (max-width: 980px) {
  .screen-home.active {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 34dvh;
    max-height: 390px;
    padding: 30px clamp(20px, 5vw, 48px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 20px;
  }

  .brand-pill {
    margin-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 8vw, 72px);
  }

  .hero-subtitle {
    margin-top: 14px;
  }

  .hero-art {
    width: 100%;
    margin: 0 -10% 0 0;
    align-self: center;
  }

  .home-panel {
    min-height: 66dvh;
    padding: 28px clamp(20px, 5vw, 48px) 40px;
    justify-content: flex-start;
  }

  .tabs {
    margin-top: -56px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-md);
    background: white;
  }

  .tab.active {
    background: var(--primary-700);
    color: white;
  }

  .tab.active .tab-icon {
    background: rgba(255,255,255,.15);
    color: white;
  }

  .flow-layout,
  .seat-layout,
  .summary-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .trip-summary-card {
    position: static;
  }

  .flow-layout > .trip-summary-card {
    order: 2;
  }

  .seat-layout > .trip-summary-card {
    order: 2;
  }

  .payment-layout > .payment-summary {
    order: 2;
  }

  .notice-card {
    order: 2;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE · MÓVIL
   ========================================================= */

@media (max-width: 680px) {
  .home-hero {
    min-height: 290px;
    max-height: none;
    padding: 24px 20px 38px;
    grid-template-columns: 1.08fr .92fr;
    gap: 6px;
  }

  .brand-pill {
    min-height: 25px;
    padding: 0 8px;
    margin-bottom: 19px;
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 11vw, 52px);
  }

  .hero-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-art {
    min-width: 190px;
    margin-right: -38%;
  }

  .home-panel {
    padding: 18px 14px 28px;
  }

  .tabs {
    margin-top: -44px;
    margin-bottom: 24px;
    padding: 6px;
    gap: 5px;
    border-radius: 16px;
  }

  .tab {
    min-height: 60px;
    padding: 8px 5px;
    gap: 5px;
    font-size: 11px;
    flex-direction: column;
  }

  .tab-icon {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    font-size: 13px;
  }

  .panel-heading {
    margin-bottom: 20px;
  }

  .panel-heading h2 {
    font-size: 29px;
  }

  .step-badge {
    display: none;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .swap-btn {
    width: 42px;
    height: 42px;
    margin: -3px 12px -3px auto;
    transform: rotate(90deg);
  }

  .swap-btn:hover {
    transform: rotate(270deg);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .control {
    min-height: 58px;
  }

  .control select,
  .control input {
    height: 52px;
    font-size: 15px;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 56px;
  }

  .safe-banner {
    grid-template-columns: 38px 1fr auto;
    padding: 12px;
  }

  .safe-copy strong {
    font-size: 12px;
  }

  .safe-copy small {
    display: none;
  }

  .flow-header {
    min-height: 82px;
    padding: 14px;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
  }

  .back-btn,
  .home-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .flow-title h2 {
    font-size: 21px;
  }

  .progress-wrap {
    padding: 12px 14px 7px;
  }

  .progress-labels {
    font-size: 8px;
  }

  .flow-layout {
    padding: 20px 14px 28px;
    gap: 20px;
  }

  .content-heading,
  .seat-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .content-heading h3,
  .seat-toolbar h3 {
    font-size: 27px;
  }

  .schedule-card {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .schedule-main {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .schedule-features {
    grid-column: 1 / -1;
  }

  .schedule-price {
    min-width: 0;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .seat-legend {
    justify-content: flex-start;
  }

  .bus-shell {
    padding: 14px 10px;
    border-radius: 44px 44px 24px 24px;
  }

  .seats-grid {
    padding: 15px 2px;
    gap: 7px;
    grid-template-columns: 1fr 1fr 20px 1fr 1fr;
  }

  .seat,
  .aisle {
    min-height: 48px;
  }

  .sticky-action {
    position: sticky;
    bottom: 10px;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn.compact {
    min-width: 0;
    width: 100%;
  }

  .ticket-route {
    grid-template-columns: 1fr 54px 1fr;
    padding: 19px 16px;
  }

  .ticket-route strong {
    font-size: 20px;
  }

  .ticket-grid {
    padding: 0 16px 16px;
    grid-template-columns: 1fr 1fr;
  }

  .ticket-total-row {
    padding: 16px;
  }

  .payment-panel {
    min-height: 230px;
    padding: 16px;
  }

  .success-screen.active {
    padding: 14px;
  }

  .success-card {
    border-radius: 24px;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TÓTEM VERTICAL 1080 x 1920 / PANTALLAS TÁCTILES ALTAS
   ========================================================= */

@media (min-width: 700px) and (max-width: 1100px) and (min-height: 1100px) {
  .home-hero {
    min-height: 38dvh;
    max-height: none;
    padding: 54px 48px;
  }

  .home-panel {
    min-height: 62dvh;
    padding: 42px 48px 60px;
  }

  .utility-view,
  .tabs {
    width: min(100%, 780px);
  }

  .tab {
    min-height: 76px;
    font-size: 14px;
  }

  .panel-heading h2 {
    font-size: 44px;
  }

  .control {
    min-height: 76px;
  }

  .control select,
  .control input {
    height: 70px;
    font-size: 19px;
  }

  .field-label {
    font-size: 14px;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 72px;
    font-size: 17px;
  }

  .flow-header {
    min-height: 110px;
  }

  .flow-layout {
    padding-top: 44px;
  }

  .schedule-card {
    min-height: 130px;
  }

  .bus-shell {
    width: min(100%, 500px);
  }

  .seat,
  .aisle {
    min-height: 64px;
  }
}

/* Accesibilidad / preferencias */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
