/* Registrar mi reto (registrar-reto.html, js/registrar-reto.js). Piel Prova: un solo acento (--acc), tinta y grises; colores de las
   variables de <html data-pal>. Una columna centrada; a 375 px sin scroll lateral. Ningún texto por debajo de 12px. Prefijo rr-. */
body.rr-pagina { background: var(--bg); color: var(--ink); min-height: 100vh; }
body.rr-pagina::before { display: none !important; }
.rr { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.rr *, .rr *::before, .rr *::after { box-sizing: border-box; }

/* Cabecera */
.rr-cab { margin-bottom: 18px; }
.rr-marca { display: inline-block; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-bottom: 14px; }
.rr-cab h1 { font-weight: 300; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.rr-sub { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.rr-lugar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 999px; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--acc) 12%, var(--surf)); font-size: 14px; font-weight: 500; }
.rr-lugar[hidden] { display: none; }
.rr-lugar .trazo { width: 18px; height: 18px; color: var(--acc); }
.rr-lugar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Avance: 1 Tu reto · 2 Tu negocio · 3 Listo */
.rr-avance { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; counter-reset: none; }
.rr-avance li { position: relative; display: flex; align-items: baseline; gap: 6px; min-width: 0; padding-top: 10px; font-size: 13px; color: var(--muted); }
.rr-avance li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-avance li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 99px; background: var(--field); }
.rr-avance li.hecho::before, .rr-avance li.on::before { background: var(--acc); }
.rr-avance li i { font-style: normal; font-weight: 500; flex: none; }
.rr-avance li.on { color: var(--ink); font-weight: 500; }
.rr-avance li.hecho { color: var(--ink); }

/* Tarjetas de cada paso */
.rr-paso[hidden] { display: none; }
.rr-tarjeta-form { background: var(--surf); border-radius: var(--r, 26px); box-shadow: var(--csh); padding: 20px 18px; display: flex; flex-direction: column; }
.rr-tarjeta-form h2 { font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 6px; }
.rr-tarjeta-form > p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.rr-et { display: block; font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
.rr-ayuda { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.rr-ayuda-p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rr .form-input, .rr .form-select, .rr .form-textarea { width: 100%; font-size: 16px; }
.rr .form-textarea { min-height: 88px; padding: 14px 18px; resize: vertical; line-height: 1.4; }

/* Gratis | Descuento */
.rr-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--field); }
.rr-tipo button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.rr-tipo button[aria-checked="true"] { background: var(--surf); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.rr-pct[hidden] { display: none; }
.rr-con-sufijo { position: relative; max-width: 160px; }
.rr-con-sufijo input { padding-right: 40px; }
.rr-con-sufijo span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--muted); pointer-events: none; }
.rr-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rr-dos .rr-et { margin-top: 16px; }

/* Vista previa del reto */
.rr-reto { border-radius: var(--r-sm, 18px); background: var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.rr-reto-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rr-mono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surf); font-size: 13px; font-weight: 500; flex: none; }
.rr-reto-neg { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-pil { font-style: normal; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); white-space: nowrap; flex: none; }
.rr-reto-t { font-size: 18px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.rr-reto-t.vacio { color: var(--muted2, var(--muted)); font-weight: 400; }
.rr-reto-p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.rr-reto-pie { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.rr-reto-pie span { display: inline-flex; align-items: center; gap: 6px; }
.rr-reto-pie .trazo { width: 16px; height: 16px; }

/* Botones */
.rr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 18px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: center; }
.rr-btn.sec { background: var(--field); color: var(--ink); }
.rr-btn:disabled { opacity: .6; cursor: default; }
.rr-btn + .rr-btn { margin-top: 10px; }
.rr-btn[hidden] { display: none; }
.rr-link { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rr-acciones { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.rr-acciones .rr-btn { margin-top: 0; }

/* Errores en palabras simples */
.rr-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--danger-bg, rgba(201,68,46,.12)); color: var(--ink); font-size: 14px; line-height: 1.45; }
.rr-error[hidden] { display: none; }
.rr-error a { color: var(--ink); font-weight: 500; }

/* Mapa */
.rr-mapa.mu { height: 280px; }

/* Entrar y Listo */
.rr-entrar, .rr-listo { align-items: stretch; text-align: center; }
.rr-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--field); }
.rr-ico .trazo { width: 26px; height: 26px; }
.rr-ico.ok { background: color-mix(in srgb, var(--acc) 14%, var(--surf)); color: var(--acc); }
.rr-listo #rr-listo-vista { text-align: left; margin-top: 4px; }
.rr-listo .rr-ayuda-p { margin-bottom: 12px; }

/* Lo que falta del negocio */
.rr-h { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 2px 6px; }
#rr-paso-listo > .rr-ayuda-p { margin: 0 2px 10px; }
.rr-lista { display: grid; gap: 8px; }
.rr-fila { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm, 18px); background: var(--surf); box-shadow: var(--csh); color: var(--ink); text-decoration: none; }
.rr-fila > .trazo { width: 18px; height: 18px; color: var(--muted); }
.rr-fila-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--field); display: grid; place-items: center; flex: none; }
.rr-fila-ico .trazo { width: 20px; height: 20px; }
.rr-fila-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rr-fila-tx b { font-size: 15px; font-weight: 500; }
.rr-fila-tx small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.rr-pie { margin-top: 8px; }

@media (min-width: 720px) {
  .rr { padding-top: 40px; }
  .rr-tarjeta-form { padding: 28px 28px; }
  .rr-cab h1 { font-size: 38px; }
}
