:root {
  --ink: #10212e;
  --blue: #0e3b5c;
  --blue-deep: #092a42;
  --frost: #dcedf3;
  --enamel: #f6f8f9;
  --line: #c9d6dd;
  --muted: #4a5d6a;
  --wa: #0f7a3f;
  --wa-hover: #0b6233;
  --focus: #f2b705;
  --wrap: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--enamel);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: 4.5rem; /* espacio para la barra fija del celular */
}

h1, h2 {
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 6vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }

p { margin: 0 0 1rem; max-width: 65ch; }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Encabezado */

.top {
  background: var(--blue-deep);
  color: #fff;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.5rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand span { font-weight: 400; }

.top-nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.top-nav a {
  color: var(--frost);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover { color: #fff; text-decoration: underline; }

.top-call {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Portada */

.hero {
  background: var(--blue);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--frost);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn-wa, .btn-call {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }

.btn-call {
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--frost);
}

.btn-call:hover { background: var(--blue-deep); }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--frost);
  font-size: 0.95rem;
}

.facts li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--frost);
  vertical-align: middle;
}

/* Selector de fallas: el panel de control del equipo */

.picker {
  background: #fff;
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(4, 22, 36, 0.6);
}

.picker h2 { font-size: 1.9rem; margin-bottom: 0.25rem; }

.picker-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.picker-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--frost);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.picker-tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.6rem 0.25rem;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.picker-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.faults {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faults li + li { border-top: 1px solid var(--line); }

.faults a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.faults a::after {
  content: "WhatsApp";
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wa);
}

.faults a:hover { color: var(--blue); background: var(--enamel); }

/* Secciones */

main > section:not(.hero) { padding-top: 3.5rem; }

.steps ol {
  list-style: none;
  counter-reset: paso;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  counter-increment: paso;
  position: relative;
  padding-left: 3.25rem;
  max-width: 34rem;
}

.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--frost);
  color: var(--blue);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps strong { display: block; }

.svc-list, .more-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.svc-list li, .more-list li { border-bottom: 1px solid var(--line); }

.svc-list a {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--ink);
}

.svc-name {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
}

.svc-list a:hover .svc-name { text-decoration: underline; }

.svc-lead { color: var(--muted); max-width: 60ch; }

.more-list a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 600;
}

.fine {
  color: var(--muted);
  font-size: 0.85rem;
}

.price {
  margin-top: 1rem;
  padding: 1.25rem 1.25rem 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: 40rem;
}

.steps ol + .price { margin-top: 2rem; }

.price-amount {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.team {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.team img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.prose p:first-child { font-size: 1.15rem; }

/* Pie */

.foot {
  margin-top: 4rem;
  background: var(--blue-deep);
  color: var(--frost);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}

.foot a { color: #fff; }

.foot-grid {
  display: grid;
  gap: 1.5rem;
}

.foot-brand {
  color: #fff;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.foot-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(220, 237, 243, 0.25);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  max-width: none;
}

/* Barra fija en el celular */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 10;
}

.dock a {
  text-align: center;
  padding: 0.8rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.dock-wa { background: var(--wa); color: #fff; }
.dock-call { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }

@media (min-width: 60rem) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top-nav { display: flex; }
  .top-call { margin-left: 0; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .steps ol { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding-left: 0; padding-top: 3rem; }
  .svc-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .team { grid-template-columns: 28rem 1fr; gap: 4rem; }
  .foot-grid { grid-template-columns: 2fr 1fr; }
}
