
/* Fix crítico: respetar el atributo hidden del loader */
.ot-loader[hidden] {
  display: none !important;
}


:root {
  --ot-primary: #6ec1e4;
  --ot-primary-strong: #35b2dd;
  --ot-dark: #0b1f3a;
  --ot-text: #47617d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.om-onboarding-standalone-body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ot-text);
  background: linear-gradient(180deg, #f7fcfe 0%, #eef8fc 100%);
}
.om-onboarding-standalone-body #wpadminbar { display:none !important; }
.om-onboarding-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.om-onboarding-brand {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 18px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(110,193,228,0.20);
  box-shadow: 0 18px 40px rgba(11,31,58,0.08);
}
.om-onboarding-brand img {
  width: min(270px, 60vw);
  height: auto;
}
.om-onboarding-hero {
  text-align: center;
  margin-bottom: 28px;
}
.om-chip {
  display: inline-flex;
  min-height: 36px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(110,193,228,0.18);
  color: var(--ot-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.om-onboarding-hero h1 {
  margin: 18px auto 16px;
  max-width: 980px;
  color: var(--ot-dark);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.om-onboarding-hero p {
  margin: 0 auto;
  max-width: 860px;
  font-size: 20px;
  line-height: 1.65;
}
.ot-alert {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(225, 85, 85, 0.22);
  background: rgba(255,255,255,0.92);
  color: #7a1c1c;
  box-shadow: 0 16px 32px rgba(11,31,58,0.06);
}
.ot-chip-small { font-size: 12px; }
.ot-field input[type="email"] { width: 100%; }
.ot-btn[disabled] { opacity: .72; cursor: wait; }

@media (max-width: 980px) {
  .om-onboarding-shell { width: min(100% - 20px, 1240px); }
  .om-onboarding-hero h1 { font-size: clamp(32px, 7vw, 44px); }
  .om-onboarding-hero p { font-size: 17px; }
}


.om-onboarding-standalone-body #wpadminbar { display: none !important; }
.om-onboarding-standalone-body { margin-top: 0 !important; }
.om-onboarding-standalone {
  min-height: 100vh;
  padding: 28px 0 56px;
  background: linear-gradient(180deg, #f7fcfe 0%, #eef8fc 100%);
}
.om-onboarding-standalone__shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}
.om-onboarding-standalone__brand {
  display: inline-flex;
  margin-bottom: 24px;
}
.om-onboarding-standalone__brand img {
  width: min(240px, 58vw);
  height: auto;
}
.om-onboarding-standalone__hero .om-onboarding-head {
  margin-bottom: 28px;
}

.ot-onboarding {
  position: relative;
  margin: 0 auto;
  padding: 6px 0 20px;
}

.ot-wizard {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ot-summary-card,
.ot-panel-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(110,193,228,0.22);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(11,31,58,0.10);
  backdrop-filter: blur(10px);
}

.ot-summary-card {
  position: sticky;
  top: 116px;
  padding: 26px;
  overflow: hidden;
}

.ot-summary-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -44px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(110,193,228,0.22), transparent 68%);
  pointer-events: none;
}

.ot-chip {
  display: inline-flex;
  min-height: 32px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  background: rgba(110,193,228,0.18);
  color: #0b1f3a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ot-summary-head h2 {
  margin: 14px 0 10px;
  font-size: 32px;
  line-height: 1.05;
  color: #0b1f3a;
}

.ot-summary-head p {
  margin: 0 0 18px;
  color: #46607d;
  line-height: 1.7;
}

.ot-summary-box {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(110,193,228,0.10), rgba(255,255,255,0.92));
  border: 1px solid rgba(110,193,228,0.18);
}

.ot-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.ot-summary-row span {
  color: #5c748f;
}

.ot-summary-row strong {
  color: #0b1f3a;
  text-align: right;
}

.ot-summary-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ot-summary-list li {
  position: relative;
  padding-left: 24px;
  color: #36506e;
  line-height: 1.6;
}

.ot-summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: #35b2dd;
}

.ot-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 8px;
}

.ot-stepper-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 34px;
  height: 3px;
  background: rgba(11,31,58,0.14);
  border-radius: 999px;
  overflow: hidden;
}

.ot-stepper-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #35b2dd, #6ec1e4);
  border-radius: inherit;
  transition: width .28s ease;
}

.ot-step {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: #5e7391;
  cursor: pointer;
}

