:root {
  --green-950: #002d23;
  --green-900: #014b3a;
  --green-700: #087258;
  --mint: #b2d4a6;
  --ivory: #f5f7f3;
  --white: #ffffff;
  --ink: #14352d;
  --muted: #60736c;
  --line: #d8e2dc;
  --danger: #a63e3e;
  --success: #236b4e;
  --shadow: 0 28px 70px rgba(1, 75, 58, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ivory); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 10% 12%, rgba(178,212,166,.35), transparent 28%), var(--ivory); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }

.registration-body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }

.registration-header { display: flex; justify-content: space-between; align-items: center; width: min(1180px, calc(100% - 48px)); min-height: 92px; margin: 0 auto; }
.registration-header img { display: block; width: 145px; height: auto; }
.login-link { color: var(--green-900); font-size: .92rem; font-weight: 750; text-decoration: none; }
.login-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.registration-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1180px, calc(100% - 48px)); height: 100%; min-height: 0; margin: 0 auto; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.registration-aside { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; padding: clamp(38px, 5vh, 70px) clamp(44px, 6vw, 78px); overflow: hidden; color: var(--white); background: linear-gradient(145deg, var(--green-950), var(--green-900) 62%, #087258); }
.registration-aside::after { position: absolute; right: -80px; bottom: -100px; width: 320px; height: 320px; background: rgba(178,212,166,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.eyebrow { margin: 0 0 14px; color: var(--green-700); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.registration-aside .eyebrow { color: var(--mint); }
.registration-aside h1 { max-width: 560px; margin: 0 0 22px; font-size: clamp(2.35rem, 4vw, 4.15rem); line-height: 1.02; letter-spacing: -.055em; }
.aside-lead { max-width: 560px; margin: 0; color: rgba(255,255,255,.74); font-size: 1.03rem; line-height: 1.7; }
.benefit-list { position: relative; z-index: 1; display: grid; gap: 0; margin: 42px 0 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.benefit-list li > span { color: var(--mint); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { margin-bottom: 5px; font-size: .96rem; }
.benefit-list small { color: rgba(255,255,255,.62); font-size: .8rem; line-height: 1.5; }

.registration-card { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: clamp(32px, 5vh, 68px) clamp(38px, 6vw, 78px); overflow: auto; }
.progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; max-width: 440px; margin-bottom: 42px; }
.progress-item { display: grid; justify-items: center; gap: 7px; color: #8b9994; }
.progress-item span { display: grid; place-items: center; width: 34px; height: 34px; background: #eef2ef; border: 1px solid var(--line); border-radius: 50%; font-size: .75rem; font-weight: 850; }
.progress-item small { font-size: .68rem; font-weight: 700; }
.progress-item.active { color: var(--green-900); }
.progress-item.active span { color: var(--white); background: var(--green-900); border-color: var(--green-900); }
.progress-line { height: 1px; margin-top: 17px; background: var(--line); }
.progress-line.active { background: var(--green-900); }

.notice { margin: 0 0 28px; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.notice-success { color: var(--success); background: #edf7f1; border-color: #b9dcc7; }
.notice-error { color: var(--danger); background: #fff2f0; border-color: #efc3bd; }
.notice-info { color: var(--green-900); background: #eef6f2; border-color: #c7ded4; }
.form-heading { margin-bottom: 28px; }
.form-heading h2 { margin: 0 0 10px; color: var(--green-950); font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.form-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.validated-email { display: inline-flex; gap: 9px; align-items: center; padding: 8px 12px; color: var(--green-900) !important; background: #edf6e9; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.validated-email span { display: grid; place-items: center; width: 20px; height: 20px; color: var(--white); background: var(--green-700); border-radius: 50%; font-size: .7rem; }

form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--ink); font-size: .79rem; font-weight: 750; }
.field input { width: 100%; min-height: 51px; padding: 0 15px; color: var(--ink); background: #fbfcfa; border: 1px solid #cfdad4; border-radius: 11px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input:focus { background: var(--white); border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(8,114,88,.11); }
.field input::placeholder { color: #9ca9a4; }
.password-hint { margin: -7px 0 0; color: var(--muted); font-size: .73rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green-900); }
.consent a { color: var(--green-700); font-weight: 750; }
.primary-button { width: 100%; min-height: 54px; padding: 0 24px; color: var(--white); background: var(--green-900); border: 0; border-radius: 12px; box-shadow: 0 14px 30px rgba(1,75,58,.18); cursor: pointer; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { background: var(--green-700); transform: translateY(-1px); }
.primary-button:focus-visible, .secondary-link:focus-visible, .login-link:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.secondary-link { justify-self: center; color: var(--green-700); font-size: .78rem; font-weight: 750; text-decoration: none; }
.secondary-link:hover { text-decoration: underline; }
.form-note { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; text-align: center; }
.registration-footer { padding: 12px 20px; color: #73827c; font-size: .72rem; line-height: 1.35; text-align: center; }

/* Recorrido inicial */
.onboarding-body { display: grid; height: 100vh; height: 100svh; min-height: 0; padding: clamp(14px, 3vh, 28px); overflow: hidden; place-items: center; }
.onboarding-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(980px, 100%); height: 100%; min-height: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.onboarding-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.onboarding-top img { display: block; width: 125px; height: auto; }
.onboarding-counter { color: var(--muted); font-size: .76rem; font-weight: 700; }
.onboarding-content { display: grid; min-height: 0; padding: clamp(28px, 6vh, 64px) clamp(32px, 7vw, 76px); overflow: auto; }
.onboarding-step { display: none; animation: step-in .28s ease both; }
.onboarding-step.active { display: grid; grid-template-columns: 72px 1fr; gap: 30px; align-items: center; align-self: center; width: 100%; }
.step-number { display: grid; place-items: center; width: 72px; height: 72px; color: var(--green-900); background: #eaf4e6; border-radius: 22px; font-size: 1.25rem; font-weight: 900; }
.onboarding-step h1, .onboarding-step h2 { max-width: 720px; margin: 0 0 16px; color: var(--green-950); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
.onboarding-step p { max-width: 690px; margin: 0 0 25px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.onboarding-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.onboarding-points li { position: relative; padding-left: 27px; color: var(--ink); line-height: 1.55; }
.onboarding-points li::before { position: absolute; top: 0; left: 0; color: var(--green-700); content: "✓"; font-weight: 900; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 14px; padding: 22px 28px; background: #f8faf7; border-top: 1px solid var(--line); }
.onboarding-button { min-width: 150px; min-height: 48px; padding: 0 20px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.onboarding-button.secondary { color: var(--green-900); background: transparent; border: 1px solid #b9cec4; }
.onboarding-button.primary { color: var(--white); background: var(--green-900); border: 1px solid var(--green-900); }
.onboarding-button[hidden] { display: none; }
.onboarding-finish { display: none; align-items: center; min-height: 48px; padding: 0 22px; color: var(--white); background: var(--green-900); border-radius: 10px; font-weight: 800; text-decoration: none; }
.onboarding-finish.visible { display: inline-flex; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-height: 760px) and (min-width: 561px) {
  .registration-header { min-height: 72px; }
  .registration-header img { width: 125px; }
  .registration-aside { padding: 28px 44px; }
  .registration-aside h1 { margin-bottom: 14px; font-size: clamp(2.25rem, 7vh, 3.2rem); }
  .aside-lead { font-size: .9rem; line-height: 1.5; }
  .benefit-list { margin-top: 20px; }
  .benefit-list li { padding: 10px 0; }
  .registration-card { padding: 28px 44px; }
  .progress { margin-bottom: 25px; }
  .notice { margin-bottom: 18px; padding: 11px 14px; }
  .form-heading { margin-bottom: 20px; }
  .form-heading h2 { font-size: 2.15rem; }
  form { gap: 13px; }
  .field input { min-height: 46px; }
  .primary-button { min-height: 48px; }
  .registration-footer { padding: 7px 16px; }
  .onboarding-body { padding: 12px; }
  .onboarding-top { padding: 14px 24px; }
  .onboarding-top img { width: 108px; }
  .onboarding-content { padding: 22px 36px; }
  .onboarding-step h1, .onboarding-step h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 5vh, 2.65rem); }
  .onboarding-step p { margin-bottom: 16px; font-size: .92rem; line-height: 1.55; }
  .onboarding-points { gap: 8px; }
  .onboarding-points li { font-size: .9rem; line-height: 1.4; }
  .onboarding-actions { padding: 14px 24px; }
  .onboarding-button, .onboarding-finish { min-height: 44px; }
}

@media (max-width: 880px) {
  .registration-main { grid-template-columns: 1fr; overflow-y: auto; }
  .registration-aside { padding: 45px; overflow: hidden; }
  .registration-aside h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .benefit-list { margin-top: 28px; }
  .registration-card { padding: 45px; overflow: visible; }
}

@media (max-width: 560px) {
  .registration-header { width: calc(100% - 32px); min-height: 78px; }
  .registration-header img { width: 118px; }
  .login-link { font-size: .78rem; }
  .registration-body { grid-template-rows: auto minmax(0, 1fr); }
  .registration-main { width: 100%; height: 100%; min-height: 0; overflow-y: auto; border-right: 0; border-left: 0; border-radius: 0; }
  .registration-aside { padding: 38px 24px; }
  .registration-aside h1 { font-size: 2.45rem; }
  .aside-lead { font-size: .94rem; }
  .registration-card { padding: 38px 22px; }
  .progress { margin-bottom: 34px; }
  .progress-item small { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .registration-footer { display: none; }
  .onboarding-body { height: 100vh; height: 100svh; padding: 0; }
  .onboarding-shell { height: 100%; min-height: 0; border: 0; border-radius: 0; }
  .onboarding-content { min-height: 0; padding: 30px 24px; }
  .onboarding-step.active { grid-template-columns: 1fr; gap: 22px; }
  .step-number { width: 56px; height: 56px; border-radius: 17px; }
  .onboarding-actions { padding: 18px; }
  .onboarding-button { min-width: 0; }
}

