/* Registro público de Partner Comercial (prefijo pr-). Usa los tokens de auth.css. */
.pr-body { background: #f5f7fb; }
.pr-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Columna informativa ---------- */
.pr-intro {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
  height: 100vh;
  padding: 36px 34px;
  overflow-y: auto;
  background: radial-gradient(120% 70% at 0% 0%, #1e3a8a 0%, rgba(30, 58, 138, 0) 60%), var(--au-navy);
  color: #cbd5e1;
}
.pr-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.pr-brand img { width: 38px; height: 38px; object-fit: contain; }
.pr-brand strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.pr-brand strong span { color: #60a5fa; }
.pr-brand em { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(96, 165, 250, .16); color: #bfdbfe; font-size: .68rem; font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.pr-kicker { color: #93c5fd; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pr-intro-copy h1 { margin: 10px 0 0; color: #fff; font-size: 1.55rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.pr-intro-copy p { margin: 12px 0 0; color: #94a3b8; font-size: .9rem; line-height: 1.55; }

.pr-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pr-steps li { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.pr-steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; bottom: -6px; left: 15px; width: 2px; background: rgba(148, 163, 184, .25); }
.pr-steps li > span { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(37, 99, 235, .25); color: #bfdbfe; font-size: .85rem; font-weight: 700; }
.pr-steps strong { display: block; color: #f1f5f9; font-size: .9rem; font-weight: 600; }
.pr-steps small { display: block; margin-top: 2px; color: #94a3b8; font-size: .8rem; line-height: 1.45; }

.pr-trust { display: grid; gap: 8px; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid rgba(148, 163, 184, .2); list-style: none; font-size: .8rem; }
.pr-trust li { display: flex; align-items: center; gap: 10px; }
.pr-trust i { width: 16px; color: #34d399; text-align: center; }

/* ---------- Formulario ---------- */
.pr-main { min-width: 0; padding: 32px 40px 28px; }
.pr-main-inner { display: grid; gap: 18px; width: 100%; max-width: 820px; margin: 0 auto; }
.pr-back { display: inline-flex; align-items: center; gap: 8px; width: max-content; color: var(--au-muted); font-size: .82rem; font-weight: 600; text-decoration: none; }
.pr-back:hover { color: var(--au-accent-2); }
.pr-head h2 { margin: 0; color: var(--au-ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.pr-head p { margin: 6px 0 0; color: var(--au-muted); font-size: .88rem; }
.pr-req { color: #d92d20; font-weight: 700; }

.pr-form { display: grid; gap: 16px; margin: 0; }
.pr-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.pr-section { display: grid; gap: 18px; padding: 22px 24px 24px; border: 1px solid var(--au-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.pr-section > header { display: flex; align-items: flex-start; gap: 12px; }
.pr-num { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eff6ff; color: var(--au-accent); font-size: .85rem; font-weight: 700; }
.pr-section h3 { margin: 3px 0 0; color: var(--au-ink); font-size: 1rem; font-weight: 700; }
.pr-section header p { margin: 2px 0 0; color: var(--au-muted); font-size: .82rem; }

.pr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.pr-field { display: grid; grid-column: span 3; align-content: start; gap: 6px; min-width: 0; }
.pr-field.is-wide { grid-column: 1 / -1; }
.pr-field.is-third { grid-column: span 2; }
.pr-field > label { color: var(--au-ink); font-size: .82rem; font-weight: 600; }
.pr-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: var(--au-ink);
  font: inherit;
  font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
select.pr-input { padding-right: 34px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.pr-input::placeholder { color: #98a2b3; }
.pr-input:focus { border-color: #84adff; outline: 0; box-shadow: 0 0 0 4px #d1e0ff; }
.pr-input.is-invalid { border-color: #f97066; }
.pr-input.is-invalid:focus { box-shadow: 0 0 0 4px #fee4e2; }
.pr-input.is-valid { border-color: #75e0a7; }
.pr-help { color: var(--au-muted); font-size: .76rem; }
.pr-error { color: #b42318; font-size: .76rem; font-weight: 500; }
.pr-error:empty { display: none; }

/* Selector de país y prefijo */
.partner-country-picker { position: relative; display: block; }
.partner-country-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: var(--au-ink);
  font: inherit;
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
}
.partner-country-trigger [data-country-label] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-country-trigger i { color: var(--au-muted); font-size: .7rem; }
.partner-country-trigger:focus-visible,
.partner-country-trigger[aria-expanded="true"] { border-color: #84adff; outline: 0; box-shadow: 0 0 0 4px #d1e0ff; }
.partner-country-trigger img,
.partner-country-option img { display: block; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.partner-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: max(100%, 260px);
  padding: 8px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}
.partner-country-menu[hidden] { display: none; }
.partner-country-search { position: relative; }
.partner-country-search i { position: absolute; top: 50%; left: 11px; color: #98a2b3; font-size: .8rem; transform: translateY(-50%); }
.partner-country-search input { width: 100%; height: 38px; padding: 0 10px 0 32px; border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; font-size: .85rem; }
.partner-country-search input:focus { border-color: #84adff; outline: 0; }
.partner-country-options { display: grid; max-height: 240px; overflow-y: auto; }
.partner-country-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--au-ink); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.partner-country-option strong { flex: 1; font-weight: 500; }
.partner-country-option small { color: var(--au-muted); }
.partner-country-option:hover,
.partner-country-option:focus-visible { background: #f1f5f9; outline: 0; }
.partner-country-option[aria-selected="true"] { background: #eff6ff; color: var(--au-accent-2); }
.partner-phone-input { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; }

/* Contraseña */
.pr-pass { position: relative; display: block; }
.pr-pass .pr-input { padding-right: 46px; }
.pr-icon-btn { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--au-muted); cursor: pointer; transform: translateY(-50%); }
.pr-icon-btn:hover { background: #f1f5f9; color: var(--au-ink); }
.pr-icon-btn:focus-visible { outline: 3px solid var(--au-focus); }
.pr-meter { display: flex; align-items: center; gap: 10px; font-size: .76rem; }
.pr-meter-bar { flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: #eaecf0; }
.pr-meter-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #f04438; transition: width .2s, background .2s; }
.pr-meter em { color: var(--au-muted); font-style: normal; font-weight: 500; white-space: nowrap; }
.pr-meter[data-level="2"] .pr-meter-bar i { background: #f79009; }
.pr-meter[data-level="3"] .pr-meter-bar i { background: #12b76a; }
.pr-meter[data-level="3"] em { color: #067647; }
.pr-generate { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 0; border: 0; background: none; color: var(--au-accent); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pr-generate:hover { color: var(--au-accent-2); text-decoration: underline; }

/* Confirmación y envío */
.pr-section.is-final { gap: 14px; }
.pr-consent.is-invalid { border-color: #f97066; }
.pr-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 6px; }
.pr-submit p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--au-muted); font-size: .8rem; }
.pr-submit p i { color: var(--au-accent); }
.pr-submit .au-btn { width: auto; min-width: 220px; }

.pr-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 4px 2px 0; color: #98a2b3; font-size: .76rem; }
.pr-foot a { color: var(--au-accent); font-weight: 600; text-decoration: none; }
.pr-foot a:hover { text-decoration: underline; }

/* ---------- Tableta y celular ---------- */
@media (max-width: 1080px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-intro { position: static; height: auto; gap: 22px; padding: 26px 20px 24px; }
  .pr-intro-copy h1 { font-size: 1.3rem; }
  .pr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pr-steps li { flex-direction: column; gap: 8px; padding: 0; }
  .pr-steps li::after { display: none; }
  .pr-trust { display: none; }
  .pr-main { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .pr-steps { grid-template-columns: minmax(0, 1fr); }
  .pr-steps li { flex-direction: row; }
  .pr-intro-copy p { display: none; }
  .pr-main { padding: 20px 16px 24px; }
  .pr-section { padding: 18px 16px 20px; border-radius: 14px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pr-field,
  .pr-field.is-third { grid-column: 1 / -1; }
  .pr-submit .au-btn { width: 100%; }
  .partner-phone-input { grid-template-columns: 128px minmax(0, 1fr); }
}
