/* Página-propuesta con el layout de la propuesta de Indian: barra en píldora, hero a dos columnas con el celular,
   secciones en paneles de vidrio con número y etiqueta, sobre el fondo de mensajes (docs/decisiones-visuales.md). */
:root {
  --w: 1280px;
  --r: 28px;
}
body {
  font-size: 17px;
  line-height: 1.6;
}
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
  body {
    font-size: 16px;
  }
}
img {
  max-width: 100%;
  display: block;
}

/* Vidrio de los paneles: tinte claro, blur leve y un reflejo arriba */
.glass {
  position: relative;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgb(255 252 247 / 0.86), rgb(255 252 247 / 0.72) 45%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgb(40 30 20 / 0.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 30px 60px -40px rgb(80 55 30 / 0.45);
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: rgb(255 252 247 / 0.9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-texto);
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .l,
h2 .l {
  font-weight: 300;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.98;
  margin: 18px 0 24px;
  max-width: 12em;
}
h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.06;
  margin: 0 0 20px;
  max-width: 22em;
}
p {
  margin: 0 0 14px;
  max-width: 48em;
}
.btn.small {
  min-height: 44px;
  padding: 0 1em;
  font-size: 14px;
}
.btn.grande {
  min-height: 56px;
  padding: 0 1.6em;
  font-size: 17px;
}

/* Barra */
.barra {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0;
}
.barra .glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
}
.quien {
  font-size: 14px;
  color: var(--muted);
}
.quien b {
  color: var(--ink);
}
.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 520px) {
  .barra .btn.quiet {
    display: none;
  }
}

/* Portada */
.hero {
  padding: 48px 0 32px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr;
  gap: 64px;
  align-items: center;
}
.lead {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 300;
  max-width: 36em;
}
.resumen {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
  max-width: 44em;
}
.resumen li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
}
.resumen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 2px;
  background: var(--accent);
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.ficticio {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .hero {
    padding: 24px 0;
  }
  .hero .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero .phone {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Celular con la captura real de la demo */
.phone {
  border-radius: 44px;
  padding: 10px;
  background: #15110d;
  box-shadow: 0 50px 90px -40px rgb(60 40 20 / 0.55);
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  background: var(--surface);
}

/* Secciones en paneles de vidrio, con la columna de número y etiqueta */
.s {
  padding: 20px 0;
}
.s .glass {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 56px 60px 52px;
}
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.36 0.02 60);
  padding-top: 8px;
}
.label .n {
  display: block;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .s .glass {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 30px 20px 26px;
  }
  .label {
    padding-top: 0;
  }
  .label .n {
    font-size: 34px;
  }
}

/* Hechos con cifras grandes */
.hechos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.hecho {
  padding: 20px 20px 0 0;
}
.hecho + .hecho {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hecho .v {
  display: block;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hecho .d {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}
.fuente {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.nota-cifras {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .hechos {
    grid-template-columns: 1fr;
  }
  .hecho + .hecho {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hecho {
    padding: 16px 0;
  }
}

/* Flujo animado: 4 pasos tocables, objetos solos (sin personas ni manos) */
.flujo {
  margin-top: 24px;
}
.pasos {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 860px) {
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pasos button {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
/* El paso inactivo atenúa sólo el dibujo: el texto mantiene contraste AA */
.pasos svg {
  width: 72px;
  height: 72px;
  opacity: 0.4;
  transition: opacity 0.4s var(--ease);
}
@media (hover: hover) {
  .pasos button:hover:not([aria-pressed="true"]) {
    border-color: var(--line);
  }
}
.pasos button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  transform: translateY(-3px);
}
.pasos button[aria-pressed="true"] svg {
  opacity: 1;
}
.pasos strong {
  font-size: 1rem;
}
.pasos span {
  font-size: 0.88rem;
  color: var(--muted);
}
.trazo {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trazo-fino {
  stroke: var(--ink);
  stroke-width: 2;
}
.papel {
  fill: var(--surface);
}
.carton {
  fill: oklch(0.8 0.06 70);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.burbuja-in {
  fill: var(--line);
}
.burbuja-out,
.boton-pago {
  fill: var(--accent);
}
.numero {
  font: 800 30px var(--font-display);
  fill: var(--ink);
}
.pasos [aria-pressed="true"] .mueve {
  animation: aparece 0.9s var(--ease) both;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
}

/* Cómo se usa: celular y texto alternados */
.flujos {
  display: grid;
  gap: 48px;
  margin-top: 18px;
}
.paso-uso {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}
.paso-uso:nth-child(even) {
  grid-template-columns: 1fr 240px;
}
.paso-uso:nth-child(even) .phone {
  order: 2;
}
.step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-texto);
  margin-bottom: 8px;
}
.paso-uso .t {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 12px;
}
@media (max-width: 760px) {
  .paso-uso,
  .paso-uso:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .paso-uso .phone,
  .paso-uso:nth-child(even) .phone {
    order: 0;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Tabla técnica: en el celular, cada fila es una tarjeta */
.tech {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}
.tech th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--ink);
}
.tech td {
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tech td:first-child {
  font-weight: 700;
  min-width: 160px;
}
.tech td small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 700px) {
  .tech,
  .tech tbody,
  .tech tr,
  .tech td {
    display: block;
    width: 100%;
  }
  .tech thead {
    display: none;
  }
  .tech tr {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .tech td {
    border: 0;
    padding: 3px 0;
  }
  .tech td:not(:first-child)::before {
    content: attr(data-k) ": ";
    font-weight: 700;
  }
}

/* Entregables de calidad */
.calidad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-top: 18px;
}
.calidad a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.calidad a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.calidad b {
  font-size: 17px;
}
.calidad span {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .calidad {
    grid-template-columns: 1fr;
  }
}

/* Fases: la actual en oscuro */
.fases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fase {
  border-radius: 20px;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.fase.ahora {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.fase .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-texto);
}
.fase.ahora .tag {
  color: var(--accent-soft);
}
.fase .t {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 24px;
  margin: 8px 0 10px;
  line-height: 1.05;
}
.fase ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}
@media (max-width: 860px) {
  .fases {
    grid-template-columns: 1fr;
  }
}

/* Próximos pasos numerados y contacto */
.siguientes {
  counter-reset: n;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.siguientes li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.siguientes li::before {
  content: "0" counter(n);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
}
.contacto {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contacto .btn {
  overflow-wrap: anywhere;
}

/* Cierre con QR */
.cta {
  padding: 14px 0 24px;
}
.cta .glass {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 60px 56px;
}
.cta h2 {
  margin-top: 10px;
}
.qr {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 0 0 1px var(--line);
}
.qr small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .cta .glass {
    grid-template-columns: 1fr;
    padding: 34px 22px;
  }
  .qr {
    display: none;
  }
}
.pie {
  padding: 10px 0 40px;
  font-size: 13px;
  color: var(--muted);
}
.pie .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.fase:not(.ahora) {
  padding: 20px 4px 0;
}