.ot-step span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #0b1f3a;
  background: #ffffff;
  border: 2px solid rgba(110,193,228,0.2);
  box-shadow: 0 8px 22px rgba(11,31,58,0.08);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.ot-step small {
  font-size: 14px;
  font-weight: 700;
}

.ot-step.is-active span,
.ot-step.is-complete span {
  background: linear-gradient(135deg, #6ec1e4, #35b2dd);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.ot-panel-step {
  display: none;
}

.ot-panel-step.is-active {
  display: block;
}

.ot-panel-card {
  padding: 28px;
}

.ot-panel-card h3 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.06;
  color: #0b1f3a;
  letter-spacing: -0.03em;
}

.ot-panel-card p {
  margin: 0;
  color: #49627e;
  line-height: 1.7;
  font-size: 18px;
}

.ot-panel-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 22px;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(110,193,228,0.16), rgba(255,255,255,1));
  box-shadow: inset 0 0 0 1px rgba(110,193,228,0.16);
}

.ot-plan-options {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.ot-plan-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 20px;
  border: 2px solid rgba(110,193,228,0.22);
  background: rgba(255,255,255,0.82);
  cursor: pointer;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.ot-plan-option:hover,
.ot-plan-option.is-active {
  transform: translateY(-2px);
  border-color: #35b2dd;
  box-shadow: 0 18px 40px rgba(11,31,58,0.10);
}

.ot-plan-option input,
.ot-demo-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ot-radio {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(11,31,58,0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ot-plan-option.is-active .ot-radio {
  border-color: #35b2dd;
}

.ot-plan-option.is-active .ot-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #35b2dd;
}

.ot-plan-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.ot-plan-copy strong {
  color: #0b1f3a;
  font-size: 21px;
}

.ot-plan-copy small {
  color: #355371;
  font-size: 16px;
  font-weight: 700;
}

.ot-panel-grid {
  display: grid;
  gap: 18px;
}

.ot-field label {
  display: block;
  margin-bottom: 8px;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 15px;
}

.ot-field label span {
  color: #e04776;
}

.ot-field input {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(11,31,58,0.14);
  background: rgba(255,255,255,0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 0 18px;
  font-size: 18px;
  color: #0b1f3a;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ot-field input:focus {
  border-color: rgba(53,178,221,0.7);
  box-shadow: 0 0 0 4px rgba(110,193,228,0.16);
}

.ot-subdomain-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ot-domain-suffix {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(11,31,58,0.05);
  border: 1px solid rgba(11,31,58,0.08);
  color: #35506e;
  font-weight: 700;
  white-space: nowrap;
}

.ot-field-help,
.ot-validation {
  margin-top: 8px;
  font-size: 14px;
  color: #59718d;
  line-height: 1.5;
}

.ot-validation.is-error {
  color: #d9436d;
}

.ot-validation.is-success {
  color: #169368;
}

.ot-password-meter {
  margin-top: 10px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11,31,58,0.08);
}

.ot-password-meter span {
  display: block;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: #ffb74d;
  transition: width .25s ease, background .25s ease;
}

.ot-panel-card-wide {
  padding-bottom: 24px;
}

.ot-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ot-tip {
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  background: rgba(110,193,228,0.14);
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 700;
}

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

.ot-demo-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(110,193,228,0.18);
  box-shadow: 0 16px 34px rgba(11,31,58,0.08);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.ot-demo-card:hover,
.ot-demo-card.is-active {
  transform: translateY(-4px);
  border-color: #4e92ff;
  box-shadow: 0 22px 44px rgba(11,31,58,0.12);
}

.ot-demo-media {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(11,31,58,0.08);
  background: #fff;
}

.ot-demo-media img {
  display: block;
  width: 100%;
  aspect-ratio: 240 / 146;
  object-fit: cover;
  object-position: top center;
  transition: transform .34s ease;
}

.ot-demo-card:hover .ot-demo-media img,
.ot-demo-card.is-active .ot-demo-media img {
  transform: scale(1.03);
}

.ot-demo-select,
.ot-demo-name-label {
  cursor: pointer;
}

.ot-demo-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ot-demo-name {
  display: block;
  flex: 1;
  text-align: left;
  color: #244376;
  font-size: 16px;
  font-weight: 800;
}

.ot-demo-preview-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: #244376;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ot-demo-preview-btn:hover {
  background: #1d3763;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11,31,58,0.12);
}

.ot-demo-card.is-active .ot-demo-preview-btn {
  background: #4e92ff;
}

.ot-demo-card.is-active .ot-demo-preview-btn:hover {
  background: #3f7ee0;
}

.ot-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.ot-btn {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, color .24s ease;
}

.ot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11,31,58,0.12);
}

