:root {
  --zp-primary: #164b8f;
  --zp-ink: #172033;
  --zp-muted: #667085;
  --zp-bg: #f5f7fb;
  --zp-surface: #ffffff;
  --zp-border: #dfe6ef;
  --zp-radius: 8px;
}

/* Dominios propios */
.custom-domain-head { max-width: 980px; }
.custom-domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.custom-domain-card { margin-bottom: 16px; }
.custom-domain-card h2 { margin: 6px 0 10px; }
.custom-domain-card code { overflow-wrap: anywhere; color: #173f5f; }
.custom-domain-request-form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: end; max-width: 780px; }
.custom-domain-request-form label { display: grid; gap: 6px; font-weight: 700; }
.custom-domain-request-form input { min-height: 44px; }
.custom-domain-dns-table { display: grid; gap: 1px; overflow: hidden; margin: 18px 0; border: 1px solid #ccd8e7; border-radius: 10px; background: #ccd8e7; }
.custom-domain-dns-row { display: grid; grid-template-columns: 100px minmax(200px, 1fr) minmax(220px, 1fr); gap: 14px; align-items: center; padding: 12px; background: #fff; }
.custom-domain-dns-row.is-head { color: #fff; background: #214777; font-weight: 800; }
.custom-domain-notes { display: grid; gap: 8px; padding-left: 22px; }
.custom-domain-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.custom-domain-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: domain-step; }
.custom-domain-flow li { counter-increment: domain-step; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 14px; border: 1px solid #ccd8e7; border-radius: 10px; }
.custom-domain-flow li::before { content: counter(domain-step); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #277c7c; font-weight: 800; }
.custom-domain-flow li span { color: #52647d; }
.admin-custom-domain-head { margin-top: 34px; padding-top: 24px; border-top: 1px solid #ccd8e7; }
.custom-domain-admin-warning { border-color: #d8891d; }
.custom-domain-admin-table td:nth-child(2) { min-width: 230px; }
.custom-domain-kpis { margin-bottom: 18px; }
.custom-domain-list-card { overflow: hidden; }
.custom-domain-table-scroll { overflow-x: auto; }
.custom-domain-admin-table { min-width: 1180px; }
.custom-domain-admin-table td { vertical-align: top; }
.custom-domain-admin-table td:first-child { min-width: 230px; }
.custom-domain-admin-table td:last-child { min-width: 250px; }
.custom-domain-action-cell { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-domain-action-cell form { margin: 0; }
.btn-compact { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.custom-domain-error-summary { display: block; max-width: 260px; margin-top: 6px; color: #9f1d1d; font-size: 12px; line-height: 1.35; }
.custom-domain-danger-actions { flex-basis: 100%; padding: 8px; border: 1px solid #efc1c1; border-radius: 8px; background: #fff8f8; }
.custom-domain-danger-actions summary { color: #8e2020; font-size: 12px; font-weight: 800; cursor: pointer; }
.custom-domain-danger-actions form { display: grid; gap: 6px; margin-top: 10px; }
.custom-domain-danger-actions label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.custom-domain-danger-actions input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #d8a6a6; border-radius: 6px; }
.custom-domain-detail { margin-top: 20px; }
.custom-domain-detail h2 { margin: 6px 0; overflow-wrap: anywhere; }
.custom-domain-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.custom-domain-detail-grid > div { padding: 12px; border: 1px solid #ccd8e7; border-radius: 8px; background: #f8fafc; }
.custom-domain-detail-grid dt { color: #52647d; font-size: 12px; font-weight: 700; }
.custom-domain-detail-grid dd { margin: 5px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.custom-domain-error-box { padding: 14px; border: 1px solid #b8d8c6; border-radius: 9px; background: #f3fbf6; }
.custom-domain-error-box.has-error { border-color: #e8a5a5; background: #fff6f6; }
.custom-domain-error-box p { margin: 5px 0; }
.custom-domain-error-box code { overflow-wrap: anywhere; }
.custom-domain-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.custom-domain-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.custom-domain-history li { display: grid; gap: 3px; padding: 10px; border: 1px solid #dce4ee; border-radius: 8px; }
.custom-domain-history span, .custom-domain-history small { color: #52647d; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .custom-domain-grid, .custom-domain-flow ol { grid-template-columns: 1fr; }
  .custom-domain-request-form { grid-template-columns: 1fr; }
  .custom-domain-dns-row { grid-template-columns: 80px 1fr; }
  .custom-domain-dns-row > :last-child { grid-column: 2; }
  .custom-domain-detail-grid, .custom-domain-history-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--zp-ink);
  background: var(--zp-bg);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.flash-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(92vw, 620px);
  transform: translateX(-50%);
}

.flash {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--zp-radius);
  background: #fff;
  border: 1px solid var(--zp-border);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.flash-success {
  border-color: #9ad5b0;
  color: #11633a;
}

.flash-danger {
  border-color: #f4b4b4;
  color: #9f1d1d;
}

.flash-warning {
  border-color: #f2d38b;
  color: #8a5a00;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--zp-primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--zp-ink);
  border-color: var(--zp-border);
}

.btn-danger {
  background: #fff;
  color: #9f1d1d;
  border-color: #f0b4b4;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #9f1d1d;
  color: #fff;
  border-color: #9f1d1d;
}

.auth-shell,
.panel-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card,
.panel-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  background: var(--zp-surface);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.auth-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zp-ink);
  font-weight: 900;
  text-decoration: none;
}

.auth-card h1,
.panel-card h1 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}

.auth-card p,
.panel-card p {
  color: var(--zp-muted);
  line-height: 1.6;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.stack-form label {
  font-weight: 800;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.auth-foot {
  margin-bottom: 0;
}

.zentro-login-page {
  --login-ink: #0f253a;
  --login-ink-soft: #274860;
  --login-card: rgba(255, 255, 255, 0.84);
  --login-edge: rgba(95, 136, 168, 0.55);
  --login-accent: #0b7a7a;
  --login-accent-strong: #0a6161;
  --login-danger: #c4302b;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--login-ink);
  background-image: url("../img/dash-theme/FONDO_HTML_BIENVENIDO.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.public-shell.zentro-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--login-ink);
  background-image: url("../img/dash-theme/FONDO_HTML_BIENVENIDO.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.public-shell.zentro-register-page {
  place-items: center;
  padding: 28px;
  background-image:
    linear-gradient(110deg, rgba(7, 25, 42, 0.52) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(7, 25, 42, 0.14) 100%),
    url("../img/dash-theme/FONDO_HTML_BIENVENIDO.jpg");
}

.zentro-login-page .login-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin: auto;
}

.zentro-login-page .login-shell.auth-single-shell {
  grid-template-columns: minmax(320px, 540px);
  justify-content: center;
}

.zentro-login-page .brand-panel,
.zentro-login-page .form-panel {
  padding: 26px 24px;
  background: var(--login-card);
  border: 1px solid var(--login-edge);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(12, 31, 49, 0.2);
  backdrop-filter: blur(7px);
}

.zentro-login-page .brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.zentro-login-page .brand-logo {
  width: 72px;
  height: 72px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(127, 163, 188, 0.55);
  border-radius: 12px;
}

.zentro-login-page .brand-copy h1 {
  margin: 0;
  color: var(--login-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.zentro-login-page .brand-tagline {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 6px 11px;
  color: var(--login-accent-strong);
  background: linear-gradient(135deg, rgba(11, 122, 122, 0.14), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(11, 122, 122, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(12, 31, 49, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.zentro-login-page .brand-body h2,
.zentro-login-page .form-panel h2 {
  margin: 0 0 8px;
}

.zentro-login-page .brand-body h2 {
  color: var(--login-ink);
  font-size: 24px;
}

.zentro-login-page .form-panel h2 {
  color: var(--login-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
}

.zentro-login-page .brand-body p,
.zentro-login-page .hint {
  margin: 0;
  color: var(--login-ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.zentro-login-page .hint {
  margin: 6px 0 16px;
  font-size: 15px;
}

.zentro-login-page .brand-bullets {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #12324a;
  font-size: 16px;
}

.zentro-login-page .brand-footer,
.zentro-login-page .support-note {
  color: #35607e;
  font-size: 13px;
  font-weight: 600;
}

.zentro-login-page .brand-footer {
  margin: 22px 0 0;
}

.zentro-login-page label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--login-ink);
  font-size: 15px;
  font-weight: 600;
}

.zentro-login-page input,
.zentro-login-page select,
.zentro-login-page button {
  font: inherit;
  font-size: 16px;
}

.zentro-login-page input,
.zentro-login-page select {
  width: 100%;
  padding: 11px 12px;
  color: var(--login-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(42, 89, 126, 0.34);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(12, 31, 49, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zentro-login-page input:focus,
.zentro-login-page select:focus {
  background: #ffffff;
  border-color: rgba(11, 122, 122, 0.86);
  box-shadow: 0 0 0 4px rgba(11, 122, 122, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: 0;
}

.zentro-login-page button {
  width: 100%;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--login-accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}

.zentro-login-page button:hover,
.zentro-login-page button:focus-visible {
  background: var(--login-accent-strong);
  transform: translateY(-1px);
}

.zentro-login-page .error {
  min-height: 22px;
  margin: 10px 0 4px;
  color: var(--login-danger);
  font-size: 14px;
}

.zentro-login-page .support-note {
  margin: 0;
}

.zentro-login-page .login-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(95, 136, 168, 0.28);
  font-size: 12px;
}

.zentro-login-page .login-legal-links a,
.zentro-login-page .auth-foot a {
  color: var(--login-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.zentro-login-page .login-legal-links a:hover,
.zentro-login-page .auth-foot a:hover {
  text-decoration: underline;
}

.zentro-login-page .auth-foot {
  margin: 14px 0 0;
  color: var(--login-ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.zentro-register-page .register-shell {
  width: min(1260px, calc(100vw - 56px));
  grid-template-columns: minmax(320px, 410px) minmax(620px, 740px);
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.zentro-register-page .register-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 252, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(11, 122, 122, 0.13), transparent 32%);
  box-shadow: 0 24px 58px rgba(12, 31, 49, 0.24);
}

.zentro-register-page .register-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b7a7a, #1d9aaa, #164b8f);
}

.zentro-register-page .register-panel > h2 {
  margin-bottom: 4px;
  font-size: clamp(32px, 3vw, 42px);
}

.zentro-register-page .register-panel > .hint {
  max-width: 58ch;
  margin-bottom: 16px;
  font-size: 14px;
}

.zentro-register-page .register-form {
  gap: 16px;
  margin-top: 14px;
}

.zentro-register-page .brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(9, 31, 50, 0.94), rgba(12, 63, 78, 0.86)),
    radial-gradient(circle at 90% 10%, rgba(83, 219, 211, 0.25), transparent 34%);
  color: #fff;
  box-shadow: 0 24px 58px rgba(12, 31, 49, 0.28);
}

.zentro-register-page .brand-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.zentro-register-page .brand-panel .brand-top,
.zentro-register-page .brand-panel .brand-body,
.zentro-register-page .brand-panel .brand-footer {
  position: relative;
  z-index: 1;
}

.zentro-register-page .brand-panel .brand-logo {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.zentro-register-page .brand-panel .brand-copy h1,
.zentro-register-page .brand-panel .brand-body h2 {
  color: #fff;
}

.zentro-register-page .brand-panel .brand-tagline {
  color: #dff8f4;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.zentro-register-page .brand-panel .brand-body p,
.zentro-register-page .brand-panel .brand-bullets,
.zentro-register-page .brand-panel .brand-footer {
  color: rgba(255, 255, 255, 0.78);
}

.zentro-register-page .brand-bullets {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.zentro-register-page .brand-bullets li {
  position: relative;
  padding: 12px 12px 12px 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}

.zentro-register-page .brand-bullets li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #54d8cf;
  box-shadow: 0 0 0 5px rgba(84, 216, 207, 0.13);
}

.zentro-register-page .brand-footer {
  margin-top: auto;
  padding-top: 24px;
}

.zentro-register-page .register-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zentro-register-page .register-trust-row article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(95, 136, 168, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 253, 0.72));
  box-shadow: 0 10px 24px rgba(12, 31, 49, 0.06);
}

.zentro-register-page .register-trust-row span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #0b7a7a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.zentro-register-page .register-trust-row strong,
.zentro-register-page .register-trust-row small {
  display: block;
}

.zentro-register-page .register-trust-row strong {
  color: #0f253a;
  font-size: 13px;
}

.zentro-register-page .register-trust-row small {
  margin-top: 4px;
  color: #49667c;
  font-size: 11px;
  line-height: 1.35;
}

.zentro-register-page .register-section {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 253, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(11, 122, 122, 0.08), transparent 34%);
  border: 1px solid rgba(95, 136, 168, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(12, 31, 49, 0.08);
}

.zentro-register-page .register-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.zentro-register-page .register-section-heading > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--login-accent), var(--login-accent-strong));
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(11, 122, 122, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.zentro-register-page .register-section-heading h3 {
  margin: 0;
  color: var(--login-ink);
  font-size: 19px;
  line-height: 1.2;
}

.zentro-register-page .register-section-heading p {
  margin: 3px 0 0;
  color: var(--login-ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.zentro-register-page .register-field-list {
  display: grid;
  gap: 9px;
}

.zentro-register-page .field-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(95, 136, 168, 0.22);
  border-radius: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zentro-register-page .field-row:focus-within {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 122, 122, 0.46);
  box-shadow: 0 0 0 4px rgba(11, 122, 122, 0.08);
}

.zentro-register-page .field-label {
  color: var(--login-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.zentro-register-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zentro-register-page .form-grid:first-of-type {
  grid-template-columns: 1.18fr 1fr 1fr;
}

.zentro-register-page .password-input-wrap,
.zentro-register-page .phone-input-wrap,
.zentro-register-page .subdomain-row {
  display: grid;
  grid-template-columns: minmax(140px, 50%) auto auto;
  align-items: stretch;
}

.zentro-register-page .subdomain-row {
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, .62fr);
}

.zentro-register-page .phone-input-wrap {
  grid-template-columns: auto minmax(0, 1fr);
}

.zentro-register-page .international-phone {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.zentro-register-page .international-phone .phone-input-wrap {
  display: block;
}

.zentro-register-page .country-picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 104px;
  padding: 0 11px;
  color: #fff;
  background: var(--login-accent);
  border: 2px solid var(--login-accent);
  border-radius: 10px 0 0 10px;
  box-shadow: none;
}

.zentro-register-page .country-picker-toggle:hover,
.zentro-register-page .country-picker-toggle:focus-visible {
  background: var(--login-accent-strong);
  transform: none;
}

.zentro-register-page .country-picker-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #a9bed1;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16, 37, 63, .2);
}

.zentro-register-page .country-picker-panel[hidden],
.zentro-register-page .country-picker-results [hidden],
.zentro-register-page .country-custom-prefix[hidden],
.zentro-register-page [data-country-empty][hidden] {
  display: none;
}

.zentro-register-page .country-picker-panel > input {
  min-height: 40px;
}

.zentro-register-page .country-picker-results {
  display: grid;
  max-height: 245px;
  overflow-y: auto;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
}

.zentro-register-page .country-picker-results button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  color: #10253f;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e7eef5;
  border-radius: 0;
  box-shadow: none;
}

.zentro-register-page .country-picker-results button:hover,
.zentro-register-page .country-picker-results button[aria-selected="true"] {
  color: #10253f;
  background: #e8f7f5;
  transform: none;
}

.zentro-register-page .country-custom-prefix {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 8px;
  color: #10253f;
  font-weight: 800;
}

.zentro-register-page .password-input-wrap input {
  border-radius: 10px 0 0 10px;
}

.zentro-register-page .phone-input-wrap > span {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #ffffff;
  background: var(--login-accent);
  border: 2px solid var(--login-accent);
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  font-weight: 900;
}

.zentro-register-page .phone-input-wrap input {
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.zentro-register-page .password-toggle {
  width: auto;
  min-width: 82px;
  padding: 0 12px;
  color: var(--login-accent-strong);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(42, 89, 126, 0.34);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
}

.zentro-register-page .password-toggle:hover,
.zentro-register-page .password-toggle:focus-visible {
  color: #ffffff;
  background: var(--login-accent);
  transform: none;
}

.zentro-register-page .password-rules,
.zentro-register-page .subdomain-preview {
  margin: 10px 0 0;
  color: #35607e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.zentro-register-page .subdomain-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  padding: 11px 13px;
  border: 1px solid rgba(11, 122, 122, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 122, 122, .08), rgba(255, 255, 255, .74));
}

.zentro-register-page .subdomain-preview strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(11, 122, 122, .42);
  border-radius: 9px;
  color: #075b5d;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(11, 71, 91, .1);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.zentro-register-page .register-product-choice {
  display: grid;
  gap: 7px;
}

.zentro-register-page .register-product-label {
  display: block;
  margin: 0;
}

.zentro-register-page .register-product-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr);
  align-items: stretch;
  gap: 12px;
}

.zentro-register-page .register-product-control-row select,
.zentro-register-page .register-preview-button {
  min-height: 46px;
}

.zentro-register-page .register-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #102a43, #164b8f);
  border: 2px solid rgba(16, 42, 67, 0.92);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.zentro-register-page .register-preview-button:not(.is-disabled):hover,
.zentro-register-page .register-preview-button:not(.is-disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 42, 67, 0.26);
}

.zentro-register-page .register-preview-button.is-disabled {
  opacity: .52;
  cursor: not-allowed;
  filter: grayscale(.3);
  box-shadow: none;
}

.zentro-register-page .product-info {
  position: relative;
  margin-top: 12px;
  padding: 17px 17px 17px 18px;
  color: var(--login-ink-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(225, 247, 247, 0.86)),
    radial-gradient(circle at 92% 20%, rgba(219, 134, 28, 0.12), transparent 34%);
  border: 1px solid rgba(11, 122, 122, 0.34);
  border-left: 6px solid #0b7a7a;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(11, 122, 122, 0.09);
}

.zentro-register-page .product-info span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 9px;
  color: #0b5e63;
  background: rgba(11, 122, 122, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.zentro-register-page .product-info strong {
  display: block;
  color: var(--login-ink);
  font-size: 16px;
}

.zentro-register-page .product-info p {
  margin: 5px 0 0;
  color: var(--login-ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.zentro-register-page .confirmation-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(11, 122, 122, 0.11), rgba(255, 255, 255, 0.64));
  border: 1px solid rgba(11, 122, 122, 0.32);
  border-radius: 14px;
  line-height: 1.4;
}

.zentro-register-page .confirmation-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--login-accent);
}

@media (max-width: 720px) {
  .zentro-register-page .register-product-control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-locale-switcher {
    gap: 4px;
    padding: 4px 6px;
  }

  .topbar-locale-switcher .locale-btn {
    width: 32px;
    height: 32px;
  }

  .topbar-locale-switcher .flag-icon {
    width: 18px;
    height: 18px;
  }
}

/* Fase 5: Tarjeta Digital y Menú QR */
.simple-setup-page,
.simple-workspace-page {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.simple-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.simple-page-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.simple-page-heading p {
  max-width: 760px;
  margin: 0;
  color: #bdd0e3;
  line-height: 1.6;
}

.simple-stage-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.simple-stage-nav a,
.simple-stage-nav > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(190, 209, 227, 0.52);
  border-radius: 13px;
  color: #d5e3f1;
  background: rgba(9, 30, 52, 0.44);
  text-decoration: none;
}

.simple-stage-nav small {
  color: #9fb4ca;
  font-size: 0.72rem;
}

.simple-stage-nav .is-active {
  border-color: #65d9ca;
  color: #ffffff;
  background: #146c70;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.simple-stage-nav .is-active small {
  color: #d7fffa;
}

.simple-stage-nav .is-complete:not(.is-active) {
  border-color: rgba(90, 210, 166, 0.7);
  background: rgba(13, 101, 78, 0.36);
}

.simple-setup-layout,
.simple-workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 22px;
  align-items: start;
}

.simple-product-form {
  display: grid;
  gap: 18px;
}

.simple-workspace-main {
  min-width: 0;
}

.simple-model-grid,
.simple-theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  gap: 11px;
}

.simple-choice-heading {
  display: grid;
  gap: 3px;
}

.simple-choice-heading h3,
.simple-choice-heading p {
  margin: 0;
}

.simple-choice-heading p {
  color: #667a90;
  font-size: 0.8rem;
}

.simple-model-option,
.simple-theme-option {
  position: relative;
  align-content: start;
  min-width: 0;
  padding: 13px;
  border: 2px solid #d7e1eb;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.simple-model-option:has(input:checked),
.simple-theme-option:has(input:checked) {
  border-color: #137d78;
  background: #e8f8f5;
  box-shadow: 0 0 0 3px rgba(19, 125, 120, 0.13);
}

.simple-model-option input,
.simple-theme-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: #137d78;
}

.simple-model-option strong,
.simple-theme-option strong {
  line-height: 1.35;
}

.simple-model-option small {
  color: #64778b;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

.simple-theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 35px;
  overflow: hidden;
  border: 1px solid rgba(18, 42, 71, 0.16);
  border-radius: 9px;
}

.simple-theme-swatches i {
  background: var(--swatch);
}

.simple-form-card,
.simple-plan-summary,
.simple-publish-panel {
  border: 1px solid #c8d5e3;
  border-radius: 18px;
  color: #0b1c33;
  background: #fff;
  box-shadow: 0 18px 46px rgba(3, 18, 37, 0.14);
}

.simple-form-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.simple-form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dbe4ed;
}

.simple-form-card-head > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #153b69;
  font-weight: 900;
}

.simple-form-card-head h2,
.simple-item-images-head h3 {
  margin: 0 0 4px;
}

.simple-form-card-head p,
.simple-item-images-head p {
  margin: 0;
  color: #5d7187;
  font-size: 0.85rem;
  line-height: 1.5;
}

.simple-product-form label {
  display: grid;
  gap: 7px;
  color: #132a47;
  font-size: 0.82rem;
  font-weight: 850;
}

.simple-product-form input,
.simple-product-form textarea,
.simple-product-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9c9da;
  border-radius: 10px;
  color: #0b1c33;
  background: #fff;
  font: inherit;
}

.simple-product-form textarea {
  min-height: 100px;
  resize: vertical;
}

.simple-product-form input:focus,
.simple-product-form textarea:focus,
.simple-product-form select:focus {
  border-color: #1d6fa5;
  outline: 3px solid rgba(29, 111, 165, 0.14);
}

.simple-product-form label small {
  color: #667a90;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.45;
}

.simple-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.simple-fields-grid .is-wide {
  grid-column: 1 / -1;
}

.simple-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: flex-start;
}

.simple-check input {
  width: 17px;
  min-height: 17px;
  padding: 0;
}

.simple-current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #d3dee9;
  border-radius: 13px;
  color: #52677e;
  background: #f5f8fb;
  font-size: 0.78rem;
  font-weight: 850;
}

.simple-current-image img {
  width: 76px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
}

.simple-subdomain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.simple-subdomain-validation-field {
  grid-template-columns: minmax(0, 60%) auto minmax(92px, auto);
}

.simple-subdomain-field input {
  border-radius: 10px 0 0 10px;
}

.simple-subdomain-field span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #207e7d;
  border-radius: 0 10px 10px 0;
  color: #fff;
  background: #207e7d;
  font-weight: 900;
}

.simple-subdomain-validation-field span { border-radius: 0; }
.simple-subdomain-validation-field button { min-height: 48px; padding: 0 15px; border: 1px solid #173e68; border-radius: 0 10px 10px 0; color: #fff; background: #173e68; cursor: pointer; font: inherit; font-weight: 900; }
.simple-subdomain-validation-field button:disabled { opacity: .7; cursor: wait; }
.subdomain-validation-result { display: block; min-height: 20px; margin-top: 7px; color: #52677e; font-weight: 750; }
.subdomain-validation-result strong { color: inherit; }
.subdomain-validation-result.is-available { color: #167047; }
.subdomain-validation-result.is-unavailable { color: #b52b33; }
.subdomain-validation-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 14, 29, .48); }
.subdomain-validation-modal[hidden] { display: none; }
.subdomain-validation-modal section { width: min(380px, 100%); padding: 22px; border: 1px solid #aebed0; border-radius: 14px; color: #10253f; background: #fff; box-shadow: 0 24px 60px rgba(3, 14, 29, .28); text-align: center; }
.subdomain-validation-modal h2 { margin: 0 0 18px; font-size: 1.15rem; }
.subdomain-validation-modal button { min-width: 120px; min-height: 40px; border: 0; border-radius: 8px; color: #fff; background: #173e68; cursor: pointer; font-weight: 900; }

.simple-logo-editor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.simple-logo-preview,
.simple-item-image-preview {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #c9d6e2;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #153b69, #268a88);
  font-size: 2rem;
  font-weight: 900;
}

.simple-logo-preview img,
.simple-item-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-items-editor {
  min-height: 260px !important;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 0.8rem !important;
  line-height: 1.55;
}

.simple-item-images-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #dbe4ed;
}

.simple-item-images-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075c3d;
  background: #dcf7eb;
  font-size: 0.7rem;
  font-weight: 900;
}

.simple-item-images-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.simple-item-image-editor {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #d3dee9;
  border-radius: 14px;
  background: #f5f8fb;
}

.simple-item-image-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.simple-item-image-copy strong,
.simple-item-image-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-item-image-copy small {
  color: #65788c;
}

.simple-file-button {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff !important;
  background: #173f5f;
  cursor: pointer;
  text-align: center;
}

.simple-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.simple-delete-image {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #8a2e2e !important;
  font-size: 0.72rem !important;
}

.simple-delete-image input {
  width: 16px;
  min-height: 16px;
}

.simple-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.simple-form-actions .btn {
  min-width: 210px;
}

.qr-product-counts {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b9cde0;
  border-radius: 14px;
  background: #f3f8fc;
}

.qr-product-counts h3,
.qr-product-counts p { margin: 0; }
.qr-product-counts p { margin-top: 5px; color: #526b83; font-size: .82rem; line-height: 1.45; }
.qr-product-count-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.qr-count-control { display: grid; grid-template-columns: 38px minmax(54px,1fr) 38px; overflow: hidden; border: 1px solid #adc0d4; border-radius: 10px; background: #fff; }
.simple-product-form .qr-count-control input { min-height: 38px; padding: 5px; border: 0; border-radius: 0; text-align: center; }
.qr-count-control button { border: 0; color: #fff; background: #173b68; cursor: pointer; font-size: 1.1rem; font-weight: 900; }

@media (max-width: 760px) {
  .qr-product-count-grid { grid-template-columns: 1fr; }
}

.simple-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7e1eb;
  border-radius: 13px;
}

.simple-summary-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

.simple-summary-list > div + div {
  border-top: 1px solid #d7e1eb;
}

.simple-summary-list dt,
.simple-summary-list dd {
  margin: 0;
}

.simple-summary-list dt {
  color: #61758b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-summary-list dd {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.simple-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.simple-publication-actions form {
  margin: 0;
}

.simple-publication-actions .btn[disabled] {
  border-color: #9baaba;
  color: #e4e9ee;
  background: #7a8998;
  cursor: not-allowed;
  opacity: 0.72;
}

.simple-publication-help {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e7b560;
  border-radius: 11px;
  color: #704400;
  background: #fff5dd;
  font-size: 0.82rem;
  font-weight: 800;
}

.model-theme-count {
  color: #61758b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.simple-plan-summary,
.simple-publish-panel {
  position: sticky;
  top: 78px;
  padding: 24px;
}

.simple-plan-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #153b69;
  font-size: 1.7rem;
}

.simple-plan-summary h2,
.simple-publish-panel h2 {
  margin: 9px 0;
  font-size: 1.7rem;
}

.simple-plan-summary > p,
.simple-publish-panel > p {
  color: #5d7187;
  line-height: 1.55;
}

.simple-plan-summary > strong {
  display: block;
  margin: 18px 0;
  color: #075c3d;
  font-size: 2rem;
}

.simple-plan-summary > strong small {
  font-size: 0.8rem;
}

.simple-plan-summary ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid #dbe4ed;
}

.simple-free-month,
.simple-change-note {
  padding: 11px 13px;
  border: 1px solid #e7b560;
  border-radius: 11px;
  color: #704400 !important;
  background: #fff5dd;
  font-weight: 800;
}

.simple-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #7b4e00;
  background: #fff1cf;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-status-badge.is-live {
  color: #075c3d;
  background: #dcf7eb;
}

.simple-qr-preview {
  display: block;
  width: min(230px, 100%);
  aspect-ratio: 1;
  margin: 20px auto;
  padding: 8px;
  border: 1px solid #c9d6e2;
  border-radius: 16px;
  background: #fff;
}

.simple-publish-actions {
  display: grid;
  gap: 10px;
}

.simple-publish-actions .btn,
.simple-publish-actions form,
.simple-publish-actions form .btn {
  width: 100%;
}

.simple-publish-help {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #dbe4ed;
  font-size: 0.76rem;
}

@media (max-width: 1120px) {
  .simple-model-grid,
  .simple-theme-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .simple-setup-layout,
  .simple-workspace-layout {
    grid-template-columns: 1fr;
  }

  .simple-plan-summary,
  .simple-publish-panel {
    position: static;
  }

  .simple-item-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .simple-stage-nav,
  .simple-model-grid,
  .simple-theme-grid {
    grid-template-columns: 1fr;
  }

  .simple-page-heading,
  .simple-item-images-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-form-card,
  .simple-plan-summary,
  .simple-publish-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .simple-fields-grid,
  .simple-item-images-grid {
    grid-template-columns: 1fr;
  }

  .simple-logo-editor {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .simple-form-actions {
    display: grid;
  }

  .simple-form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Catalogo comercial de soluciones: fases 3 y 4 */
.product-catalog-page,
.product-detail-page {
  display: grid;
  gap: 24px;
}

.product-catalog-heading {
  display: grid;
  max-width: 920px;
  gap: 10px;
}

.product-catalog-heading h1,
.product-detail-card h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
}

.product-catalog-heading > p {
  max-width: 760px;
  margin: 0;
  color: #bcd0e6;
  font-size: 1rem;
  line-height: 1.55;
}

.product-selection-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(83, 211, 185, 0.34);
  border-radius: 12px;
  color: #cfe9e4;
  background: rgba(31, 128, 117, 0.13);
}

.product-selection-note strong {
  color: #68e2ca;
}

.product-selected-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d5e0ed;
  border-radius: 14px;
  color: #183453;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(4, 18, 35, 0.14);
}

.product-selected-banner span {
  color: #5a6d84;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-selected-banner a {
  margin-left: auto;
  color: #0c6a61;
  font-weight: 900;
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-plan-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid #d6e0ec;
  border-radius: 18px;
  color: #102744;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(4, 18, 35, 0.16);
}

.product-plan-visual,
.product-detail-visual {
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #194d77, #10233f);
}

.product-plan-visual {
  min-height: 190px;
}

.product-plan-visual img,
.product-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-plan-digital_card .product-plan-visual,
.product-detail-visual.product-plan-digital_card {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, #12887b, #114153);
}

.product-plan-qr_menu .product-plan-visual,
.product-detail-visual.product-plan-qr_menu {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, #d47914, #8c3e0b);
}

.product-plan-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-plan-kicker {
  color: #b6630c;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-plan-copy h2,
.product-detail-card h2 {
  margin: 0;
  color: #102744;
  line-height: 1.15;
}

.product-plan-copy > p {
  margin: 0;
  color: #50657c;
  line-height: 1.5;
}

.product-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.product-plan-price strong {
  color: #0b655c;
  font-size: 1.8rem;
  line-height: 1;
}

.product-plan-price span {
  color: #52677e;
  font-size: 0.82rem;
  font-weight: 750;
}

.product-plan-trial {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #8b4e08 !important;
  background: #fff0d7;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-plan-copy ul,
.product-detail-card ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding-left: 19px;
  color: #2a425e;
  line-height: 1.4;
}

.product-plan-copy li::marker,
.product-detail-card li::marker {
  color: #dc8318;
}

.product-plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-plan-actions .btn {
  width: 100%;
  min-height: 44px;
  padding-inline: 10px;
  text-align: center;
}

.product-plan-details-btn,
.product-plan-choose-btn {
  border-color: #0b5f52;
  color: #ffffff;
  background: #0b5f52;
}

.product-plan-details-btn:hover,
.product-plan-details-btn:focus-visible,
.product-plan-choose-btn:hover,
.product-plan-choose-btn:focus-visible {
  border-color: #083f38;
  color: #ffffff;
  background: #083f38;
}

.product-back-link {
  justify-self: start;
  color: #bcd0e6;
  font-weight: 850;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(380px, 1.15fr);
  gap: 22px;
}

.product-detail-visual {
  min-height: 520px;
}

.product-detail-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #d6e0ec;
  border-radius: 18px;
  color: #102744;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(4, 18, 35, 0.16);
}

.product-detail-card h1 {
  color: #102744;
}

.product-detail-lead,
.product-detail-audience {
  margin: 0;
  color: #4e647c;
  font-size: 1rem;
  line-height: 1.55;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-actions form,
.product-detail-actions .btn {
  width: 100%;
}

.product-detail-selected {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #89d8c7;
  border-radius: 10px;
  color: #0a6659;
  background: #e7faf4;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .product-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-visual {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .product-catalog-grid,
  .product-plan-actions,
  .product-detail-actions {
    grid-template-columns: 1fr;
  }

  .product-selected-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-selected-banner a {
    margin-left: 0;
  }

  .product-detail-visual {
    min-height: 220px;
  }
}

/* Checkout de planes: el proveedor tokeniza; esta vista no recibe datos de tarjeta. */
.payment-page-heading {
  max-width: 900px;
  margin-bottom: 22px;
}

.payment-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.payment-summary-card,
.payment-action-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #cad8e8;
  border-radius: 18px;
  color: #10243f;
  background: #fff;
  box-shadow: 0 18px 45px rgba(4, 20, 40, 0.14);
}

.payment-summary-card header h2,
.payment-action-card h2 {
  margin: 12px 0 7px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.payment-summary-card header p,
.payment-action-card > p {
  margin: 0;
  color: #526983;
  line-height: 1.55;
}

.payment-status-chip {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #e2a34f;
  border-radius: 999px;
  color: #864900;
  background: #fff2d8;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-summary-list {
  display: grid;
  gap: 0;
  margin: 26px 0;
}

.payment-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #dce5ef;
}

.payment-summary-list dt {
  color: #526983;
  font-weight: 750;
}

.payment-summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.payment-summary-list .payment-total {
  align-items: baseline;
  border-bottom: 0;
}

.payment-summary-list .payment-total dd {
  color: #0e5b45;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.payment-safety-note {
  padding: 16px;
  border-left: 4px solid #258b75;
  border-radius: 10px;
  background: #ebf8f4;
}

.payment-safety-note p {
  margin: 6px 0 0;
  color: #365e55;
  line-height: 1.5;
}

.payment-action-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.payment-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #173d70;
  font-size: 1.25rem;
  font-weight: 900;
}

.payment-state-icon.is-success { background: #16835e; }
.payment-state-icon.is-pending { background: #7a8799; }

.payment-main-action,
.payment-secondary-action {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.payment-secondary-action { margin-top: 10px; }

.payment-live-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  color: #264766;
  background: #eef5fb;
  font-weight: 750;
}

.payment-live-status.is-error {
  color: #9e2525;
  background: #fff0f0;
}

.payment-live-status.is-success {
  color: #086342;
  background: #e9f9f1;
}

.payment-action-card > small {
  margin-top: 9px;
  color: #697b90;
  line-height: 1.45;
}

.payment-trust-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 18px 18px 18px 34px;
  border-top: 1px solid #dce5ef;
  color: #405873;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .payment-checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .payment-summary-list > div {
    display: grid;
    gap: 5px;
  }
  .payment-summary-list dd { text-align: left; }
}

.zentro-register-page .subdomain-row input {
  border-radius: 10px 0 0 10px;
}

.zentro-register-page .subdomain-availability-button {
  min-width: 142px;
  margin-left: 10px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea8a18 0%, #cb6705 100%);
  border: 2px solid #cb6705;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(203, 103, 5, .2);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.zentro-register-page .subdomain-availability-button:disabled {
  cursor: wait;
  opacity: .72;
}

.zentro-register-page .subdomain-availability-result {
  margin: 9px 0 0;
  color: #4b6680;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.zentro-register-page .subdomain-availability-result.is-checking {
  color: #7a5a24;
}

.zentro-register-page .subdomain-availability-result.is-available {
  color: #087451;
}

.zentro-register-page .subdomain-availability-result.is-unavailable {
  color: #a02b35;
}

.zentro-register-page .subdomain-availability-button:hover,
.zentro-register-page .subdomain-availability-button:focus-visible {
  background: linear-gradient(135deg, #f39a2b 0%, #d97008 100%);
}

.zentro-register-page .subdomain-availability-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(234, 138, 24, 0.28);
  outline-offset: 2px;
}

.zentro-register-page .subdomain-row .subdomain-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  background: var(--login-accent);
  border: 2px solid var(--login-accent);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .zentro-register-page .subdomain-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .zentro-register-page .subdomain-row input {
    grid-column: 1;
    border-radius: 10px 0 0 10px;
  }

  .zentro-register-page .subdomain-availability-button {
    grid-column: 1 / -1;
    min-height: 42px;
    margin: 10px 0 0;
    border-radius: 10px;
  }

  .zentro-register-page .subdomain-row .subdomain-suffix {
    grid-column: 2;
    border-radius: 0 10px 10px 0;
  }
}

.zentro-register-page label small {
  display: block;
  margin-top: 7px;
  color: #35607e;
  font-size: 12px;
  line-height: 1.35;
}

.zentro-register-page .register-submit {
  min-height: 52px;
  margin-top: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b7a7a, #0b8e8e);
  box-shadow: 0 18px 34px rgba(11, 122, 122, 0.24);
  font-size: 16px;
  font-weight: 900;
}

.zentro-register-page .register-capacity-notice {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #c34c55;
  border-radius: 12px;
  background: #fff1f2;
  color: #842933;
}

.zentro-register-page .register-capacity-notice strong,
.zentro-register-page .register-capacity-notice span {
  display: block;
}

.zentro-register-page .register-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(.35);
  opacity: .65;
}

.admin-register-preview {
  min-height: auto;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--zp-border);
  border-radius: 14px;
}

.admin-register-preview .register-shell {
  width: min(1160px, 100%);
  transform: none;
}

@media (min-width: 1200px) {
  .zentro-register-page .register-shell {
    transform: none;
  }

  .zentro-register-page.admin-register-preview .register-shell {
    transform: none;
  }
}

@media (max-width: 860px) {
  .zentro-login-page .login-shell {
    grid-template-columns: 1fr;
  }

  .zentro-login-page .brand-copy h1 {
    font-size: 32px;
  }

  .zentro-login-page .form-panel h2 {
    font-size: 30px;
  }

  .zentro-register-page .form-grid,
  .zentro-register-page .form-grid:first-of-type {
    grid-template-columns: 1fr;
  }

  .zentro-register-page .field-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .zentro-register-page .register-shell {
    width: 100%;
    transform: none;
  }
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--zp-border);
  background: #0f172a;
  color: #e5eefb;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.app-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.app-brand span {
  display: grid;
}

.app-brand small {
  color: #9fb0c7;
  font-weight: 700;
}

.app-nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.app-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #dce5f2;
  font-weight: 800;
  text-decoration: none;
}

.app-nav a:hover {
  background: rgba(255, 255, 255, .08);
}

.app-nav-disabled {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #8998ad;
  cursor: not-allowed;
}

.app-nav-disabled strong {
  font-size: 14px;
}

.app-nav-disabled small {
  font-size: 11px;
  line-height: 1.35;
}

.app-main {
  min-width: 0;
  padding: 32px;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 16px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.page-head p {
  max-width: 760px;
  color: var(--zp-muted);
  font-size: 17px;
  line-height: 1.6;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-grid article,
.admin-panel,
.table-card {
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #fff;
}

.kpi-grid article {
  padding: 18px;
}

.kpi-grid span {
  display: block;
  color: var(--zp-muted);
  font-weight: 800;
}

.kpi-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--zp-primary);
  font-size: 34px;
}

.admin-panel {
  padding: 22px;
}

.admin-panel h2 {
  margin: 0 0 14px;
}

.action-row,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(150px, .8fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
}

.table-card {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--zp-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #475467;
  font-size: 13px;
  text-transform: uppercase;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td small {
  margin-top: 4px;
  color: var(--zp-muted);
}

.admin-clients-card {
  border: 1px solid #d7e2ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 37, 63, 0.08);
}

.admin-clients-card::-webkit-scrollbar,
.admin-modal-table-wrap::-webkit-scrollbar {
  height: 12px;
}

.admin-clients-card::-webkit-scrollbar-thumb,
.admin-modal-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9fb2c5;
}

.admin-clients-table {
  min-width: 4720px;
  font-size: 14px;
}

.admin-clients-table th {
  white-space: nowrap;
  background: #f6f9fc;
  color: #244059;
  font-size: 13px;
  letter-spacing: .025em;
}

.admin-clients-table td {
  white-space: nowrap;
  vertical-align: middle;
  color: #10253f;
}

.admin-client-email,
.admin-client-title {
  font-weight: 800;
}

.admin-table-btn {
  min-width: 96px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-clients-table .admin-table-btn,
.admin-clients-table .btn-secondary.admin-table-btn,
.admin-clients-table .btn-primary.admin-table-btn {
  border-color: #102a43;
  background: #102a43;
  color: #fff;
}

.admin-clients-table .btn-danger.admin-table-btn {
  border-color: #efb4b4;
  background: #f7caca;
  color: #1f1717;
}

.admin-clients-table .btn-danger.admin-table-btn:hover,
.admin-clients-table .btn-danger.admin-table-btn:focus {
  border-color: #d88f8f;
  background: #f1b7b7;
  color: #1f1717;
}

.admin-reminder-sent {
  display: block;
  margin-top: 6px;
  color: #46705a;
  font-size: 11px;
  font-weight: 900;
}

.btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 25, 43, .64);
}

.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #d7e2ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.admin-modal-large {
  width: min(1020px, calc(100vw - 32px));
}

.admin-modal-danger {
  border-top: 5px solid #d94b4b;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-modal-header h2 {
  margin: 0;
  color: #10253f;
  font-size: 22px;
}

.admin-modal-header p {
  margin: 6px 0 0;
  color: #5b7086;
  font-size: 14px;
  font-weight: 700;
}

.admin-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d6e0eb;
  border-radius: 999px;
  background: #f8fbfd;
  color: #10253f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-form {
  display: grid;
  gap: 14px;
}

.admin-modal-form p,
.admin-danger-copy,
.empty-message {
  margin: 0;
  color: #405a74;
  line-height: 1.55;
}

.admin-danger-copy {
  padding: 12px 14px;
  border: 1px solid #f0b4b4;
  border-radius: 10px;
  background: #fff7f7;
  color: #8f1d1d;
  font-weight: 800;
}

.admin-modal-form label {
  display: grid;
  gap: 7px;
  color: #27425e;
  font-size: 14px;
  font-weight: 800;
}

.admin-modal-form input,
.admin-modal-form textarea,
.admin-modal-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b8c7d7;
  border-radius: 8px;
  background: #fff;
  color: #10253f;
  font: inherit;
}

.admin-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.admin-edit-fields label {
  padding: 12px;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #f8fbfd;
}

.admin-edit-fields span,
.admin-edit-fields strong {
  display: block;
}

.admin-edit-fields span {
  color: #52677e;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-edit-fields strong {
  margin: 2px 0 8px;
  color: #10253f;
  font-size: 14px;
}

.admin-modal-actions,
.admin-modal-toolbar,
.admin-modal-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-modal-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.admin-modal-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
  color: #405a74;
  font-weight: 800;
}

.admin-reminder-modal {
  display: grid;
  gap: 14px;
}

.admin-reminder-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #f8fbfd;
}

.admin-reminder-meta p {
  margin: 0;
  color: #405a74;
  line-height: 1.45;
}

.admin-reminder-message-label {
  display: grid;
  gap: 8px;
  color: #27425e;
  font-size: 14px;
  font-weight: 900;
}

.admin-reminder-message {
  width: 100%;
  min-height: 190px;
  padding: 12px;
  border: 1px solid #b8c7d7;
  border-radius: 10px;
  background: #fff;
  color: #10253f;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.admin-modal-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
}

.admin-modal-data-table {
  min-width: 820px;
  font-size: 14px;
}

.admin-modal-data-table th {
  background: #f6f9fc;
}

.admin-modal-data-table td {
  white-space: normal;
  vertical-align: top;
}

.admin-modal-pager {
  justify-content: center;
  margin-top: 12px;
  color: #405a74;
  font-weight: 800;
}

.admin-modal-pager .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Contraste legible en todas las ventanas flotantes del administrador. */
.app-content .admin-modal {
  color: #10253f;
}

.app-content .admin-modal :where(p, span, strong, small, th, td, label, summary) {
  color: #10253f;
}

.app-content .admin-modal :where(.btn-primary, .btn-danger) {
  color: #fff;
}

.admin-ticket-list {
  display: grid;
  gap: 12px;
}

.admin-ticket-card {
  overflow: hidden;
  border: 1px solid #ccd9e6;
  border-radius: 12px;
  background: #fff;
}

.admin-ticket-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f6f9fc;
  cursor: pointer;
  list-style: none;
}

.admin-ticket-card > summary::-webkit-details-marker,
.support-ticket > summary::-webkit-details-marker {
  display: none;
}

.admin-ticket-card > summary span:first-child,
.admin-ticket-card > summary small {
  display: block;
}

.admin-ticket-card > summary small {
  margin-top: 4px;
  color: #5c7187 !important;
}

.admin-ticket-body,
.support-ticket-thread {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.support-message {
  padding: 12px 14px;
  border: 1px solid #d3deea;
  border-radius: 10px;
  color: #10253f;
  background: #f7fafd;
}

.support-message-admin {
  border-color: #8bc9bd;
  background: #eaf8f4;
}

.support-message > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.support-message p {
  margin: 7px 0 0;
  color: #203c58 !important;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-message small {
  color: #667a8f !important;
}

.admin-ticket-reply-form,
.support-reply-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.admin-ticket-reply-form label,
.support-reply-form label {
  display: grid;
  gap: 7px;
  color: #1d3854 !important;
  font-weight: 850;
}

.admin-ticket-reply-form textarea,
.support-reply-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #aebed0;
  border-radius: 8px;
  color: #10253f;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.admin-ticket-status-form {
  display: flex;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #164b8f;
  font-size: 12px;
  font-weight: 900;
}

.app-content .admin-modal .badge-open,
.app-content .admin-modal .badge-in_progress {
  color: #164b8f;
  background: #e9f1ff;
}

.app-content .admin-modal .badge-answered,
.app-content .admin-modal .badge-resolved {
  color: #0b654d;
  background: #dff6ee;
}

.app-content .admin-modal .badge-closed {
  color: #4f5f70;
  background: #e8edf2;
}

.badge-success {
  background: #eaf8ef;
  color: #17643b;
}

.badge-failed,
.badge-blocked {
  background: #fff0f0;
  color: #932626;
}

.security-retention-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid #b9d8d7;
  border-left: 4px solid #168082;
  border-radius: 8px;
  background: #eef8f8;
  color: #274860;
}

