:root {
  --ink: #172027;
  --muted: #66717a;
  --line: #dfe6e2;
  --paper: #fbfcf8;
  --white: #ffffff;
  --green: #168a4d;
  --green-dark: #0e6038;
  --amber: #f2b441;
  --red: #d94c3d;
  --blue: #2f6fb7;
  --violet: #7357c8;
  --shadow: 0 20px 50px rgba(15, 24, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 1220px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100svh;
  overflow-x: hidden;
}

.topbar {
  align-items: center;
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(23, 32, 39, 0.08);
  display: flex;
  gap: 24px;
  height: 74px;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: #344047;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.icon-button,
.primary-button,
.secondary-button,
.payment-tabs button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
}

.icon-button {
  background: var(--ink);
  color: var(--white);
  height: 42px;
  width: 42px;
}

.hero-section {
  background-image:
    linear-gradient(
      90deg,
      rgba(9, 19, 25, 0.88),
      rgba(9, 19, 25, 0.58) 47%,
      rgba(9, 19, 25, 0.18)
    ),
    url("https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?w=1800&auto=format&fit=crop&q=82");
  background-position: center;
  background-size: cover;
  color: var(--white);
  min-height: clamp(590px, 78svh, 720px);
  position: relative;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  margin: 0 auto;
  max-width: 1220px;
  min-height: inherit;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 36px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green-dark);
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 10vw, 8.25rem);
  line-height: 0.86;
  margin: 20px 0 22px;
  max-width: 7ch;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  margin: 0;
  max-width: 590px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  min-width: 132px;
  padding: 13px 14px;
}

.hero-stats strong {
  color: var(--white);
  display: block;
  font-size: 1.28rem;
  margin-bottom: 2px;
}

.booking-panel {
  background: rgba(251, 252, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: clamp(18px, 3vw, 24px);
}

.panel-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.panel-heading div {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  gap: 8px;
  line-height: 1.35;
}

.panel-heading strong {
  color: var(--green-dark);
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.api-dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.api-dot.connecting {
  background: var(--amber);
}

.api-dot.online {
  background: var(--green);
}

.api-dot.offline {
  background: var(--red);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px 0;
}

label {
  color: #3c474e;
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
}

.span-2 {
  grid-column: 1 / -1;
}

input,
select {
  background: var(--white);
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 138, 77, 0.14);
}

.input-with-icon {
  align-items: center;
  background: var(--white);
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding-left: 12px;
}

.input-with-icon input {
  border: 0;
  box-shadow: none;
  min-height: 44px;
  padding-left: 0;
}

.payment-tabs {
  background: #edf3ef;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.payment-tabs button {
  background: transparent;
  color: #536069;
  min-height: 42px;
}

.payment-tabs button.active {
  background: var(--ink);
  color: var(--white);
}

.fare-line {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 1fr auto;
  margin: 17px 0;
}

.fare-line span {
  color: var(--muted);
  font-size: 0.88rem;
}

.fare-line strong {
  text-align: right;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 16px;
}

.primary-button {
  background: var(--green);
  color: var(--white);
  width: 100%;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.secondary-button {
  background: var(--ink);
  color: var(--white);
}

.content-band {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(48px, 8vw, 86px) clamp(18px, 4vw, 36px);
}

.selection-band {
  padding-top: clamp(34px, 6vw, 62px);
}

.section-heading {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-heading.split {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  max-width: none;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 10px 0 9px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.seat-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.seat-map {
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 18px),
      rgba(23, 32, 39, 0.08) calc(50% - 18px),
      rgba(23, 32, 39, 0.08) calc(50% + 18px),
      transparent calc(50% + 18px)
    ),
    #f0f5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  padding: clamp(16px, 3vw, 26px);
}

.seat {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  min-width: 0;
}

.seat:hover:not(:disabled),
.seat.selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.seat.busy {
  cursor: not-allowed;
}

.trip-card,
.route-card,
.table-card,
.route-form,
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 28, 35, 0.07);
}

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

.trip-route {
  align-items: flex-start;
  display: flex;
  gap: 13px;
}

.trip-route svg {
  color: var(--green);
  flex: 0 0 auto;
}

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

.trip-route strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.trip-route span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.trip-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  margin-top: 20px;
  padding-top: 18px;
}

.trip-meta span {
  color: var(--muted);
}

.comfort-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.comfort-list span,
.time-row span {
  background: #edf4ef;
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
}

