/* Autos Esquivel — Vende tu auto / refresh editorial 2026.
 * Capa final para unificar hero, light mode, resumen de valuación y FAQ.
 */

/* --------------------------------------------------------------------------
   Hero premium: se mantiene oscuro en ambos temas para asegurar contraste.
   -------------------------------------------------------------------------- */
.ae-sell-page .ae-sell-page__hero {
    min-height: 860px !important;
    background: #07090c !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.10) !important;
}

.ae-sell-page .ae-sell-page__hero-media,
html[data-theme="light"] .ae-sell-page .ae-sell-page__hero-media,
html[data-theme="dark"] .ae-sell-page .ae-sell-page__hero-media {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.015) !important;
    background-image:
        linear-gradient(90deg, rgba(5,7,9,.97) 0%, rgba(5,7,9,.90) 34%, rgba(5,7,9,.48) 68%, rgba(5,7,9,.74) 100%),
        linear-gradient(180deg, rgba(5,7,9,.15), rgba(5,7,9,.82)),
        url('/images/comercial/1.webp') !important;
    background-position: center, center, 68% center !important;
    background-size: 100% 100%, 100% 100%, cover !important;
    background-repeat: no-repeat !important;
}

.ae-sell-page .ae-sell-page__hero-grid,
html[data-theme="light"] .ae-sell-page .ae-sell-page__hero-grid {
    opacity: .18 !important;
    background-image:
        linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px) !important;
    background-size: 72px 72px !important;
}

.ae-sell-page .ae-sell-page__hero-inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .62fr) !important;
    align-items: end !important;
    gap: clamp(30px, 5vw, 72px) !important;
    padding-top: clamp(94px, 11vh, 138px) !important;
    padding-bottom: clamp(52px, 7vh, 82px) !important;
}

.ae-sell-page .ae-sell-page__hero-copy {
    max-width: 900px !important;
}

.ae-sell-page .ae-sell-page__eyebrow,
.ae-sell-page .ae-sell-page__hero-copy > p,
.ae-sell-page .ae-sell-page__hero-proof,
.ae-sell-page .ae-sell-page__route > span,
.ae-sell-page .ae-sell-page__route small,
.ae-sell-page .ae-sell-page__route > p {
    color: rgba(238,242,246,.70) !important;
}

.ae-sell-page .ae-sell-page__eyebrow i {
    background: #fff !important;
    box-shadow: 0 0 16px rgba(255,255,255,.28) !important;
}

.ae-sell-page .ae-sell-page__hero h1,
.ae-sell-page .ae-sell-page__hero-proof b {
    color: #fff !important;
}

.ae-sell-page .ae-sell-page__hero h1 em,
html[data-theme="light"] .ae-sell-page .ae-sell-page__hero h1 em,
html[data-theme="dark"] .ae-sell-page .ae-sell-page__hero h1 em {
    color: transparent !important;
    -webkit-text-stroke: 1.1px rgba(255,255,255,.92) !important;
}

.ae-sell-page .ae-sell-page__primary {
    border-color: #fff !important;
    background: #fff !important;
    color: #090a0c !important;
}

.ae-sell-page .ae-sell-page__secondary {
    border-color: rgba(255,255,255,.26) !important;
    background: rgba(8,10,13,.42) !important;
    color: #fff !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.ae-sell-page .ae-sell-page__route,
html[data-theme="light"] .ae-sell-page .ae-sell-page__route {
    padding: 25px !important;
    border-color: rgba(255,255,255,.16) !important;
    background: rgba(7,9,12,.68) !important;
    color: #fff !important;
    box-shadow: 0 28px 72px rgba(0,0,0,.30) !important;
    backdrop-filter: blur(20px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(115%) !important;
}

.ae-sell-page .ae-sell-page__route li {
    border-color: rgba(255,255,255,.10) !important;
}

.ae-sell-page .ae-sell-page__route li > b {
    color: rgba(255,255,255,.48) !important;
}

.ae-sell-page .ae-sell-page__route strong {
    color: #fff !important;
}

/* Los cuatro puntos que antes vivían en una sección independiente ahora son
   parte del hero. Esto elimina la sección redundante de "año y kilometraje". */
.ae-sell-page__hero-features {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(22px, 3vw, 40px);
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.13);
}

.ae-sell-page__hero-feature {
    min-width: 0;
    min-height: 126px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: start;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(9,11,14,.56);
    color: #fff;
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.ae-sell-page__hero-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.28);
    background: rgba(16,19,23,.72);
}

.ae-sell-page__hero-feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.ae-sell-page__hero-feature-icon svg {
    width: 20px;
    height: 20px;
}

.ae-sell-page__hero-feature strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.ae-sell-page__hero-feature p {
    margin: 7px 0 0;
    color: rgba(235,239,244,.58);
    font-size: 10.5px;
    line-height: 1.52;
}

/* --------------------------------------------------------------------------
   Rail y configurador: corrección de light mode y jerarquía.
   -------------------------------------------------------------------------- */
html[data-theme="light"] .ae-sell-page .ae-sell-page__rail {
    background: #f7f7f4 !important;
    color: #111318 !important;
    border-color: #d9dad6 !important;
}