.security-retention-note strong {
  color: #0f4e50;
}

.security-retention-note span {
  font-size: 13px;
  font-weight: 700;
}

.security-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.security-section-head h2 {
  margin: 6px 0 0;
  color: #10253f;
}

.security-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
}

.security-filter-bar-compact {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
}

.security-filter-bar label {
  display: grid;
  gap: 6px;
  color: #364f68;
  font-size: 12px;
  font-weight: 800;
}

.security-filter-bar input,
.security-filter-bar select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #aebed0;
  border-radius: 6px;
  background: #fff;
  color: #10253f;
  font: inherit;
}

.security-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.security-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 30px;
  color: #52677e;
  font-size: 13px;
  font-weight: 800;
}

.security-pagination div {
  display: flex;
  gap: 8px;
}

.security-pagination a,
.security-pagination div span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #b8c8d9;
  border-radius: 6px;
  background: #fff;
  color: #164b8f;
  text-decoration: none;
}

.security-pagination div span[aria-disabled="true"] {
  background: #eef2f6;
  color: #8a98a8;
}

.security-table td {
  overflow-wrap: anywhere;
}

.admin-filter-four {
  grid-template-columns: 1.3fr repeat(2, minmax(160px, .8fr)) auto;
}

.admin-filter-five {
  grid-template-columns: 1.4fr repeat(3, minmax(145px, .8fr)) auto;
}

