/* ════════════════════════════════════════════════════════════════
   LAS PÁGINAS SUELTAS — términos, privacidad, contacto, suscripción

   Cuatro archivos, cuatro :root propios, y en tres de ellos el mismo
   rosa #FF0057 con el mismo Montserrat: la última isla del sistema
   viejo. Términos y privacidad traían además hojas casi idénticas,
   copiadas una de la otra.

   Se arreglaron de paso los mismos dos contrastes que fallaban en el
   resto del sitio y que venían de la misma paleta: los rótulos en
   #B0B0B0 (2,17 sobre blanco) y el rosa usado como texto (3,9). En
   términos y privacidad ese rosa era el rótulo de sección de un
   documento legal, que es exactamente donde no se puede leer mal.
   ════════════════════════════════════════════════════════════════ */

:root {
  --dura:   var(--dura-4);
  --dura-s: var(--dura-2);
  --ancho:  860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--titulo); color: var(--tinta); background: var(--papel);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px }
img { max-width: 100% }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto } }

/* ── La barra ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--crema); border-bottom: 1px solid var(--linea);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--ancho); margin: 0 auto; padding: 0 24px; width: 100%; height: 64px;
  display: flex; align-items: center; gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; min-width: 0 }
.nav-logo img { height: 30px; width: 30px; display: block; flex-shrink: 0 }
.nav-logo-text { font-size: 15px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap }
.nav-back {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--tinta); color: var(--papel);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--lima);
  transition: background .15s ease, transform .15s ease;
}
.nav-back:hover { background: var(--tinta-alta); transform: translateY(-1px) }
.nav-back svg { width: 14px; height: 14px }
@media (max-width: 460px) { .nav-logo-text { display: none } }

/* ── La página ────────────────────────────────────────────────── */
.page { max-width: var(--ancho); margin: 0 auto; padding: 48px 24px 88px }
.page-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2);
  margin-bottom: 14px;
}
.page-title {
  font-size: clamp(29px, 4.6vw, 40px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.08; text-wrap: balance;
}
.page-sub { margin-top: 14px; max-width: 58ch; font-size: 17px; color: var(--gris-1) }
.page-meta {
  font-size: 13.5px; color: var(--gris-2); margin-top: 16px;
  padding-bottom: 30px; margin-bottom: 40px; border-bottom: 1.5px solid var(--linea);
}

/* ── El documento legal ───────────────────────────────────────── */
/* Medida de 68 caracteres: un texto legal se abandona por ilegible antes
   que por largo, y a 110 caracteres el ojo pierde el renglón al volver. */
.doc { max-width: 68ch }
.doc h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -.028em; line-height: 1.25;
  margin: 38px 0 12px;
}
.doc h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; margin: 24px 0 8px }
.doc p { margin-bottom: 15px; color: var(--gris-1) }
.doc ul, .doc ol { margin: 0 0 15px 22px; color: var(--gris-1) }
.doc li { margin-bottom: 7px }
.doc strong { color: var(--tinta); font-weight: 700 }
.doc a {
  color: var(--acento-osc); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.doc a:hover { color: var(--lima-hond) }

.note {
  background: var(--blanco); border: var(--linea-f); border-radius: var(--r-m);
  box-shadow: var(--dura-s); padding: 16px 18px; margin: 22px 0;
  font-size: 14.5px; color: var(--gris-1); line-height: 1.6;
}
.note strong { color: var(--tinta) }

.third-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  border: var(--linea-f); border-radius: var(--r-m); overflow: hidden;
}
.third-table th {
  background: var(--crema); text-align: left; padding: 11px 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--gris-1);
  border-bottom: 1px solid var(--linea);
}
.third-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--linea-suave);
  font-size: 14.5px; color: var(--gris-1); vertical-align: top;
}
.third-table tr:last-child td { border-bottom: none }
.third-table strong { color: var(--tinta) }

/* ── Contacto ─────────────────────────────────────────────────── */
.stepper { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 36px }
.stepper-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0 }
.stepper-circle {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blanco); border: 1.5px solid var(--linea);
  font-size: 13.5px; font-weight: 800; color: var(--gris-2);
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.stepper-item.active .stepper-circle { background: var(--tinta); border-color: var(--tinta); color: var(--lima) }
.stepper-label { font-size: 12px; font-weight: 600; color: var(--gris-2); white-space: nowrap }
.stepper-item.active .stepper-label { color: var(--tinta); font-weight: 700 }
.stepper-connector { flex: 1; height: 1.5px; background: var(--linea); margin: 17px 8px 0; min-width: 22px }

.form-card {
  background: var(--blanco); border: var(--linea-f); border-radius: var(--r-l);
  box-shadow: var(--dura); padding: 26px 24px 24px;
}
.step-panel { display: none }
.step-panel.active { display: block }
.step-h3 { font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 4px }
.step-hint { font-size: 14.5px; color: var(--gris-1); margin-bottom: 20px }

