/* Plantilla «cuidado». Calma: texto grande, aire, formas redondeadas.
   Colores: --papel, --tinta, --acento (lo que es de hoy, los pasos) y --suave (las cajas). */

:root {
  --papel: #F7F9F7;
  --tinta: #1F3A34;
  --acento: #A8D5BA;
  --suave: #EAF2EC;
  --letra: "Nunito", system-ui, sans-serif;
  --margen: clamp(16px, 5vw, 64px);
  --ancho: 62rem;
  --radio: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--letra);
  font-size: 1.25rem;
  line-height: 1.6;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 4px solid var(--tinta); outline-offset: 4px; border-radius: 6px; }

.tapa, main > *, .pie {
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margen);
  padding-right: var(--margen);
}

/* ─── Tapa: el nombre, sereno, y la frase que desarma la duda ────── */

.tapa { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(32px, 5vw, 56px); }
.tapa-que { font-weight: 600; margin-bottom: .6rem; }
.tapa h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 18ch;
}
.tapa-texto { margin-top: 1.4rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; max-width: 36ch; }

/* ─── Hoy: lo primero que se busca ───────────────────────────────── */

.hoy-caja {
  background: var(--suave);
  border-radius: var(--radio);
  padding: clamp(24px, 4vw, 44px);
}
.hoy h2, .bloque h2, .turno h2, .sumate h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.15;
}
.hoy-ahora {
  margin-top: 1rem;
  display: inline-block;
  background: var(--acento);
  border-radius: 18px;
  padding: .55rem 1.2rem;
  font-weight: 800;
}
.horarios { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .4rem; }
.horarios li {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(7rem, 10rem) 1fr;
  gap: .2rem 1.2rem;
  padding: .8rem 1rem;
  border-radius: 16px;
}
.horarios li.es-hoy { background: var(--papel); box-shadow: inset 6px 0 0 var(--acento); }
.h-dia { font-weight: 800; }
.h-horas { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .horarios li { grid-template-columns: 1fr; padding: .7rem .9rem; }
}

/* ─── Bloques ────────────────────────────────────────────────────── */

.bloque { padding-top: clamp(48px, 7vw, 88px); }
.bloque > h2 { margin-bottom: 1.4rem; }
.bajada { margin: -.6rem 0 1.4rem; max-width: 40ch; }

.preguntas { display: grid; gap: .8rem; }
.preguntas details {
  border: 2px solid var(--tinta);
  border-radius: 22px;
  padding: 0 1.4rem;
}
.preguntas summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--acento);
  font-size: 1.5rem;
  line-height: 1;
}
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { padding: 0 0 1.3rem; max-width: 52ch; }

/* Los pasos para pedir turno son una secuencia de verdad: van numerados. */
.turno { padding-top: clamp(48px, 7vw, 88px); }
.pasos {
  counter-reset: paso;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 820px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li {
  counter-increment: paso;
  background: var(--suave);
  border-radius: var(--radio);
  padding: 1.3rem 1.4rem 1.5rem;
}
.pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--acento);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: .8rem;
}

.servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 3rem; }
@media (min-width: 720px) { .servicios { grid-template-columns: 1fr 1fr; } }
.servicios h3 { font-weight: 800; font-size: 1.35rem; }

.donde-dir { font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.historia { max-width: 44ch; }

.sumate {
  margin-top: clamp(56px, 8vw, 96px);
}
.sumate {
  background: var(--tinta);
  color: var(--papel);
  border-radius: var(--radio);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
  max-width: none;
  width: min(var(--ancho), calc(100% - 2 * var(--margen)));
}
.sumate p { margin-top: .8rem; max-width: 44ch; }

.pie { padding-top: 2.5rem; padding-bottom: 110px; font-size: 1.05rem; display: grid; gap: .4rem; }
.pie-nombre { font-weight: 800; }

@media (prefers-reduced-motion: reduce) { body { transition: none; } }
