.tool-panel { max-width: 960px; margin: 1.5rem 0 3rem; padding: clamp(1.15rem, 4vw, 2.75rem); border: 1px solid #cbd4cb; border-radius: 12px; background: #fff; color: #23362e; }
.tool-panel [hidden] { display: none !important; }
.tool-panel h2 { margin: 1.2rem 0 1.5rem; font: 500 clamp(1.65rem, 3.2vw, 2.2rem)/1.2 Georgia, serif; letter-spacing: -.025em; }
.tool-panel h3 { margin: .5rem 0 .85rem; font: 500 1.5rem/1.25 Georgia, serif; }
.tool-panel p { line-height: 1.6; }
.tool-topline { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .78rem; font-weight: 650; letter-spacing: .035em; }
.tool-panel progress { display: block; appearance: none; width: 100%; height: 5px; margin: 1rem 0 1.75rem; border: 0; background: #e5e9e0; color: #173f35; }
.tool-panel progress::-webkit-progress-bar { background: #e5e9e0; }
.tool-panel progress::-webkit-progress-value { background: #173f35; }
.tool-panel progress::-moz-progress-bar { background: #173f35; }
.tool-controls, .tool-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-question { margin: 1.65rem 0; }
.tool-question legend { width: 100%; padding: 0; margin-bottom: .8rem; font-size: 1.03rem; font-weight: 650; line-height: 1.5; }
.tool-field-hint { display: block; color: #5e6d62; font-size: .82rem; font-weight: 400; margin-top: .2rem; }
.tool-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.tool-panel .choice { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1rem; min-height: 3.25rem; border: 1px solid #c8d0c7; border-radius: 3px; background: #fff; font-size: .94rem; line-height: 1.4; cursor: pointer; }
.tool-panel .choice:hover { background: #f5f7f1; border-color: #607b65; }
.tool-panel .choice:has(input:checked) { border-color: #173f35; background: #edf3eb; box-shadow: inset 0 0 0 1px #173f35; }
.tool-panel .choice input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: .14rem 0 0; accent-color: #173f35; }
.tool-panel :focus-visible { outline: 3px solid #bc5d38; outline-offset: 3px; }
.tool-panel h2:focus { outline: 2px solid #bc5d38; outline-offset: 5px; }
.tool-actions { display: flex; gap: .8rem; justify-content: space-between; flex-wrap: wrap; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #dce2d7; }
.tool-panel .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1.25rem; border: 1px solid #173f35; border-radius: 3px; background: #173f35; color: #fff; font: 600 .94rem/1.3 "Segoe UI", sans-serif; cursor: pointer; }
.tool-panel .button:hover { background: #295546; }
.tool-panel .button-secondary { background: #fff; color: #173f35; }
.tool-panel .button-secondary:hover { background: #edf3eb; }
.tool-panel .button:disabled { opacity: .5; cursor: default; }
.tool-reset { display: block; margin: 1rem auto 0; border: 0; padding: .5rem; background: transparent; color: #405e48; text-decoration: underline; text-underline-offset: .2em; font: inherit; font-size: .85rem; cursor: pointer; }
.tool-panel .field-error { color: #942f26; margin: .5rem 0; font-size: .9rem; font-weight: 600; }
.tool-panel input[aria-invalid="true"] { border-color: #942f26; outline: 2px solid #942f26; outline-offset: 2px; }
.tool-help, .tool-privacy { color: #526258; font-size: .9rem; }
.tool-privacy { border-top: 1px solid #dce2d7; padding-top: 1.15rem; margin: 1.75rem 0 0; }
.tool-notice { border-left: 3px solid #b65e3c; padding: 1rem 1.25rem; margin: 1.5rem 0; background: #f5f3eb; font-size: .95rem; }
.tool-notice h3:first-child { margin-top: 0; }
.tool-notice > :last-child { margin-bottom: 0; }
.tool-panel .tool-eyebrow { color: #405e48; text-transform: uppercase; font-size: .76rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 .35rem; }
.tool-result-item { padding: 1.7rem 0; border-bottom: 1px solid #dce2d7; }
.tool-result-item p { margin: .7rem 0; }
.tool-existing { font-weight: 600; }
.tool-panel a { color: #24553f; text-decoration: underline; text-underline-offset: .18em; }
.tool-intro { margin: 1rem 0 1.7rem; font-size: .9rem; color: #526258; }
.policy-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.policy-panel { min-width: 0; border: 1px solid #d3dacd; padding: 1.15rem 1.3rem .3rem; margin: 0; }
.policy-panel legend { font: 500 1.45rem/1.2 Georgia, serif; padding: 0 .4rem; }
.tool-panel .field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.tool-panel .field label { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.tool-panel .field input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: .65rem .75rem; border: 1px solid #a8b5a8; border-radius: 2px; background: #fff; color: #173f35; font: 500 1.1rem/1.3 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.damage-field { margin-top: 1.5rem; max-width: 26rem; }
.tool-assumptions { margin: 1.7rem 0 1rem; padding-top: 1.3rem; border-top: 1px solid #dce2d7; font-size: .9rem; color: #526258; }
.tool-table-scroll { overflow-x: auto; max-width: 100%; }
.tool-results-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tool-results-table caption { text-align: left; color: #526258; font-size: .85rem; padding-bottom: .85rem; }
.tool-results-table th, .tool-results-table td { text-align: right; padding: 1rem .7rem; border-bottom: 1px solid #d4dccf; font-variant-numeric: tabular-nums; }
.tool-results-table th:first-child { text-align: left; font-weight: 500; }
.tool-results-table thead th { background: #edf3eb; font-size: .85rem; }
.tool-results-table tbody tr:last-child { font-weight: 700; background: #f6f8f2; }
.tool-results-table td { white-space: nowrap; }
.tool-comparison { font-weight: 650; color: #173f35; }
.tool-panel .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; border: 0; }
@media (max-width: 600px) {
  .tool-panel { padding: 1.15rem; }
  .tool-choices, .policy-inputs { grid-template-columns: 1fr; }
  .tool-panel .choice { padding: .85rem; }
  .tool-actions .button { flex: 1 1 8rem; }
  .tool-results-table { font-size: .82rem; }
  .tool-results-table th, .tool-results-table td { padding: .85rem .4rem; }
  .tool-topline { font-size: .73rem; }
}

/* Orientador: recorrido y resultados, aislados de la calculadora. */
.page-tool .header-inner { flex-wrap: wrap; }
.page-orientation .tool-heading { max-width: 920px; margin-bottom: 30px; }
.page-orientation .tool-heading h1 { max-width: 800px; font-size: clamp(2.15rem, 4vw, 3.5rem); }
.orientation-benefits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: #244d50; font-size: .82rem; font-weight: 600; }
.orientation-benefits span { display: flex; align-items: center; gap: 8px; }
.orientation-benefits span:not(:first-child)::before { content: ''; width: 5px; height: 5px; background: #af492d; border-radius: 50%; }
.orientation-benefits .icon { width: 20px; height: 20px; }
#orientation-tool { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; max-width: none; padding: 0; margin-top: 0; border: 1px solid #c6d2ce; border-radius: 18px; background: #fffdf7; box-shadow: 0 12px 34px #1333370b; color: #133337; }
.orientation-roadmap { padding: 30px 24px; border-radius: 17px 0 0 17px; background: #133337; color: #fff9e9; }
.orientation-roadmap-intro > .icon { width: 36px; height: 36px; color: #d6ed70; }
#orientation-tool .orientation-roadmap h2 { font-size: 2.3rem; margin: 20px 0 14px; color: #fff9e9; }
.orientation-roadmap-intro p { color: #c5dbd6; font-size: .88rem; line-height: 1.55; }
.orientation-progress-steps { display: grid; gap: 8px; padding: 0; margin: 28px 0; list-style: none; }
.orientation-progress-steps button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: transparent; color: #c5dbd6; border: 1px solid transparent; padding: 10px; min-height: 50px; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.orientation-progress-steps button:disabled { cursor: default; opacity: 1; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #73908b; border-radius: 50%; font-size: .8rem; }
.orientation-progress-steps button[aria-current] { color: #133337; background: #d6ed70; }
.orientation-progress-steps button[aria-current] .step-number { border-color: #133337; background: #133337; color: #d6ed70; }
.orientation-progress-steps button.is-complete .step-number { background: #30615d; border-color: #8ac1ad; color: #fff; }
.orientation-progress-steps button:not(:disabled):hover { border-color: #8ac1ad; background: #214c4c; color: #fff; }
#orientation-tool .orientation-roadmap-note { border-top: 1px solid #466664; padding-top: 22px; color: #c5dbd6; font-size: .8rem; margin: 0; }
.orientation-workspace { padding: clamp(22px, 3vw, 40px); min-width: 0; }
#orientation-tool .tool-topline { font-size: .78rem; letter-spacing: 0; color: #40615e; }
#orientation-step-label { font-weight: 750; color: #133337; }
#orientation-tool progress { margin: 14px 0 28px; height: 7px; border-radius: 10px; overflow: hidden; background: #dde5dc; }
#orientation-tool progress::-webkit-progress-bar { background: #dde5dc; }
#orientation-tool progress::-webkit-progress-value { background: #2e615c; border-radius: 10px; }
#orientation-tool progress::-moz-progress-bar { background: #2e615c; }
#orientation-tool .tool-step h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.orientation-step-description { color: #526760; font-size: .92rem; margin-bottom: 26px; max-width: 620px; }
#orientation-tool .tool-question { margin: 26px 0; }
#orientation-tool .tool-question + .tool-question { padding-top: 22px; border-top: 1px solid #dee3d8; }
#orientation-tool .tool-question legend { font-size: .97rem; color: #133337; }
#orientation-tool .tool-field-hint { font-size: .78rem; line-height: 1.5; color: #526760; margin-top: 5px; }
#orientation-tool .tool-choices { gap: 10px; }
#orientation-tool .choice { align-items: center; min-height: 60px; border-radius: 9px; background: #fff; border-color: #aebfba; padding: 13px 15px; font-size: .88rem; transition: background .15s, border-color .15s; }
#orientation-tool .choice:hover { border-color: #326963; background: #edf4ee; }
#orientation-tool .choice:has(input:checked) { border-color: #2c655b; background: #e6efba; box-shadow: inset 0 0 0 1px #2c655b; color: #133337; }
#orientation-tool .choice:has(input:focus-visible) { outline: 3px solid #ad4729; outline-offset: 3px; }
#orientation-tool .choice input { width: 19px; height: 19px; margin: 0; accent-color: #24554d; }
#orientation-tool .tool-actions { align-items: center; padding-top: 22px; margin-top: 26px; gap: 12px; }
#orientation-tool .button { min-height: 49px; border-radius: 8px; background: #153c40; border-color: #153c40; color: #fff; padding-inline: 22px; }
#orientation-tool #orientation-next { background: #ff966e; border-color: #ff966e; color: #133337; gap: 16px; }
#orientation-next::after { content: '→'; font-size: 1.25rem; }
#orientation-tool #orientation-next:hover { background: #ffb08f; border-color: #cc6f4c; }
#orientation-tool .button-secondary { background: transparent; color: #244f4b; border-color: #a9bbb4; }
#orientation-tool .button-secondary:hover { background: #eaf1e6; }
#orientation-tool .tool-reset { margin: 16px 0 0; color: #526760; font-size: .78rem; }
.orientation-skip { display: block; margin: 16px 0 0 auto; padding: 10px 0; background: none; border: none; color: #244f4b; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }
#orientation-tool .tool-privacy { margin-top: 22px; padding-top: 20px; color: #526760; font-size: .78rem; }
#orientation-tool .tool-notice { border-color: #b85b32; border-radius: 0 8px 8px 0; background: #fff0dc; }
#orientation-tool .field-error { padding: 8px 10px; background: #fff0e8; border-radius: 5px; color: #973327; }
.orientation-result-intro { padding-bottom: 24px; border-bottom: 1px solid #c8d7ce; margin-bottom: 22px; }
.orientation-complete { display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px; border-radius: 25px; background: #d6ed70; color: #133337; font-size: .78rem; font-weight: 700; }
.orientation-complete::before { content: '✓'; }
#orientation-tool .orientation-result-intro h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin: 18px 0 14px; }
.orientation-result-intro .tool-help { margin-bottom: 12px; }
.orientation-result-count { color: #375a52; font-size: .84rem; margin: 0; }
.orientation-result-grid { display: grid; gap: 20px; }
#orientation-tool .tool-result-item { --area-color: #24594e; --area-tint: #e9f0e6; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 0; border-radius: 12px; background: var(--area-tint); }
#orientation-tool .tool-result-item[data-area="auto"], #orientation-tool .tool-result-item[data-area="viaje"] { --area-color: #2f4d89; --area-tint: #eaf0f8; }
#orientation-tool .tool-result-item[data-area="vida"], #orientation-tool .tool-result-item[data-area="hogar"] { --area-color: #934828; --area-tint: #faeee3; }
#orientation-tool .tool-result-item[data-area="mascotas"], #orientation-tool .tool-result-item[data-area="negocio"] { --area-color: #694676; --area-tint: #f0eaf4; }
#orientation-tool .orientation-area-label { color: var(--area-color); font-size: 1rem; font-weight: 750; margin: 0 0 16px; }
#orientation-tool .tool-result-item h3 { font-size: 1.65rem; margin-top: 0; }
#orientation-tool .tool-result-item p { font-size: .92rem; }
#orientation-tool .orientation-check { padding: 10px 0; background: transparent; }
#orientation-tool .orientation-check strong { display: block; margin-bottom: 6px; }
#orientation-tool .orientation-guide-link { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 650; padding: 14px 0 0; margin-top: auto; color: #244f4b; }
.orientation-guide-link::after { content: '→'; }
.orientation-recap { margin-top: 28px; border-block: 1px solid #c8d7ce; padding: 18px 0; font-size: .88rem; }
.orientation-recap summary { cursor: pointer; font-weight: 700; }
.orientation-recap-step { padding: 18px 0; border-bottom: 1px solid #dfe6de; }
.orientation-recap-step:last-child { border-bottom: 0; }
.orientation-recap-step button { color: #244f4b; border: 0; background: transparent; padding: 8px 0; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }
.orientation-recap dt { font-weight: 600; }
.orientation-recap dd { margin: 3px 0 14px; color: #526760; }
.page-orientation .tool-explanation { max-width: none; font-size: .95rem; padding: 28px 32px; border-radius: 12px; background: #e5ecdf; margin-top: 38px; }
.page-orientation .tool-explanation > p:first-child { font-size: 1.05rem; }
.page-orientation .tool-explanation h2 { font-size: 1.5rem; margin-top: 28px; }
@media (min-width: 1150px) {
  #orientation-tool.has-result { grid-template-columns: 220px minmax(0, 1fr); }
  .orientation-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orientation-result-grid > :only-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  #orientation-tool { grid-template-columns: 1fr; }
  .orientation-roadmap { padding: 14px 20px; border-radius: 17px 17px 0 0; }
  .orientation-roadmap-intro, .orientation-roadmap-note { display: none; }
  .orientation-progress-steps { display: flex; justify-content: space-between; gap: 6px; margin: 0; }
  .orientation-progress-steps li { flex: 1; min-width: 0; }
  .orientation-progress-steps button { flex-direction: column; gap: 6px; font-size: .7rem; text-align: center; padding: 8px 2px; }
  .orientation-workspace { padding: 25px; }
}
@media (max-width: 600px) {
  .page-orientation .tool-heading { margin-bottom: 22px; }
  .orientation-benefits { font-size: .73rem; gap: 9px 14px; }
  .orientation-benefits span:last-child { display: none; }
  .orientation-workspace { padding: 22px 17px; }
  .orientation-roadmap { padding: 10px 12px; }
  .orientation-progress-steps button { min-height: 46px; padding: 7px 2px; }
  .orientation-progress-steps .step-name { display: none; }
  #orientation-tool .tool-topline { font-size: .7rem; gap: 8px; }
  #orientation-tool .tool-choices { grid-template-columns: 1fr; gap: 8px; }
  #orientation-tool .choice { min-height: 54px; padding: 12px; }
  #orientation-tool .tool-actions { flex-wrap: nowrap; gap: 10px; }
  #orientation-tool .tool-actions .button { padding: 12px; font-size: .84rem; flex: 1 1 0; }
  #orientation-tool .tool-step h2 { font-size: 1.75rem; }
  .orientation-step-description { font-size: .86rem; }
  #orientation-tool .tool-result-item { padding: 20px 17px; }
  .page-orientation .tool-explanation { padding: 22px 20px; }
}
/* Ajustes de lectura y contraste de la calculadora. */
#calculator-tool { background: #fffdf7; color: #133337; }
#calculator-tool .tool-topline { color: #375b55; letter-spacing: 0; }
.calculator-field-help { font-size: .85rem; color: #466359; margin: 0 0 24px; }
#calculator-tool .policy-panel { padding: 16px 22px 8px; border: 0; border-radius: 12px; background: #e9f0e6; }
#calculator-tool .policy-panel[data-policy="b"] { background: #eaf0f8; }
#calculator-tool .policy-panel legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font: 700 1.05rem/1.5 "Segoe UI", sans-serif; color: #24594e; }
#calculator-tool .policy-panel[data-policy="b"] legend { color: #2f4d89; }
#calculator-tool .policy-panel .field { clear: both; }
#calculator-tool .field input { border-color: #9badab; border-radius: 7px; padding: 12px 14px; font-size: 1.2rem; color: #133337; }
.calculator-scenario { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; background: #faeee3; border-radius: 12px; margin-top: 22px; }
#calculator-tool .damage-field { margin: 0; max-width: none; }
#damage-help { font-size: .86rem; color: #624d3c; margin: 0; }
#calculator-tool #money-format { font-size: .8rem; margin: 16px 0 20px; }
.calculator-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
#calculator-tool #calculator-submit { border-radius: 8px; background: #ff966e; border-color: #ff966e; color: #133337; padding: 14px 22px; }
#calculator-tool #calculator-submit:hover { background: #ffb08f; border-color: #cc6f4c; }
.calculator-reset { padding: 10px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; color: #375b55; font-size: .85rem; }
#calculator-status { margin: 20px 0 0; font-size: .82rem; }
#calculator-result { margin-top: 28px; }
#calculator-tool #calculator-result h2 { margin-bottom: 18px; }
#calculator-tool .tool-comparison { padding: 20px 22px; background: #dfecc5; border-radius: 10px; font-size: 1.08rem; line-height: 1.65; margin-bottom: 24px; color: #173c34; }
#calculator-tool .tool-results-table { font-size: .9rem; }
#calculator-tool .tool-results-table thead th { background: #173c40; color: #fffdf7; }
#calculator-tool .tool-results-table thead th:first-child { border-radius: 7px 0 0 7px; }
#calculator-tool .tool-results-table thead th:last-child { border-radius: 0 7px 7px 0; }
#calculator-tool .tool-results-table tbody tr:last-child { background: #e9f0e6; }
.calculator-no-event { margin: 18px 0 0; font-size: .9rem; }
#calculator-tool .tool-assumptions, #calculator-tool .tool-privacy { font-size: .82rem; }
@media (max-width: 600px) {
  #calculator-tool .policy-inputs { gap: 16px; }
  #calculator-tool .policy-panel { padding: 18px 16px 5px; }
  .calculator-scenario { grid-template-columns: 1fr; padding: 18px 16px; gap: 12px; }
  #calculator-tool .calculator-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  #calculator-tool .tool-results-table { font-size: .78rem; }
  #calculator-tool .tool-comparison { padding: 17px; font-size: .97rem; }
}
