/* Implant Dental · all-on-4.html (estilos propios). Depende de site.css. */

/* 01 Para quién es: lista de verificación */
.a4-checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .a4-checks { grid-template-columns: repeat(2, 1fr); } }
.a4-check {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hair);
  font-size: var(--fs-lead);
  color: var(--ink);
}
.a4-check__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* 03 Proceso: columna sticky + pasos con riel de progreso (all-on-4.js) */
.a4-process { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .a4-process { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .a4-process__head { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

.a4-flow {
  --p: 0;
  position: relative;
  list-style: none;
  padding: 0 0 0 var(--s-7);
  display: grid;
  gap: var(--s-6);
}
/* Riel base y relleno de progreso */
.a4-flow::before,
.a4-flow::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.a4-flow::before { background: var(--line-strong); }
.a4-flow::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(1);
}
/* Con JS el relleno depende del scroll; sin JS el riel se ve completo */
.a4-flow.is-live::after {
  transform: scaleY(var(--p));
  transition: transform 0.6s var(--ease);
}

.a4-step {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hair);
}
.a4-step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-7) + 8px);
  top: var(--s-5);
  width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: var(--z-raised);
}
.a4-step__num {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}
.a4-step__title {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.a4-step__text { margin-top: var(--s-2); color: var(--ink-2); }

/* Estados vivos (solo con JS): pendiente, actual, hecho */
.a4-flow.is-live .a4-step {
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.a4-flow.is-live .a4-step::before { transition: background-color 0.4s var(--ease), transform 0.4s var(--ease); }
.a4-flow.is-live .a4-step.is-done { opacity: 0.85; }
.a4-flow.is-live .a4-step.is-done::before { background: var(--accent); }
.a4-flow.is-live .a4-step.is-current {
  opacity: 1;
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lift);
  transform: translateX(6px);
}
.a4-flow.is-live .a4-step.is-current::before { background: var(--accent); transform: scale(1.25); }

/* Resultados y enlaces auxiliares */
.a4-results { align-items: start; }
.a4-more { margin-top: var(--s-6); }

@media (prefers-reduced-motion: reduce) {
  .a4-flow.is-live .a4-step.is-current { transform: none; }
  .a4-flow.is-live .a4-step.is-current::before { transform: none; }
}