.admin-filter-six {
  grid-template-columns: 1.4fr repeat(4, minmax(135px, .75fr)) auto;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 30px;
  color: #52677e;
  font-size: 13px;
  font-weight: 800;
}

.admin-pagination div {
  display: flex;
  gap: 8px;
}

.admin-pagination a,
.admin-pagination div span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #b8c8d9;
  border-radius: 6px;
  background: #fff;
  color: #164b8f;
  text-decoration: none;
}

.admin-pagination div span[aria-disabled="true"] {
  background: #eef2f6;
  color: #8a98a8;
}

.admin-client-head,
.admin-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-client-head .back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #164b8f;
  font-weight: 800;
}

.admin-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.admin-detail-summary article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
}

.admin-detail-summary span,
.admin-detail-summary small {
  display: block;
  color: #607389;
}

.admin-detail-summary span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-detail-summary strong {
  display: block;
  margin: 8px 0 5px;
  color: #10253f;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.admin-detail-section {
  margin: 0 0 32px;
  padding-top: 24px;
  border-top: 1px solid #cfdbe7;
}

.admin-detail-title {
  align-items: flex-end;
  margin-bottom: 16px;
}

.admin-detail-title h2 {
  margin: 5px 0 0;
  color: #10253f;
}

.admin-detail-title p {
  max-width: 420px;
  margin: 0;
  color: #607389;
  text-align: right;
}