.qr-box {
  align-items: center;
  background: #f7f1df;
  border: 1px solid #edd790;
  border-radius: 8px;
  display: grid;
  gap: 13px;
  grid-template-columns: 78px 1fr;
  margin-top: 20px;
  padding: 13px;
}

.qr-box .secondary-button {
  grid-column: 1 / -1;
  width: 100%;
}

.qr-box strong,
.qr-box span {
  display: block;
}

.qr-box span {
  color: #725a1f;
  font-size: 0.85rem;
  margin-top: 3px;
}

.fake-qr {
  background: var(--white);
  border: 5px solid var(--white);
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(7, 1fr);
  height: 78px;
  width: 78px;
}

.fake-qr span {
  background: #e7e0cb;
}

.fake-qr span.on {
  background: var(--ink);
}

.payment-qr-image {
  aspect-ratio: 1;
  background: white;
  border: 1px solid #d9e4dd;
  border-radius: 8px;
  display: block;
  height: 86px;
  object-fit: contain;
  padding: 6px;
  width: 86px;
}

.route-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card {
  display: grid;
  gap: 18px;
  min-height: 224px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.route-accent {
  height: 6px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.route-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 12px 0 8px;
}

.route-card p {
  color: var(--muted);
  margin: 0;
}

.route-card > strong {
  font-size: 1.6rem;
}

.time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-section {
  align-items: stretch;
  background: #e7eee9;
  display: grid;
  grid-template-columns: minmax(320px, 46vw) minmax(0, 1fr);
  margin-top: 20px;
}

.fleet-image {
  background-image: url("img/6.jpeg");
  background-position: left center;
  background-size: cover;
  min-height: 530px;
}

.fleet-content {
  align-self: center;
  padding: clamp(42px, 8vw, 92px) clamp(22px, 6vw, 86px);
}

.fleet-content h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  margin: 12px 0 28px;
  max-width: 720px;
}

.fleet-grid {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.fleet-feature {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 39, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.fleet-feature > span {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.fleet-feature h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.fleet-feature p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.operations {
  padding-bottom: 96px;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.card-title span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
  margin-top: 8px;
}

.ops-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.table-card,
.route-form {
  padding: 20px;
}

.card-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title h3 {
  font-size: 1.05rem;
  margin: 0;
}

.sales-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.table-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1.4fr) 100px 52px 92px 92px;
  min-width: 650px;
  padding: 13px 0;
}

.table-row.table-head {
  border-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding-top: 0;
}

.status {
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 9px;
  text-align: center;
}

.status.pagado {
  background: #e5f4eb;
  color: var(--green-dark);
}

.status.pendiente {
  background: #fff3d6;
  color: #785618;
}

.status.descanso {
  background: #edf3ff;
  color: #2f5f9f;
}

.status.inactivo {
  background: #f0f1f0;
  color: #69736d;
}

.status.programado {
  background: #e5f4eb;
  color: var(--green-dark);
}

.status.en-viaje {
  background: #edf3ff;
  color: #2f5f9f;
}

.status.finalizado {
  background: #f0f1f0;
  color: #69736d;
}

.status.cancelado {
  background: #fde9e4;
  color: #9f3729;
}

.route-form {
  display: grid;
  gap: 14px;
}

.form-grid.flush {
  padding: 0;
}


/* ── logos ─────────────────────────────────────────────── */
.login-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}
.sidebar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-content,
  .seat-layout,
  .ops-grid,
  .fleet-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .booking-panel {
    max-width: 560px;
  }

  .trip-card {
    position: static;
  }

  .route-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-image {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
    height: 66px;
    padding: 0 14px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 18vw, 5.2rem);
  }

  .hero-stats,
  .section-heading.split {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .route-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .seat-map {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(34px, 1fr));
    padding: 14px;
  }

  .route-card {
    min-height: auto;
  }

  .fleet-content {
    padding: 36px 18px 48px;
  }
}

.public-shell {
  background: #f6f8f2;
  min-height: 100svh;
}

.public-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(23, 32, 39, 0.1);
  display: flex;
  height: 74px;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 70px);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.public-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.94rem;
  font-weight: 900;
}

.public-nav a {
  border-bottom: 2px solid transparent;
  color: var(--ink);
  padding: 26px 0 23px;
}

