/* Páginas de formulario (registro, cuenta). Marca: .claude/skills/rameapp-landing/references/brand.md */
:root {
  --brand: #76b326;
  --brand-bright: #9be04a;
  --ink: #0d0d0d;
  --card: #151515;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #a6a6a6;
  --danger: #ff6b6b;
  --ok: #9be04a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(800px 480px at 50% -10%, rgba(118, 179, 38, 0.16), transparent 70%),
    var(--ink);
  line-height: 1.5;
  display: grid;
  place-items: start center;
  padding: 16px;
}
a { color: var(--brand-bright); }

.wrap { width: 100%; max-width: 460px; padding: clamp(16px, 6vh, 64px) 0 40px; display: grid; gap: 20px; }
.word { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-align: center; }
.word b { color: var(--brand); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 32px);
  display: grid;
  gap: 16px;
  animation: rise 520ms var(--ease) both;
}
.card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.card .sub { color: var(--muted); font-size: 15px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px: iPhone no hace zoom al tocar el campo */
  transition: border-color 160ms ease;
}
.field input:focus { outline: none; border-color: var(--brand); }
.field .hint { font-size: 12.5px; color: var(--muted); }

.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: none;
}
.pw.has-value button { display: grid; place-items: center; }
.pw button:hover { color: var(--text); }

.checks { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.checks .ok { color: var(--ok); }
.match { font-size: 13px; font-weight: 700; }
.match.bad { color: var(--danger); }
.match.good { color: var(--ok); }

.code {
  font-size: 28px !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 800 !important;
}

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 160ms ease, opacity 160ms ease;
}
.btn[hidden] { display: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #0a0f05; }
.btn--primary:not(:disabled):hover { background: var(--brand-bright); }
.btn--danger { background: #3a1414; color: #ffb4b4; border: 1px solid rgba(255, 107, 107, 0.45); }
.btn--danger:not(:disabled):hover { background: #4a1818; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.link { background: none; border: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link:disabled { text-decoration: none; cursor: default; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.alert--error { background: rgba(255, 107, 107, 0.12); color: #ffb3b3; }
.alert--ok { background: rgba(118, 179, 38, 0.14); color: var(--brand-bright); }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-app { display: grid; gap: 10px; }
.open-app[hidden] { display: none; }
.store {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
}
.store strong { font-size: 15px; color: var(--text); }

.foot { text-align: center; font-size: 13px; color: var(--muted); display: flex; gap: 16px; justify-content: center; }
.foot a { color: var(--muted); }

/* Mi cuenta */
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row span:first-child { color: var(--muted); }
.row span:last-child { text-align: right; font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); }
.badge--pro { background: rgba(118, 179, 38, 0.2); color: var(--brand-bright); }
.plan { display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid rgba(155, 224, 74, 0.45); background: rgba(118, 179, 38, 0.1); }
.plan h2 { font-size: 20px; font-weight: 800; }
.plan ul { padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.plan li::marker { color: var(--brand-bright); }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }

[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } .btn { transition: none; } }

/* Páginas legales (privacidad, términos): texto largo, más ancho y legible. */
.wrap--doc { max-width: 720px; }
.legal { gap: 0; }
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.legal h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 8px; }
.legal p, .legal li { color: #d6d6d6; font-size: 15px; line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal .box { background: #0f0f0f; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 4px; }

/* Login único (login/) */
.word__tag { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.other { font-size: 13px; text-align: center; }
.stack { display: grid; gap: 16px; }
.stack[hidden] { display: none; }
.link--center { justify-self: center; font-size: 13.5px; }
.turnstile[hidden] { display: none; }

/* Mi cuenta (cuenta/): info a la izquierda, Pro a la derecha; en el celular se apila. */
.wrap--wide { max-width: 980px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head .word { text-align: left; }
.btn--sm { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--sm[hidden] { display: none; }
.account-grid { display: grid; gap: 20px; align-items: start; }
.account-grid[hidden] { display: none; }
.account-alerts { display: grid; gap: 10px; }
.account-alerts:not(:has(.alert:not([hidden]))) { display: none; }
.col { display: grid; gap: 20px; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.plan[hidden] { display: none; }
/* Celular: una sola columna con la zona de peligro al final (después de Pro). */
@media (max-width: 859px) {
  .account-grid .col { display: contents; }
  .account-grid .danger { order: 10; }
}
@media (min-width: 860px) {
  .account-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .account-alerts { grid-column: 1 / -1; }
}

/* Zona de peligro: vidrio rojo, separada de lo demás. */
.danger {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 24px);
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: linear-gradient(160deg, rgba(255, 90, 90, 0.14), rgba(120, 20, 20, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.danger h2 { font-size: 17px; font-weight: 800; color: #ffb4b4; margin-bottom: 4px; }
.danger .btn--danger { justify-self: start; width: auto; }
.danger .btn--danger[hidden] { display: none; }
.danger__form { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 107, 107, 0.25); }
.danger__form[hidden] { display: none; }
.danger__form .btn--danger { width: 100%; }

/* Listas (registro: tipo de negocio y país) */
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field select:focus { outline: none; border-color: var(--brand); }
.hint--bad { color: var(--danger) !important; }
