/* Tu Taller Bolivia — landing.
   Graphite and amber come from the product's own theme; the type is Barlow,
   drawn from road signage and licence plates. */

:root {
  --graphite: #1f2933;
  --graphite-2: #2b3843;
  --amber: #f59e0b;
  --amber-ink: #b45309;
  --concrete: #e9ecef;
  --paper: #ffffff;
  --ink-2: #52606d;
  --line: #cfd5db;
  --on-dark: #f3f5f7;
  --on-dark-2: #aab4be;
  --radius: 10px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--amber);
  color: var(--graphite);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.wrap.narrow > * {
  max-width: 760px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

p {
  margin: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--graphite);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--amber);
}

.btn:hover {
  background: #fbbf24;
  border-color: #fbbf24;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: currentColor;
}

.btn-small {
  min-height: 40px;
  padding: 0.4rem 1rem;
}

/* Header */

.site-header {
  background: var(--graphite);
  color: var(--on-dark);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.site-header nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--on-dark);
}

/* Hero */

.hero {
  background: var(--graphite);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: 4.5rem 5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.lead {
  margin-top: 1.5rem;
  max-width: 54ch;
  color: var(--on-dark-2);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--on-dark-2);
  font-size: 0.95rem;
}

/* The work order: the page's one moving part. */

.ticket {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transform: rotate(1.2deg);
  transition: opacity 300ms ease;
}

.ticket.is-swapping {
  opacity: 0;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plate {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.7rem;
  border: 2.5px solid var(--graphite);
  border-radius: 6px;
  line-height: 1.3;
}

.ticket-time {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ticket-car {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.ticket-reason {
  color: var(--ink-2);
}

.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.ticket-meta dt {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.ticket-meta dd {
  margin: 0;
  font-weight: 600;
}

.rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.rail li {
  font-size: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--concrete);
  transition: background-color 400ms ease;
}

.rail li.done {
  background: var(--graphite);
}

.rail li.current {
  background: var(--amber);
}

.ticket.is-delivered .rail li.current {
  background: #16a34a;
}

.ticket-status {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 0.9rem;
  min-height: 3.2em;
  font-weight: 500;
}

.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-1px);
}

.ticket.is-delivered .status-dot {
  background: #16a34a;
}

/* Workshop floor marking: the hero's lower edge, and the only stripe on the page. */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 18px,
    var(--graphite) 18px 36px
  );
}

/* Sections */

.section {
  padding-block: 5rem;
}

.section-alt {
  background: var(--concrete);
}

.section-lead {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.1rem;
}

/* The journey is a real sequence, so it is numbered. */

.journey {
  counter-reset: step;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.5rem;
}

.journey li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}

.journey li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-ink);
}

.journey li::after {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 2.5rem;
  right: 0;
  height: 2px;
  background: var(--line);
}

.journey p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

/* Before and after */

.compare {
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-row > span {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--concrete);
}

.compare-row > span:first-child {
  color: var(--ink-2);
}

.compare-row > span:last-child {
  border-left: 3px solid var(--amber);
  font-weight: 500;
}

.compare-headrow > span {
  border-top: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--graphite);
}

.compare-headrow > span:first-child {
  color: var(--graphite);
}

/* Roles */

.roles {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
}

.roles > div {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.roles > div:last-child {
  border-bottom: 1px solid var(--line);
}

.roles dt {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.roles dd {
  margin: 0;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Features */

.features {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3.5rem;
}

.features p {
  margin-top: 0.4rem;
  color: var(--ink-2);
  max-width: 52ch;
}

/* Plans */

.table-scroll {
  margin-top: 2.5rem;
  overflow-x: auto;
}

.plans {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.plans th,
.plans td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.plans thead th {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 2px solid var(--graphite);
}

.plans tbody th {
  font-weight: 500;
  color: var(--ink-2);
}

.plans td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plans .plan-featured {
  background: #fff7e6;
}

.plans thead .plan-featured {
  border-top: 4px solid var(--amber);
}

/* Questions */

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.8rem;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--amber-ink);
}

details[open] summary::after {
  content: '−';
}

details p {
  padding-bottom: 1.2rem;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Closing */

.closing {
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: 4.5rem;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.closing p {
  margin-top: 0.75rem;
  color: var(--on-dark-2);
  max-width: 52ch;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer {
  background: var(--graphite-2);
  color: var(--on-dark-2);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

/* Small screens */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-block: 3rem 3.5rem;
  }

  .ticket {
    transform: none;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey li {
    padding-top: 0;
    padding-left: 3.25rem;
  }

  .journey li::after {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .roles > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .closing-grid {
    grid-template-columns: 1fr;
  }

  .closing-actions {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .site-header nav {
    margin-left: auto;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-headrow {
    display: none;
  }

  .compare-row > span:first-child {
    padding-bottom: 0.25rem;
    font-size: 0.95rem;
  }

  .compare-row > span:first-child::before {
    content: 'Hoy: ';
    font-weight: 600;
  }

  .compare-row > span:last-child {
    border-top: 0;
    margin: 0 1.25rem 1rem;
    padding: 0.25rem 0 0 0.9rem;
  }

  .section {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticket,
  .rail li {
    transition: none;
  }
}