.public-nav a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.public-hero {
  align-items: center;

  background-image:
    linear-gradient(
      90deg,
      rgba(9, 19, 25, 0.9),
      rgba(9, 19, 25, 0.54),
      rgba(9, 19, 25, 0.16)
    ),
    url("img/portada.jpeg");

  background-size: cover;
  background-repeat: no-repeat;

  /* mueve verticalmente */
  background-position: center 30%;

  color: white;
  display: flex;
  min-height: min(720px, calc(100svh - 74px));
  padding: clamp(50px, 9vw, 110px) clamp(18px, 5vw, 70px);
}
.public-hero-copy {
  max-width: 760px;
}

.public-hero-copy h1 {
  font-size: clamp(3.7rem, 12vw, 9.2rem);
  line-height: 0.84;
  margin: 18px 0 20px;
  max-width: 8ch;
}

.public-hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.ghost-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
}

.primary-link {
  background: var(--green);
  color: white;
}

.ghost-link {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
}

.public-section {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 36px);
}

.ticket-section {
  border-top: 1px solid var(--line);
}

.purchase-grid,
.counter-grid,
.admin-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
}

.purchase-panel,
.seat-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 39, 0.08);
  padding: clamp(18px, 3vw, 24px);
}

.payment-locked {
  align-items: center;
  background: #eaf4ef;
  border: 1px solid #cfe4d7;
  border-radius: 8px;
  color: var(--green-dark);
  display: flex;
  font-weight: 900;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 48px;
  padding: 0 13px;
}

.seat-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.seat-panel-head h3 {
  font-size: 1.4rem;
  margin: 8px 0 0;
}

.seat-panel-head > strong {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 1.4rem;
  height: 54px;
  justify-content: center;
  max-width: 210px;
  min-width: 64px;
  overflow: hidden;
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-map.compact {
  align-items: start;
  background: #f0f5f1;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, 1fr) minmax(190px, 0.9fr);
  overflow-x: auto;
  padding: 14px;
}

.seat-deck {
  background: #114cc7;
  border: 2px solid #ffd84a;
  border-radius: 8px;
  color: white;
  min-width: 190px;
  padding: 10px;
}

.seat-deck-title {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.seat-deck-title strong {
  color: #ffe681;
  font-size: 0.72rem;
}

.deck-rows {
  display: grid;
  gap: 7px;
}

.seat-row {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, 34px) 16px repeat(2, 34px);
  justify-content: center;
}

.seat-map.compact .seat,
.seat-placeholder {
  height: 34px;
  width: 34px;
}

.seat-map.compact .seat {
  border-radius: 7px;
  font-size: 0.78rem;
}

.seat-aisle {
  border-left: 1px dashed rgba(255, 255, 255, 0.55);
  justify-self: center;
  min-height: 34px;
}

.seat-placeholder {
  display: block;
}

.lower-deck-spaces {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.lower-deck-spaces span {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  color: #dce8ff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  text-transform: uppercase;
}

.trip-summary,
.qr-ticket {
  align-items: center;
  background: #f0f5f1;
  border: 1px solid #d9e4dd;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.qr-ticket {
  align-items: flex-start;
  background: #fff4d8;
  border-color: #ecd48d;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: auto 1fr;
}

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

.qr-ticket > div {
  align-self: center;
}

.qr-ticket span {
  color: #74551d;
  font-size: 0.88rem;
  margin-top: 4px;
}

.fake-qr.large {
  gap: 2px;
  grid-template-columns: repeat(9, 1fr);
  height: 104px;
  width: 104px;
}

.payment-qr-image.large {
  height: 112px;
  width: 112px;
}

.qr-ticket .payment-qr-image,
.qr-ticket .payment-qr-image.large,
.qr-ticket .fake-qr,
.qr-ticket .fake-qr.large {
  height: 188px;
  width: 188px;
}

.qr-ticket .secondary-button {
  grid-column: 2;
  justify-self: start;
}

.public-fleet {
  margin-top: 0;
}

.public-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 0.92rem;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 70px);
}

.public-footer a {
  color: white;
  font-weight: 900;
}

.employee-login-shell {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 20, 26, 0.88), rgba(10, 20, 26, 0.72)),
    url("img/15.jpeg");
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  padding: 24px;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-mark {
  height: 54px;
  margin-bottom: 18px;
  width: 54px;
}

.login-card h1 {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 0 8px;
}

.login-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.employee-shell {
  background: linear-gradient(rgba(10,20,26,0.55), rgba(10,20,26,0.55)), url("img/15.jpeg") center center / cover fixed;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100svh;
}

.employee-sidebar {
  background: #111c22;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100svh;
}

.employee-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.employee-brand strong,
.employee-brand small {
  display: block;
}

