/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BASE */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #080e1a;
  color: #cbd5e1;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* HEADER */
.header {
  margin-bottom: 36px;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  padding: 8px 14px;
  margin-bottom: 8px;
  margin-right: 8px;
  border-radius: 8px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 500;
}

.note::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fbbf24;
  border-radius: 50%;
  flex-shrink: 0;
}

/* SECCIONES */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 12px;
  padding-left: 2px;
}

/* TABLA WRAPPER */
.table-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
}

/* TABLA */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

/* HEADER TABLA */
thead {
  background: #0f1c2e;
}

th {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  white-space: nowrap;
}

/* FILAS */
td {
  padding: 13px 16px;
  font-size: 0.875rem;
  border-top: 1px solid #0f1928;
}

td:first-child {
  color: #cbd5e1;
}

/* ZEBRA */
tbody tr:nth-child(odd)  { background: #0d1a2b; }
tbody tr:nth-child(even) { background: #091422; }

/* HOVER */
tbody tr:hover {
  background: #162032;
  transition: background 0.15s ease;
}

/* PRECIOS */
th:nth-child(2),
th:nth-child(3),
td:nth-child(2),
td:nth-child(3) {
  text-align: right;
  padding-right: 20px;
}

td:nth-child(2) {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #38bdf8;   /* azul cyan — una vía */
  letter-spacing: 0.5px;
}

td:nth-child(3) {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #34d399;   /* verde menta — ida y vuelta */
  letter-spacing: 0.5px;
}

/* BOTÓN CAPTURA */
.capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.capture-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
}

.capture-btn:active {
  transform: scale(0.97);
}

/* botón global en el header */
#page-header .capture-btn {
  margin-top: 18px;
  font-size: 0.82rem;
  padding: 8px 20px;
}

/* botón por sección */
section .capture-btn {
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .container { padding: 24px 14px 48px; }

  h1 { margin-bottom: 10px; }

  .note {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .table-wrapper { border-radius: 10px; }

  thead { display: none; }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 12px 14px;
    border-top: 1px solid #0f1928;
  }

  tbody tr:first-child { border-top: none; }

  td {
    display: block;
    padding: 0;
    border: none;
    font-size: 0.82rem;
  }

  /* Destino ocupa fila completa */
  td:nth-child(1) {
    grid-column: 1 / -1;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
  }

  /* Labels para precios */
  td:nth-child(2)::before,
  td:nth-child(3)::before {
    display: block;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
  }

  td:nth-child(2)::before {
    content: "Una vía";
    color: #64748b;
  }

  td:nth-child(3)::before {
    content: "Ida y vuelta";
    color: #64748b;
  }

  td:nth-child(2),
  td:nth-child(3) {
    text-align: left;
    padding-right: 0;
  }
}