.motivo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px }
.motivo-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 17px; border-radius: var(--r-m); cursor: pointer; text-align: left;
  background: var(--blanco); border: 1.5px solid var(--linea);
  font-family: inherit; color: var(--tinta);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.motivo-card:hover { border-color: var(--tinta); transform: translateY(-2px); box-shadow: var(--dura-s) }
.motivo-card.active { border-color: var(--tinta); box-shadow: var(--dura-s); background: var(--crema) }
.motivo-icon {
  width: 36px; height: 36px; border-radius: var(--r-s); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--crema); border: 1px solid var(--linea); color: var(--gris-1);
}
.motivo-card.active .motivo-icon { background: var(--lima); border-color: var(--tinta); color: var(--tinta) }
.motivo-icon svg { width: 18px; height: 18px }
.motivo-title { font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3 }
.motivo-desc { font-size: 13.5px; color: var(--gris-1); line-height: 1.5 }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.field + .field { margin-top: 14px }
.field label { font-size: 13px; font-weight: 700; letter-spacing: -.01em }
.opt { font-weight: 500; color: var(--gris-2); font-size: 12px }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0 }
/* La separación entre campos NO aplica adentro de una fila de dos: ahí el
   hueco lo pone el gap de la grilla, y sumarle el margen dejaba al segundo
   campo 14px más abajo que su compañero. */
.field-row > .field + .field { margin-top: 0 }
.field-row + .field { margin-top: 14px }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr } }

.form-card input[type=text],
.form-card input[type=email],
.form-card input[type=tel],
.form-card select,
.form-card textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--tinta);
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--r-s); padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card textarea { min-height: 120px; resize: vertical; line-height: 1.55 }
.form-card ::placeholder { color: var(--gris-3) }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(11,11,10,.09);
}

.step-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-pill); cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.015em;
  border: var(--linea-f); background: var(--blanco); color: var(--tinta);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:disabled { opacity: .55; cursor: default }
.btn svg { width: 16px; height: 16px }
.btn-primary { background: var(--lima); color: var(--tinta); box-shadow: var(--dura-s) }
.btn-primary:hover:not(:disabled) { background: var(--lima-osc) }
.btn-primary:active { transform: translate(2px,2px); box-shadow: none }
.btn-ghost { background: none; border: 1px solid var(--linea); color: var(--gris-1); font-weight: 600 }
.btn-ghost:hover:not(:disabled) { background: var(--crema); color: var(--tinta) }

.review-list { display: flex; flex-direction: column; margin: 4px 0 6px }
.review-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--linea-suave); font-size: 14.5px;
}
.review-row:last-child { border-bottom: none }
.review-row > span:first-child {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--gris-2);
  flex-shrink: 0; padding-top: 3px;
}
.review-row > span:last-child { text-align: right; color: var(--tinta); font-weight: 600; word-break: break-word }

.success-state { text-align: center; padding: 14px 0 6px }
.success-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-bg); color: var(--verde); border: 1.5px solid var(--verde);
}
.success-icon svg { width: 28px; height: 28px }
.success-title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2 }
.success-text { font-size: 15px; color: var(--gris-1); margin-top: 9px; max-width: 44ch; margin-inline: auto }

/* ── Suscripción ──────────────────────────────────────────────── */
/* La página a la que vuelve MercadoPago. Una sola tarjeta centrada. */
body.suscripcion { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 100svh }
.card {
  background: var(--blanco); border: var(--linea-f); border-radius: var(--r-l);
  box-shadow: var(--dura); padding: 34px 28px 28px;
  max-width: 460px; width: 100%; text-align: center;
}
.card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance }
.card p { font-size: 15px; color: var(--gris-1); margin-top: 9px }
.icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; border: 1.5px solid currentColor;
}
.icon-wrap svg { width: 30px; height: 30px }
.icon-wrap.ok   { background: var(--verde-bg); color: var(--verde) }
.icon-wrap.wait { background: var(--ambar-bg); color: var(--ambar) }
.icon-wrap.err  { background: var(--rojo-bg);  color: var(--rojo) }

.detalle {
  margin-top: 20px; text-align: left;
  background: var(--crema); border: 1px solid var(--linea); border-radius: var(--r-m); overflow: hidden;
}
.detalle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 15px; border-bottom: 1px solid var(--linea-suave); font-size: 14px;
}
.detalle-row:last-child { border-bottom: none }
.detalle-lbl {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--gris-2);
}
.detalle-val { font-weight: 700; text-align: right; word-break: break-word }

.acciones { display: flex; flex-direction: column; gap: 9px; margin-top: 20px }
.acciones .btn { width: 100% }
.ayuda { font-size: 13px; color: var(--gris-2); margin-top: 16px; line-height: 1.6 }
.ayuda a { color: var(--acento-osc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px }

.spinner {
  width: 36px; height: 36px; margin: 0 auto 20px; border-radius: 50%;
  border: 2.5px solid var(--linea); border-top-color: var(--tinta);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg) } }