.employee-brand small {
  color: rgba(255, 255, 255, 0.66);
  margin-top: 4px;
}

.employee-menu {
  display: grid;
  gap: 8px;
}

.employee-menu button,
.logout-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  font-weight: 900;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
}

.employee-menu button.active,
.employee-menu button:hover,
.logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.logout-button {
  margin-top: auto;
}

.employee-main {
  min-width: 0;
  padding: clamp(20px, 4vw, 38px);
}

.employee-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.employee-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 8px 0 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.employee-header .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.employee-notice {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #41505a;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.counter-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(420px, 1fr);
  margin-top: 18px;
}

.admin-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.mini-button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 32px;
  padding: 0 10px;
}

.mini-button.danger {
  background: var(--red);
}

.row-actions,
.seller-actions,
.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-actions {
  border-top: 1px solid var(--line);
  gap: 10px;
  padding: 0 0 16px;
}

.table-actions {
  gap: 10px;
}

.price-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 120px auto;
  padding: 13px 0;
}

.bus-admin-grid {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.driver-admin-grid {
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
}

.schedule-admin-grid {
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
}

.qr-admin-grid {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
}

.bus-list {
  display: grid;
  overflow-x: auto;
}

.driver-list {
  display: grid;
  overflow-x: auto;
}

.schedule-list {
  display: grid;
  overflow-x: auto;
}

.qr-preview {
  align-items: center;
  background: #f0f5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 130px;
}

.qr-list {
  display: grid;
  gap: 12px;
}

.qr-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 13px 0;
}

.qr-row:first-child {
  border-top: 0;
}

.qr-row strong,
.qr-row span {
  display: block;
}

.qr-row span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.bus-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 90px 110px minmax(170px, 0.8fr) auto;
  min-width: 820px;
  padding: 13px 0;
}

.bus-row:first-child {
  border-top: 0;
}

.bus-row strong,
.bus-row span {
  display: block;
}

.bus-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.bus-row > span {
  color: var(--ink);
  font-weight: 800;
}

.driver-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 120px 120px 96px auto;
  min-width: 760px;
  padding: 13px 0;
}

.driver-row:first-child {
  border-top: 0;
}

.driver-row strong,
.driver-row span {
  display: block;
}

.driver-row div span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.driver-row > span {
  color: var(--ink);
  font-weight: 800;
}

.schedule-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns:
    minmax(220px, 1fr) 90px minmax(150px, 0.9fr)
    80px 110px auto;
  min-width: 940px;
  padding: 13px 0;
}

.schedule-row:first-child {
  border-top: 0;
}

.schedule-row strong,
.schedule-row span {
  display: block;
}

.schedule-row div span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.schedule-row > span {
  color: var(--ink);
  font-weight: 800;
}

.user-admin-grid {
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
}

.user-list {
  display: grid;
  overflow-x: auto;
}

.user-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 90px auto;
  min-width: 620px;
  padding: 13px 0;
}

.user-row:first-child {
  border-top: 0;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row div span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  min-height: 260px;
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.2rem;
  margin-top: 10px;
}

/* employee shell — solo escritorio, sin responsive */

