.cdo-calculator {
  --cdo-navy: #0d2f45;
  --cdo-blue: #0d7490;
  --cdo-teal: #14919b;
  --cdo-gold: #d5a94f;
  --cdo-green: #147d64;
  --cdo-soft: #f2f7f8;
  --cdo-border: #d5e2e7;
  --cdo-text: #243b53;
  /* Coincide con el ancho del bloque editorial .cdo-seo de la página. */
  max-width: 1080px;
  width: 100%;
  margin: 32px auto;
  clear: both;
  overflow: hidden;
  border: 1px solid var(--cdo-border);
  border-radius: 22px;
  background: #fff;
  color: var(--cdo-text);
  box-shadow: 0 22px 60px rgba(13, 47, 69, .14);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  isolation: isolate;
}

.cdo-calculator * { box-sizing: border-box; }
.cdo-calculator [hidden] { display: none !important; }

/* Compatibilidad con los bloques editoriales que acompañan al shortcode. */
.cdo-seo-hero > .cdo-seo-button {
  margin: 0 0 26px !important;
}

.cdo-seo-hero > .cdo-seo-trust {
  margin-top: 0 !important;
}

.cdo-seo .cdo-seo-trust,
.cdo-seo .cdo-seo-services {
  padding-left: 0 !important;
  list-style: none !important;
}

.cdo-seo .cdo-seo-trust {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: center !important;
  gap: 10px;
  flex-wrap: wrap;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  text-align: center;
}

.cdo-seo .cdo-seo-trust > li {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  float: none !important;
  margin: 0 !important;
  text-align: center;
  list-style: none !important;
}

.cdo-seo .cdo-seo-services > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cdo-seo .cdo-seo-trust > li::before,
.cdo-seo .cdo-seo-trust > li::after,
.cdo-seo .cdo-seo-services > li::before,
.cdo-seo .cdo-seo-services > li::after {
  content: none !important;
  display: none !important;
}

.cdo-seo .cdo-seo-trust > li::marker,
.cdo-seo .cdo-seo-services > li::marker {
  content: "";
  font-size: 0;
}

/*
 * Aislamiento frente a estilos generales de temas y constructores visuales.
 * BeTheme, entre otros, agrega márgenes a controles y etiquetas que alteran
 * las filas del formulario. Todos los resets quedan limitados al componente.
 */
.cdo-calculator form,
.cdo-calculator fieldset,
.cdo-calculator legend,
.cdo-calculator label,
.cdo-calculator input,
.cdo-calculator select,
.cdo-calculator button,
.cdo-calculator h2,
.cdo-calculator h3,
.cdo-calculator h4,
.cdo-calculator p {
  font-family: inherit;
}

.cdo-calculator form,
.cdo-calculator fieldset,
.cdo-calculator label,
.cdo-calculator input,
.cdo-calculator select,
.cdo-calculator button {
  margin: 0;
}

.cdo-calculator form { width: 100%; }
.cdo-calculator fieldset { min-width: 0; }
.cdo-calculator label { max-width: none; }
.cdo-calculator button { line-height: 1.35; text-transform: none; letter-spacing: normal; }
.cdo-calculator h2,
.cdo-calculator h3,
.cdo-calculator h4 { text-transform: none; }

.cdo-header {
  position: relative;
  padding: 38px 42px 32px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(130deg, var(--cdo-navy), var(--cdo-blue));
}

.cdo-header::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 250px;
  height: 250px;
  border: 45px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.cdo-header h2 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 7px 0 10px;
  color: #fff;
  font-size: clamp(27px, 4.3vw, 43px);
  line-height: 1.08;
  text-align: left;
}

.cdo-header p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: .92;
}

.cdo-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.cdo-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cdo-trust-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 750;
}

.cdo-form { padding: 30px 42px 38px; }

.cdo-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.cdo-progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #829ab1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

.cdo-progress-step b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #bcccdc;
  border-radius: 50%;
  background: #fff;
}

