/* GoLuis — landing en blanco y negro. Sin frameworks, sin build. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --gray-900: #171717;
  --gray-600: #666666;
  --gray-400: #999999;
  --border: #eaeaea;
  --measure: 62ch;
  --sans: "Geist", -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: var(--fg); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--gray-900);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  max-width: 78rem;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--gray-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--fg); }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.masthead-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-weight: 650;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 22ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gray-400);
}

.hero-sub {
  margin-top: 2rem;
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--gray-600);
}

.hero-cta { margin-top: 2.4rem; }

.hero-cta a {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  transition: background 0.15s ease;
}

.hero-cta a:hover { background: #333333; }

/* ---------- Bloques numerados ---------- */

.block {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.block-label .num {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.block-label h2 {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  position: sticky;
  top: 1.5rem;
}

.block-body { max-width: 46rem; }

.block-body p { max-width: var(--measure); }

.block-body > p + p { margin-top: 1rem; }

/* ---------- Tabla situación / intervención / resultado ---------- */

.ledger {
  width: 100%;
  margin-top: 1.8rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ledger th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: left;
  padding: 0 1rem 0.55rem 0;
  border-bottom: 1px solid var(--fg);
}

.ledger td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ledger td:first-child { font-weight: 550; }

/* ---------- Índice de servicios ---------- */

.index-list {
  list-style: none;
  counter-reset: servicio;
}

.index-list li {
  counter-increment: servicio;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.index-list li:first-child { padding-top: 0.2rem; }
.index-list li:last-child { border-bottom: none; padding-bottom: 0; }

.index-list h3 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.index-list h3::before {
  content: counter(servicio, decimal-leading-zero) " ";
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-right: 0.6rem;
  vertical-align: 0.12em;
}

.index-list p {
  margin-top: 0.4rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---------- Tarifas ---------- */

.pricelist div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.pricelist div:first-child { padding-top: 0; }

.pricelist dt { font-weight: 550; }

.pricelist div::after {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-0.3em);
}

.pricelist dd {
  order: 3;
  font-family: var(--mono);
  font-size: 0.88rem;
  white-space: nowrap;
}

.fineprint {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ---------- Método ---------- */

.steps {
  list-style: none;
  counter-reset: fase;
  margin-bottom: 1.6rem;
}

.steps li {
  counter-increment: fase;
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(fase);
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ---------- Quién ---------- */

.stack {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.9;
}

/* ---------- Empezar ---------- */

.contact { margin-top: 2rem; }

.contact a {
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* ---------- Colofón ---------- */

.colophon {
  padding: 2rem 0 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 44rem) {
  .block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .block-label h2 { position: static; }

  .block-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }

  .block-label .num { margin-bottom: 0; }

  .ledger { font-size: 0.88rem; }

  .ledger th, .ledger td { padding-right: 0.6rem; }

  .ledger th:nth-child(2), .ledger td:nth-child(2) { display: none; }

  .pricelist div { flex-wrap: wrap; }

  .pricelist dd { margin-left: auto; }
}