@media (max-width: 680px) {
  .public-topbar {
    height: auto;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .public-nav {
    display: none;
  }

  .public-hero {
    min-height: 620px;
  }

  .public-hero-copy h1 {
    font-size: clamp(3.1rem, 18vw, 5.4rem);
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 26, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.qr-modal {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  max-width: 520px;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

/* agrandar QR automÃ¡ticamente */
.qr-modal .qr-ticket {
  grid-template-columns: 1fr;
  text-align: center;
}

.qr-modal .payment-qr-image,
.qr-modal .fake-qr {
  width: min(80vw, 320px) !important;
  height: min(80vw, 320px) !important;
  margin: 0 auto;
}

/* botÃ³n centrado */
.qr-modal .secondary-button {
  margin: 10px auto 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.qr-preview-card {
  align-items: center;
  background: #f2f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 140px;
  padding: 14px;
}

.qr-preview-card.is-empty {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.qr-preview-card strong,
.qr-gallery-card strong {
  display: block;
  font-size: 0.96rem;
}

.qr-preview-card span,
.qr-gallery-card span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
}

.qr-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.qr-gallery-card {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 14px;
  text-align: center;
}

.qr-gallery-card .payment-qr-image.large,
.qr-preview-card .payment-qr-image.large {
  height: 160px;
  width: 160px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.hero-contact span {
  white-space: nowrap;
}

.history-hero {
  background:
    linear-gradient(rgba(8, 15, 20, 0.72), rgba(8, 15, 20, 0.72)),
    url("img/1.jpeg");

  background-size: cover;
  background-position: center;
  min-height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  padding: 40px 20px;
}

.history-hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0;
  line-height: 0.95;
}

.history-hero p {
  font-size: 1.2rem;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
}

.history-section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;

  display: grid;
  gap: 70px;
}

.history-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.history-row.reverse {
  direction: rtl;
}

.history-row.reverse .history-text {
  direction: ltr;
}

.history-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.history-text span {
  color: #168a4d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.history-text h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 14px 0 20px;
  line-height: 1;
  color: #172027;
}

.history-text p {
  color: #5c6870;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.history-final {
  background: #172027;
  color: white;
  padding: 90px 24px;
  text-align: center;
}

.history-final h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.history-final p {
  max-width: 900px;
  margin: auto;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .history-row,
  .history-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .history-image img {
    height: 320px;
  }
}

/*- - buses*/

/* =========================
   WRAPPER (CLAVE)
========================= */

.page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
}

/* =========================
   HERO BUSES
========================= */

.bus-hero {
  margin-top: 40px;
  padding: 90px 40px;
  border-radius: 20px;

  background:
    linear-gradient(rgba(10, 18, 24, 0.78), rgba(10, 18, 24, 0.78)),
    url("img/portada.jpeg");

  background-size: cover;

  background-position: center 80% !important;
}
.bus-hero-content {
  max-width: 900px;
  margin: auto;
}

.bus-hero span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 18px;
}

.bus-hero h1 {
  color: white;
  font-size: 70px;
  margin: 0 0 18px;
}

.bus-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
}

/* =========================
   TITULO
========================= */

.bus-title {
  text-align: center;
  margin: 80px 0 50px;
}

.bus-title span {
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
}

.bus-title h2 {
  font-size: 48px;
  margin: 15px 0;
}

.bus-title p {
  color: var(--muted);
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
}

/* =========================
   GRID
========================= */

.bus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* =========================
   CARD
========================= */

.bus-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.bus-card:hover {
  transform: translateY(-8px);
}

.bus-img {
  overflow: hidden;
}

.bus-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* contenido */
.bus-content {
  padding: 28px;
}

.bus-content span {
  display: inline-block;
  background: #eaf7ef;
  color: var(--green-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}

.bus-content h3 {
  font-size: 26px;
  margin: 0 0 12px;
}

.bus-content p {
  color: var(--muted);
  line-height: 1.8;
}

/* tags */
.bus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bus-tags div {
  background: #f3f6f4;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

/* =========================
   FOOTER
========================= */

.bus-footer {
  margin: 100px 0;
  text-align: center;
  padding: 70px;
  border-radius: 28px;
  background: #0f1b22;
}

.bus-footer h2 {
  color: white;
  font-size: 50px;
}

.bus-footer p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
  font-size: 18px;
}





/* =========================
   MEJORAS v3
========================= */

/* Icono de caracteristica en fleet */
.fleet-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* CTA en pagina de destinos */
.destinos-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Asegurar que route-grid funcione en destinos.php */
.route-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  width: 100%;
}


/* =========================
   BOTON STAFF (engranaje)
========================= */

.staff-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.04em;
  padding: 0 13px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.staff-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* =========================
   PAGINA DESTINOS
========================= */

.destinos-hero {
  background-image:
    linear-gradient(
      120deg,
      rgba(9, 19, 25, 0.92) 0%,
      rgba(9, 19, 25, 0.62) 55%,
      rgba(9, 19, 25, 0.18) 100%
    ),
    url("img/portada.jpeg");
  background-position: center 40%;
  background-size: cover;
  color: white;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 70px);
}

.destinos-hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  margin: 14px 0 16px;
}

.destinos-hero-copy p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  max-width: 520px;
}

.destinos-section {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(48px, 7vw, 80px) clamp(18px, 4vw, 36px) 0;
}

.destinos-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
}