.cdo-progress-step.is-active { color: var(--cdo-blue); }
.cdo-progress-step.is-active b { border-color: var(--cdo-blue); background: var(--cdo-blue); color: #fff; }
.cdo-progress-step.is-complete { color: var(--cdo-green); }
.cdo-progress-step.is-complete b { border-color: var(--cdo-green); background: var(--cdo-green); color: #fff; }
.cdo-progress-step:not(:disabled):hover { color: var(--cdo-navy); }
.cdo-progress-step:focus-visible { outline: 3px solid rgba(13, 116, 144, .2); outline-offset: 5px; border-radius: 5px; }
.cdo-progress-step:disabled { opacity: .62; cursor: not-allowed; }
.cdo-progress-line { flex: 1; min-width: 18px; height: 1px; margin: 0 10px; background: var(--cdo-border); }

.cdo-step { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.cdo-step legend { width: 100%; margin: 0; padding: 0; border: 0; color: var(--cdo-navy); font-size: 24px; font-weight: 850; line-height: 1.25; text-align: left; }
.cdo-step-intro { margin: 7px 0 24px; color: #627d98; line-height: 1.5; }

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

.cdo-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  font-weight: 750;
  line-height: 1.35;
}

.cdo-field-wide { grid-column: 1 / -1; }
.cdo-field > span:first-child { min-height: 2.7em; }
.cdo-field-wide > span:first-child { min-height: 0; }
.cdo-field small { color: #627d98; font-size: 12px; font-weight: 450; }
.cdo-field .cdo-field-error { min-height: 0; color: #b42318; font-weight: 700; }
.cdo-field [aria-invalid="true"] { border-color: #d92d20; background: #fffafa; }

.cdo-field input,
.cdo-field select {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 49px;
  height: auto;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid #bcccdc;
  border-radius: 10px;
  background: #fff;
  color: var(--cdo-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
}

.cdo-field input:focus,
.cdo-field select:focus {
  outline: 3px solid rgba(13, 116, 144, .15);
  border-color: var(--cdo-blue);
}

.cdo-money {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bcccdc;
  border-radius: 10px;
  background: #fff;
}

.cdo-money:focus-within { outline: 3px solid rgba(13, 116, 144, .15); border-color: var(--cdo-blue); }
.cdo-money b { padding: 0 14px; color: var(--cdo-blue); }
.cdo-money input { min-width: 0; border: 0; border-left: 1px solid var(--cdo-border); border-radius: 0; outline: 0 !important; }

.cdo-consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 12px 0;
  padding: 17px 0;
  color: #486581;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.cdo-consent input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 22px;
  accent-color: var(--cdo-blue);
  cursor: pointer;
}
.cdo-consent > span { padding-top: 1px; }
.cdo-consent.has-error {
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 15px 16px;
  border: 1px solid #f0b4ae;
  border-left: 4px solid #d92d20;
  border-radius: 9px;
  background: #fff5f4;
  color: #7a271a;
}
.cdo-consent-error { display: none; }
.cdo-consent-error:not(:empty) {
  display: block;
  margin: 0 0 20px;
  color: #b42318;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}
.cdo-seniority-live { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 15px 17px; border: 1px solid #b8dce2; border-radius: 10px; background: #eef9fa; color: #174c5a; }
.cdo-seniority-live span { font-size: 13px; font-weight: 700; }
.cdo-seniority-live strong { color: var(--cdo-navy); text-align: right; }
.cdo-step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.cdo-step-actions-end { justify-content: flex-end; }

.cdo-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  text-decoration: none !important;
  cursor: pointer;
}

.cdo-button-primary { background: var(--cdo-blue); color: #fff !important; }
.cdo-button-primary:hover { background: var(--cdo-navy); }
.cdo-button-ghost { border-color: #bcccdc; background: #fff; color: var(--cdo-navy); }
.cdo-button:disabled { opacity: .58; cursor: wait; }

.cdo-error {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 4px solid #c53030;
  border-radius: 8px;
  background: #fff1f0;
  color: #9b2c2c;
}
.cdo-retry { margin-left: 6px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 5px; background: #fff; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }

.cdo-result {
  padding: 36px 42px 40px;
  border-top: 1px solid var(--cdo-border);
  background: var(--cdo-soft);
  scroll-margin-top: 25px;
}

.cdo-result-head { text-align: center; }
.cdo-result-head h3 { margin: 8px 0; color: var(--cdo-navy); font-size: clamp(23px, 4vw, 31px); }
.cdo-result-head p { max-width: 720px; margin: 13px auto 22px; color: #486581; line-height: 1.55; }

.cdo-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  flex-wrap: wrap;
  margin: 17px 0;
}

.cdo-range strong { color: var(--cdo-blue); font-size: clamp(29px, 5.4vw, 49px); font-weight: 950; letter-spacing: -.025em; }
.cdo-range span { color: #829ab1; font-weight: 850; }
.cdo-reference-value { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.cdo-reference-value span { color: #627d98; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cdo-reference-value strong { color: var(--cdo-navy); font-size: clamp(32px, 5.8vw, 52px); font-weight: 950; letter-spacing: -.03em; }
.cdo-reference-conditional strong { color: #8a5b12; }
.cdo-band-label { margin-top: 20px; color: #627d98; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cdo-range-chart { max-width: 740px; margin: 34px auto 22px; padding: 0 8px; text-align: left; }
.cdo-range-track { position: relative; height: 13px; border: 1px solid #9fcbd4; border-radius: 999px; background: linear-gradient(90deg, #d9eef1 0%, var(--cdo-teal) 50%, #d9eef1 100%); box-shadow: inset 0 1px 2px rgba(13, 47, 69, .12); }
.cdo-range-marker { position: absolute; top: 50%; width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: var(--cdo-blue); box-shadow: 0 2px 8px rgba(13, 47, 69, .28); transform: translate(-50%, -50%); }
.cdo-range-marker>span { position: absolute; bottom: 22px; left: 50%; padding: 3px 7px; border-radius: 5px; background: var(--cdo-navy); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.25; white-space: nowrap; transform: translateX(-50%); }
.cdo-range-marker>span::after { content: ""; position: absolute; top: 100%; left: 50%; border: 4px solid transparent; border-top-color: var(--cdo-navy); transform: translateX(-50%); }
.cdo-range-endpoints { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 13px; }
.cdo-range-endpoints>div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.cdo-range-endpoints>div:last-child { align-items: flex-end; text-align: right; }
.cdo-range-endpoints span { color: #627d98; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cdo-range-endpoints strong { color: var(--cdo-navy); font-size: clamp(14px, 2.4vw, 18px); font-weight: 900; line-height: 1.25; }
.cdo-no-amount { max-width: 680px; margin: 20px auto; padding: 20px; border: 1px solid #e8c37a; border-radius: 10px; background: #fff8e8; color: #684f16; font-weight: 700; line-height: 1.55; }

.cdo-summary { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 26px; }
.cdo-summary span { padding: 7px 11px; border: 1px solid var(--cdo-border); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }

.cdo-registration-notice,
.cdo-context-note,
.cdo-transition-notice {
  max-width: 740px;
  margin: 14px auto;
  padding: 14px 16px;
  border-left: 4px solid var(--cdo-gold);
  border-radius: 8px;
  background: #fff8e8;
  color: #684f16;
  line-height: 1.55;
}

.cdo-context-note { border-left-color: var(--cdo-blue); background: #eaf6f8; color: #174c5a; }
.cdo-transition-notice { border-left-color: #8a5b12; background: #fff8e8; color: #684f16; }
.cdo-transition-notice>strong { display: block; margin-bottom: 7px; color: #5b400d; font-size: 16px; }
.cdo-transition-notice p { margin: 0; }
.cdo-registration-notice>strong { display: block; margin-bottom: 7px; color: #5b400d; font-size: 16px; }
.cdo-registration-notice p { margin: 0; }

.cdo-variation-box {
  max-width: 740px;
  margin: 24px auto;
  padding: 20px 22px;
  border: 1px solid var(--cdo-border);
  border-radius: 12px;
  background: #fff;
}

.cdo-variation-box h4 { margin: 0 0 10px; color: var(--cdo-navy); }
.cdo-variation-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 0; padding-left: 19px; color: #486581; font-size: 13px; line-height: 1.45; }

.cdo-method-card { max-width: 760px; margin: 25px auto; padding: 22px; border: 1px solid var(--cdo-border); border-left: 5px solid var(--cdo-blue); border-radius: 12px; background: #fff; }
.cdo-method-conditional { border-left-color: var(--cdo-gold); }
.cdo-method-insufficient { border-left-color: #b54708; }
.cdo-method-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cdo-method-heading>div { display: flex; flex-direction: column; gap: 4px; }
.cdo-method-heading span { color: #627d98; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cdo-method-heading strong { color: var(--cdo-navy); font-size: 17px; }
.cdo-method-card>p { margin: 15px 0; color: #486581; line-height: 1.55; }
.cdo-normative { padding: 11px 13px; border-radius: 7px; background: var(--cdo-soft); font-size: 13px; line-height: 1.5; }
.cdo-method-card details { margin-top: 16px; }
.cdo-method-card summary { color: var(--cdo-blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.cdo-scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 15px; }
.cdo-scope-grid h4 { margin: 0 0 8px; color: var(--cdo-navy); font-size: 14px; }
.cdo-scope-grid ul { margin: 0; padding-left: 18px; color: #486581; font-size: 12px; line-height: 1.55; }
.cdo-method-card details>small { display: block; margin-top: 13px; color: #829ab1; }

.cdo-professional-advice {
  max-width: 780px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 1px solid #b8dce2;
  border-left: 5px solid var(--cdo-blue);
  border-radius: 10px;
  background: #eef9fa;
  color: #174c5a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  text-align: left;
}

.cdo-service-card {
  position: relative;
  max-width: 780px;
  margin: 30px auto 0;
  padding: 30px;
  overflow: hidden;
  border: 2px solid var(--cdo-gold);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(13, 47, 69, .1);
}

.cdo-professional-advice + .cdo-service-card { margin-top: 18px; }

.cdo-service-badge { display: inline-block; margin-bottom: 9px; color: #7a5510; font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.cdo-service-card h3 { margin: 0 0 8px; color: var(--cdo-navy); font-size: 24px; }
.cdo-service-card p { line-height: 1.55; }
.cdo-service-reason { color: var(--cdo-blue); font-weight: 750; }
.cdo-professional-gap { margin: 18px 0; padding: 15px 17px; border: 1px solid #c9dce3; border-radius: 10px; background: var(--cdo-soft); color: #334e68; }
.cdo-professional-gap strong { display: block; margin-bottom: 5px; color: var(--cdo-navy); }
.cdo-professional-gap p { margin: 0; font-size: 13px; }
.cdo-service-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 19px 0 23px; padding: 0 !important; list-style: none !important; }
.cdo-calculator .cdo-service-benefits>li {
  display: flex;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.cdo-calculator .cdo-service-benefits>li::marker { content: ""; font-size: 0; }
.cdo-calculator .cdo-service-benefits>li::before { content: "\2713" !important; display: inline-block !important; margin: 0 8px 0 0 !important; color: var(--cdo-green); font-weight: 950; line-height: 1.45; flex: 0 0 auto; }
.cdo-calculator .cdo-service-benefits>li::after { content: none !important; display: none !important; }

.cdo-button-conversion {
  width: 100%;
  min-height: 54px;
  background: var(--cdo-green);
  color: #fff !important;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(20, 125, 100, .22);
}

.cdo-button-conversion:hover { background: #0c604d; transform: translateY(-1px); }
.cdo-service-card small { display: block; margin-top: 11px; color: #627d98; text-align: center; line-height: 1.45; }
.cdo-recalculate {
  display: block;
  clear: both;
  width: fit-content;
  min-height: 40px;
  margin: 30px auto 4px !important;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cdo-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}
.cdo-recalculate:hover { background: rgba(13, 116, 144, .08); }
.cdo-recalculate:focus-visible { outline: 3px solid rgba(13, 116, 144, .2); outline-offset: 3px; }

.cdo-legal { padding: 17px 42px; background: #e5eef1; color: #486581; font-size: 11px; line-height: 1.55; }

@media (max-width: 700px) {
  .cdo-calculator { width: 100%; margin: 16px 0; border-radius: 14px; }
  .cdo-header, .cdo-form, .cdo-result { padding-left: 21px; padding-right: 21px; }
  .cdo-grid, .cdo-variation-box ul, .cdo-service-benefits, .cdo-method-heading, .cdo-scope-grid { grid-template-columns: 1fr; }
  .cdo-field-wide { grid-column: auto; }
  .cdo-field > span:first-child { min-height: 0; }
  .cdo-progress-step>span { display: none; }
  .cdo-progress-step b { font-size: 12px; }
  .cdo-service-card { padding: 23px 20px; }
  .cdo-seniority-live { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cdo-seniority-live strong { text-align: left; }
  .cdo-legal { padding: 15px 21px; }
}

@media (max-width: 430px) {
  .cdo-range { flex-direction: column; gap: 2px; }
  .cdo-range-chart { margin-top: 36px; padding: 0 2px; }
  .cdo-range-endpoints { gap: 8px; }
  .cdo-range-endpoints span { font-size: 9px; letter-spacing: .02em; }
  .cdo-range-endpoints strong { font-size: clamp(12px, 3.7vw, 15px); letter-spacing: -.02em; }
  .cdo-step-actions .cdo-button { flex: 1; padding-left: 12px; padding-right: 12px; }
}

