/* =====================================================================
   «Que tu carro también ande con sol» (#carro-electrico)

   Sección aparte de la animación del dron: allí se cuenta qué hacemos y
   cómo; aquí, un argumento de ahorro concreto para quien tiene (o piensa
   tener) carro eléctrico. Un dibujo animado y una barra de km al mes; los
   números los pone carro.js con las cifras de los data-* del HTML.
   ===================================================================== */

.ev {
    --ev-ink: #1d1d1f;
    --ev-mute: #6e6a66;
    --ev-orange: #ff4500;
    --ev-teal: #2aa79e;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 60px;
    padding: 56px 56px 40px;
    border-radius: 32px;
    background:
        radial-gradient(90% 70% at 85% 10%, #fde6d4 0%, rgba(253, 230, 212, 0) 60%),
        #fff;
    box-shadow: 0 2px 30px rgba(60, 40, 20, 0.07);
    font-family: 'Satoshi', sans-serif;
    color: var(--ev-ink);
}
.ev-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}
.ev-eyebrow {
    margin: 0 0 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ev-orange);
}
.ev-h {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--ev-ink);
    text-wrap: balance;
}
.ev-lead {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ev-mute);
    max-width: 32em;
}

/* ---- La barra de km y lo que cuesta ---------------------------------- */
.ev-calc { margin-top: 28px; }
.ev-km-lbl {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
    color: var(--ev-mute);
}
.ev-km-lbl output {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ev-ink);
    font-variant-numeric: tabular-nums;
}
.ev-range {
    --p: 26%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 14px 0 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--ev-orange) 0%, #ff8c42 var(--p), #ece7e0 var(--p));
    outline: none;
    cursor: pointer;
}
.ev-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ev-orange);
    box-shadow: 0 3px 10px rgba(255, 69, 0, 0.25);
}
.ev-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ev-orange);
    box-shadow: 0 3px 10px rgba(255, 69, 0, 0.25);
}
.ev-range:focus-visible { outline: 2px solid var(--ev-orange); outline-offset: 6px; }
.ev-escala {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a8a29b;
}

.ev-rows { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ev-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14.5px;
    color: var(--ev-mute);
}
.ev-row-top b {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--ev-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ev-row-top b small { font-size: 13px; font-weight: 400; color: var(--ev-mute); margin-left: 2px; }
.ev-track { margin-top: 7px; height: 8px; border-radius: 8px; background: #f2eee8; overflow: hidden; }
.ev-fill { height: 100%; border-radius: 8px; transform-origin: 0 50%; transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); }
.ev-row.is-gas .ev-fill { background: #c9c4bd; }
.ev-row.is-red .ev-fill { background: #8f9aa3; }
.ev-row.is-sol .ev-fill { background: linear-gradient(90deg, #ff4500, #ff8c42); }
.ev-row.is-sol .ev-row-top span { color: var(--ev-ink); font-weight: 700; }

.ev-big {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 18px;
    background: #fff4ee;
}
.ev-big span { font-size: 14.5px; line-height: 1.35; color: #8a5a44; }
.ev-big b {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    letter-spacing: -0.03em;
    color: var(--ev-orange);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ev-pan { margin: 12px 2px 0; font-size: 14.5px; line-height: 1.5; color: var(--ev-mute); }
.ev-pan b { color: var(--ev-ink); }
.ev-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 13px 24px;
    border-radius: 40px;
    background: var(--ev-orange);
    color: #fffcf9;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.ev-cta:hover { background: linear-gradient(90deg, #ff4500 0%, #ff6b35 32%, #ff8c42 58%, #6bdbd0 100%); transform: translateY(-1px); }
.ev-foot { margin: 28px 0 0; font-size: 12px; line-height: 1.5; color: #a8a29b; grid-column: 1 / -1; }

/* ---- La vista 3D ------------------------------------------------------
   La misma escena de «Cómo lo hacemos» (vuelo.js, data-vu="carro"): la casa
   con su cochera y el carro enchufado, girando despacio. */
.ev-art {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 70% 0%, #e9eff3 0%, rgba(255, 252, 249, 0) 70%),
        #fffcf9;
}
.ev-art .vu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-art.vu-nogl { display: none; }

@media (max-width: 900px) {
    .ev { padding: 36px 22px 28px; border-radius: 24px; margin: 24px auto 40px; }
    .ev-in { grid-template-columns: 1fr; gap: 24px; }
    .ev-art { order: -1; width: 100%; }
    .ev-lead { font-size: 16px; }
    .ev-big { flex-direction: column; align-items: flex-start; gap: 4px; }
}