/* Tarjeta de destino */
.destino-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(23,32,39,0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.destino-card:hover {
  box-shadow: 0 16px 48px rgba(23,32,39,0.14);
  transform: translateY(-3px);
}

.destino-card-top {
  background: linear-gradient(135deg, #0d1a22 0%, #162535 100%);
  color: white;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 20px;
  position: relative;
}

.destino-ruta {
  align-items: center;
  display: flex;
  gap: 14px;
  flex: 1;
}

.destino-ciudad {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.destino-ciudad strong {
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ciudad-pais {
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.destino-flecha {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 6px;
  color: var(--accent);
}

.flecha-linea {
  background: var(--accent);
  flex: 1;
  height: 1.5px;
  opacity: 0.6;
}

.flecha-icono {
  font-size: 1rem;
}

.destino-badge {
  border-radius: 100px;
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.destino-info {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 22px;
}

.destino-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.destino-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.destino-stat strong {
  font-size: 0.95rem;
}

.destino-precio {
  color: var(--accent);
  font-size: 1.1rem !important;
}

.destino-salidas {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 8px;
  padding: 14px 22px;
}

.hora-tag {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 10px;
}

.destino-btn {
  align-items: center;
  background: var(--accent);
  color: white;
  display: flex;
  font-size: 0.88rem;
  font-weight: 900;
  justify-content: center;
  margin: 0 22px 22px;
  min-height: 44px;
  border-radius: 8px;
  transition: filter 0.15s;
}

.destino-btn:hover {
  filter: brightness(1.1);
  color: white;
}

/* Mapa ilustrativo */
.destinos-mapa-section {
  align-items: center;
  background: #0d1a22;
  color: white;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0,1fr) minmax(320px, 480px);
  margin-top: 72px;
  padding: clamp(48px, 7vw, 80px) clamp(18px, 5vw, 70px);
}

.destinos-mapa-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin: 12px 0 16px;
}

.destinos-mapa-copy p {
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 480px;
}

.destinos-feature-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.destinos-feature-list li {
  align-items: center;
  color: rgba(255,255,255,0.88);
  display: flex;
  font-size: 0.92rem;
  gap: 10px;
}

.destinos-feature-list li span {
  color: #18a058;
  font-weight: 900;
}

.destinos-mapa-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.mapa-lineas {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.mapa-ciudad {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  transform: translate(-50%, -50%);
}

.mapa-punto {
  border-radius: 50%;
  display: block;
  height: 14px;
  width: 14px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.mapa-label {
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.mapa-ciudad small {
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* CTA final destinos */
.destinos-cta-section {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(56px, 8vw, 88px) clamp(18px, 4vw, 36px);
  text-align: center;
}

.destinos-cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

.destinos-cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}

/* =========================
   APP MODAL (v13)
========================= */

.app-modal {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(520px, calc(100vw - 32px));
  animation: fadeIn 0.2s ease;
  overflow: hidden;
}

.modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-body {
  padding: 20px 22px;
}

.modal-body .form-grid {
  gap: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}

/* =========================
   PLANILLA — resumen y montos completos
========================= */

.planilla-metrics {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.planilla-count-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(120px, 240px));
}

.planilla-finance {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 28, 35, 0.07);
  padding: 18px 20px;
}

.planilla-finance-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.planilla-finance-head h3 {
  font-size: 1.08rem;
  font-weight: 900;
  margin: 0;
}

.planilla-finance-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planilla-finance-card {
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  text-align: left;
}

button.planilla-finance-card {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

button.planilla-finance-card:hover,
button.planilla-finance-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 138, 77, 0.18);
  outline: none;
}

.planilla-finance-card--primary {
  background: #e8f5ee;
  border-color: #b8dcc8;
}

.planilla-finance-card span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.planilla-finance-card strong {
  display: block;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 10px;
  word-break: break-word;
}

.planilla-finance-card--commission {
  background: #fff8e8;
  border-color: #edd790;
}

.planilla-finance-card--commission strong {
  color: #785618;
  font-size: 1.55rem;
}

.planilla-finance-card--net strong {
  color: var(--green-dark);
  font-size: 1.5rem;
}

.planilla-finance-hint {
  color: var(--green-dark);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 6px;
}

.planilla-finance-overlay {
  align-items: center;
  background: rgba(10, 20, 26, 0.84);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10000;
}

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

.planilla-finance-modal {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 28px 32px 24px;
  width: min(94vw, 560px);
}

.planilla-finance-modal h2 {
  font-size: 1.35rem;
  margin: 0 0 18px;
}

.planilla-finance-detail div {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.planilla-finance-detail div:first-child {
  border-top: 0;
  padding-top: 0;
}

.planilla-finance-detail dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.planilla-finance-detail dd {
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  word-break: break-word;
}

.planilla-finance-detail .is-hero dd {
  color: var(--green-dark);
  font-size: clamp(2.35rem, 9vw, 3.5rem);
}

.planilla-finance-modal .primary-button {
  margin-top: 18px;
  width: 100%;
}

/* =========================
   PLANILLA TOOLBAR (v13)
========================= */

.planilla-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.planilla-date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.planilla-date-label input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.88rem;
  padding: 6px 10px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}

.planilla-summary {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 800;
}

#viewPlanilla .planilla-count-grid .metric-card span {
  font-size: 0.92rem;
}

#viewPlanilla .planilla-count-grid .metric-card strong {
  font-size: 1.65rem;
}

#viewPlanilla .table-card .card-title h3 {
  font-size: 1.12rem;
}

#viewPlanilla .sales-table.wide .table-row.table-head {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#viewPlanilla .sales-table.wide .table-row.table-head > span {
  overflow: visible;
  white-space: nowrap;
}