.admin-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #d6e0eb;
}

.admin-definition-grid div {
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.admin-definition-grid dt {
  color: #607389;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-definition-grid dd {
  margin: 7px 0 0;
  color: #10253f;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-action-form {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #ccd9e5;
  border-radius: 8px;
  background: #fff;
}

.admin-action-form h3 {
  margin: 0;
  color: #10253f;
}

.admin-action-form p {
  min-height: 44px;
  margin: 0;
  color: #607389;
  line-height: 1.5;
}

.admin-action-form label,
.admin-delete-form label {
  display: grid;
  gap: 6px;
  color: #364f68;
  font-size: 12px;
  font-weight: 900;
}

.admin-action-form input,
.admin-action-form select,
.admin-delete-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #aebed0;
  border-radius: 6px;
  background: #fff;
  color: #10253f;
  font: inherit;
}

.admin-action-form .btn {
  margin-top: auto;
}

.admin-action-test {
  border-style: dashed;
  background: #f8fbfe;
}

.admin-danger-zone {
  border-top-color: #d99b9b;
}

.admin-delete-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #efb3b3;
  border-radius: 8px;
  background: #fff8f8;
}

.admin-delete-form p {
  margin: 0;
  color: #713535;
  line-height: 1.5;
}

.admin-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-activity-list {
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
}

.admin-activity-list article {
  position: relative;
  padding: 15px 100px 15px 15px;
  border-bottom: 1px solid #e2e8ef;
}

.admin-activity-list article:last-child {
  border-bottom: 0;
}

.admin-activity-list article .badge {
  position: absolute;
  top: 13px;
  right: 13px;
}

.admin-activity-list p,
.admin-activity-list small {
  display: block;
  margin: 6px 0 0;
  color: #607389;
}

.admin-history-table,
.admin-payments-table {
  min-width: 760px;
}

.empty-message {
  padding: 18px;
  border: 1px dashed #bccbda;
  border-radius: 8px;
  color: #607389;
}

@media (max-width: 1180px) {
  .security-filter-bar,
  .security-filter-bar-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-five,
  .admin-filter-six,
  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-delete-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .security-filter-bar,
  .security-filter-bar-compact {
    grid-template-columns: 1fr;
  }

  .security-filter-actions,
  .security-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-four,
  .admin-filter-five,
  .admin-filter-six,
  .admin-detail-summary,
  .admin-definition-grid,
  .admin-action-grid,
  .admin-delete-form,
  .admin-detail-columns {
    grid-template-columns: 1fr;
  }

  .filter-actions,
  .admin-pagination,
  .admin-client-head,
  .admin-detail-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-reminder-meta {
    grid-template-columns: 1fr;
  }

  .admin-detail-title p {
    text-align: left;
  }
}

.badge-active {
  background: #e8f7ee;
  color: #11633a;
}

.badge-pending_email_verification {
  background: #fff7df;
  color: #8a5a00;
}

.badge-suspended,
.badge-cancelled {
  background: #fff0f0;
  color: #9f1d1d;
}

.empty-cell {
  color: var(--zp-muted);
  text-align: center;
}

.user-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  max-width: 760px;
}

.client-welcome {
  max-width: 980px;
  margin: 0 auto 24px;
  text-align: center;
}

.client-welcome h1 {
  max-width: 860px;
  margin: 16px auto 12px;
  color: #0f253a;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.client-welcome p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--zp-muted);
  font-size: 17px;
  line-height: 1.65;
}

.client-welcome-compact h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.client-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--zp-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 253, 0.96)),
    radial-gradient(circle at top right, rgba(22, 75, 143, 0.1), transparent 40%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.client-status-card span,
.locked-product-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-status-card h2 {
  margin: 0 0 8px;
  color: #0f253a;
  font-size: 30px;
}

.client-status-card p {
  margin: 0;
  color: var(--zp-muted);
  line-height: 1.55;
}

.client-status-empty {
  align-items: flex-start;
}

.client-action-grid {
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.client-action-grid a,
.client-action-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--zp-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  color: inherit;
  text-decoration: none;
}

.client-action-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #eef4ff;
  color: #164b8f;
  font-size: 12px;
  font-weight: 900;
}

.client-action-grid strong,
.locked-product-card strong {
  display: block;
  color: #0f253a;
  font-size: 19px;
}

.client-action-grid small,
.locked-product-card small {
  display: block;
  margin-top: 8px;
  color: var(--zp-muted);
  line-height: 1.5;
}

.client-action-grid a:hover {
  border-color: rgba(22, 75, 143, 0.32);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.locked-product-card {
  padding: 18px;
  border: 1px solid rgba(22, 75, 143, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.style-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.style-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--zp-border);
  border-radius: 999px;
  background: #fff;
  color: #0f253a;
  font-size: 13px;
  font-weight: 900;
}

.model-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.app-nav .app-nav-subitem {
  margin-left: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

.legal-admin-actions,
.legal-usage-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.legal-admin-actions form {
  margin: 0;
}

.legal-usage-list span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #16406f;
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-usage-list .legal-unused {
  background: #f2f4f7;
  color: #667085;
}

.model-picker-card,
.user-model-panel {
  padding: 20px;
  border: 1px solid var(--zp-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.model-picker-card {
  align-self: start;
  padding: 16px;
}

.model-picker-card header span {
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-picker-card h2 {
  margin: 5px 0 12px;
  color: #0f253a;
}

.model-picker-card form,
.user-model-panel form {
  display: grid;
  gap: 12px;
}

.model-picker-card form {
  gap: 9px;
}

.model-picker-card label,
.user-model-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 900;
}

.model-picker-card label {
  gap: 5px;
}

.model-picker-card select,
.user-model-panel select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.model-picker-card select {
  min-height: 40px;
}

.model-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.model-list div {
  padding: 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.model-list strong,
.model-list small {
  display: block;
}

.model-list small {
  margin-top: 4px;
  color: var(--zp-muted);
  line-height: 1.45;
}

.model-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 75, 143, 0.12);
}

.model-pagination:empty {
  display: none;
}

.model-pagination-status {
  margin-right: auto;
  color: #49667c;
  font-size: 12px;
  font-weight: 900;
}

.model-pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(22, 75, 143, 0.18);
  border-radius: 9px;
  background: #ffffff;
  color: #0f253a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.model-pagination button:hover,
.model-pagination button:focus-visible,
.model-pagination button.is-active {
  border-color: #164b8f;
  background: #eef4ff;
  color: #164b8f;
  outline: 0;
}

.user-model-panel {
  max-width: 980px;
  margin: 0 auto 18px;
}

.user-model-list {
  margin-top: 18px;
}

.user-model-pagination {
  max-width: 980px;
  margin: 14px auto 0;
}

.onboarding-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 900;
}

.form-grid input,
.form-grid select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.style-preview {
  padding: 18px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.style-preview h2 {
  margin: 0 0 14px;
}

.style-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.style-columns article {
  padding: 14px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #fff;
}

.style-columns strong {
  display: block;
  margin-bottom: 8px;
  color: var(--zp-primary);
}

.style-columns ol {
  margin: 0;
  padding-left: 18px;
  color: var(--zp-muted);
  line-height: 1.65;
}

.plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-summary-grid article {
  padding: 16px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.plan-summary-grid span,
.plan-summary-grid strong {
  display: block;
}

.plan-summary-grid span {
  color: var(--zp-muted);
  font-weight: 800;
}

.plan-summary-grid strong {
  margin-top: 6px;
  color: var(--zp-ink);
  font-size: 20px;
}

.editor-stack {
  display: grid;
  gap: 16px;
}

.section-editor {
  padding: 18px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .04);
}

.section-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-editor-head strong,
.section-editor-head small {
  display: block;
}

.section-editor-head small {
  margin-top: 4px;
  color: var(--zp-muted);
  font-weight: 700;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zp-ink);
  font-weight: 900;
}

.sort-input {
  width: 76px;
}

.editor-toggle {
  min-height: 40px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.full-label,
.form-panel label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #344054;
  font-weight: 900;
}

.full-label textarea,
.form-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.publish-panel form {
  margin: 0;
}

.publish-panel p {
  color: var(--zp-muted);
}

.cta-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.cta-editor > span {
  color: var(--zp-primary);
  font-weight: 900;
}

.cta-editor label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 900;
}

.cta-editor input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
}

.payment-panel {
  max-width: 920px;
}

.payment-panel h2 {
  margin-top: 0;
}

.payment-note {
  padding: 14px;
  border: 1px solid #f2d38b;
  border-radius: 8px;
  background: #fff9e8;
  color: #8a5a00;
  font-weight: 800;
}

.catalog-admin-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.mini-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #f8fbff;
}

.mini-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 900;
}

.mini-form input,
.mini-form select,
.mini-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.image-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr) auto;
  gap: 14px;
  align-items: end;
}

.image-editor h2 {
  margin: 0 0 4px;
}

.image-editor p {
  margin: 0;
  color: var(--zp-muted);
}

.image-editor label,
.image-row-form {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 900;
}

.image-row-form {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  margin-top: 8px;
}

.image-editor input,
.image-row-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  background: #fff;
}

.zentro-login-page .email-status-shell {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.email-status-panel {
  display: grid;
  align-content: center;
}

.email-status-panel .status-step {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(11, 122, 122, 0.22);
  border-radius: 999px;
  background: rgba(11, 122, 122, 0.11);
  color: #075d5d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.email-status-panel .status-ok {
  border-color: rgba(23, 130, 75, 0.28);
  background: rgba(23, 130, 75, 0.12);
  color: #12653d;
}

.email-status-panel .status-error {
  border-color: rgba(196, 48, 43, 0.28);
  background: rgba(196, 48, 43, 0.12);
  color: #9f1d1d;
}

.email-status-panel .email-pill {
  display: block;
  width: 100%;
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 122, 122, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #0f253a;
  font-weight: 900;
  word-break: break-word;
}

.mail-help-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 143, 25, 0.28);
  border-radius: 8px;
  background: rgba(255, 247, 229, 0.82);
  color: #714300;
  line-height: 1.45;
}

.verified-summary-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.verified-summary-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(95, 136, 168, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.verified-summary-grid span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b7a7a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.verified-summary-grid strong {
  color: #102a43;
  font-weight: 900;
}

.verified-summary-grid small {
  color: #36556d;
  font-weight: 700;
}

.verified-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(11, 122, 122, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 250, 250, 0.76)),
    radial-gradient(circle at top right, rgba(11, 122, 122, 0.15), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.verified-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #0b7a7a;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(11, 122, 122, 0.24);
}

.verified-next {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(95, 136, 168, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #274860;
}

.verified-next strong {
  color: #0f253a;
}

.email-status-panel .status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.email-status-panel .status-button,
.email-status-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #0b7a7a;
  border-radius: 8px;
  background: #0b7a7a;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.email-status-panel .status-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  color: #0f253a;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 800px) {
  .image-editor,
  .image-row-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

  .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid,
  .filter-bar,
  .form-grid,
  .style-columns,
  .plan-summary-grid,
  .client-action-grid,
  .model-admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-status-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .app-main {
    padding: 22px 16px;
  }

  .kpi-grid,
  .filter-bar,
  .form-grid,
  .style-columns,
  .plan-summary-grid,
  .client-action-grid,
  .model-admin-grid,
  .app-nav {
    grid-template-columns: 1fr;
  }

  .zentro-login-page .email-status-shell {
    grid-template-columns: 1fr;
  }
}

/* User workspace */
.app-nav a.is-active {
  border-left: 3px solid #db861c;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.app-nav a.is-return-step {
  border: 1px solid rgba(219, 134, 28, .42);
  border-left: 3px solid #db861c;
  background: rgba(219, 134, 28, .1);
  color: #fff3df;
}

.app-nav a.is-return-step:hover,
.app-nav a.is-return-step:focus-visible {
  background: rgba(219, 134, 28, .18);
  color: #fff;
  outline: 0;
}

.workspace-head,
.workspace-section-head,
.publish-workspace,
.plan-workspace > div:first-child,
.payment-workspace > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.workspace-head {
  margin-bottom: 24px;
}

.workspace-head h1,
.workspace-section-head h2,
.workspace-empty h2,
.publish-workspace h2,
.publish-actions h2,
.support-layout h2,
.support-history h2,
.plan-workspace h2,
.payment-workspace h2 {
  margin: 8px 0;
  color: #10253f;
  letter-spacing: 0;
}

.workspace-head h1 {
  max-width: 840px;
  font-size: 40px;
  line-height: 1.12;
}

.workspace-head p,
.workspace-status-copy p,
.workspace-empty > p,
.publish-actions p,
.support-channels p {
  max-width: 760px;
  margin: 0;
  color: var(--zp-muted);
  line-height: 1.6;
}

.workspace-overview,
.publish-workspace,
.workspace-empty,
.publish-actions,
.plan-workspace,
.payment-workspace,
.payment-blank-sheet,
.support-form,
.support-channels,
.support-history {
  border: 1px solid #ced9e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(15, 37, 63, .07);
}

.workspace-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 32px;
  padding: 24px;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #bed0e4;
  border-radius: 999px;
  background: #edf4fb;
  color: #244764;
  font-size: 12px;
  font-weight: 900;
}

.workspace-status.status-published {
  border-color: #9ed4b4;
  background: #eaf8ef;
  color: #17643b;
}

.workspace-status.status-review {
  border-color: #bed6f5;
  background: #edf5ff;
  color: #205c9f;
}

.workspace-status.status-warning {
  border-color: #f0ce8a;
  background: #fff6df;
  color: #81530a;
}

.workspace-status.status-blocked {
  border-color: #e9b4b4;
  background: #fff0f0;
  color: #932626;
}

.workspace-status-copy h2 {
  margin: 12px 0 6px;
  font-size: 28px;
}

[data-trial-countdown] {
  font-variant-numeric: tabular-nums;
}

[data-trial-countdown].is-expired {
  color: #9f1d1d;
}

.trial-countdown-line {
  display: grid;
  gap: 4px;
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid #d6e0eb;
}

.trial-countdown-line span {
  color: #607389;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-countdown-line strong {
  color: #10253f;
}

.workspace-progress {
  align-self: center;
}

.workspace-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.workspace-progress-head span,
.workspace-progress small {
  color: #52677e;
}

.progress-track {
  height: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f2;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #167d7f, #db861c);
}

.workspace-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 28px;
}

.workspace-meta article,
.plan-summary-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #f8fafc;
}

.workspace-meta span,
.workspace-meta strong,
.plan-summary-grid span,
.plan-summary-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.workspace-meta span,
.plan-summary-grid span,
.publish-dates span,
.support-channels span {
  margin-bottom: 5px;
  color: #64778e;
  font-size: 12px;
  font-weight: 800;
}

.workspace-flow {
  margin-top: 8px;
}

.workspace-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.workspace-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
}

.workspace-steps li.is-current {
  border-color: #db861c;
  box-shadow: inset 4px 0 #db861c;
}

.workspace-steps li.is-done {
  background: #f2f8f5;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #183b60;
  color: #fff;
  font-weight: 900;
}

.is-done .step-number {
  background: #17805b;
}

.workspace-steps strong,
.workspace-steps small {
  display: block;
}

.workspace-steps small {
  margin-top: 4px;
  color: #66788c;
  line-height: 1.45;
}

.workspace-steps a {
  color: #174f83;
  font-weight: 900;
  text-decoration: none;
}

.save-publish-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid #cfd9e5;
  background: #eef4f8;
}

.save-publish-guide > div {
  padding: 18px 20px;
}

.save-publish-guide > div + div {
  border-left: 1px solid #cfd9e5;
}

.save-publish-guide p,
.workspace-rule {
  margin: 6px 0 0;
  color: #52677e;
  line-height: 1.55;
}

.workspace-rule {
  padding: 12px 14px;
  border-left: 3px solid #168082;
  background: #eef8f8;
}

.workspace-empty,
.publish-workspace,
.publish-actions,
.plan-workspace,
.payment-workspace,
.payment-blank-sheet,
.support-form,
.support-channels,
.support-history {
  padding: 24px;
}

.publish-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  margin-bottom: 16px;
}

.publish-dates {
  display: grid;
  gap: 10px;
}

.publish-dates p {
  margin: 0;
  padding: 12px;
  border-left: 3px solid #168082;
  background: #f4f8fb;
}

.publish-dates strong,
.support-channels strong {
  display: block;
}

.publish-actions {
  margin-top: 16px;
}

.plan-workspace,
.payment-workspace {
  display: grid;
  gap: 22px;
}

.plan-payment-workspace {
  gap: 18px;
}

