/* Scope-specific researched opportunity in the three FFL proposals. */
.plan-opportunity{background:var(--surface-elev);border:1px solid var(--border);border-radius:24px;padding:26px;margin:28px 0;box-shadow:var(--shadow-sm);scroll-margin-top:24px}.plan-opportunity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.plan-opportunity h2{font-size:25px;line-height:1.3;letter-spacing:-.7px;font-weight:600;margin:10px 0 13px}.plan-opportunity-scope{font-size:10px;line-height:1.7;border:1px solid var(--border);border-radius:12px;padding:8px 11px;background:var(--surface);color:var(--navy);max-width:240px}.plan-opportunity-intro{font-size:13px;line-height:1.8;color:var(--muted-foreground);margin:0 0 20px;max-width:780px}.plan-opportunity-table{border:1px solid var(--border);border-radius:13px;overflow:hidden}.plan-opportunity-table table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}.plan-opportunity-table caption{background:var(--navy);color:#fff;font-size:10px;line-height:1.6;padding:10px 14px;text-align:left}.plan-opportunity-table thead{background:var(--surface)}.plan-opportunity-table th,.plan-opportunity-table td{padding:11px 14px;border-bottom:1px solid var(--border)}.plan-opportunity-table thead th{font-size:10px;font-weight:500;color:var(--navy)}.plan-opportunity-table tbody th{width:24%;font-weight:500}.plan-opportunity-table td:nth-child(2){width:26%}.plan-opportunity-table td:nth-child(3){width:34%;white-space:nowrap}.plan-opportunity-table td:last-child{font-size:11px;color:var(--muted-foreground)}.plan-opportunity-table tr:last-child>*{border:0}.plan-opportunity-table tbody tr:nth-child(even){background:#fafbfd}.plan-opportunity-table a{color:var(--ink)}.plan-opportunity-table a span{font-size:9px;color:#8b96a9}.plan-opportunity-table a:hover{text-decoration:underline;text-underline-offset:3px}.plan-opportunity-table small{display:block;font-size:9px;line-height:1.5;color:var(--muted-foreground);margin-top:3px}.plan-opportunity-table strong{font-weight:500}.plan-demand{display:flex;align-items:center;gap:12px}.plan-demand strong{min-width:43px}.plan-demand-track{flex:1;height:5px;background:#e3e8f1;border-radius:5px}.plan-demand-track i{display:block;height:100%;width:var(--demand-fill);border-radius:5px;background:#526991}.plan-opportunity-territory-note{font-size:11px;line-height:1.8;color:var(--muted-foreground);margin:15px 0}.plan-opportunity-context{padding:17px 19px;border-radius:13px;background:var(--surface);margin:18px 0;color:var(--navy)}.plan-opportunity-context>strong{font-size:12px;font-weight:500}.plan-opportunity-context p{font-size:11px;line-height:1.8;margin:8px 0 0;color:var(--muted-foreground)}.plan-opportunity-method{font-size:11px;color:var(--muted-foreground);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.plan-opportunity-method summary{font-size:12px;color:var(--navy);cursor:pointer;padding:14px 0}.plan-opportunity-method>div{padding-bottom:12px;line-height:1.8}.plan-opportunity-method p{margin:0 0 11px}.plan-opportunity-links{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:18px}.plan-opportunity-links>a:last-child{font-size:11px;color:var(--navy)}.plan-opportunity a:focus-visible,.plan-opportunity summary:focus-visible{outline:2px solid var(--navy);outline-offset:4px}@media(max-width:1000px){.plan-opportunity-head{flex-direction:column;gap:0}.plan-opportunity-scope{max-width:none;margin-bottom:15px}.plan-opportunity-table th,.plan-opportunity-table td{padding:9px}.plan-demand-track{display:none}}@media(max-width:600px){.plan-opportunity{padding:19px;border-radius:20px}.plan-opportunity h2{font-size:23px}.plan-opportunity-table table,.plan-opportunity-table tbody,.plan-opportunity-table tr,.plan-opportunity-table tbody th,.plan-opportunity-table td{display:block;width:auto}.plan-opportunity-table caption{display:block}.plan-opportunity-table thead{display:none}.plan-opportunity-table tbody tr{padding:14px;border-bottom:1px solid var(--border)}.plan-opportunity-table tbody tr:last-child{border:0}.plan-opportunity-table tbody th{border:0;padding:0 0 9px;font-size:14px}.plan-opportunity-table td:nth-child(n){display:grid;grid-template-columns:1fr auto;gap:8px;width:auto;border:0;padding:5px 0;font-size:10px;white-space:normal}.plan-opportunity-table td::before{content:attr(data-label);font-size:9px;color:var(--muted-foreground)}.plan-demand strong{min-width:0}.plan-opportunity-context{padding:14px}.plan-opportunity-links{align-items:flex-start;flex-direction:column}}

.plan-opportunity-period{font-size:10px;color:var(--muted-foreground);line-height:1.7;margin:12px 0 0}

/* Agregador de oportunidad por plan: un único total visible que responde al deslizador. */
.plan-opportunity-simulator{margin:20px 0 18px;padding:22px 24px;border:1px solid #dce5ef;border-radius:18px;background:linear-gradient(135deg,#f4f7fb 0%,#edf3fa 100%)}
.plan-opportunity-simulator-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.plan-opportunity-simulator .eyebrow{margin:0 0 7px;color:var(--navy);font-size:9px;letter-spacing:.12em}
.plan-opportunity-simulator h3{margin:0;color:var(--navy);font-size:17px;line-height:1.4;font-weight:600}
.plan-opportunity-simulator-intro{max-width:700px;margin:7px 0 0;color:var(--muted-foreground);font-size:11px;line-height:1.65}
.plan-opportunity-simulator-control{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 16px;margin-top:20px}
.plan-opportunity-simulator-control label{color:var(--navy);font-size:12px}
.plan-opportunity-simulator-control output{padding:5px 10px;border:1px solid #d5dfeb;border-radius:10px;background:#fff;color:var(--navy);font-size:19px;font-variant-numeric:tabular-nums}
.plan-opportunity-slider{grid-column:1/-1;appearance:none;-webkit-appearance:none;width:100%;height:8px;margin:7px 0;border-radius:99px;background:linear-gradient(to right,#315a86 var(--plan-opportunity-fill,100%),#d7e0eb var(--plan-opportunity-fill,100%));cursor:pointer}
.plan-opportunity-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:4px solid #fff;border-radius:50%;background:#315a86;box-shadow:0 1px 5px #152b4633}
.plan-opportunity-slider::-moz-range-thumb{width:13px;height:13px;border:4px solid #fff;border-radius:50%;background:#315a86;box-shadow:0 1px 5px #152b4633}
.plan-opportunity-slider:focus-visible{outline:3px solid #80a8cf;outline-offset:5px}
.plan-opportunity-simulator-scale{display:flex;justify-content:space-between;grid-column:1/-1;color:var(--muted-foreground);font-size:9px}
.plan-opportunity-simulator-results{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(140px,.6fr);align-items:end;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #d9e2ed}
.plan-opportunity-simulator-results span{display:block;color:var(--muted-foreground);font-size:9px;letter-spacing:.06em;text-transform:uppercase}
.plan-opportunity-simulator-results strong{display:block;margin-top:5px;color:var(--navy);font-size:clamp(21px,3vw,31px);font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.plan-opportunity-simulator-results>div:last-child strong{font-size:20px}
.plan-opportunity-simulator-note{margin:13px 0 0;color:var(--muted-foreground);font-size:9px;line-height:1.65}
.plan-opportunity-simulator-note strong{color:var(--navy);font-weight:500}
@media(max-width:600px){.plan-opportunity-simulator{padding:17px;border-radius:15px}.plan-opportunity-simulator-head{display:block}.plan-opportunity-simulator h3{font-size:16px}.plan-opportunity-simulator-control{margin-top:16px}.plan-opportunity-simulator-results{grid-template-columns:1fr;gap:12px}.plan-opportunity-simulator-results strong{font-size:25px}}

.plan-opportunity-breakdown{margin:20px 0 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.plan-opportunity-breakdown>summary{padding:14px 0;color:var(--navy);font-size:12px;cursor:pointer}
.plan-opportunity-breakdown>summary:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
.plan-opportunity-breakdown .plan-opportunity-table{margin:0 0 12px}
.plan-opportunity-breakdown .plan-opportunity-period{margin:0 0 13px}
