/* Public Vehicle Landing Page (templates/public_landing/landing.html) — scoped to .cvl-page /
   .cvl-unavailable only. Standalone page (no base.html/layout.css), per
   designs/vehicle_landing_page_responsive/. Namespace: cvl- (Copart Vehicle Landing).
   Breakpoint: 880px (single breakpoint from the design handoff — no existing project-wide
   breakpoint token to align to). */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.cvl-page, .cvl-unavailable {
    font-family: 'Manrope', system-ui, sans-serif;
    background: #e7eaf0;
    -webkit-font-smoothing: antialiased;
    color: #0f172a;
}

.cvl-page a { color: #0891b2; text-decoration: none; }
.cvl-page a:hover { color: #06748d; }
.cvl-page .mono { font-family: ui-monospace, monospace; }

/* ---- Slider ---- */
.cvl-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
    background: linear-gradient(90deg, #38bdf8 50%, rgba(148,163,184,0.25) 50%);
}
.cvl-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 4px solid #0ea5e9;
    box-shadow: 0 3px 10px rgba(8,145,178,0.5); cursor: pointer; margin-top: -9px;
}
.cvl-slider::-moz-range-thumb {
    width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 4px solid #0ea5e9;
    box-shadow: 0 3px 10px rgba(8,145,178,0.5); cursor: pointer;
}
.cvl-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; }
.cvl-slider:focus { outline: none; }
.cvl-slider--disabled { opacity: .5; cursor: not-allowed; }

@keyframes cvlPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .75; } }
.cvl-pulse { animation: cvlPulse 2s ease-in-out infinite; }

/* ---- Layout shell ---- */
.cvl-page { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 60px -20px rgba(15,23,42,0.25); }
.cvl-hero-grid { display: flex; flex-direction: column; }
.cvl-col-a, .cvl-col-b { display: flex; flex-direction: column; min-width: 0; }
.cvl-pad { padding: 22px 20px 24px; }
.cvl-dt-only { display: none; }