.plan-payment-head {
  border-bottom: 1px solid #dce5ef;
  padding-bottom: 4px;
}

.plan-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-payment-summary,
.plan-payment-actions {
  min-width: 0;
}

.plan-payment-summary h3,
.plan-payment-actions h3 {
  margin: 0 0 14px;
  color: #10253f;
  font-size: 20px;
}

.plan-payment-divider {
  display: block;
  width: 1px;
  min-height: 100%;
  background: #cfd9e5;
}

.plan-line-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.plan-line-list div {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 12px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #f8fafc;
}

.plan-line-list dt {
  color: #50657d;
  font-weight: 900;
}

.plan-line-list dd {
  margin: 0;
  color: #10253f;
  font-weight: 800;
  line-height: 1.45;
}

.plan-payment-note,
.plan-payment-reminder {
  margin: 14px 0 0;
  color: #52677e;
  line-height: 1.55;
}

.plan-payment-reminder {
  padding: 12px 14px;
  border-left: 4px solid #168082;
  border-radius: 8px;
  background: #eef8f8;
}

.plan-pay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #f8fafc;
}

.plan-pay-row + .plan-pay-row {
  margin-top: 12px;
}

.plan-pay-row strong,
.plan-pay-row small {
  display: block;
}

.plan-pay-row small {
  margin-top: 5px;
  color: #66788c;
  line-height: 1.4;
}

.payment-blank-sheet {
  min-height: min(52vh, 460px);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
  gap: 16px;
}

.support-compact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-form label {
  display: grid;
  gap: 7px;
  color: #273f59;
  font-weight: 800;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #aebed0;
  border-radius: 6px;
  background: #fff;
  color: #10253f;
  font: inherit;
}

.support-form small {
  color: #64778e;
}

.support-channels a {
  display: block;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: #f6f9fc;
  text-decoration: none;
}

.support-history {
  margin-top: 18px;
}

.support-history-compact {
  margin-top: 0;
}

.support-count {
  align-self: start;
  padding: 6px 10px;
  border: 1px solid #d3deea;
  border-radius: 999px;
  background: #f6f9fc;
  color: #52677e;
  font-size: 12px;
  font-weight: 900;
}

.support-request-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.support-request-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #dfe6ef;
}

.support-ticket {
  overflow: hidden;
  border-top: 1px solid #dfe6ef;
  background: #fff;
}

.support-ticket > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: #10253f;
  cursor: pointer;
  list-style: none;
}

.support-ticket > summary span:first-child,
.support-ticket > summary small {
  display: block;
}

.support-ticket > summary small {
  margin-top: 5px;
  color: #66788c;
}

.support-status-open,
.support-status-in_progress {
  color: #164b8f;
  background: #e9f1ff;
}

.support-status-answered,
.support-status-resolved {
  color: #0b654d;
  background: #dff6ee;
}

.support-status-closed {
  color: #4f5f70;
  background: #e8edf2;
}

.support-ticket-closed {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #4f5f70;
  background: #eef2f5;
  font-weight: 800;
}

.support-request-list strong,
.support-request-list small {
  display: block;
}

.support-request-list small {
  margin-top: 5px;
  color: #66788c;
}

.support-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dfe6ef;
  color: #52677e;
}

.support-pagination a,
.support-pagination span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cdd9e6;
  border-radius: 8px;
  background: #fff;
  color: #174f83;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.support-pagination span.is-disabled {
  color: #8a9aab;
  background: #f1f5f9;
}

.page-head h1 {
  font-size: 40px;
}

@media (max-width: 900px) {
  .workspace-overview,
  .publish-workspace,
  .support-layout,
  .support-compact-layout,
  .plan-payment-layout {
    grid-template-columns: 1fr;
  }

  .plan-payment-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .workspace-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Estado publico de subdominios reservados o temporalmente no disponibles. */
.subdomain-status-page {
  min-height: 100vh;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(46, 158, 175, .2), transparent 36%),
    radial-gradient(circle at 84% 78%, rgba(222, 132, 31, .18), transparent 34%),
    linear-gradient(145deg, #071428 0%, #0d2343 52%, #08172c 100%);
}

.subdomain-status-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 18px;
  overflow: hidden;
}

.subdomain-status-shell::before,
.subdomain-status-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.subdomain-status-shell::before {
  top: -150px;
  right: -85px;
}

.subdomain-status-shell::after {
  bottom: -190px;
  left: -105px;
  width: 400px;
  height: 400px;
}

.subdomain-status-card {
  width: min(100%, 720px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.subdomain-status-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.subdomain-status-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.subdomain-status-brand span {
  display: grid;
  gap: 2px;
}

.subdomain-status-brand strong {
  font-size: 17px;
  letter-spacing: .01em;
}

.subdomain-status-brand small {
  color: #b9c8dc;
  font-size: 12px;
}

.subdomain-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 222, 216, .28);
  border-radius: 999px;
  color: #a9f0e9;
  background: rgba(28, 148, 151, .12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subdomain-status-badge i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #63d6ca;
  box-shadow: 0 0 0 5px rgba(99, 214, 202, .12);
}

.is-unavailable .subdomain-status-badge {
  border-color: rgba(245, 176, 92, .32);
  color: #ffd39b;
  background: rgba(196, 106, 24, .13);
}

.is-unavailable .subdomain-status-badge i {
  background: #f1a750;
  box-shadow: 0 0 0 5px rgba(241, 167, 80, .12);
}

.subdomain-status-card h1 {
  max-width: 630px;
  margin: 22px 0 14px;
  color: #fff;
  font-size: clamp(36px, 7vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}

.subdomain-status-lead {
  max-width: 590px;
  margin: 0;
  color: #c8d5e7;
  font-size: clamp(16px, 2.3vw, 20px);
  line-height: 1.65;
}

.subdomain-status-domain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: #f8fbff;
  background: rgba(3, 11, 24, .28);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.subdomain-status-domain span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #f2a33e;
  border-radius: 50%;
}

.subdomain-status-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 300px;
  margin-top: 30px;
}

.subdomain-status-progress span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.subdomain-status-progress .is-complete {
  background: #62d5ca;
}

.subdomain-status-progress .is-current {
  background: linear-gradient(90deg, #62d5ca 0 58%, rgba(255, 255, 255, .14) 58%);
}

.subdomain-status-note {
  margin: 14px 0 0;
  color: #9fb0c6;
  font-size: 13px;
  line-height: 1.55;
}

.subdomain-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 22px;
  border-radius: 10px;
  color: #fff;
  background: #d97f17;
  box-shadow: 0 12px 28px rgba(217, 127, 23, .24);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.subdomain-status-action:hover,
.subdomain-status-action:focus-visible {
  background: #ed9023;
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .subdomain-status-card {
    border-radius: 18px;
  }

  .subdomain-status-card h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .subdomain-status-action {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .workspace-head,
  .workspace-section-head,
  .plan-workspace > div:first-child,
  .payment-workspace > div:first-child {
    flex-direction: column;
  }

  .workspace-head h1,
  .page-head h1 {
    font-size: 32px;
  }

  .workspace-meta,
  .save-publish-guide,
  .plan-line-list div,
  .plan-pay-row {
    grid-template-columns: 1fr;
  }

  .save-publish-guide > div + div {
    border-top: 1px solid #cfd9e5;
    border-left: 0;
  }

  .workspace-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workspace-steps a {
    grid-column: 2;
  }

  .support-request-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Shared admin and user control panel shell */
.app-sidebar {
  z-index: 30;
  border-right-color: #26364d;
  background: #0b1425;
}

.app-main {
  min-height: 100vh;
  padding: 0;
  background: #07111f;
  color: #eaf2fb;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 14px 32px;
  border-bottom: 1px solid #2b3d56;
  background: #111d30;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.app-topbar p {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  color: #cbd7e6;
  overflow-wrap: anywhere;
  text-align: center;
}

.app-topbar strong {
  color: #fff;
}

.topbar-logout {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #10253f;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
  border-color: #db861c;
  background: #db861c;
  color: #fff;
  outline: 0;
}

/* Panel usuario: las acciones secundarias mantienen contraste sin botones blancos. */
.public-shell .user-app-layout .btn-secondary {
  border-color: #294f75;
  background: #102f4f;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(5, 24, 43, 0.2);
}

.public-shell .user-app-layout .btn-secondary:hover,
.public-shell .user-app-layout .btn-secondary:focus-visible {
  border-color: #3b75aa;
  background: #174a76;
  color: #ffffff;
}

.public-shell .user-app-layout .btn-secondary:disabled {
  border-color: #294f75;
  background: #102f4f;
  color: #ffffff;
  opacity: 0.5;
}

.public-shell .user-app-layout .topbar-logout {
  border-color: #3b75aa;
  background: #174a76;
  color: #ffffff;
}

.public-shell .user-app-layout .topbar-logout:hover,
.public-shell .user-app-layout .topbar-logout:focus-visible {
  border-color: #db861c;
  background: #db861c;
  color: #ffffff;
}

.app-content {
  min-width: 0;
  padding: 32px;
}

.app-content > .page-head h1,
.app-content > .workspace-head h1,
.app-content > .client-welcome h1,
.app-content > .admin-section h1,
.app-content .workspace-section-head h2,
.app-content .security-section-head h2,
.app-content .admin-detail-title h2 {
  color: #fff;
}

.app-content > .page-head p,
.app-content > .workspace-head p,
.app-content > .client-welcome p,
.app-content > .admin-section p,
.app-content .admin-detail-title p {
  color: #b9c8da;
}

.app-content .admin-client-head .back-link {
  color: #9ec9f3;
}

.app-content > .filter-bar,
.app-content > .security-filter-bar {
  padding: 14px;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
}

.app-content .kpi-grid article,
.app-content .admin-panel,
.app-content .table-card,
.app-content .security-retention-note,
.app-content .admin-detail-summary article,
.app-content .admin-definition-grid div,
.app-content .admin-action-form,
.app-content .admin-delete-form,
.app-content .admin-activity-list,
.app-content .empty-message,
.app-content .client-status-card,
.app-content .client-action-grid a,
.app-content .client-action-grid article,
.app-content .locked-product-card,
.app-content .model-picker-card,
.app-content .user-model-panel,
.app-content .style-preview,
.app-content .style-columns article,
.app-content .section-editor,
.app-content .workspace-overview,
.app-content .workspace-meta article,
.app-content .workspace-steps li,
.app-content .save-publish-guide,
.app-content .workspace-empty,
.app-content .publish-workspace,
.app-content .publish-actions,
.app-content .plan-workspace,
.app-content .payment-workspace,
.app-content .payment-blank-sheet,
.app-content .support-form,
.app-content .support-channels,
.app-content .support-history,
.app-content .workspace-rule {
  background: #fff;
  color: #10253f;
}

.app-content .security-retention-note {
  border-left-color: #168082;
}

.app-content .save-publish-guide {
  border: 1px solid #cfd9e5;
  border-radius: 8px;
}

.app-content .workspace-rule {
  border: 1px solid #cfe0e2;
  border-left: 4px solid #168082;
  border-radius: 8px;
}

.app-content .security-pagination,
.app-content .admin-pagination {
  color: #dce6f2;
}

.app-content .admin-detail-section {
  border-top-color: #40526a;
}

.app-content .admin-danger-zone {
  border-top-color: #bf7474;
}

.app-nav-separator {
  display: block;
  height: 1px;
  margin: 12px 12px 4px;
  background: rgba(255, 255, 255, .14);
}

.user-step-head {
  align-items: flex-end;
}

.user-step-layout {
  display: grid;
  grid-template-columns: minmax(425px, 650px) minmax(360px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.user-step-card,
.user-step-copy {
  border: 1px solid #ced9e7;
  border-radius: 12px;
  background: #fff;
  color: #10253f;
  box-shadow: 0 16px 34px rgba(15, 37, 63, .08);
}

.user-step-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.user-step-card-compact {
  align-content: start;
}

.user-step-card h2,
.user-step-copy h2 {
  margin: 0;
  color: #10253f;
  letter-spacing: 0;
}

.user-step-card > p,
.user-step-copy p {
  margin: 0;
  color: #52677e;
  line-height: 1.6;
}

.user-step-card label {
  display: grid;
  gap: 8px;
  color: #273f59;
  font-size: 15px;
  font-weight: 900;
}

.user-step-card input,
.user-step-card select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aebed0;
  border-radius: 8px;
  background: #fff;
  color: #10253f;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.user-step-card input[readonly],
.user-readonly-field {
  background: #f1f5f9;
  color: #40566d;
}

.user-step-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.user-step-inline.is-other-niche {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .72fr);
}

.user-step-inline [data-other-niche-field][hidden] {
  display: none !important;
}

.user-edit-row.has-edit-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.user-edit-row.has-edit-toggle > label,
.user-edit-row.has-edit-toggle > .user-step-inline {
  min-width: 0;
}

.user-edit-row.has-edit-toggle .user-edit-toggle {
  min-width: 74px;
  min-height: 48px;
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.user-edit-row.has-edit-toggle.is-editing {
  grid-template-columns: minmax(0, 1fr) auto;
}

.user-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.user-step-actions form {
  margin: 0;
}

.user-step-actions .btn,
.user-step-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.user-step-layout .btn,
.user-step-layout button.btn {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.user-step-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.user-step-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(241, 247, 252, .94)),
    radial-gradient(circle at top right, rgba(22, 75, 143, .14), transparent 38%);
}

.user-step-copy span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf4f4;
  color: #0b6f72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-step-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.user-step-copy p {
  max-width: 780px;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 800;
}

.user-step-copy strong {
  color: #0d3558;
}

.user-step-table {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
}

.user-step-table div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
}

.user-step-table div + div {
  border-top: 1px solid #dfe7ef;
}

.user-step-table dt,
.user-step-table dd {
  margin: 0;
}

.user-step-table dt {
  color: #607389;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-step-table dd {
  color: #10253f;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.user-publish-dates {
  margin-top: 2px;
}

.workspace-rule-warning {
  border-color: #d57b1a !important;
  background: #fff7e8 !important;
  color: #5d3608 !important;
}

.user-product-layout {
  grid-template-columns: minmax(550px, 850px) minmax(360px, 1fr);
}

.user-final-summary {
  margin-top: 8px;
}

.user-final-summary div {
  grid-template-columns: 180px minmax(0, 1fr);
}

.user-action-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.user-action-row {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  background: #f8fbfd;
}

.user-action-row form {
  margin: 0;
}

.user-action-row .btn,
.user-action-row button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}

.user-action-row p {
  margin: 0;
  color: #40566d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.app-content .user-step-card,
.app-content .user-step-copy {
  background-color: #fff;
  color: #10253f;
}

.app-content .user-step-layout .user-step-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .2);
  background-color: #10253f;
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .28);
}

.user-step-layout-step-01 .user-step-copy {
  background-image:
    linear-gradient(135deg, rgba(3, 12, 25, .84), rgba(10, 63, 96, .58)),
    url("../img/user_steps/paso-01-modelo-tema.png");
}

.user-step-layout-step-02 .user-step-copy {
  background-image:
    linear-gradient(135deg, rgba(3, 17, 31, .86), rgba(13, 96, 101, .56)),
    url("../img/user_steps/paso-02-datos-negocio.png");
}

.user-step-layout-step-03 .user-step-copy {
  background-image:
    linear-gradient(135deg, rgba(5, 13, 29, .86), rgba(27, 67, 130, .58)),
    url("../img/user_steps/paso-03-edicion-web.png");
}

.user-step-layout-step-04 .user-step-copy {
  background-image:
    linear-gradient(135deg, rgba(4, 15, 30, .84), rgba(168, 82, 12, .54)),
    url("../img/user_steps/paso-04-publicacion.png");
}

.simple-product-digital-card.user-step-layout-step-01 .user-step-copy {
  background-image: linear-gradient(135deg, rgba(5, 14, 30, .86), rgba(20, 79, 96, .58)), url("../img/dash-theme/dash_hero.webp");
}

.simple-product-digital-card.user-step-layout-step-02 .user-step-copy {
  background-image: linear-gradient(135deg, rgba(4, 18, 31, .86), rgba(19, 91, 94, .54)), url("../img/dash-theme/OFICINA2.jpg");
}

.simple-product-digital-card.user-step-layout-step-03 .user-step-copy {
  background-image: linear-gradient(135deg, rgba(8, 16, 36, .88), rgba(49, 61, 126, .58)), url("../img/dash-theme/dash_steps.webp");
}

.simple-product-digital-card.user-step-layout-step-04 .user-step-copy {
  background-image: linear-gradient(135deg, rgba(23, 12, 12, .86), rgba(160, 72, 11, .5)), url("../img/dash-theme/FONDO_HTML_BIENVENIDO.jpg");
}