#viewPlanilla .sales-table.wide .table-row > span {
  min-width: 0;
  padding-right: 2px;
}

#viewPlanilla .sales-table.wide .table-row {
  font-size: 0.95rem;
}

#viewPlanilla .sale-amount,
#viewPlanilla .sale-commission,
#viewPlanilla .sale-commission--readonly,
#viewPlanilla .sale-net {
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.2;
}

#viewPlanilla .sale-commission,
#viewPlanilla .sale-commission--readonly {
  color: #785618;
  font-size: 1.08rem;
}

#viewPlanilla .sale-net {
  color: var(--green-dark);
  font-size: 1.06rem;
}

#viewPlanilla .commission-input {
  background: #fffdf6;
  border: 1px solid #e8c96a;
  border-radius: 6px;
  color: #785618;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  min-height: 38px;
  min-width: 96px;
  padding: 8px 10px;
  text-align: right;
  width: 100%;
}

#viewPlanilla .commission-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 138, 77, 0.2);
  outline: none;
}

/* =========================
   INLINE DATE FILTER (programacion)
========================= */

.inline-date-filter input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.82rem;
  padding: 5px 9px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}

/* planilla wide table — escritorio */
.sales-table.wide:not(.is-admin) .table-row {
  grid-template-columns:
    72px minmax(140px, 1.1fr) minmax(155px, 1.15fr) 84px 68px
    106px 114px 114px 92px 108px minmax(200px, auto);
  min-width: 1280px;
  gap: 16px;
}

.sales-table.wide.is-admin .table-row {
  grid-template-columns:
    72px minmax(128px, 1fr) minmax(118px, 0.95fr) minmax(155px, 1.1fr) 84px 68px
    106px 114px 114px 92px 108px minmax(200px, auto);
  min-width: 1400px;
  gap: 16px;
}


/* spinner para modal QR */
.qr-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: qrSpin 0.8s linear infinite;
}
@keyframes qrSpin {
  to { transform: rotate(360deg); }
}

/* estado reembolsado en planilla */
.status.reembolsado {
  background: #fde9e4;
  color: #9f3729;
}

/* botón warning para reembolsar */
.mini-button.warning {
  background: #fff3d6;
  color: #785618;
  border-color: #e8c96a;
}
.mini-button.warning:hover {
  background: #fde8a0;
}

.secondary-button.danger-soft {
  background: #fde9e4;
  color: #9f3729;
}

/* asiento propio del boletero — reembolsable */
.seat.refundable {
  background: #fff3d6;
  color: #785618;
  cursor: pointer;
  text-decoration: none;
  border: 3px dashed #8f5f00;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    0 0 0 2px rgba(242, 180, 65, 0.28);
}
.seat.refundable:hover {
  background: #fde8a0;
  border-color: #6f4700;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.82),
    0 0 0 3px rgba(242, 180, 65, 0.45);
}

.seat-map.compact .seat.change-source {
  background: #fff3d6;
  border-color: #e2ad32;
  color: #785618;
  cursor: pointer;
}

.seat-map.compact .seat.change-active {
  background: #168a4d;
  border-color: #d4f0df;
  color: #fff;
  outline: 2px solid #ffe681;
}

.seat-map.compact .seat.change-target {
  background: #2a7de1;
  border-color: #bcd7ff;
  color: #fff;
}

.seat-change-body {
  display: grid;
  gap: 12px;
  max-height: min(72vh, 720px);
  overflow: auto;
}