@media (min-width: 880px) {
    .cvl-page { max-width: 1160px; min-height: auto; margin: 40px auto; border-radius: 26px; overflow: hidden; box-shadow: 0 34px 90px -46px rgba(15,23,42,0.45); }
    .cvl-mob-banner { display: none !important; }
    .cvl-dt-only { display: flex; }
    .cvl-hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 0; align-items: stretch; }
    .cvl-col-a { border-right: 1px solid #f1f5f9; }
    .cvl-col-b { background: #fbfcfe; }
    .cvl-pad-a { padding: 30px 34px 34px; }
    .cvl-pad-b { padding: 34px 36px 36px; }
    .cvl-desktop-sticky { position: sticky; top: 40px; align-self: start; }
}

/* ---- Mobile banner ---- */
.cvl-mob-banner {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    background: linear-gradient(135deg, #ecfeff, #eff6ff); border-bottom: 1px solid #cbeafe;
}
.cvl-mob-banner__icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -3px rgba(14,165,233,0.6);
}
.cvl-mob-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cvl-mob-banner__title { font-size: 13px; font-weight: 800; color: #0c4a6e; letter-spacing: -0.01em; line-height: 1.25; }
.cvl-mob-banner__subtitle { font-size: 11.5px; font-weight: 600; color: #0891b2; line-height: 1.35; }
.cvl-mob-banner__close {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: none;
    background: rgba(8,145,178,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cvl-mob-banner__close:hover { background: rgba(8,145,178,0.18); }

/* ---- Topbar / footer ---- */
.cvl-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.cvl-topbar__brand { display: flex; align-items: center; }
.cvl-topbar__logo { height: 30px; width: auto; display: block; mix-blend-mode: multiply; }
.cvl-topbar__eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; }
.cvl-footer { padding: 14px 20px; border-top: 1px solid #f1f5f9; text-align: center; }
.cvl-footer span { font-size: 11px; font-weight: 600; color: #b3bccb; }

/* ---- Gallery ---- */
.cvl-gallery {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    background: repeating-linear-gradient(45deg,#eef2f7,#eef2f7 14px,#e6ebf2 14px,#e6ebf2 28px);
}
.cvl-gallery__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s ease; cursor: zoom-in; }
.cvl-gallery__slide--active { opacity: 1; z-index: 1; }
.cvl-gallery__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; font-size: 12px; font-weight: 600; }
.cvl-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 3px 10px rgba(15,23,42,0.12);
}
.cvl-gallery__nav--prev { left: 12px; }
.cvl-gallery__nav--next { right: 12px; }
.cvl-gallery__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.cvl-gallery__dot { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: #cbd5e1; transition: all .16s ease; }
.cvl-gallery__dot--active { width: 22px; background: #0ea5e9; }

/* ---- Identity / titles ---- */
.cvl-title { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #0f172a; line-height: 1.1; }
.cvl-subtitle { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #0891b2; }
.cvl-ai-description { margin: 0 0 18px; padding: 14px 16px 15px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; border-left: 3px solid #cbd5e1; }
.cvl-ai-description__head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.cvl-ai-description__head span { font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #94a3b8; }
.cvl-ai-description__text { margin: 0; font-size: 12.5px; line-height: 1.65; color: #64748b; font-weight: 500; }
.cvl-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin-bottom: 16px; }
.cvl-ids__item { display: inline-flex; align-items: center; gap: 7px; }
.cvl-ids__label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.cvl-ids__value { font-size: 13px; font-weight: 700; color: #334155; letter-spacing: 0.03em; }

/* ---- Condition pill + popover ---- */
.cvl-condition { position: relative; margin-bottom: 20px; }
.cvl-condition__pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 13px; border-radius: 999px;
    border: 1px solid rgba(14,165,233,0.35); background: rgba(56,189,248,0.12); cursor: pointer; font-family: inherit;
}
.cvl-condition__pill:hover { background: rgba(56,189,248,0.2); }
.cvl-condition__dot { width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; box-shadow: 0 0 0 3px rgba(56,189,248,0.25); }
.cvl-condition__pill span:nth-child(2) { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; color: #0369a1; }
.cvl-condition__popover {
    position: absolute; top: 100%; left: 0; margin-top: 10px; z-index: 30; width: 300px; max-width: calc(100vw - 40px);
    padding: 16px 17px; border-radius: 14px; background: #fff; border: 1px solid #eef2f7; box-shadow: 0 20px 44px -18px rgba(15,23,42,0.4);
}
.cvl-condition__popover-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13.5px; font-weight: 800; color: #0f172a; }
.cvl-condition__popover-head button { width: 22px; height: 22px; border-radius: 6px; border: none; background: #f1f5f9; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; }
.cvl-condition__popover p { margin: 0; font-size: 11.5px; line-height: 1.6; color: #64748b; font-weight: 600; }

/* ---- Spec grid ---- */
.cvl-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #eef2f7; border: 1px solid #eef2f7; border-radius: 14px; overflow: hidden; }
.cvl-spec { background: #fff; padding: 13px 15px; display: flex; flex-direction: column; }
.cvl-spec--full { grid-column: span 2; }
.cvl-spec__label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; margin-bottom: 3px; }
.cvl-spec__value { font-size: 15px; font-weight: 800; color: #0f172a; }

/* ---- Reportado por Copart ---- */
.cvl-reported { margin-top: 18px; }
.cvl-reported__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cvl-reported__head span:first-child { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.cvl-reported__head-sub { font-size: 11px; font-weight: 600; color: #b3bccb; }
.cvl-reported__list { display: flex; flex-direction: column; gap: 8px; }
.cvl-reported__row { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; }
.cvl-reported__row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.cvl-reported__label { font-size: 13px; font-weight: 700; color: #334155; }
.cvl-reported__row-actions { display: flex; align-items: center; gap: 8px; }
.cvl-info-btn {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 1px solid #e2e8f0; background: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #94a3b8;
}
.cvl-info-btn:hover { border-color: #0ea5e9; color: #0891b2; }
.cvl-reported__panel { margin: 0 14px 13px; padding: 10px 12px; border-radius: 9px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 11.5px; line-height: 1.5; color: #64748b; font-weight: 600; }

/* ---- Badges ---- */
.cvl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.cvl-badge--success { color: #0f9d76; background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.35); }
.cvl-badge--neutral { color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; }

/* ---- Desktop reassurance strip ---- */
.cvl-dt-only { margin-top: 20px; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; }
.cvl-dt-only span { font-size: 12px; font-weight: 600; color: #64748b; line-height: 1.45; }

/* ---- State chip (state A) ---- */
.cvl-state-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; }
.cvl-state-chip__pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(56,189,248,0.13); border: 1px solid rgba(14,165,233,0.32); }
.cvl-state-chip__pill span:last-child { font-size: 12px; font-weight: 800; color: #0369a1; letter-spacing: -0.01em; }
.cvl-state-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; }
.cvl-state-chip__date { font-size: 12px; font-weight: 700; color: #64748b; }
.cvl-state-chip__date strong { font-weight: 700; color: #0f172a; }

/* ---- Price range (Col B) ---- */
.cvl-range { margin-bottom: 22px; }
.cvl-range__eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; text-align: center; }
.cvl-range__intro { margin: 0 auto 14px; max-width: 420px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.55; color: #64748b; }
.cvl-range__cards { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 9px; align-items: stretch; }
.cvl-range__card { text-align: center; padding: 14px 8px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; display: flex; flex-direction: column; }
.cvl-range__card--mid { background: linear-gradient(160deg,#ecfeff,#f0f9ff); border: 2px solid #0ea5e9; box-shadow: 0 10px 26px -14px rgba(14,165,233,0.7); position: relative; }
.cvl-range__card-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg,#0ea5e9,#0891b2); white-space: nowrap; }
.cvl-range__card-label { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.cvl-range__card--mid .cvl-range__card-label { color: #0891b2; }
.cvl-range__card-value { font-size: 20px; font-weight: 800; color: #334155; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cvl-range__card--mid .cvl-range__card-value { font-size: 24px; color: #0369a1; }
.cvl-range__note { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; }
.cvl-range__note svg { flex-shrink: 0; margin-top: 1px; }
.cvl-range__note span { font-size: 11.5px; font-weight: 600; line-height: 1.55; color: #64748b; }

/* ---- Status hero (states B / C_SOLD / C_UNAVAILABLE — replaces range cards + calculator) ---- */
.cvl-range--status { display: flex; flex-direction: column; gap: 14px; }

.cvl-status-hero { padding: 26px 24px; border-radius: 18px; }
.cvl-status-hero__row { display: flex; align-items: center; gap: 14px; }
.cvl-status-hero__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.cvl-status-hero__heading { display: flex; flex-direction: column; }
.cvl-status-hero__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 3px; }
.cvl-status-hero__title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cvl-status-hero__date { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cvl-status-hero__text { margin: 12px 0 0; font-size: 13px; font-weight: 600; line-height: 1.55; }
.cvl-status-hero__footnote { margin: 0; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.6; color: #64748b; }

/* B · pending — amber */
.cvl-status-hero--pending { background: linear-gradient(160deg,#fffbeb,#fefce8); border: 1px solid rgba(245,158,11,0.28); }
.cvl-status-hero--pending .cvl-status-hero__icon { background: linear-gradient(135deg,#fbbf24,#f59e0b); box-shadow: 0 8px 20px -8px rgba(245,158,11,0.7); }
.cvl-status-hero--pending .cvl-status-hero__eyebrow { color: #b45309; }
.cvl-status-hero--pending .cvl-status-hero__title { color: #0f172a; }
.cvl-status-hero--pending .cvl-status-hero__date { color: #b45309; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.3); }
.cvl-status-hero--pending .cvl-status-hero__text { color: #78716c; }
.cvl-status-hero--pending .cvl-status-hero__text b { color: #57534e; }

/* C_SOLD — emerald */
.cvl-status-hero--sold { background: linear-gradient(160deg,#ecfdf5,#f0fdfa); border: 1px solid rgba(52,211,153,0.32); }
.cvl-status-hero--sold .cvl-status-hero__icon { background: linear-gradient(135deg,#34d399,#10b981); box-shadow: 0 8px 20px -8px rgba(16,185,129,0.7); }
.cvl-status-hero--sold .cvl-status-hero__eyebrow { color: #0f9d76; }
.cvl-status-hero--sold .cvl-status-hero__title { color: #065f46; font-size: 24px; line-height: 1; }

/* C_UNAVAILABLE — pizarra (slate), deliberately distinct from --pending's amber
   so "resultado pendiente" and "cerrado" never read as the same status. */
.cvl-status-hero--unavailable { background: #f8fafc; border: 1px solid #e2e8f0; }
.cvl-status-hero--unavailable .cvl-status-hero__icon { background: linear-gradient(135deg,#94a3b8,#64748b); box-shadow: 0 8px 20px -8px rgba(100,116,139,0.6); }
.cvl-status-hero--unavailable .cvl-status-hero__eyebrow { color: #94a3b8; }
.cvl-status-hero--unavailable .cvl-status-hero__title { color: #334155; }
.cvl-status-hero--unavailable .cvl-status-hero__text { color: #64748b; }

/* ---- Estimate card + accuracy badge (C_SOLD) ---- */
.cvl-estimate-card { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #eef2f7; }
.cvl-estimate-card__label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.cvl-estimate-card__value { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.cvl-estimate-card__value span:first-child { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; font-variant-numeric: tabular-nums; }
.cvl-estimate-card__unit { font-size: 14px; font-weight: 700; color: #94a3b8; }
.cvl-accuracy-badge { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 12px; }
.cvl-accuracy-badge svg { flex-shrink: 0; }
.cvl-accuracy-badge span { font-size: 13px; font-weight: 800; }
.cvl-accuracy-badge--within { background: linear-gradient(135deg,#34d399,#10b981); box-shadow: 0 10px 24px -12px rgba(16,185,129,0.75); }
.cvl-accuracy-badge--within span { color: #fff; letter-spacing: -0.01em; }
.cvl-accuracy-badge--neutral { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.cvl-accuracy-badge--neutral span { color: #475569; }

/* ---- Similar nudge (C_UNAVAILABLE) ---- */
.cvl-similar-nudge { padding: 20px 22px; border-radius: 16px; background: linear-gradient(160deg,#f0f9ff,#f8fafc); border: 1px solid #e0f2fe; }
.cvl-similar-nudge__head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.cvl-similar-nudge__head span { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: #0f172a; }
.cvl-similar-nudge p { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.55; color: #475569; }

/* ---- Calculator (dark block) ---- */
.cvl-calc { position: relative; padding: 20px 18px; border-radius: 18px; background: #0b1220; margin-bottom: 20px; }
.cvl-calc__head { text-align: center; margin-bottom: 16px; }
.cvl-calc__eyebrow-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 6px; }
.cvl-calc__eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #7c8aa3; }
.cvl-calc__bid { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cvl-calc__bid-unit { font-size: 16px; color: #93c5fd; }
.cvl-slider__ends { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11px; font-weight: 700; color: #7c8aa3; font-variant-numeric: tabular-nums; }
.cvl-calc__divider { height: 1px; background: rgba(148,163,184,0.16); margin: 18px 0; }
.cvl-calc__total-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #7c8aa3; margin-bottom: 8px; }
.cvl-calc__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cvl-calc__total span:first-child { font-size: 32px; font-weight: 800; color: #22d3ee; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.cvl-calc__total-unit { font-size: 15px; font-weight: 700; color: #93c5fd; }
.cvl-calc__usd-equiv { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #94a3b8; font-variant-numeric: tabular-nums; }
.cvl-calc__allin { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: #7dd3fc; line-height: 1.5; }
.cvl-calc__warning { margin-top: 14px; display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; border-radius: 11px; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); }
.cvl-calc__warning svg { flex-shrink: 0; margin-top: 1px; }
.cvl-calc__warning span { font-size: 11.5px; font-weight: 700; color: #fcd34d; line-height: 1.5; }

/* ---- Cost breakdown (desglose de gastos) ---- */
.cvl-breakdown-toggle {
    margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px; background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.2); border-radius: 11px;
    cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; color: #93c5fd;
}
.cvl-breakdown-toggle:hover { background: rgba(148,163,184,0.16); }
.cvl-breakdown-toggle svg { transition: transform .18s ease; }
.cvl-breakdown-toggle--open svg { transform: rotate(180deg); }

.cvl-breakdown { margin-top: 14px; }
.cvl-breakdown__group-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 2px; }
.cvl-breakdown__group-label--second { margin-top: 16px; }
.cvl-breakdown__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(148,163,184,0.12); }
.cvl-breakdown__row-label { font-size: 12.5px; font-weight: 600; color: #94a3b8; }
.cvl-breakdown__row-value { font-size: 12.5px; font-weight: 800; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.cvl-breakdown__subtotal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; }
.cvl-breakdown__subtotal-label { font-size: 12.5px; font-weight: 700; color: #cbd5e1; }
.cvl-breakdown__subtotal-value { font-size: 13px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cvl-breakdown__commission {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px;
    border-radius: 10px; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25);
}
.cvl-breakdown__commission-label { font-size: 12px; font-weight: 700; color: #7dd3fc; line-height: 1.4; }
.cvl-breakdown__commission-sub { display: block; font-size: 10.5px; font-weight: 600; color: #93c5fd; }
.cvl-breakdown__commission-value { font-size: 13px; font-weight: 800; color: #22d3ee; font-variant-numeric: tabular-nums; }
.cvl-breakdown__total {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px;
    border-top: 2px solid rgba(148,163,184,0.2);
}
.cvl-breakdown__total-label { font-size: 13.5px; font-weight: 800; color: #fff; }
.cvl-breakdown__total-value { font-size: 15px; font-weight: 800; color: #22d3ee; font-variant-numeric: tabular-nums; }

/* ---- CTA ---- */
.cvl-cta {
    display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px; border-radius: 14px;
    background: #0284c7; font-size: 15.5px; font-weight: 800;
    box-shadow: none; margin-bottom: 10px;
}
/* .cvl-page a (line 17) is a 1-class + 1-element selector that outranks
   .cvl-cta's own 1-class color rule regardless of source order, so the
   button text silently rendered in the link color instead of white —
   same specificity trap already fixed on the public homepage (see
   docs/AI_CONTEXT.md, "Known Fix: CTA Button Text Color"). Scoped here
   to .cvl-page a.cvl-cta instead of dropping the blanket rule, since the
   disclaimer's plain mailto link below still needs .cvl-page a's color. */
.cvl-page a.cvl-cta, .cvl-page a.cvl-cta:hover { color: #fff; }
.cvl-cta:hover { background: #0369a1; }
.cvl-cta__sub { margin: 0 0 22px; text-align: center; font-size: 12.5px; font-weight: 600; color: #94a3b8; }

/* ---- How it works ---- */
.cvl-how { margin-bottom: 16px; padding: 18px 18px 16px; border-radius: 16px; background: linear-gradient(160deg,#f0f9ff,#f8fafc); border: 1px solid #e0f2fe; display: flex; flex-direction: column; gap: 12px; }
.cvl-how__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cvl-how__head span { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: #0f172a; }
.cvl-how__step { display: flex; gap: 11px; align-items: flex-start; }
.cvl-how__step span:last-child { font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #475569; }
.cvl-how__num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: #0ea5e9; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---- Disclaimer ---- */
.cvl-disclaimer { display: flex; gap: 10px; padding: 14px 15px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; }
.cvl-disclaimer svg { flex-shrink: 0; margin-top: 1px; }
.cvl-disclaimer p { margin: 0; font-size: 11.5px; line-height: 1.6; color: #64748b; font-weight: 600; }

/* ---- Calc overlay (self-contained, informational — e.g. recalculate rate-limit notice) ----
   Covers the full .cvl-calc card (the dark "Ajusta tu puja estimada" card, given
   position: relative above) while the slider is disabled, message centered inside. */
.cvl-calc-overlay {
    position: absolute; inset: 0; border-radius: 18px;
    background: rgba(11,18,32,0.85);
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 24px; z-index: 5;
    opacity: 0;
    transition: opacity .25s ease;
}
.cvl-calc-overlay--visible { opacity: 1; }
.cvl-calc-overlay__message {
    font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; font-weight: 700;
    color: #fff; line-height: 1.5; max-width: 85%;
}

/* ---- Lightbox ---- */
.cvl-lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(6,18,31,0.94);
    align-items: center; justify-content: center; padding: 70px 60px;
}
.cvl-lightbox:not([hidden]) { display: flex; }
.cvl-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.cvl-lightbox__close {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cvl-lightbox__close:hover { background: rgba(255,255,255,0.22); }
.cvl-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cvl-lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.cvl-lightbox__nav--prev { left: 18px; }
.cvl-lightbox__nav--next { right: 18px; }

/* ---- Unavailable fallback ---- */
.cvl-unavailable {
    max-width: 420px; margin: 15vh auto; padding: 40px 28px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cvl-unavailable__icon { width: 64px; height: 64px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.cvl-unavailable h1 { font-size: 19px; font-weight: 800; color: #0f172a; margin: 0; }
.cvl-unavailable p { font-size: 13.5px; font-weight: 600; color: #64748b; line-height: 1.6; margin: 0; }
.cvl-unavailable__cta { font-size: 13.5px; font-weight: 800; color: #0891b2; }