.app-content .user-step-layout .user-step-copy h2,
.app-content .user-step-layout .user-step-copy p,
.app-content .user-step-layout .user-step-copy strong {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .62);
}

.app-content .user-step-layout .user-step-copy > span,
.app-content .user-step-layout .user-step-copy .user-review-copy-head > span {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .9);
  color: #0b5961;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}

.app-content .user-step-layout .user-step-copy-catalog-review {
  align-content: start;
  grid-auto-rows: max-content;
  padding: clamp(24px, 3vw, 38px);
}

.user-review-copy-head {
  display: grid;
  gap: 16px;
}

.app-content .user-step-layout .user-step-copy-catalog-review .user-review-copy-head > p {
  max-width: 880px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.user-editor-legend {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  color: #10253f;
  backdrop-filter: blur(12px);
}

.user-editor-legend header {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8e2ed;
}

.app-content .user-step-layout .user-step-copy .user-editor-legend header > span {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b7a76;
  box-shadow: none;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-editor-legend h3 {
  margin: 0;
  color: #10253f;
  font-size: 25px;
}

.app-content .user-step-layout .user-step-copy .user-editor-legend p {
  margin: 0;
  color: #52677e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: none;
}

.user-editor-legend-item {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #f7fafd;
}

.user-editor-legend-item.is-logistics-editor {
  border-color: #e3b53b;
  background: #fff8df;
}

.user-editor-legend-item > div:last-child {
  display: grid;
  gap: 5px;
}

.app-content .user-step-layout .user-step-copy .user-editor-legend-item strong {
  color: #10253f;
  font-size: 15px;
  text-shadow: none;
}

.user-editor-legend-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.user-editor-legend-pencil {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border: 1px solid #17253b;
  border-radius: 50%;
  background: #fff;
  color: #17253b;
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
}

.user-editor-legend-upload {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #17253b;
  border-radius: 999px;
  background: #fff;
  color: #17253b;
  font-size: 11px;
  font-weight: 950;
}

.user-editor-legend-background {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #17253b;
  border-radius: 999px;
  background: #fff;
  color: #17253b;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.user-editor-legend-background em,
.user-editor-legend-background i {
  font-style: normal;
}

.user-editor-legend-background i {
  padding: 4px 7px;
  border: 1px solid #8998aa;
  border-radius: 999px;
  text-transform: none;
}

.user-editor-legend-background u {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-left: 3px;
  border: 1px solid #17253b;
  background: #17253b;
  vertical-align: -2px;
  text-decoration: none;
}

.app-content .user-step-layout .user-step-copy .user-editor-legend-logistics {
  width: fit-content;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 2px solid #17120a;
  border-radius: 9px;
  background: #ffd54a;
  color: #17120a;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .16);
  font-size: 12px;
  font-weight: 950;
  text-transform: none;
}

.user-editor-legend-logistics-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.user-editor-legend-logistics i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #17120a;
  color: #ffd54a;
  font-style: normal;
}

@media (max-width: 1180px) {
  .user-step-layout {
    grid-template-columns: 1fr;
  }

  .user-step-copy p {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  .user-editor-legend-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .user-action-row,
  .user-final-summary div {
    grid-template-columns: 1fr;
  }

  .user-action-row .btn,
  .user-action-row button {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .app-main {
    padding: 0;
  }

  .app-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    gap: 12px;
    padding: 12px 16px;
  }

  .app-topbar p {
    grid-column: 1;
    text-align: left;
  }

  .topbar-logout {
    grid-column: 2;
    min-height: 38px;
    padding: 0 11px;
  }

  .app-content {
    padding: 22px 16px;
  }

  .user-step-inline,
  .user-edit-row.has-edit-toggle,
  .user-step-table div {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard comercial */
.dashboard-page-head {
  margin-bottom: 20px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.dashboard-kpi-grid article {
  min-height: 126px;
  border-color: #cfdae7;
  box-shadow: 0 12px 28px rgba(4, 17, 35, .12);
}

.dashboard-kpi-grid span {
  min-height: 42px;
  color: #4b5f77;
  font-size: 15px;
  line-height: 1.35;
}

.dashboard-kpi-grid strong {
  margin-top: 5px;
  color: #123f78;
  font-size: 36px;
}

.dashboard-kpi-grid small,
.dashboard-kpi-grid em {
  display: block;
  margin-top: 7px;
  color: #5b6f86;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.dashboard-kpi-grid progress {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dfe8f1;
  accent-color: #19725c;
}

.dashboard-storage-kpi.is-warning,
.dashboard-capacity-kpi.is-warning {
  border-color: #d89224;
  background: #fff9ec;
}

.dashboard-storage-kpi.is-warning progress,
.dashboard-capacity-kpi.is-warning progress {
  accent-color: #d17a0f;
}

.dashboard-storage-kpi.is-critical,
.dashboard-storage-kpi.is-full,
.dashboard-capacity-kpi.is-critical,
.dashboard-capacity-kpi.is-full {
  border-color: #c34c55;
  background: #fff2f3;
}

.dashboard-storage-kpi.is-critical progress,
.dashboard-storage-kpi.is-full progress,
.dashboard-capacity-kpi.is-critical progress,
.dashboard-capacity-kpi.is-full progress {
  accent-color: #b42330;
}

/* Registro administrativo de subdominios */
.admin-subdomain-kpis {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.admin-subdomain-kpis small {
  display: block;
  margin-top: 6px;
  color: #587087;
  font-weight: 800;
}

.admin-subdomain-note {
  margin-bottom: 18px;
}

.admin-subdomain-note h2 {
  color: #102a43;
  font-size: 20px;
}

.admin-subdomain-note p {
  max-width: 980px;
  margin: 0;
  color: #4a6279;
  line-height: 1.55;
}

.admin-subdomain-table {
  min-width: 1500px;
}

.admin-subdomain-table td {
  vertical-align: middle;
}

.admin-subdomain-table td:nth-child(5),
.admin-subdomain-table td:nth-child(6) {
  min-width: 300px;
}

.admin-subdomain-open {
  display: inline-flex;
  margin-top: 7px;
  color: #0c5f92;
  font-size: 12px;
  font-weight: 900;
}

.admin-domain-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e6edf5;
  color: #314d68;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-domain-status.is-active {
  background: #dcf6ea;
  color: #087451;
}

.admin-domain-status.is-reserved,
.admin-domain-status.is-pending {
  background: #fff0d8;
  color: #8e5208;
}

.admin-domain-status.is-released,
.admin-domain-status.is-failed {
  background: #f4dfe2;
  color: #962f3a;
}

.admin-subdomain-form {
  display: grid;
  gap: 9px;
}

.admin-subdomain-form label {
  display: grid;
  gap: 5px;
  color: #415a72;
  font-size: 11px;
  font-weight: 900;
}

.admin-subdomain-form input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #aebed0;
  border-radius: 7px;
  color: #10253f;
  font: inherit;
}

.admin-subdomain-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-subdomain-input-row input {
  border-radius: 7px 0 0 7px;
}

.admin-subdomain-input-row b {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 0 7px 7px 0;
  background: #102a43;
  color: #fff;
  font-size: 12px;
}

.admin-subdomain-empty {
  color: #708298;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-report-section {
  min-width: 0;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #cfdae7;
  border-radius: 12px;
  background: #fff;
  color: #10253f;
  box-shadow: 0 16px 34px rgba(3, 15, 31, .13);
}

.dashboard-traffic-history {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d3deea;
}

.dashboard-traffic-history-head,
.dashboard-traffic-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-traffic-history-head h3 {
  margin: 5px 0;
  color: #10253f;
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-traffic-history-head p {
  max-width: 780px;
  margin: 0;
  color: #53677e;
  font-size: 15px;
  line-height: 1.5;
}

.dashboard-traffic-legend {
  display: flex;
  gap: 16px;
  margin: 17px 0 7px;
  font-size: 18px;
  font-weight: 700;
}

.dashboard-traffic-legend span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
  content: "";
}

.dashboard-traffic-legend .is-unique::before,
.dashboard-traffic-bar.is-unique { background: #1c6f9e; }
.dashboard-traffic-legend .is-visits::before,
.dashboard-traffic-bar.is-visits { background: #d2801c; }

.dashboard-traffic-chart-scroll { overflow-x: auto; }

.dashboard-traffic-chart {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  min-width: 1320px;
  height: 255px;
  margin: 0 0 15px;
  padding: 8px 6px 0;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: repeating-linear-gradient(to top, #e6edf5 0 1px, transparent 1px 38px);
}

.dashboard-traffic-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.dashboard-traffic-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 202px;
  border-bottom: 1px solid #9cafc2;
}

.dashboard-traffic-bar-slot {
  position: relative;
  display: block;
  flex: 0 1 40%;
  height: 160px;
}

.dashboard-traffic-value {
  position: absolute;
  bottom: calc(var(--bar-height) + 3px);
  left: 50%;
  transform: translateX(-50%);
  color: #10253f;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-traffic-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: min(15px, 80%);
  height: var(--bar-height);
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.dashboard-traffic-day small { margin-top: 5px; font-size: 16.5px; }

.dashboard-traffic-pagination { margin-top: 14px; font-size: 19.5px; }
.dashboard-traffic-pagination a { color: #153d6c; font-weight: 800; }
.dashboard-traffic-pagination [aria-disabled="true"] { color: #708298; }

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-section-head h2 {
  margin: 5px 0 5px;
  color: #10253f;
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-section-head p {
  max-width: 780px;
  margin: 0;
  color: #53677e;
  font-size: 15px;
  line-height: 1.5;
}

.dashboard-eyebrow {
  color: #b5670d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-mini-card {
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #d3deea;
  border-radius: 10px;
  background: #f6f9fc;
}

.dashboard-mini-card-primary {
  border-color: #2f5f98;
  background: #153d6c;
  color: #fff;
}

.dashboard-mini-card span,
.dashboard-mini-card small {
  display: block;
  color: #53677e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-mini-card-primary span,
.dashboard-mini-card-primary small {
  color: #dce9f7;
}

.dashboard-mini-card strong {
  display: block;
  margin-top: 8px;
  color: #123f78;
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dashboard-mini-card-primary strong {
  color: #fff;
}

.dashboard-mini-card small {
  margin-top: 7px;
}

.dashboard-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-ranking-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3deea;
  border-radius: 10px;
  background: #f7f9fc;
}

.dashboard-ranking-card header {
  padding: 16px 17px;
  border-bottom: 1px solid #d3deea;
  background: #eaf1f8;
}

.dashboard-ranking-card header span {
  color: #b5670d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-ranking-card h3 {
  margin: 4px 0 0;
  color: #10253f;
  font-size: 20px;
}

.dashboard-ranking-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-ranking-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 16px;
}

.dashboard-ranking-list li + li {
  border-top: 1px solid #dce4ed;
}

.dashboard-ranking-list strong,
.dashboard-ranking-list span {
  display: block;
}

.dashboard-ranking-list strong {
  color: #17314e;
  font-size: 15px;
  line-height: 1.35;
}

.dashboard-ranking-list span {
  margin-top: 4px;
  color: #5c7087;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-ranking-list b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #153d6c;
  color: #fff;
  font-size: 17px;
}

.dashboard-empty-state {
  margin: 0;
  padding: 20px 17px;
  color: #5c7087;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.dashboard-section-head-with-filter {
  align-items: end;
}

.dashboard-year-filter {
  display: grid;
  grid-template-columns: auto 120px;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.dashboard-year-filter label {
  color: #314b68;
  font-size: 15px;
  font-weight: 900;
}

.dashboard-year-filter select {
  min-height: 43px;
  padding: 7px 11px;
  border: 1px solid #9fb1c4;
  border-radius: 8px;
  background: #fff;
  color: #10253f;
  font: inherit;
  font-weight: 800;
}

.dashboard-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d3deea;
  border-radius: 10px;
}

.dashboard-table-scroll::-webkit-scrollbar {
  height: 12px;
}

.dashboard-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #91a6ba;
}

.dashboard-report-table {
  width: 100%;
  min-width: 1390px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  color: #10253f;
  font-size: 14px;
}

.dashboard-report-table th,
.dashboard-report-table td {
  min-width: 78px;
  padding: 13px 10px;
  border-right: 1px solid #dce4ed;
  border-bottom: 1px solid #dce4ed;
  text-align: center;
  white-space: nowrap;
}

.dashboard-report-table tr:last-child th,
.dashboard-report-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-report-table th:last-child,
.dashboard-report-table td:last-child {
  border-right: 0;
}

.dashboard-report-table thead th {
  background: #173b68;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.dashboard-report-table thead th:first-child,
.dashboard-report-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 230px;
  text-align: left;
}

.dashboard-report-table thead th:first-child {
  z-index: 3;
}

.dashboard-report-table thead span,
.dashboard-report-table thead small {
  display: block;
}

.dashboard-report-table thead small {
  margin-top: 3px;
  color: #dbe8f6;
  font-size: 12px;
}

.dashboard-report-table tbody th {
  background: #f3f7fb;
  color: #203b59;
  font-size: 14px;
}

.dashboard-report-table tbody td {
  font-size: 15px;
  font-weight: 800;
}

.dashboard-report-table .dashboard-total-cell {
  background: #e9f1f9;
  color: #123f78;
  font-weight: 900;
}

.dashboard-conversion-row th,
.dashboard-conversion-row td {
  background: #f8f3e8;
}

.dashboard-conversion-row th {
  z-index: 2;
}

.dashboard-product-row-paid th,
.dashboard-product-row-paid td {
  background: #eef8f2;
}

.dashboard-report-note {
  margin: 13px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #168082;
  border-radius: 7px;
  background: #edf8f8;
  color: #36566a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.dashboard-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.dashboard-compact-table {
  min-width: 560px;
}

.dashboard-compact-table thead th:first-child,
.dashboard-compact-table tbody th {
  min-width: 130px;
}

.dashboard-operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-operation-grid a,
.dashboard-operation-grid article {
  display: grid;
  align-content: space-between;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #d3deea;
  border-radius: 9px;
  background: #f6f9fc;
  color: #10253f;
  text-decoration: none;
}

.dashboard-operation-grid a {
  border-color: #c9a260;
  background: #fff8e9;
}

.dashboard-operation-grid a:hover,
.dashboard-operation-grid a:focus-visible {
  border-color: #cf790d;
  box-shadow: 0 0 0 3px rgba(207, 121, 13, .14);
  outline: 0;
}

.dashboard-operation-grid span {
  color: #455d77;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-operation-grid strong {
  margin-top: 8px;
  color: #123f78;
  font-size: 29px;
}

@media (max-width: 1450px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-ranking-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-ranking-card {
    display: grid;
    grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  }

  .dashboard-ranking-card header {
    border-right: 1px solid #d3deea;
    border-bottom: 0;
  }

  .dashboard-ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ranking-list li + li {
    border-top: 0;
  }

  .dashboard-ranking-list li {
    border-bottom: 1px solid #dce4ed;
  }
}

@media (max-width: 1180px) {
  .dashboard-mini-grid,
  .dashboard-operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-section-head,
  .dashboard-section-head-with-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-year-filter {
    grid-template-columns: 1fr;
  }

  .dashboard-ranking-card {
    grid-template-columns: 1fr;
  }

  .dashboard-ranking-card header {
    border-right: 0;
    border-bottom: 1px solid #d3deea;
  }

  .dashboard-ranking-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-kpi-grid,
  .dashboard-mini-grid,
  .dashboard-operation-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-report-section {
    padding: 17px;
  }

  .dashboard-section-head h2,
  .dashboard-traffic-history-head h3 {
    font-size: 21px;
  }
}
/* Control central de clientes */
.admin-control-head {
  margin-bottom: 18px;
}

.admin-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-control-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #cbd8e8;
  border-radius: 9px;
  background: #fff;
  color: #17355b;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.admin-control-tabs a.is-active {
  border-color: #173f72;
  background: #173f72;
  color: #fff;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-control-panel {
  max-width: 980px;
}

.admin-control-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.admin-control-list div {
  display: grid;
  grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr);
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #dbe4ef;
}

.admin-control-list dt {
  color: #536a85;
  font-weight: 800;
}

.admin-control-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #0c2445;
  font-weight: 800;
}

.admin-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-control-form {
  display: grid;
  gap: 12px;
}

.admin-control-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-control-form input {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #b9c9dd;
  border-radius: 8px;
}

.admin-control-feed {
  display: grid;
  gap: 10px;
}

.admin-control-feed p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 11px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
}

.admin-control-feed span {
  color: #536a85;
  font-size: 12px;
}

.user-catalog-workspaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.user-catalog-workspaces article {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border: 1px solid #cbd9e9;
  border-radius: 12px;
  background: #f6f9fc;
}

.user-catalog-workspaces article > span {
  color: #1d6f78;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-catalog-workspaces h3,
.user-catalog-workspaces p {
  margin: 0;
}

.user-catalog-workspaces p {
  min-height: 54px;
  color: #52667f;
  line-height: 1.5;
}

.user-catalog-workspaces .btn {
  width: 100%;
  margin-top: auto;
}

/* Mi Web Catalogo: un solo espacio con navegacion secundaria por modulo. */
.user-catalog-shell-open {
  grid-template-columns: 260px 250px minmax(0, 1fr);
}

.user-catalog-sidebar {
  position: sticky;
  z-index: 29;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  overflow-y: auto;
  border-right: 1px solid #2b3d56;
  background: #101c2e;
  color: #eaf2fb;
}

.user-catalog-sidebar-head {
  display: grid;
  gap: 7px;
  padding: 2px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.user-catalog-sidebar-head span {
  color: #72d4cf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-catalog-sidebar-head strong {
  color: #fff;
  font-size: 15px;
}

.user-catalog-sidebar-head > div,
.user-catalog-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.user-catalog-sidebar-head i,
.user-catalog-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #159f98, #db861c);
}

.user-catalog-subnav {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.user-catalog-subnav a,
.user-catalog-subnav button.user-catalog-optional-step,
.user-catalog-subnav > span {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 64px;
  align-content: center;
  padding: 10px 31px 10px 12px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: #dce6f2;
  text-decoration: none;
}

.user-step-layout-step-05 .user-step-copy {
  background-image:
    linear-gradient(135deg, rgba(3, 16, 31, .9), rgba(9, 104, 105, .62), rgba(190, 103, 16, .42)),
    url("../img/user_steps/paso-04-publicacion.png");
}

.custom-domain-page-head {
  margin-bottom: 18px;
}

.custom-domain-workspace {
  grid-template-columns: minmax(500px, 1fr) minmax(280px, 420px);
  align-items: start;
}

.custom-domain-card {
  align-content: start;
  gap: 18px;
}

.custom-domain-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid #d9e3ee;
}

.custom-domain-card-head > div {
  display: grid;
  gap: 8px;
}

.custom-domain-card-head h2,
.custom-domain-card-head p,
.custom-domain-section-title h3,
.custom-domain-section-title p {
  margin: 0;
}

.custom-domain-card-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.custom-domain-card-head p {
  max-width: 650px;
  color: #52677e;
  line-height: 1.5;
}

.custom-domain-optional-badge {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d9a758;
  border-radius: 999px;
  color: #81490b;
  background: #fff6e7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.custom-domain-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-domain-addresses article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px;
  border: 1px solid #cbd8e7;
  border-radius: 11px;
  background: #f6f9fc;
}

.custom-domain-addresses article.is-active {
  border-color: #5ba89d;
  background: #eefaf7;
  box-shadow: inset 0 3px 0 #168579;
}

.custom-domain-addresses span,
.custom-domain-dns-card dt {
  color: #5d7289;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.custom-domain-addresses strong {
  overflow-wrap: anywhere;
  color: #123454;
  font-size: 15px;
}

.custom-domain-addresses small {
  color: #5a6d82;
  line-height: 1.4;
}

.custom-domain-addresses a {
  width: fit-content;
  margin-top: 3px;
  color: #0a6f72;
  font-size: 12px;
  font-weight: 900;
}

.admin-domain-access-form {
  margin: 0;
}

.admin-domain-access-switch {
  min-width: 124px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-domain-access-switch > span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 19px;
  padding: 2px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: currentColor;
}

.admin-domain-access-switch > span i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 37, 63, .28);
  transition: transform .18s ease;
}

.admin-domain-access-switch strong,
.admin-domain-access-switch small {
  margin: 0;
  line-height: 1.1;
}

.admin-domain-access-switch small {
  font-size: 10px;
  color: inherit;
}

.admin-domain-access-switch.is-enabled {
  color: #147a52;
  background: #eaf8f1;
}

.admin-domain-access-switch.is-enabled > span i {
  transform: translateX(15px);
}

.admin-domain-access-switch.is-disabled {
  color: #b42318;
  background: #fff0ef;
}

.admin-domain-access-switch:hover,
.admin-domain-access-switch:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 123, 124, .16);
}

.admin-domain-access-na {
  color: #73869a;
  font-size: 12px;
  font-weight: 800;
}

.custom-domain-setup-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cad8e7;
  border-radius: 12px;
  background: #fbfdff;
}

.custom-domain-setup-block.is-required {
  border-color: #e0b06b;
  background: #fffaf0;
}

.custom-domain-section-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.custom-domain-section-title > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #167b7c;
  font-size: 11px;
  font-weight: 900;
}

.custom-domain-section-title h3 {
  color: #102d4b;
  font-size: 16px;
}

.custom-domain-section-title p {
  margin-top: 3px;
  color: #5a6f85;
  font-size: 12px;
  line-height: 1.45;
}

.custom-domain-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.custom-domain-form label {
  min-width: 0;
}

.custom-domain-form .btn {
  min-height: 48px;
  white-space: nowrap;
}

.custom-domain-field-help {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #60738a;
  font-size: 12px;
}

.custom-domain-dns-records {
  display: grid;
  gap: 10px;
}

.custom-domain-provider-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(70px, .42fr) minmax(110px, .9fr) minmax(180px, 1.8fr) minmax(62px, .42fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbd7e4;
  border-radius: 11px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(21, 48, 77, .05);
}

.custom-domain-provider-row.is-txt-record {
  border-color: #dca44e;
  background: #fffaf0;
}

.custom-domain-dns-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.custom-domain-dns-field > span {
  color: #526a82;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.custom-domain-dns-field > strong,
.custom-domain-dns-field-value {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #c2d0df;
  border-radius: 8px;
  background: #edf2f7;
  color: #112f4c;
}

.custom-domain-dns-field > strong {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
}

.custom-domain-dns-field-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 9px 9px 9px 12px;
}

.custom-domain-dns-field-value code {
  min-width: 0;
  padding: 4px 0;
  overflow: visible;
  color: #112f4c;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.custom-domain-dns-field-value button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #8ea7bf;
  border-radius: 6px;
  background: #fff;
  color: #16456f;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.custom-domain-dns-field-value button:hover,
.custom-domain-dns-field-value button:focus-visible,
.custom-domain-dns-field-value button.is-copied {
  border-color: #168579;
  background: #e6f8f3;
  color: #08685e;
  outline: 0;
}

.custom-domain-provider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #885717;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-domain-provider-or::before,
.custom-domain-provider-or::after {
  height: 1px;
  flex: 1 1 auto;
  background: #d8e1eb;
  content: "";
}

.custom-domain-connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.custom-domain-or {
  display: grid;
  place-items: center;
  color: #8a5d25;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-domain-dns-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cad8e7;
  border-radius: 10px;
  background: #fff;
}

.custom-domain-dns-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid #dce5ee;
  background: #edf4f9;
}

.custom-domain-dns-card header strong {
  min-width: 42px;
  color: #0b6d70;
  font-size: 13px;
}

.custom-domain-dns-card header span {
  color: #536a82;
  font-size: 11px;
  font-weight: 800;
}

.custom-domain-dns-card dl {
  display: grid;
  margin: 0;
}

.custom-domain-dns-card dl > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.custom-domain-dns-card dl > div + div {
  border-top: 1px solid #e1e8ef;
}

.custom-domain-dns-card dd {
  min-width: 0;
  margin: 0;
}

.custom-domain-dns-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #173651;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.custom-domain-txt-card {
  border-color: #d9aa63;
}