.seat-change-summary {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

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

.seat-change-summary > div:first-child span,
.seat-change-help {
  color: var(--muted);
  font-size: 0.86rem;
}

.seat-change-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.seat-change-pills span {
  background: #fff3d6;
  border: 1px solid #e8c96a;
  border-radius: 999px;
  color: #785618;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 8px;
}

.seat-change-pills span.ready {
  background: #e8f7ed;
  border-color: #9bd7af;
  color: #17633a;
}

.seat-change-map {
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ── Planilla: panel de control unificado ───────────────── */
#viewPlanilla .planilla-control-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17,28,35,.07);
  padding: 11px 16px 10px;
  margin-bottom: 16px;
}

#viewPlanilla .planilla-ctrl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#viewPlanilla .planilla-ctrl-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

#viewPlanilla .planilla-control-panel input[type="date"],
#viewPlanilla .planilla-control-panel select {
  width: auto;
  min-height: 32px;
  max-height: 32px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  cursor: pointer;
  box-sizing: border-box;
}

#viewPlanilla .planilla-control-panel input[type="date"] { width: 130px; }
#viewPlanilla .planilla-control-panel select { width: 158px; }

#viewPlanilla .planilla-control-panel input[type="date"]:focus,
#viewPlanilla .planilla-control-panel select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,138,77,.14);
  outline: none;
}

#viewPlanilla .planilla-ctrl-sep { flex: 1; }
#viewPlanilla .planilla-export-btn { white-space: nowrap; }

#viewPlanilla .planilla-ctrl-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

#viewPlanilla .planilla-ctrl-summary {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

#viewPlanilla .planilla-export-info {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

#viewPlanilla .planilla-sales-table-card { margin-top: 20px; }

/* ── CAMPOS DINAMICOS DE PASAJEROS ─────────────────────────────────────────── */

.passengers-empty-hint {
  margin: 8px 0 4px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--surface, #f5f7f6);
  border: 1.5px dashed var(--line, #dde4df);
  color: var(--muted, #7a8c82);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.passengers-wrapper {
  margin-top: 4px;
}

.passengers-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #7a8c82);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, #dde4df);
}

.passengers-fields{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Si solo hay 1 pasajero ocupa el ancho completo */
.passengers-fields:has(.passenger-field:only-child) {
  grid-template-columns: 1fr;
}

/* Fallback para navegadores sin :has() */
.passengers-fields .passenger-field:first-child:last-child {
  grid-column: 1 / -1;
}

.passenger-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.passenger-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink, #1a2e24);
}

.seat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green, #168a4d);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.passenger-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line, #dde4df);
  border-radius: 7px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink, #1a2e24);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.passenger-input:focus {
  border-color: var(--green, #168a4d);
  box-shadow: 0 0 0 3px rgba(22,138,77,.14);
  outline: none;
}

.passenger-input::placeholder {
  color: var(--muted, #7a8c82);
  font-weight: 400;
}

/* En pantallas angostas: 1 columna */
@media (max-width: 640px) {
  .passengers-fields {
    grid-template-columns: 1fr;
  }
}

#passengersContainer{
  width:100%;
  overflow:visible;
}



/* =========================
   ESTADOS DE ASIENTOS
========================= */

.seat-free,
.seat-map.compact .seat-free {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
}

.seat-free:hover:not(:disabled),
.seat-free.selected,
.seat-map.compact .seat-free:hover:not(:disabled),
.seat-map.compact .seat-free.selected {
  background: #0f7a38;
  border-color: #0b5f2b;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(22, 138, 77, 0.18);
}

.seat-sold,
.seat-map.compact .seat-sold {
  background: #d94c3d;
  border-color: #a93429;
  color: #fff;
}

.seat-partial,
.seat-map.compact .seat-partial {
  background: #2f6fb7;
  border-color: #23558f;
  color: #fff;
}

.seat-change,
.seat-map.compact .seat-change {
  background: #f2b441;
  border-color: #b98210;
  color: #3a2a05;
}

.seat.busy:not(.refundable),
.seat:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.seat.refundable:not(:disabled) {
  cursor: pointer;
}

.seat-legend {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 12px;
}

.seat-legend span {
  align-items: center;
  color: #3c474e;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
  white-space: nowrap;
}

.seat-legend i {
  border: 1px solid #a8b8af;
  border-radius: 5px;
  display: inline-block;
  height: 14px;
  width: 14px;
}

.legend-free { background: #16a34a; border-color: #15803d !important; }
.legend-selected { background: var(--green); border-color: var(--green-dark) !important; }
.legend-sold { background: #d94c3d; border-color: #a93429 !important; }
.legend-partial { background: #2f6fb7; border-color: #23558f !important; }
.legend-change { background: #f2b441; border-color: #b98210 !important; }
