:root.web-capacity.nexo-capacity .contenido { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; padding:0; border:0; background:none; box-shadow:none; }
:root.web-capacity.nexo-capacity .seccion { margin:0; }
:root.web-capacity.nexo-capacity .datos-cliente { display:none; }
:root.web-capacity.nexo-capacity [hidden] { display:none !important; }
:root.web-capacity.nexo-capacity .cap-step { display:block; margin-bottom:8px; font-size:11px; line-height:1.4; font-weight:650; letter-spacing:.035em; color:var(--ios-blue); }
:root.web-capacity.nexo-capacity .seccion h2 { margin-bottom:18px; }
:root.web-capacity.nexo-capacity .cap-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
:root.web-capacity.nexo-capacity .campo { display:flex; flex-direction:column; gap:7px; }
:root.web-capacity.nexo-capacity .cap-form label { min-height:2.7em; display:flex; align-items:end; }
:root.web-capacity.nexo-capacity .cap-wide,
:root.web-capacity.nexo-capacity [data-spouse=false] .cap-income-holder { grid-column:1/-1; }
:root.web-capacity.nexo-capacity .cap-help { margin:0 0 16px; font-size:12px; line-height:1.5; color:var(--ios-secondary); }
:root.web-capacity.nexo-capacity .cap-error { font-size:12px; line-height:1.4; color:#b42334; }
:root.web-capacity.nexo-capacity .cap-profile-active { width:fit-content; margin:16px 0 0; border-radius:9px; padding:7px 11px; background:var(--ios-tint); color:var(--ios-blue); font-size:14px; font-weight:600; }
:root.web-capacity.nexo-capacity .condiciones .campo-tipo-credito { grid-column:1/-1; }
:root.web-capacity.nexo-capacity .condiciones .acciones { display:block; }
:root.web-capacity.nexo-capacity .cap-result-main { padding:20px; border:1px solid var(--ios-line); border-radius:18px; background:var(--ios-field); }
:root.web-capacity.nexo-capacity .cap-state { display:inline-flex; padding:6px 10px; border-radius:8px; background:var(--ios-card); color:var(--ios-secondary); font-size:12px; font-weight:650; }
:root.web-capacity.nexo-capacity #capRatio { display:block; margin:16px 0 10px; color:var(--ios-text); font-size:clamp(36px,10vw,48px); font-weight:700; line-height:1.1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
:root.web-capacity.nexo-capacity .cap-result-main p { margin:10px 0; font-size:13px; line-height:1.5; color:var(--ios-secondary); }
:root.web-capacity.nexo-capacity #capProfileLimit { display:block; margin-top:12px; font-size:13px; font-weight:600; color:var(--ios-text); }
:root.web-capacity.nexo-capacity [data-state=within] .cap-state { background:#e0f2e8; color:#166344; }
:root.web-capacity.nexo-capacity [data-state=equal] .cap-state { background:#fff0cc; color:#7a4a00; }
:root.web-capacity.nexo-capacity [data-state=over] .cap-state { background:#fce7ea; color:#a61d34; }
:root.web-capacity.nexo-capacity .cap-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; margin:18px 0; }
:root.web-capacity.nexo-capacity .cap-results>div { min-width:0; padding:15px 0; border-bottom:1px solid var(--ios-line); }
:root.web-capacity.nexo-capacity .cap-results dt { font-size:12px; line-height:1.4; color:var(--ios-secondary); }
:root.web-capacity.nexo-capacity .cap-results dd { margin:7px 0 0; font-size:17px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; color:var(--ios-text); }
:root.web-capacity.nexo-capacity .cap-evaluated { padding:17px !important; margin-top:10px; border:1px solid var(--ios-line); border-radius:15px; background:var(--ios-tint); }
:root.web-capacity.nexo-capacity #capEvaluatedQuote { font-size:27px; color:var(--ios-blue); }
:root.web-capacity.nexo-capacity #capQuoteNote { margin:10px 0 0; font-size:12px; line-height:1.5; color:var(--ios-secondary); }
:root.web-capacity.nexo-capacity :is(.cap-calculation,.cap-schedule) { min-width:0; padding:0; border:1px solid var(--ios-line); border-radius:16px; background:var(--ios-card); }
:root.web-capacity.nexo-capacity :is(.cap-calculation,.cap-schedule)>summary { display:list-item; min-height:48px; padding:15px; font-size:14px; font-weight:600; cursor:pointer; color:var(--ios-blue); }
:root.web-capacity.nexo-capacity .cap-calculation p { margin:0; padding:0 15px 15px; font-size:13px; line-height:1.6; color:var(--ios-secondary); overflow-wrap:anywhere; }
:root.web-capacity.nexo-capacity .cap-schedule .amortizacion { margin:0; border:0; border-radius:0; }
:root.web-capacity.nexo-capacity .capacity-section>.cap-help:last-child { margin:16px 0 0; }
@media(min-width:850px) {
  :root.web-capacity.nexo-capacity .contenido { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :root.web-capacity.nexo-capacity .condiciones,
  :root.web-capacity.nexo-capacity .capacity-section:has(#capRatio),
  :root.web-capacity.nexo-capacity .cap-schedule { grid-column:1/-1; }
  :root.web-capacity.nexo-capacity .capacity-section:has(#capDebtHolder) { grid-column:1/-1; }
  :root.web-capacity.nexo-capacity .cap-results { grid-template-columns:repeat(3,minmax(0,1fr)); }
  :root.web-capacity.nexo-capacity .cap-evaluated { grid-column:1/-1; }
}

/* The Personas module shares the blue summary and quiet form cards used by Empresas. */
:root.web-capacity.nexo-capacity { --ios-blue:#406ea3; --ios-tint:#eef3f9; }
:root.web-capacity.nexo-capacity .capacity-section { border-radius:24px; }
:root.web-capacity.nexo-capacity .cap-section-heading { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
:root.web-capacity.nexo-capacity .cap-section-heading h2 { margin:0; font-size:20px; font-weight:700; }
:root.web-capacity.nexo-capacity .cap-section-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:13px; background:var(--ios-tint); color:var(--ios-blue); }
:root.web-capacity.nexo-capacity .cap-section-icon svg { width:24px; height:24px; }
:root.web-capacity.nexo-capacity :is(.cap-form,.condiciones) :is(input,select) { min-height:52px; border-radius:14px; font-weight:600; }
:root.web-capacity.nexo-capacity .cap-form label { font-weight:500; }
:root.web-capacity.nexo-capacity .cap-wide label,
:root.web-capacity.nexo-capacity [data-spouse=false] .cap-income-holder label { min-height:0; }
:root.web-capacity.nexo-capacity .capacity-section:has(#capMediumField[hidden]) .campo:has(#capProfile) { grid-column:1/-1; }
:root.web-capacity.nexo-capacity .cap-hero {
  padding:20px; border:0; border-radius:26px; color:#fff;
  background:linear-gradient(135deg,#406ea3,#17335e); grid-column:1/-1;
}
:root.web-capacity.nexo-capacity .cap-hero-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
:root.web-capacity.nexo-capacity .cap-hero-heading>div { min-width:0; }
:root.web-capacity.nexo-capacity .cap-hero-heading span { color:#ffffffe6; font-size:11px; line-height:1.4; letter-spacing:1.4px; font-weight:700; }
:root.web-capacity.nexo-capacity .cap-hero-heading h1 { margin:8px 0 0; color:#fff; font-size:22px; font-weight:700; letter-spacing:-.6px; }
:root.web-capacity.nexo-capacity .cap-hero-heading img { flex:0 0 72px; width:72px; height:72px; object-fit:contain; }
:root.web-capacity.nexo-capacity .cap-hero .cap-result-main { padding:0; border:0; border-radius:0; background:none; }
:root.web-capacity.nexo-capacity .cap-hero-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
:root.web-capacity.nexo-capacity .cap-hero-values>div+div { padding-left:16px; border-left:1px solid #ffffff30; }
:root.web-capacity.nexo-capacity .cap-hero-values span { color:#fffffff2; font-size:12px; line-height:1.4; font-weight:600; }
:root.web-capacity.nexo-capacity .cap-hero :is(#capRatio,#capHeroLimit) { display:block; margin:7px 0 0; font-size:clamp(30px,8.6vw,40px); line-height:1.15; letter-spacing:-1px; font-weight:700; font-variant-numeric:tabular-nums; color:#fff; overflow-wrap:anywhere; }
:root.web-capacity.nexo-capacity .cap-hero .cap-state { margin-bottom:3px; background:#ffffff1f; color:#fff; }
:root.web-capacity.nexo-capacity .cap-hero [data-state=within] .cap-state { background:#e0f2e8; color:#166344; }
:root.web-capacity.nexo-capacity .cap-hero [data-state=equal] .cap-state { background:#fff0cc; color:#7a4a00; }
:root.web-capacity.nexo-capacity .cap-hero [data-state=over] .cap-state { background:#fce7ea; color:#a61d34; }
:root.web-capacity.nexo-capacity .cap-hero .cap-result-main p { color:#fffffff2; font-size:12px; }
:root.web-capacity.nexo-capacity .cap-hero-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:16px; padding-top:14px; border-top:1px solid #ffffff28; }
:root.web-capacity.nexo-capacity .cap-hero-metrics span { display:block; font-size:12px; color:#ffffffe6; }
:root.web-capacity.nexo-capacity .cap-hero-metrics strong { display:block; margin-top:6px; font-size:15px; font-weight:600; color:#fff; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
:root.web-capacity.nexo-capacity .cap-evaluated { background:var(--ios-tint); }

html[data-web-capacity]:not(.web-capacity) .pagina > :is(.encabezado, .contenido, .autoria) { display:none; }
html[data-web-capacity]:not(.web-capacity) .cap-loading {
  display:block; padding:18px; border-radius:16px; background:#fff; color:#17335e;
}
:root.web-capacity {
  --ios-text:#13213d; --ios-secondary:#536581; --ios-card:#fff;
  --ios-field:#f4f7fc; --ios-line:#d6e0ef;
}
.web-capacity .pagina { width:min(1120px,calc(100% - 24px)); }
.web-capacity .pagina .contenido { grid-template-rows:auto; }
.web-capacity .pagina .seccion { grid-row:auto; grid-column:auto; min-height:0; padding:20px; }
.web-capacity .pagina :is(.cap-full,.cap-hero,.cap-schedule) { grid-column:1/-1; }
.web-capacity .pagina :is(.cap-section-heading,.cap-hero) h2::before { content:none; }
.web-capacity .cap-hero-heading h1 {
  margin:6px 0 0; font-size:clamp(22px,4vw,34px); line-height:1.1; letter-spacing:-.035em;
}
.web-capacity .cap-hero-heading img { width:clamp(76px,15vw,130px); height:85px; flex-basis:auto; }
.web-capacity .cap-hero #bizStatus { margin:0; font-size:13px; line-height:1.45; }
.web-capacity .pagina .acciones { display:block; }
.web-capacity .pagina label { min-height:0; font-size:12px; }
.web-capacity .pagina :is(input,select) { min-width:0; font-size:16px; }
.web-capacity .pagina :is(input,select)[aria-invalid="true"] { border-color:#b42334; }
.web-capacity .biz-balances { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.web-capacity .biz-balances fieldset {
  min-width:0; margin:0; padding:14px; border:1px solid var(--ios-line); border-radius:14px;
}
.web-capacity .biz-balances legend { padding:0 5px; font-weight:700; }
.web-capacity .biz-metrics {
  display:flex; flex-wrap:wrap; gap:14px 24px; margin:14px 0; padding:12px;
  border-radius:12px; background:var(--ios-tint);
}
.web-capacity .biz-metrics span { display:block; color:var(--ios-secondary); font-size:12px; }
.web-capacity .biz-metrics strong { display:block; margin-top:5px; overflow-wrap:anywhere; }
.web-capacity .biz-indices strong {
  display:block; margin-top:4px; color:#fff; font-size:clamp(30px,8.6vw,40px);
  font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
@media(max-width:849px) {
  .web-capacity .biz-balances { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:390px) {
  .web-capacity .pagina .seccion { padding:16px; }
  .web-capacity .cap-form { grid-template-columns:minmax(0,1fr); }
}
@media(min-width:850px) {
  .web-capacity[data-web-capacity="empresas"] .pagina .condiciones { grid-column:auto; }
}