.custom-domain-txt-card header {
  background: #fff1d7;
}

.custom-domain-note {
  margin: 0 !important;
  border-color: #d4dfeb !important;
  background: #f3f7fb !important;
  color: #405a74 !important;
  font-size: 12px;
  line-height: 1.5;
}

.custom-domain-actions {
  margin-top: 0;
  padding-top: 2px;
}

.user-step-copy-domain {
  align-content: start;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  gap: 14px;
  padding: 26px;
}

.app-content .user-step-layout .user-step-copy-domain h2 {
  font-size: clamp(25px, 2.2vw, 32px);
}

.app-content .user-step-layout .user-step-copy-domain > p {
  font-size: 15px;
  line-height: 1.5;
}

.custom-domain-progress {
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.custom-domain-progress li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  background: rgba(7, 21, 38, .55);
  backdrop-filter: blur(6px);
}

.custom-domain-progress i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.custom-domain-progress li.is-current {
  border-color: #f2a83e;
  background: rgba(116, 62, 10, .62);
}

.custom-domain-progress li.is-done {
  border-color: rgba(94, 220, 181, .62);
  background: rgba(7, 91, 76, .62);
}

.custom-domain-progress li.is-done i {
  border-color: #8fe4c9;
  background: #d8fff1;
  color: #08634f;
}

.custom-domain-progress strong,
.custom-domain-progress small {
  display: block;
  color: #fff;
}

.custom-domain-progress strong {
  font-size: 13px;
}

.custom-domain-progress small {
  margin-top: 2px;
  color: #d5e1ed;
  font-size: 11px;
  line-height: 1.4;
}

.custom-domain-copy-note {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
}

.app-content .user-step-layout .custom-domain-copy-note strong,
.app-content .user-step-layout .custom-domain-copy-note p {
  color: #173650;
  text-shadow: none;
}

.custom-domain-copy-note strong {
  font-size: 13px;
}

.app-content .user-step-layout .custom-domain-copy-note p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .custom-domain-addresses,
  .custom-domain-form {
    grid-template-columns: 1fr;
  }

  .custom-domain-provider-row {
    grid-template-columns: 1fr;
  }

  .custom-domain-or {
    min-height: 22px;
  }

  .custom-domain-form .btn {
    width: 100%;
  }

  .custom-domain-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-domain-optional-badge {
    width: fit-content;
  }
}

@media (max-width: 1180px) {
  .custom-domain-workspace {
    grid-template-columns: 1fr;
  }

  .user-step-copy-domain {
    justify-self: stretch;
    max-width: none;
  }
}

.user-catalog-subnav button.user-catalog-optional-step { width: 100%; background: transparent; font: inherit; text-align: left; cursor: pointer; }

.user-catalog-subnav a:hover,
.user-catalog-subnav button.user-catalog-optional-step:hover,
.user-catalog-subnav button.user-catalog-optional-step:focus-visible,
.user-catalog-subnav a:focus-visible {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  outline: 0;
}

.user-catalog-subnav a.is-active {
  border-left-color: #db861c;
  background: #1b2c45;
  color: #fff;
}

.user-catalog-subnav a.is-done::after {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d7f8e5;
  color: #0b7a44;
  content: "\2713";
  font-size: 12px;
  font-weight: 900;
}

.user-catalog-subnav span span,
.user-catalog-subnav button.user-catalog-optional-step span,
.user-catalog-subnav a span {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.user-catalog-subnav small {
  color: #9db0c8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.user-catalog-subnav > span.is-disabled {
  opacity: .48;
}

.user-catalog-overview-head {
  align-items: center;
}

.user-catalog-overview-card,
.user-logistics-summary {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid #cad8e7;
  border-radius: 14px;
  background: #fff;
  color: #10253f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.user-catalog-overview-status {
  display: grid;
  gap: 13px;
}

.user-catalog-overview-status > div:first-child {
  display: grid;
  gap: 5px;
}

.user-catalog-overview-status span,
.user-catalog-overview-meta dt,
.user-logistics-summary article span,
.user-logistics-inline-stats span {
  color: #5a7088;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.user-catalog-overview-status strong {
  font-size: 24px;
}

.user-catalog-overview-status p,
.user-logistics-summary > p,
.user-logistics-inline-summary > p {
  margin: 0;
  color: #52677e;
  line-height: 1.55;
}

.user-catalog-progress {
  background: #e2eaf2;
}

.user-catalog-overview-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.user-catalog-overview-meta div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  background: #f7fafd;
}

.user-catalog-overview-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.user-catalog-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.user-catalog-module-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid #2b425f;
  border-radius: 13px;
  background: #111f34;
  color: #eaf2fb;
}

.user-catalog-module-grid article.is-done {
  border-color: #2e8b6a;
}

.user-catalog-module-grid article.is-done::after {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #6ce0a6;
  content: "\2713";
  font-size: 18px;
  font-weight: 900;
}

.user-catalog-module-grid article > span:first-child {
  color: #6fd2cb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-catalog-module-grid h2,
.user-catalog-module-grid p {
  margin: 0;
}

.user-catalog-module-grid p {
  min-height: 72px;
  color: #b9c8d9;
  line-height: 1.55;
}

.user-catalog-module-grid .btn {
  width: 100%;
  margin-top: auto;
}

.user-catalog-module-blocked {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 12px;
  border: 1px dashed #52667f;
  border-radius: 8px;
  color: #9db0c8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.user-logistics-summary {
  margin-top: 18px;
}

.user-logistics-summary header,
.user-logistics-inline-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-logistics-summary h2,
.user-logistics-inline-summary h3 {
  margin: 4px 0 0;
}

.user-logistics-summary > div,
.user-logistics-inline-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-logistics-summary article,
.user-logistics-inline-stats article {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  background: #f7fafd;
}

.user-logistics-summary article strong,
.user-logistics-inline-stats strong {
  color: #10253f;
  font-size: 20px;
}

.user-logistics-inline-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #b9cadc;
  border-radius: 11px;
  background: #f2f7fb;
}

.user-logistics-inline-summary header > div > span {
  color: #0b7a76;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .admin-control-grid {
    grid-template-columns: 1fr;
  }

  .user-catalog-workspaces {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .user-catalog-shell-open {
    grid-template-columns: 230px 220px minmax(0, 1fr);
  }

  .user-catalog-overview-meta,
  .user-logistics-summary > div,
  .user-logistics-inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .user-catalog-shell-open {
    grid-template-columns: 1fr;
  }

  .user-catalog-sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .user-catalog-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .user-catalog-subnav,
  .user-catalog-module-grid,
  .user-catalog-overview-meta,
  .user-logistics-summary > div,
  .user-logistics-inline-stats {
    grid-template-columns: 1fr;
  }

  .user-logistics-summary header,
  .user-logistics-inline-summary header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Legal: aceptación de plataforma y políticas independientes del negocio. */
.zentro-register-page .register-section-legal {
  border-color: rgba(13, 124, 116, .3);
  background: linear-gradient(145deg, rgba(236, 253, 250, .96), rgba(255, 255, 255, .98));
}

.zentro-register-page .register-legal-checks {
  display: grid;
  gap: 10px;
}

.zentro-register-page .register-section-legal .confirmation-check {
  align-items: flex-start;
  min-height: auto;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 12px;
  background: #fff;
}

.zentro-register-page .register-section-legal .confirmation-check input {
  margin-top: 3px;
  accent-color: #0f766e;
}

.zentro-register-page .register-section-legal a {
  color: #0b5f63;
  font-weight: 900;
}

.zentro-register-page .register-legal-note {
  margin: 10px 0 0;
  color: #476579;
  font-size: 12px;
  line-height: 1.5;
}

.legal-workspace-head {
  margin-bottom: 18px;
}

.legal-workspace {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
}

.legal-workspace-status,
.legal-profile-form,
.legal-form-section,
.legal-save-panel {
  border: 1px solid #c7d5e3;
  border-radius: 16px;
  background: #fff;
}

.legal-workspace-status {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.legal-workspace-status h2,
.legal-workspace-status p {
  margin: 0;
}

.legal-status-chip {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #8a4b08;
  background: #fff0cf;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-status-chip.is-ready {
  color: #08754e;
  background: #d9f9e9;
}

.legal-missing-box {
  padding: 13px;
  border: 1px solid #f2b24d;
  border-radius: 12px;
  color: #75420c;
  background: #fff8e9;
}

.legal-missing-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-ready-copy {
  padding: 12px;
  border-radius: 10px;
  color: #0e684c;
  background: #e7faf1;
}

.legal-document-list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #d7e0e9;
}

.legal-document-list a {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid #d5e1ec;
  border-radius: 10px;
  color: #10233d;
  text-decoration: none;
  background: #f5f8fc;
}

.legal-document-list a:hover {
  border-color: #163f6f;
}

.legal-document-list small {
  color: #587089;
}

.legal-profile-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #edf3f8;
}

.legal-form-section {
  padding: 18px;
}

.legal-form-section > header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-form-section > header > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: #123c68;
  font-weight: 900;
}

.legal-form-section h2,
.legal-form-section p {
  margin: 0;
}

.legal-form-section header p {
  margin-top: 4px;
  color: #5a6e84;
}

.legal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.legal-form-grid label,
.legal-full-label {
  display: grid;
  gap: 7px;
  color: #213b58;
  font-size: 13px;
  font-weight: 900;
}