.ot-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6ec1e4, #35b2dd);
}

.ot-btn-secondary {
  color: #0b1f3a;
  background: rgba(255,255,255,0.92);
  border-color: rgba(110,193,228,0.24);
}

.ot-loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: rgba(10,27,50,0.46);
  backdrop-filter: blur(5px);
}

.ot-loader-box {
  width: min(92vw, 340px);
  padding: 28px 24px;
  border-radius: 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11,31,58,0.18);
}

.ot-loader-dot {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 4px solid rgba(110,193,228,0.2);
  border-top-color: #35b2dd;
  animation: otSpin 1s linear infinite;
}

.ot-loader-box h4 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #0b1f3a;
}

.ot-loader-box p {
  margin: 0;
  color: #49627e;
  line-height: 1.6;
}

.ot-checkout-context {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(110,193,228,0.14), rgba(255,255,255,0.95));
  border: 1px solid rgba(110,193,228,0.22);
  box-shadow: 0 16px 34px rgba(11,31,58,0.08);
}

.ot-checkout-context__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ot-checkout-context__row div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(11,31,58,0.06);
}

.ot-checkout-context__row span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #6380a0;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ot-checkout-context__row strong {
  color: #0b1f3a;
  font-size: 15px;
  line-height: 1.45;
}

.ot-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.ot-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ot-reveal-delay-1 { transition-delay: .08s; }
.ot-reveal-delay-2 { transition-delay: .16s; }
.ot-reveal-delay-3 { transition-delay: .24s; }

@keyframes otSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .ot-wizard {
    grid-template-columns: 1fr;
  }

  .ot-summary-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 860px) {
  .ot-panel-card h3 {
    font-size: 34px;
  }

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

  .ot-checkout-context__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ot-footer-compact {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .ot-stepper {
    gap: 8px;
  }

  .ot-demo-name-row {
    flex-wrap: wrap;
  }

  .ot-demo-preview-btn {
    width: 100%;
  }

  .ot-step small {
    font-size: 12px;
  }

  .ot-panel-card {
    padding: 22px;
  }

  .ot-panel-card h3 {
    font-size: 30px;
  }

  .ot-panel-card p {
    font-size: 16px;
  }

  .ot-subdomain-wrap {
    grid-template-columns: 1fr;
  }

  .ot-domain-suffix {
    justify-content: center;
  }

  .ot-plan-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .ot-demo-grid,
  .ot-checkout-context__row {
    grid-template-columns: 1fr;
  }

  .ot-actions {
    flex-direction: column;
  }

  .ot-btn {
    width: 100%;
  }
}


/* 3.1.2 layout cleanup */
.om-onboarding-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.om-onboarding-brand {
  display: inline-flex;
  margin: 0 0 40px;
  padding: 18px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(110,193,228,0.20);
  box-shadow: 0 18px 40px rgba(11,31,58,0.08);
}

.om-onboarding-brand img {
  width: min(270px, 60vw);
  height: auto;
}

.om-onboarding-hero {
  display: none !important;
}

@media (max-width: 980px) {
  .om-onboarding-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
  }

  .om-onboarding-brand {
    margin-bottom: 32px;
  }
}


/* 4.1.0 renewal flow */
.ot-renewal-wrap {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ot-renewal-main .ot-panel-card {
  padding: 26px;
}

.ot-renewal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.ot-field-static .ot-static-value {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(110,193,228,0.18);
  background: rgba(255,255,255,0.92);
  color: #0b1f3a;
  font-weight: 700;
}

.ot-renewal-plans {
  margin-top: 12px;
}

.ot-actions-renewal {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .ot-renewal-wrap {
    grid-template-columns: 1fr;
  }
  .ot-renewal-grid {
    grid-template-columns: 1fr;
  }
}


/* Mantener la estética original del onboarding sin heredar tipografías del theme */
.om-onboarding-standalone-body,
.om-onboarding-standalone-body h1,
.om-onboarding-standalone-body h2,
.om-onboarding-standalone-body h3,
.om-onboarding-standalone-body h4,
.om-onboarding-standalone-body h5,
.om-onboarding-standalone-body h6,
.om-onboarding-standalone-body button,
.om-onboarding-standalone-body input,
.om-onboarding-standalone-body select,
.om-onboarding-standalone-body textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.om-onboarding-brand img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}