html[data-theme="light"] .ae-sell-page .ae-sell-page__rail strong {
    color: #111318 !important;
}

html[data-theme="light"] .ae-sell-page .ae-sell-page__rail span,
html[data-theme="light"] .ae-sell-page .ae-sell-page__rail small {
    color: #737981 !important;
}

.ae-sell-page__readiness-shell {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-bottom: 4px;
}

.ae-sell-page__readiness-shell > [data-public-valuation-readiness] {
    width: min(100%, 350px);
}

/* --------------------------------------------------------------------------
   FAQ: cards reales, compactas y legibles.
   -------------------------------------------------------------------------- */
.ae-sell-page .ae-sell-page__faq {
    padding-top: clamp(76px, 8vw, 118px) !important;
    padding-bottom: clamp(86px, 9vw, 128px) !important;
}

.ae-sell-page .ae-sell-page__faq-inner {
    align-items: start !important;
    gap: clamp(38px, 6vw, 82px) !important;
}

.ae-sell-page .ae-sell-page__faq header {
    position: sticky;
    top: 120px;
}

.ae-sell-page .ae-sell-page__faq header h2 {
    max-width: 610px;
    font-size: clamp(38px, 4.6vw, 64px) !important;
    line-height: .98 !important;
}

.ae-sell-page .ae-sell-page__faq-list {
    counter-reset: ae-sell-faq;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 0 !important;
}

.ae-sell-page .ae-sell-page__faq-list details {
    counter-increment: ae-sell-faq;
    position: relative;
    min-height: 148px;
    overflow: hidden;
    border: 1px solid var(--ae-sell-line, #d8d9d5) !important;
    border-radius: 20px !important;
    background: var(--ae-sell-panel, #fff) !important;
    color: var(--ae-sell-ink, #111318) !important;
    box-shadow: 0 10px 30px rgba(17,19,24,.045) !important;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}

.ae-sell-page .ae-sell-page__faq-list details::before {
    content: "0" counter(ae-sell-faq);
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--ae-sell-muted, #747a82);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.ae-sell-page .ae-sell-page__faq-list details:hover,
.ae-sell-page .ae-sell-page__faq-list details[open] {
    transform: translateY(-3px);
    border-color: var(--ae-sell-line-strong, #bfc2bd) !important;
    box-shadow: var(--ae-sell-shadow, 0 20px 54px rgba(17,19,24,.10)) !important;
}

.ae-sell-page .ae-sell-page__faq-list summary {
    min-height: 0 !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding: 43px 18px 21px 20px !important;
    color: var(--ae-sell-ink, #111318) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.42 !important;
}

.ae-sell-page .ae-sell-page__faq-list summary span {
    width: 34px !important;
    height: 34px !important;
    border-color: var(--ae-sell-line-strong, #bfc2bd) !important;
    background: var(--ae-sell-panel-soft, #ecece8) !important;
    color: var(--ae-sell-ink, #111318) !important;
    font-size: 18px !important;
}

.ae-sell-page .ae-sell-page__faq-list details[open] summary span {
    border-color: var(--ae-sell-accent, #111318) !important;
    background: var(--ae-sell-accent, #111318) !important;
    color: var(--ae-sell-accent-contrast, #fff) !important;
}

.ae-sell-page .ae-sell-page__faq-list details p {
    max-width: none !important;
    margin: -5px 66px 22px 20px !important;
    color: var(--ae-sell-muted, #747a82) !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
}

html[data-theme="dark"] .ae-sell-page .ae-sell-page__faq-list details {
    box-shadow: 0 16px 44px rgba(0,0,0,.18) !important;
}

@media (max-width: 1080px) {
    .ae-sell-page__hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ae-sell-page .ae-sell-page__faq header {
        position: static;
    }
}

@media (max-width: 860px) {
    .ae-sell-page .ae-sell-page__hero {
        min-height: auto !important;
    }

    .ae-sell-page .ae-sell-page__hero-inner {
        grid-template-columns: 1fr !important;
        padding-top: 88px !important;
    }

    .ae-sell-page__hero-features {
        grid-column: 1;
        margin-top: 8px;
    }

    .ae-sell-page__readiness-shell {
        justify-content: stretch;
    }

    .ae-sell-page__readiness-shell > [data-public-valuation-readiness] {
        width: 100%;
    }

    .ae-sell-page .ae-sell-page__faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ae-sell-page .ae-sell-page__hero-media,
    html[data-theme="light"] .ae-sell-page .ae-sell-page__hero-media {
        background-position: center, center, 60% center !important;
    }

    .ae-sell-page__hero-features {
        grid-template-columns: 1fr;
    }

    .ae-sell-page__hero-feature {
        min-height: 0;
    }

    .ae-sell-page .ae-sell-page__faq-list details {
        min-height: 0;
        border-radius: 17px !important;
    }

    .ae-sell-page .ae-sell-page__faq-list summary {
        padding: 42px 16px 19px !important;
    }

    .ae-sell-page .ae-sell-page__faq-list details p {
        margin: -3px 52px 20px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-sell-page__hero-feature,
    .ae-sell-page .ae-sell-page__faq-list details {
        transition: none !important;
        transform: none !important;
    }
}