.legal-form-grid input,
.legal-form-grid select,
.legal-form-grid textarea,
.legal-full-label input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9c9d9;
  border-radius: 9px;
  color: #10233d;
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.legal-form-grid textarea {
  resize: vertical;
}

.legal-span-2 {
  grid-column: 1 / -1;
}

.legal-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.legal-toggle-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #c9d6e3;
  border-radius: 10px;
  color: #18324f;
  background: #f7f9fc;
  font-weight: 800;
}

.legal-toggle-grid input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.legal-full-label {
  margin-top: 13px;
}

.legal-save-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #fff;
  background: #0b1f38;
}

.legal-save-panel p {
  max-width: 65ch;
  margin: 5px 0 0;
  color: #c5d4e4;
}

@media (max-width: 1000px) {
  .legal-workspace {
    grid-template-columns: 1fr;
  }

  .legal-workspace-status {
    position: static;
  }
}

@media (max-width: 700px) {
  .legal-form-grid,
  .legal-toggle-grid {
    grid-template-columns: 1fr;
  }

  .legal-span-2 {
    grid-column: auto;
  }

  .legal-save-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Etapa 3: configuración legal obligatoria del negocio */
.user-action-row.user-legal-action {
  border-color: #2a746f;
  background: linear-gradient(135deg, #eefbf9, #f8fbff);
}

.user-action-row.user-legal-action.is-locked {
  border-color: #d98216;
  background: linear-gradient(135deg, #fff8e9, #fffdf8);
}

.user-action-row.is-locked .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.25);
}

body.legal-step-modal-open {
  overflow: hidden;
}

.legal-step-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 13, 28, 0.78);
  backdrop-filter: blur(7px);
}

.legal-step-modal[hidden] {
  display: none;
}

.legal-step-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #9eb5d2;
  border-radius: 22px;
  background: #f5f8fc;
  box-shadow: 0 28px 80px rgba(1, 11, 26, 0.38);
}

.legal-step-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  color: #fff;
  background: #07182d;
}

.legal-step-dialog-head span {
  display: block;
  margin-bottom: 5px;
  color: #62d8cc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-step-dialog-head h2,
.legal-step-dialog-head p {
  margin: 0;
}

.legal-step-dialog-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.legal-step-dialog-head p {
  max-width: 780px;
  margin-top: 7px;
  color: #c9d9ed;
  line-height: 1.55;
}

.legal-step-dialog-head > button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #617a99;
  border-radius: 10px;
  color: #fff;
  background: #142b47;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.legal-step-dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
  max-height: calc(100vh - 172px);
  overflow: auto;
}

.legal-step-documents {
  padding: 24px;
  border-right: 1px solid #cad6e5;
  background: #eaf1f9;
}

.legal-step-documents h3 {
  margin: 18px 0 6px;
  color: #07182d;
  font-size: 1.25rem;
}

.legal-step-documents > p {
  margin: 0 0 16px;
  color: #465c76;
  line-height: 1.5;
}

.legal-step-document-buttons {
  display: grid;
  gap: 10px;
}

.legal-step-document-buttons a {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid #aabbd1;
  border-radius: 12px;
  color: #fff;
  background: #102c50;
  text-decoration: none;
}

.legal-step-document-buttons a:hover,
.legal-step-document-buttons a:focus-visible {
  border-color: #d98216;
  background: #173d6d;
}

.legal-step-document-buttons small {
  color: #c7d8ed;
}

.legal-step-warning {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid #d98216;
  border-radius: 8px;
  color: #55320a;
  background: #fff4df;
}

.legal-step-warning p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.legal-step-form {
  padding: 24px;
}

.legal-step-form > section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #c3d0e0;
  border-radius: 14px;
  background: #fff;
}

.legal-step-form > section > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-step-form > section > header > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #217a75;
  font-size: 0.78rem;
  font-weight: 900;
}

.legal-step-form h3,
.legal-step-form header p {
  margin: 0;
}

.legal-step-form header p {
  margin-top: 4px;
  color: #536981;
}

.legal-step-form label {
  display: grid;
  gap: 7px;
  color: #12243b;
  font-weight: 800;
}

.legal-step-form label small {
  color: #667890;
  font-weight: 600;
}

.legal-step-form input,
.legal-step-form select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #9fb2ca;
  border-radius: 9px;
  color: #0b1b31;
  background: #fff;
  font: inherit;
  font-weight: 650;
}

.legal-step-form input[readonly] {
  color: #35516f;
  background: #edf3f9;
}

.legal-step-attestation {
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #d98216;
  border-radius: 12px;
  color: #4f2e08 !important;
  background: #fff4df;
}

.legal-step-attestation input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: #217a75;
}

.legal-step-attestation span {
  display: grid;
  gap: 5px;
  line-height: 1.5;
}

.legal-step-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background: #07182d;
}

.legal-step-form-actions p {
  max-width: 530px;
  margin: 0;
  color: #c7d8ed;
  line-height: 1.45;
}

.legal-step-form-actions > div {
  display: flex;
  gap: 10px;
}

.legal-step-continue {
  border-color: #238563;
  color: #fff;
  background: #1f7a61;
}

.legal-step-continue:hover,
.legal-step-continue:focus-visible {
  background: #17624d;
}

@media (max-width: 900px) {
  .legal-step-dialog-body {
    grid-template-columns: 1fr;
  }

  .legal-step-documents {
    border-right: 0;
    border-bottom: 1px solid #cad6e5;
  }
}

@media (max-width: 620px) {
  .legal-step-modal {
    padding: 8px;
  }

  .legal-step-dialog {
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .legal-step-dialog-body {
    max-height: calc(100vh - 142px);
  }

  .legal-step-dialog-head,
  .legal-step-documents,
  .legal-step-form {
    padding: 16px;
  }

  .legal-step-form > section {
    padding: 14px;
  }

  .legal-step-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-step-form-actions > div {
    display: grid;
  }
}

/* Paso 5 opcional y aviso del subdominio obligatorio. */
.simple-fields-grid .subdomain-notice-field { grid-column: 1 / -1; }
.subdomain-notice-field { position: relative; display: grid; gap: 8px; }
.subdomain-notice-label { position: relative; display: flex; align-items: center; gap: 8px; }
.subdomain-notice-label label { margin: 0; color: #273f59; font-size: 15px; font-weight: 900; }
.simple-product-form .subdomain-notice-label label { font-size: .82rem; color: #132a47; }
.subdomain-notice-trigger { width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #de7b1f; border-radius: 50%; color: #fff; background: #cc481d; font-size: 13px; font-weight: 900; cursor: pointer; animation: subdomain-info-pulse 2.4s ease-in-out infinite; }
.subdomain-notice-trigger:hover, .subdomain-notice-trigger:focus-visible { outline: 2px solid #ffbb4c; outline-offset: 2px; }
@keyframes subdomain-info-pulse { 0%, 100% { background: #c94722; box-shadow: 0 0 0 0 rgba(231, 74, 35, .15); } 50% { background: #ef9822; box-shadow: 0 0 0 6px rgba(239, 152, 34, .18); } }
@media (prefers-reduced-motion: reduce) { .subdomain-notice-trigger { animation: none; } }
.subdomain-notice-popover { position: absolute; z-index: 20; top: calc(100% + 9px); left: 0; width: min(360px, 85vw); padding: 13px 15px; border: 1px solid #f0b16a; border-radius: 10px; color: #563a18; background: #fff8eb; box-shadow: 0 14px 35px rgba(24, 36, 57, .18); font-size: 12px; font-weight: 650; line-height: 1.5; }
.subdomain-notice-popover[hidden] { display: none; }
.optional-domain-overlay { position: fixed; z-index: 1400; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(6, 18, 33, .72); }
.optional-domain-overlay[hidden] { display: none; }
.optional-domain-dialog { position: relative; width: min(540px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border: 1px solid #c4d4e4; border-radius: 17px; color: #10253f; background: #fff; box-shadow: 0 30px 85px rgba(4, 13, 28, .36); }
.optional-domain-dialog.is-wide { width: min(700px, 100%); }
.optional-domain-dialog h2 { margin: 7px 38px 12px 0; font-size: 1.5rem; }
.optional-domain-dialog h3 { margin: 18px 0 10px; font-size: 1rem; }
.optional-domain-dialog p { margin: 0 0 13px; color: #435c76; line-height: 1.55; overflow-wrap: anywhere; }
.optional-domain-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 1px solid #cbd9e9; border-radius: 8px; color: #26405f; background: #f5f9fd; font-size: 24px; cursor: pointer; }
.optional-domain-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.optional-domain-form { display: grid; gap: 12px; margin: 17px 0; }
.optional-domain-form label { display: grid; gap: 7px; font-size: .85rem; font-weight: 800; }
.optional-domain-form input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #b9c9da; border-radius: 9px; font: inherit; }
.optional-domain-form .btn { justify-self: start; }
.optional-domain-current { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.optional-domain-record { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 9px 0; padding: 13px; border: 1px solid #d5e1ee; border-radius: 10px; background: #f7faff; }
.optional-domain-record > div { display: grid; gap: 5px; min-width: 0; }
.optional-domain-record small { color: #55708b; font-weight: 800; }
.optional-domain-record code { overflow-wrap: anywhere; font-size: .78rem; }
.optional-domain-dialog .optional-domain-hint { font-size: .81rem; }
.optional-domain-dialog form:not(.optional-domain-form) { display: inline-block; margin: 5px 8px 5px 0; }
@media (max-width: 620px) { .optional-domain-dialog { padding: 21px 17px; } .optional-domain-record { grid-template-columns: 1fr; } }

/* Etapa 3 legal: modal compacto en cuatro columnas */
.legal-step-dialog {
  width: min(1440px, 96vw);
  max-height: 92vh;
}

.legal-step-dialog-head {
  padding: 16px 20px;
}

.legal-step-dialog-head h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
}

.legal-step-dialog-head p {
  max-width: 920px;
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.legal-step-dialog-body.legal-step-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  max-height: calc(92vh - 92px);
  padding: 14px;
  overflow: auto;
  background: #eaf0f7;
}

.legal-step-form-error {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #dc6b6b;
  border-radius: 10px;
  color: #7d1616;
  background: #fff0f0;
  font-size: 13px;
  line-height: 1.4;
}

.legal-step-form > .legal-step-column {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 15px;
  border: 1px solid #bdcad9;
  border-radius: 14px;
  background: #fff;
}

.legal-step-form > .legal-step-column > header {
  display: block;
  min-height: 64px;
  margin: 10px 0 13px;
}

.legal-step-column header h3,
.legal-step-column header p {
  margin: 0;
}

.legal-step-column header h3 {
  color: #07182d;
  font-size: 1.02rem;
}

.legal-step-column header p {
  margin-top: 4px;
  color: #526980;
  font-size: 0.78rem;
  line-height: 1.4;
}

.legal-step-documents {
  border-right: 1px solid #bdcad9;
  background: #fff;
}

.legal-step-document-buttons {
  display: grid;
  gap: 9px;
}

.legal-step-document-buttons a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 11px 12px;
  border: 1px solid #99acc3;
  border-radius: 11px;
  color: #fff;
  background: #102c50;
  text-decoration: none;
}

.legal-step-document-buttons a strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.legal-step-document-buttons a span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0e352b;
  background: #d8f7e9;
  font-size: 0.74rem;
  font-weight: 900;
}

.legal-step-document-group {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #d1dbe7;
}

.legal-step-document-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #31475f;
}

.legal-step-document-group-head > strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.legal-step-document-group-head > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #176b54;
  background: #e4f7ef;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-step-document-buttons.is-secondary a {
  min-height: 46px;
  border-color: #c5d1df;
  color: #17324f;
  background: #f3f7fb;
}

.legal-step-document-buttons.is-secondary a strong {
  font-size: 0.78rem;
}

.legal-step-pending ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-step-pending li {
  position: relative;
  padding: 9px 10px 9px 28px;
  border-radius: 9px;
  color: #6d3d09;
  background: #fff4df;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.legal-step-pending li::before {
  position: absolute;
  top: 9px;
  left: 10px;
  color: #c36d0b;
  content: "•";
  font-size: 1.1rem;
  line-height: 1;
}

.legal-step-pending .legal-ready-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.legal-step-pending .legal-ready-copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.legal-step-warning {
  margin-top: 12px;
  padding: 11px;
  font-size: 0.76rem;
}

.legal-step-fields {
  display: grid;
  gap: 9px;
}

.legal-step-form .legal-step-fields label {
  gap: 4px;
  color: #142b46;
  font-size: 0.75rem;
  font-weight: 850;
}

.legal-step-form .legal-step-fields label[hidden] {
  display: none;
}

.legal-step-form .legal-step-fields label small {
  display: inline;
  color: #6a7c92;
  font-size: 0.68rem;
}

.legal-step-form .legal-step-fields input,
.legal-step-form .legal-step-fields select {
  min-height: 37px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.legal-step-attestation {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.78rem;
}

.legal-step-form-actions {
  position: sticky;
  bottom: -14px;
  z-index: 2;
  grid-column: 1 / -1;
  gap: 14px;
  margin: 0 -14px -14px;
  padding: 12px 16px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -10px 24px rgba(5, 19, 37, 0.15);
}

.legal-step-form-actions p {
  max-width: 780px;
  font-size: 0.76rem;
}

.legal-content mark.legal-draft-field {
  padding: 0.08em 0.3em;
  border: 1px solid #55b98e;
  border-radius: 5px;
  color: #075c3d;
  background: #d8f8e8;
  box-decoration-break: clone;
  font-weight: 850;
  -webkit-box-decoration-break: clone;
}

/* Selector ES/EN homologado con WEB DASH MULTI. */
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(201, 214, 229, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.locale-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(201, 214, 229, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.locale-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.locale-btn.is-active {
  border-color: rgba(255, 219, 169, 0.85);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(213, 123, 26, 0.24);
}

.locale-btn:focus-visible {
  outline: 3px solid rgba(239, 155, 61, 0.55);
  outline-offset: 2px;
}

.flag-icon {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 58, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-pe {
  background: linear-gradient(to right, #d91023 0 33.33%, #ffffff 33.33% 66.66%, #d91023 66.66% 100%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.85px, #ffffff 1.85px 3.7px);
}

.flag-us::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 46%;
  height: 54%;
  background: #3c3b6e;
}

.platform-language-switcher-floating {
  position: fixed;
  z-index: 90;
  top: 18px;
  right: 18px;
  border-color: rgba(15, 44, 69, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(10, 34, 55, 0.18);
}

.platform-language-switcher-floating .locale-btn,
.user-language-switcher .locale-btn {
  border-color: rgba(15, 44, 69, 0.2);
  background: rgba(15, 44, 69, 0.06);
}

.platform-language-switcher-floating .locale-btn:hover,
.user-language-switcher .locale-btn:hover {
  background: rgba(15, 44, 69, 0.12);
}

.app-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-language-switcher {
  padding: 4px 7px;
  border-color: rgba(15, 44, 69, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.user-language-switcher .locale-btn {
  width: 34px;
  height: 34px;
}

.user-language-switcher .locale-btn:not(.is-active) {
  opacity: .58;
  filter: saturate(.65);
}

.user-language-switcher .locale-btn.is-active {
  opacity: 1;
  filter: none;
  border-color: #e58c1d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 140, 29, .46), 0 5px 12px rgba(7, 17, 31, .22);
  transform: scale(1.08);
}

.user-language-switcher .flag-icon {
  width: 20px;
  height: 20px;
}

.mobile-header-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 720px) {
  .locale-switcher {
    gap: 5px;
    padding: 5px 7px;
  }

  .locale-btn {
    width: 36px;
    height: 36px;
  }

  .flag-icon {
    width: 20px;
    height: 20px;
  }

  .platform-language-switcher-floating {
    top: 10px;
    right: 10px;
  }

  .app-topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .app-topbar-actions {
    grid-column: 2;
    justify-self: end;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
}

.legal-draft-notice {
  padding: 11px 13px;
  border: 1px solid #55b98e;
  border-radius: 10px;
  color: #075c3d;
  background: #e8fbf2;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .legal-step-dialog-body.legal-step-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .legal-step-modal {
    padding: 8px;
  }

  .legal-step-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .legal-step-dialog-head {
    padding: 14px 16px;
  }

  .legal-step-dialog-head p {
    display: none;
  }

  .legal-step-dialog-body.legal-step-form {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 84px);
    padding: 10px;
  }

  .legal-step-form > .legal-step-column {
    padding: 13px;
  }

  .legal-step-form > .legal-step-column > header {
    min-height: 0;
  }

  .legal-step-attestation {
    grid-column: auto;
  }

  .legal-step-form-actions {
    position: static;
    grid-column: auto;
    align-items: stretch;
    margin: 0;
    border-radius: 12px;
  }

  .legal-step-form-actions > div {
    display: grid;
  }
}
