/* ── VARIABLES ── */
:root {
  --verde:  #28a745;
  --gris:   #6b7280;
  --rojo:   #dc2626;
  --borde:  #e2e8f0;
  --fondo:  #f5f5f4;
  --texto:  #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--fondo);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ══════════════════════════════
   PANEL IZQUIERDO (igual en todos)
══════════════════════════════ */
.brand-panel {
  width: 45%;
  background: var(--verde);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 48px;
  overflow: hidden;
  position: relative;
}

/* círculo decorativo sutil */
.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}


.icon-wrap img {
  width: 170px;
  margin-bottom: 20px;
}
.brand-copy { z-index: 1; }
.brand-copy h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.brand-copy h1 span { opacity: 0.55; }
.brand-copy p {
  color: rgba(255, 255, 255, 0.829);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 320px;
}

.brand-stats {
  display: flex;
  gap: 28px;
  z-index: 1;
}
.brand-stats .stat .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.brand-stats .stat .lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ══════════════════════════════
   PANEL DERECHO
══════════════════════════════ */
.form-panel {
  width: 55%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
}

.form-box {
  width: 100%;
  max-width: 420px;
  
}

/* eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verde);
  margin-bottom: 8px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--verde);
  display: block;
}

.form-box h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.form-box .sub {
  font-size: 0.88rem;
  color: var(--gris);
  margin-bottom: 32px;
}
.form-box .sub a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 500;
}
.form-box .sub a:hover { text-decoration: underline; }

/* ── Social ── */
.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--texto);
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-social:hover { border-color: var(--verde); color: var(--verde); }

/* ── Divisor ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--borde);
}
.divider span {
  font-size: 0.75rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Separador de secciones ── */
.section-sep {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  border-bottom: 1px solid var(--borde);
  padding-bottom: 6px;
  margin: 20px 0 16px;
}

/* ── Campos ── */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto);
  margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap i.ico {
  position: absolute;
  left: 13px;
  top: 50%; transform: translateY(-50%);
  color: var(--gris);
  font-size: 0.85rem;
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  color: var(--texto);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.input-wrap input::placeholder { color: #bcc1c8; }
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}
.input-wrap .toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--gris);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.input-wrap .toggle-pw:hover { color: var(--verde); }

/* select arrow */
.input-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* error */
.field.error .input-wrap input,
.field.error .input-wrap select { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(220,38,38,0.07); }
.err-msg {
  font-size: 0.75rem;
  color: var(--rojo);
  margin-top: 4px;
  display: none;
}
.field.error .err-msg { display: block; }

/* ── Fuerza de contraseña ── */
.pw-bars { display: flex; gap: 4px; margin-top: 8px; }
.pw-bar {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: var(--borde);
  transition: background 0.25s;
}
.pw-bar.on-weak   { background: var(--rojo); }
.pw-bar.on-ok     { background: #f59e0b; }
.pw-bar.on-strong { background: var(--verde); }
.pw-hint {
  font-size: 0.74rem;
  color: var(--gris);
  margin-top: 4px;
}

/* ── Extras (recordar / olvidé) ── */
.extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.check-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.84rem; color: var(--gris); cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--verde); cursor: pointer;
}
.link-verde {
  font-size: 0.84rem;
  color: var(--verde);
  text-decoration: none;
  font-weight: 500;
}
.link-verde:hover { text-decoration: underline; }

/* ── Términos ── */
.terms-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 20px;
}
.terms-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--verde);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.terms-row span {
  font-size: 0.83rem;
  color: var(--gris); line-height: 1.5;
}
.terms-row span a { color: var(--verde); text-decoration: none; font-weight: 500; }
.terms-row span a:hover { text-decoration: underline; }
.terms-err { font-size: 0.75rem; color: var(--rojo); margin-bottom: 14px; display: none; }
.terms-err.show { display: block; }

/* ── Botón principal ── */
.btn-main {
  width: 100%;
  padding: 13px;
  background: var(--verde);
  color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0;
}
.btn-main:hover { background: #235c41; transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); }

/* ── Inputs OTP ── */
.otp-row {
  display: flex; gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.otp-row input {
  width: 52px; height: 56px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--texto);
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.otp-row input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}
.otp-row input.filled { border-color: var(--verde); }
.otp-error .otp-row input { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(220,38,38,0.07); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .brand-panel { width: 100%; padding: 36px 28px; min-height: 200px; }
  .brand-copy h1 { font-size: 1.9rem; }
  .brand-stats { display: none; }
  .form-panel { width: 100%; padding: 36px 22px; }
}
