/* ---------- Página Financiación CDTI y simulador ---------- */
.accent-light { color: var(--brand-bright); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.page-hero .hero__actions { margin-top: 28px; }
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.line-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.line-card h2 { font-size: 1.5rem; }
.line-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
.line-card__stats div { background: var(--bg-alt); border-radius: 12px; padding: 16px; }
.line-card__stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--navy-900); line-height: 1.1; }
.line-card__stats span { font-size: .86rem; color: var(--ink-soft); }
.line-card__foot { margin: auto 0 0; font-size: .92rem; color: var(--ink-soft); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-bright); border-radius: 12px; padding: 18px 20px; }
.perk strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy-900); }
.perk span { font-size: .92rem; color: var(--ink-soft); }
.callout { margin: 24px 0 0; padding: 16px 20px; border-radius: 12px; background: #fff5e0; color: #5c3b00; font-size: .97rem; }

.sim { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.sim__tabs { display: flex; background: var(--navy-900); padding: 8px; gap: 8px; }
.sim__tab { flex: 1; padding: 13px 16px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.75); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.sim__tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.sim__tab.is-active { background: var(--brand-bright); color: var(--navy-900); }
.sim__body { display: grid; grid-template-columns: 1fr 1.15fr; }
.sim__form { padding: 32px; border-right: 1px solid var(--line); }
.sim__form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.sim__form select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg-alt); color: var(--ink); }
.sim__money { position: relative; }
.sim__money input { width: 100%; padding: 14px 44px 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy-900); background: var(--bg-alt); }
.sim__money input:focus, .sim__form select:focus { outline: none; border-color: var(--brand); background: #fff; }
.sim__money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--ink-soft); }
.sim__form input[type=range] { width: 100%; margin: 14px 0 6px; accent-color: var(--brand); }
.sim__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sim__chips button { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .84rem; font-weight: 600; color: var(--navy-900); cursor: pointer; }
.sim__chips button:hover { border-color: var(--brand); color: var(--brand); }
.sim__aviso { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff5e0; color: #6b4600; font-size: .88rem; }
.sim__result { padding: 32px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.sim__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.sim__hero div { padding: 18px 20px; border-radius: 14px; background: var(--navy-900); color: #fff; }
.sim__hero span { font-size: .85rem; color: rgba(255,255,255,.7); }
.sim__hero strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin-top: 4px; }
.sim__hero .sim__hero-tnr { background: var(--brand-bright); color: var(--navy-900); }
.sim__hero .sim__hero-tnr span { color: rgba(11,31,58,.75); }
.sim__bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); }
.sim__bar i { display: block; height: 100%; transition: width .35s ease; }
.b-tnr { background: var(--brand-bright); }
.b-loan { background: var(--navy-700); }
.b-own { background: #c3ccd6; }
.sim__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 18px; font-size: .84rem; color: var(--ink-soft); }
.sim__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.sim__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sim__table th, .sim__table td { padding: 11px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.sim__table th { font-weight: 500; color: var(--ink); padding-right: 12px; }
.sim__table th small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.sim__table td { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.sim__table td.hl { color: var(--brand); }
.sim__table tr.sub th { padding-left: 16px; color: var(--ink-soft); }
.sim__table tr.sub td { color: var(--ink-soft); font-weight: 600; }
.sim__note { margin: 16px 0; font-size: .92rem; color: var(--ink-soft); }
.sim__legal { margin: 14px 0 0; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }
.sim.is-invalid .sim__result { opacity: .45; }
.sim.is-invalid #simCta { pointer-events: none; }

.two-cols--even { grid-template-columns: 1fr 1fr; gap: 48px; }
.crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.crosslist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.crosslist li::before { content: "\00D7"; position: absolute; left: 4px; top: -2px; font-size: 1.3rem; color: #b7c0cb; }
.table-title { margin: 48px 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table thead th { background: var(--navy-900); color: #fff; text-align: left; font-weight: 600; padding: 13px 16px; }
.data-table td, .data-table tbody th { padding: 13px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table tbody th { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
.data-table td + td, .data-table thead th + th { text-align: center; }
.data-table--compare td + td, .data-table--compare thead th + th { text-align: left; }
.data-table tr.is-hl td { background: var(--brand-soft); font-weight: 600; }
.table-note { margin: 12px 0 0; font-size: .84rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .lines, .perks, .sim__body, .two-cols--even { grid-template-columns: 1fr; }
  .sim__form { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .sim__form, .sim__result { padding: 22px 18px; }
  .sim__tab { font-size: .88rem; padding: 11px 8px; }
  .sim__hero { grid-template-columns: 1fr; }
  .line-card { padding: 22px; }
}
