/* Variables now provided by css/tokens.css */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;
  background:var(--bg);color:var(--text);font-size:var(--orto-font-13);
  line-height:1.5;min-height:100vh;display:flex;flex-direction:column;
}

/* ── TOPBAR ── */
/* ── HEADER ── */

/* ── MAIN CARD ── */
.fp-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:34px 13px}
.fp-card{background:var(--orto-superficie);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);padding:55px 34px;max-width:440px;width:100%;text-align:center;animation:slideUp .5s ease}
@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

.fp-icon{width:72px;height:72px;border-radius:50%;background:var(--teal-light);display:flex;align-items:center;justify-content:center;margin:0 auto 21px}
.fp-icon svg{width:32px;height:32px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.fp-card h1{font-size:var(--orto-font-21);font-weight:800;color:var(--orto-text);margin-bottom:8px}
.fp-card p{font-size:var(--orto-font-13);color:var(--muted);margin-bottom:34px;line-height:1.6}

.fg{text-align:left;margin-bottom:13px}
.fg label{display:block;font-size:var(--orto-font-13);font-weight:700;color:var(--sub);margin-bottom:5px;letter-spacing:.3px}
.fg input{width:100%;padding:13px 13px;border:2px solid var(--border2);border-radius:var(--radius-md);font-size:var(--orto-font-13);font-family:inherit;color:var(--text);background:var(--bg);outline:none;transition:all .2s}
.fg input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,137,123,.1);background:var(--orto-superficie)}

.btn-primary{width:100%;padding:13px;background:linear-gradient(135deg,var(--teal),var(--teal2));color:var(--white);font-size:var(--orto-font-16);font-weight:700;border:none;border-radius:var(--radius-md);cursor:pointer;font-family:inherit;letter-spacing:-.2px;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,137,123,.3)}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn-primary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.back-link{display:inline-flex;align-items:center;gap:5px;margin-top:21px;font-size:var(--orto-font-13);font-weight:600;color:var(--orto-teal-texto);text-decoration:none;transition:color .2s}
.back-link:hover{color:var(--orto-teal-texto)}
.back-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Steps */
.fp-step{display:none}
.fp-step.active{display:block;animation:slideUp .4s ease}

/* Code inputs */
.code-row{display:flex;gap:8px;justify-content:center;margin-bottom:21px}
.code-row input{width:48px;height:56px;text-align:center;font-size:var(--orto-font-26);font-weight:800;border:2px solid var(--border2);border-radius:var(--radius-md);background:var(--bg);color:var(--orto-text);outline:none;font-family:inherit;transition:all .2s}
.code-row input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,137,123,.1);background:var(--orto-superficie)}

.resend-row{font-size:var(--orto-font-13);color:var(--muted);margin-bottom:21px}
.resend-row a{color:var(--orto-teal-texto);font-weight:700;text-decoration:none;cursor:pointer}

/* Success / Error */
.fp-alert{padding:13px 13px;border-radius:var(--radius-md);font-size:var(--orto-font-13);font-weight:600;margin-bottom:13px;display:none;align-items:center;gap:8px}
.fp-alert.success{background:var(--orto-green-light);color:var(--orto-green-deep);border:1px solid var(--orto-green-borde);display:flex}
.fp-alert.error{background:var(--red-light);color:var(--orto-red-texto);border:1px solid var(--orto-red-borde);display:flex}
.fp-alert svg{width:18px;height:18px;flex-shrink:0}

/* Password strength */
.pw-strength{height:4px;border-radius:2px;background:var(--border);margin-top:8px;overflow:hidden}
.pw-strength-bar{height:100%;border-radius:2px;width:0;transition:all .3s}

/* Show/hide password */
.pw-wrap{position:relative}
.pw-wrap input{padding-right:34px}
.pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--muted);padding:5px}
.pw-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:480px){
  .fp-card{padding:34px 21px;border-radius:var(--radius-lg)}
  .fp-card h1{font-size:var(--orto-font-21)}
  .code-row input{width:42px;height:50px;font-size:var(--orto-font-21)}
}

/* ══ Antes en el HTML (style=""): ahora aquí, con los mismos valores ══ */
.fp-icon--exito{background:var(--orto-green-light)}
.fp-icon--exito svg{stroke:var(--orto-green-deep)}
.fp-enlace{text-decoration:none}

/* Aviso de privacidad junto al botón (revisado por infra/armonia.js) */
.fp-card p.fp-privacidad{margin:13px 0 0;font-size:var(--orto-font-11);color:var(--orto-text)}
.fp-privacidad a{color:var(--orto-teal-texto);font-weight:700}
