/*
 * Autos Esquivel · V2 showroom
 * This layer is intentionally scoped to /v2. It restyles the public home
 * without changing search, inventory, quote, favorite, WhatsApp, or API flows.
 */

body.public-site-v2 {
    --ae-v2-taupe: #8c7a6b;
    --ae-v2-taupe-soft: #e7e0da;
    --ae-v2-paper: #f7f6f4;
    --ae-v2-ink: #0b0b0b;
    --ae-v2-line: rgba(11, 11, 11, .13);
    --ae-v2-muted: #68625d;
    background: var(--ae-v2-paper);
    color: var(--ae-v2-ink);
    font-family: "Montserrat", Arial, sans-serif;
    scroll-behavior: smooth;
}

body.public-site-v2 :is(button, input, select, textarea) {
    font-family: inherit;
}

/* El V2 usa una sola voz tipográfica. Se excluyen los icon-fonts para no
   alterar pictogramas de Font Awesome que puedan estar cargados en módulos
   heredados. */
body.public-site-v2 :is(
    .ae-public-nav,
    .public-rebuild-main,
    .site-footer,
    .ae-floating-whatsapp,
    .ae-mobile-commerce-nav,
    .ae-quick-actions
) :not(.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands) {
    font-family: "Montserrat", Arial, sans-serif !important;
}

body.public-site-v2::after {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    background: radial-gradient(circle at 50% 28%, rgba(140, 122, 107, .24), transparent 44%), #090909;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s cubic-bezier(.2, .72, .18, 1);
}

body.public-site-v2 .public-rebuild-main,
body.public-site-v2 .site-footer,
body.public-site-v2 .ae-public-nav {
    transition: opacity .26s ease, transform .26s cubic-bezier(.2, .72, .18, 1);
}

body.public-site-v2.ae-v2-page-entering .public-rebuild-main {
    animation: ae-v2-page-enter .52s cubic-bezier(.2, .72, .18, 1) both;
}

body.public-site-v2.ae-v2-page-leaving::after {
    opacity: 1;
}

body.public-site-v2.ae-v2-page-leaving :is(.public-rebuild-main, .site-footer, .ae-public-nav) {
    opacity: .18;
    transform: translate3d(0, -10px, 0);
}

body.public-site-v2 :is(
    .ae-hero__cta,
    .ae-v2-button,
    .ae-v2-category,
    .ae-v2-energy-category,
    .ae-v2-stat,
    .ae-v2-section-head__link,
    .ae-v2-vehicle-card__action,
    .ae-legacy-search__submit,
    .ae-legacy-search__quick button,
    .ae-nav-link,
    .ae-nav-dropdown > summary,
    .ae-mobile-nav__link,
    .ae-nav-link--sell
) {
    -webkit-tap-highlight-color: transparent;
    transition: transform .22s cubic-bezier(.2, .72, .18, 1), box-shadow .22s ease, color .22s ease, background-color .22s ease, border-color .22s ease;
}

body.public-site-v2 :is(
    .ae-hero__cta,
    .ae-v2-button,
    .ae-v2-category,
    .ae-v2-energy-category,
    .ae-v2-stat,
    .ae-v2-section-head__link,
    .ae-v2-vehicle-card__action,
    .ae-legacy-search__submit,
    .ae-legacy-search__quick button,
    .ae-nav-link,
    .ae-nav-dropdown > summary,
    .ae-mobile-nav__link,
    .ae-nav-link--sell
):hover {
    transform: translate3d(0, -2px, 0);
}

body.public-site-v2 :is(button, a):active {
    transform: scale(.975);
}

/* Feedback inmediato para las interacciones de la vitrina: el usuario ve que
   el toque fue recibido aun cuando la navegación o el filtro tarda un instante. */
body.public-site-v2 .ae-v2-press-feedback {
    animation: ae-v2-press-feedback .32s cubic-bezier(.2, .72, .18, 1) both;
}

@keyframes ae-v2-press-feedback {
    0% { filter: brightness(1); }
    45% { filter: brightness(1.14); transform: scale(.975); }
    100% { filter: brightness(1); }
}

@keyframes ae-v2-page-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.public-site-v2 .ae-public-nav {
    border-bottom-color: rgba(255, 255, 255, .16);
    background: rgba(8, 8, 8, .97);
    color: #fff;
}

body.public-site-v2 .ae-nav-meta {
    border-bottom-color: rgba(255, 255, 255, .12);
    background: #050505;
}

body.public-site-v2 .ae-nav-main {
    background: rgba(8, 8, 8, .94);
}

body.public-site-v2 .ae-nav-main__inner {
    min-height: 74px;
}

body.public-site-v2 .ae-nav-brand {
    width: 142px;
    height: 58px;
}

body.public-site-v2 .ae-nav-link,
body.public-site-v2 .ae-nav-dropdown > summary {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-nav-link:hover,
body.public-site-v2 .ae-nav-link:focus-visible,
body.public-site-v2 .ae-nav-link.is-active,
body.public-site-v2 .ae-nav-dropdown > summary:hover,
body.public-site-v2 .ae-nav-dropdown > summary:focus-visible {
    color: #fff;
}

body.public-site-v2 .ae-nav-link--sell {
    border: 1px solid var(--ae-v2-taupe);
    background: var(--ae-v2-taupe) !important;
    color: #fff !important;
}

/* The V2 navigation follows the global theme too. In light mode the regular
   logo is dark, so it needs a light masthead instead of the showroom black. */
html[data-theme="light"] body.public-site-v2 .ae-public-nav {
    border-bottom-color: rgba(23, 19, 17, .14);
    background: rgba(255, 255, 255, .98);
    color: #171311;
}

html[data-theme="light"] body.public-site-v2 .ae-nav-meta {
    border-bottom-color: rgba(23, 19, 17, .10);
    background: #f5f1ed;
}

html[data-theme="light"] body.public-site-v2 .ae-nav-main {
    background: rgba(255, 255, 255, .94);
}

html[data-theme="light"] body.public-site-v2 :is(.ae-nav-link, .ae-nav-dropdown > summary) {
    color: rgba(23, 19, 17, .70);
}

html[data-theme="light"] body.public-site-v2 :is(.ae-nav-link, .ae-nav-dropdown > summary):hover,
html[data-theme="light"] body.public-site-v2 :is(.ae-nav-link, .ae-nav-dropdown > summary):focus-visible,
html[data-theme="light"] body.public-site-v2 .ae-nav-link.is-active {
    color: #171311;
}

/* The video hero stays intact; this only gives it the V2 showroom hierarchy. */
body.public-site-v2 .ae-hero {
    --hero-fg: #fff;
    --hero-muted: rgba(255, 255, 255, .68);
    --hero-line: rgba(255, 255, 255, .22);
    --hero-surface: rgba(8, 8, 8, .52);
    --hero-button: #fff;
    --hero-button-fg: #090909;
    min-height: clamp(610px, calc(100svh - 102px), 830px);
    background: #080808;
}

body.public-site-v2 .ae-hero__media {
    left: 34%;
}

body.public-site-v2 .ae-hero__media-shade {
    background:
        linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, .97) 25%, rgba(8, 8, 8, .76) 47%, rgba(8, 8, 8, .18) 73%, rgba(8, 8, 8, .45) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, .52), transparent 55%);
}

body.public-site-v2 .ae-hero__grid,
body.public-site-v2 .ae-hero__speed-lines {
    display: none;
}

body.public-site-v2 .ae-hero__glow {
    background: radial-gradient(ellipse, rgba(140, 122, 107, .20), transparent 67%);
}

body.public-site-v2 .ae-hero__content {
    max-width: 680px;
    padding-left: 0;
}

body.public-site-v2 .ae-hero__eyebrow {
    gap: 11px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    letter-spacing: .19em;
}

body.public-site-v2 .ae-hero__mark i:first-child {
    background: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-hero__title {
    max-width: 670px;
    font-size: clamp(54px, 6.8vw, 100px);
    font-weight: 700;
    letter-spacing: -.065em;
}

body.public-site-v2 .ae-hero__title-accent {
    color: var(--ae-v2-taupe) !important;
}

body.public-site-v2 .ae-hero__kinetic {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-hero__cta {
    min-height: 52px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-hero__cta--primary {
    min-width: 218px;
}

body.public-site-v2 .ae-hero__cta--secondary:hover,
body.public-site-v2 .ae-hero__cta--secondary:focus-visible {
    border-color: var(--ae-v2-taupe);
    background: rgba(140, 122, 107, .22);
}

body.public-site-v2 .ae-hero__rail-number {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-hero__bottom {
    border-top-color: rgba(255, 255, 255, .12);
    background: rgba(8, 8, 8, .62);
}

/* Search remains the same React form and image-search trigger, with a clearer
 * visual entry point in the V2 composition. */
body.public-site-v2 [data-public-home-search-v4] {
    position: relative;
    z-index: 5;
    margin-top: -48px;
}

body.public-site-v2 .ae-legacy-search-band {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

body.public-site-v2 .ae-legacy-search {
    padding: 24px;
    border: 1px solid var(--ae-v2-line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 22px 52px rgba(0, 0, 0, .15);
}

body.public-site-v2 .ae-legacy-search__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

body.public-site-v2 .ae-legacy-search__eyebrow,
body.public-site-v2 .ae-v2-eyebrow {
    color: var(--ae-v2-taupe);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

body.public-site-v2 .ae-legacy-search__intro-copy h2 {
    margin: 0;
    color: var(--ae-v2-ink);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: -.045em;
}

body.public-site-v2 .ae-legacy-search__intro-copy p {
    margin: 6px 0 0;
    color: var(--ae-v2-muted);
    font-size: 12px;
}

body.public-site-v2 .ae-legacy-search__query-shell {
    border-color: rgba(11, 11, 11, .26);
    border-radius: 0;
    background: #fff;
}

body.public-site-v2 .ae-legacy-search__query-shell:focus-within {
    border-color: var(--ae-v2-taupe);
    box-shadow: 0 0 0 3px rgba(140, 122, 107, .14);
}

body.public-site-v2 .ae-legacy-search__query-icon,
body.public-site-v2 .ae-legacy-search__photo {
    color: var(--ae-v2-ink);
}

body.public-site-v2 .ae-legacy-search__photo {
    width: auto;
    min-width: 96px;
    gap: 7px;
    padding-inline: 12px;
    border-left-color: var(--ae-v2-line);
    border-radius: 0;
}

body.public-site-v2 .ae-legacy-search__photo::after {
    content: "Por foto";
    color: var(--ae-v2-ink);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .01em;
    white-space: nowrap;
}

body.public-site-v2 .ae-legacy-search__photo:hover,
body.public-site-v2 .ae-legacy-search__photo:focus-visible {
    background: var(--ae-v2-taupe-soft);
    color: var(--ae-v2-ink);
}

body.public-site-v2 .ae-legacy-search__quick button {
    border-color: var(--ae-v2-line);
    border-radius: 0;
    color: var(--ae-v2-muted);
}

body.public-site-v2 .ae-legacy-search__quick button:hover,
body.public-site-v2 .ae-legacy-search__quick button:focus-visible {
    border-color: var(--ae-v2-taupe);
    background: var(--ae-v2-taupe-soft);
    color: var(--ae-v2-ink);
}

/* The V2 search stays focused: suggested query chips are intentionally hidden. */
body.public-site-v2 .ae-legacy-search__quick {
    display: none;
}

body.public-site-v2 .ae-legacy-search__submit {
    border-radius: 0;
    background: var(--ae-v2-ink);
    color: #fff;
}

body.public-site-v2 .ae-legacy-search__submit:hover,
body.public-site-v2 .ae-legacy-search__submit:focus-visible {
    background: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-home {
    position: relative;
    background:
        radial-gradient(circle at 92% 8%, rgba(140, 122, 107, .12), transparent 23%),
        radial-gradient(circle at 5% 36%, rgba(140, 122, 107, .07), transparent 18%),
        var(--ae-v2-paper);
}

body.public-site-v2 .ae-v2-section {
    position: relative;
    padding-block: clamp(62px, 7vw, 110px);
    border-bottom: 1px solid color-mix(in srgb, var(--ae-v2-line) 70%, transparent);
}

body.public-site-v2 .ae-v2-section:nth-child(even) {
    background: #fff;
}

body.public-site-v2 .ae-v2-section:nth-child(even)::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 122, 107, .48), transparent);
    content: "";
}

body.public-site-v2 .ae-v2-section-head {
    position: relative;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ae-v2-line);
}

body.public-site-v2 .ae-v2-section-head::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: clamp(46px, 6vw, 92px);
    height: 2px;
    background: var(--ae-v2-taupe);
    content: "";
}

body.public-site-v2 .ae-v2-heading {
    color: var(--ae-v2-ink);
    font-weight: 700;
    letter-spacing: -.06em;
}

body.public-site-v2 .ae-v2-section-head__link {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--ae-v2-taupe);
    color: var(--ae-v2-ink);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-v2-category,
body.public-site-v2 .ae-v2-sell,
body.public-site-v2 .ae-v2-finance-strip,
body.public-site-v2 .ae-v2-stat,
body.public-site-v2 .ae-v2-vehicle-card {
    border-radius: 0;
}

body.public-site-v2 .ae-v2-category {
    min-height: 340px;
    border: 1px solid rgba(255, 255, 255, .18);
}

body.public-site-v2 .ae-v2-category img {
    filter: saturate(1.06) contrast(1.04) brightness(.96);
}

body.public-site-v2 .ae-v2-category:hover img {
    filter: saturate(1.1) contrast(1.04) brightness(1.03);
    transform: scale(1.045);
}

body.public-site-v2 .ae-v2-category::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .04) 72%);
}

body.public-site-v2 .ae-v2-category img {
    transition: filter .55s ease, transform .7s cubic-bezier(.2, .72, .18, 1);
}

body.public-site-v2 .ae-v2-category__copy small {
    color: var(--ae-v2-taupe-soft);
}

body.public-site-v2 .ae-v2-category__copy strong span {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-stats {
    border-radius: 0;
    background: var(--ae-v2-line);
}

body.public-site-v2 .ae-v2-stat {
    min-height: 166px;
    background: #fff;
}

body.public-site-v2 .ae-v2-stat strong {
    color: var(--ae-v2-taupe);
    font-weight: 700;
}

html[data-theme="dark"] body.public-site-v2 .ae-v2-stat strong {
    color: #fff;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-stat strong,
html:not([data-theme]) body.public-site-v2 .ae-v2-stat strong {
    color: #171311;
}

body.public-site-v2 .ae-v2-energy-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

body.public-site-v2 .ae-v2-energy-category {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 18px;
    min-height: 164px;
    padding: 26px 27px;
    border: 1px solid #171311;
    border-radius: 16px;
    background: #171311;
    box-shadow: 0 14px 28px rgba(35, 27, 22, .12);
    color: #fff;
    text-decoration: none;
    transition: transform .28s cubic-bezier(.2, .72, .18, 1), box-shadow .28s ease, background-color .28s ease;
}

body.public-site-v2 .ae-v2-energy-category--electric {
    border-color: #8c7a6b;
    background: #8c7a6b;
    color: #171311;
}

body.public-site-v2 .ae-v2-energy-category__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
}

body.public-site-v2 .ae-v2-energy-category--electric .ae-v2-energy-category__icon {
    border-color: rgba(23, 19, 17, .44);
    color: #171311;
}

body.public-site-v2 .ae-v2-energy-category__icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

body.public-site-v2 .ae-v2-energy-category__copy {
    display: grid;
    gap: 6px;
}

body.public-site-v2 .ae-v2-energy-category small,
body.public-site-v2 .ae-v2-energy-category em {
    color: rgba(255, 255, 255, .64);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-v2-energy-category strong {
    color: #fff;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.03em;
}

body.public-site-v2 .ae-v2-energy-category--electric :is(small, strong, em) {
    color: #171311;
}

body.public-site-v2 .ae-v2-energy-category em {
    margin-top: 2px;
    color: rgba(255, 255, 255, .80);
}

body.public-site-v2 .ae-v2-energy-category__action {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #171311;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: transform .24s cubic-bezier(.2, .72, .18, 1), background-color .24s ease, color .24s ease;
}

body.public-site-v2 .ae-v2-energy-category--electric .ae-v2-energy-category__action {
    background: #171311;
    color: #fff;
}

body.public-site-v2 .ae-v2-energy-category:hover,
body.public-site-v2 .ae-v2-energy-category:focus-visible {
    box-shadow: 0 22px 42px rgba(35, 27, 22, .25);
    transform: translateY(-4px);
}

body.public-site-v2 .ae-v2-energy-category:hover .ae-v2-energy-category__action,
body.public-site-v2 .ae-v2-energy-category:focus-visible .ae-v2-energy-category__action {
    transform: translateX(4px) rotate(-8deg);
}

body.public-site-v2 .ae-nav-link--electric {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-vehicle-card {
    border-color: var(--ae-v2-line);
    box-shadow: none;
}

body.public-site-v2 .ae-v2-vehicle-card:hover {
    border-color: var(--ae-v2-taupe);
    box-shadow: 0 18px 38px rgba(39, 32, 28, .10);
}

body.public-site-v2 .ae-v2-vehicle-card__media {
    background: #ece9e5;
}

body.public-site-v2 .ae-v2-vehicle-card__media img {
    height: auto;
    transition: filter .45s ease;
}

body.public-site-v2 .ae-v2-vehicle-card__monthly {
    background: color-mix(in srgb, var(--ae-v2-taupe) 12%, transparent);
}

body.public-site-v2 .ae-v2-vehicle-card__badge {
    border-radius: 0;
    background: #f8f6f3;
    color: #171311;
}

body.public-site-v2 .ae-v2-vehicle-card__badge + .ae-v2-vehicle-card__badge {
    background: var(--ae-v2-taupe);
    color: #fff;
}

body.public-site-v2 .ae-v2-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--ae-v2-line);
}

body.public-site-v2 .ae-v2-pagination__action {
    min-width: 118px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(140, 122, 107, .58);
    background: #151515;
    color: #fff;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

body.public-site-v2 .ae-v2-pagination__action--next {
    border-color: var(--ae-v2-taupe);
    background: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-pagination__action:not(.is-disabled):hover,
body.public-site-v2 .ae-v2-pagination__action:not(.is-disabled):focus-visible {
    border-color: #6f5c4c;
    background: #6f5c4c;
    color: #fff;
    transform: translateY(-1px);
}

body.public-site-v2 .ae-v2-pagination__action.is-disabled {
    border-color: var(--ae-v2-line);
    background: transparent;
    color: var(--ae-v2-muted);
    opacity: .62;
}

body.public-site-v2 .ae-v2-pagination__status {
    color: var(--ae-v2-muted);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.public-site-v2 .ae-v2-vehicle-card__actions {
    gap: 7px;
}

body.public-site-v2 .ae-v2-vehicle-card__action {
    border-radius: 0;
}

body.public-site-v2 .ae-v2-vehicle-card__action--primary,
body.public-site-v2 .ae-v2-button {
    border-color: var(--ae-v2-ink);
    border-radius: 0;
    background: var(--ae-v2-ink);
}

/* Never let dark-mode variables turn the conversion button white on white text. */
body.public-site-v2 .ae-v2-vehicle-card__action--primary {
    border-color: var(--ae-v2-taupe);
    background: var(--ae-v2-taupe);
    color: #fff;
}

body.public-site-v2 .ae-v2-vehicle-card__action--primary:hover,
body.public-site-v2 .ae-v2-button:hover,
body.public-site-v2 .ae-v2-button:focus-visible {
    border-color: var(--ae-v2-taupe);
    background: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-vehicle-card__action--primary:hover,
body.public-site-v2 .ae-v2-vehicle-card__action--primary:focus-visible {
    border-color: #6f5c4c;
    background: #6f5c4c;
    color: #fff;
}

body.public-site-v2 .ae-v2-sell {
    position: relative;
    background: #0a0a0a;
}

body.public-site-v2 .ae-v2-sell__media {
    position: relative;
}

body.public-site-v2 .ae-v2-sell__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(10, 10, 10, .42));
    content: "";
}

body.public-site-v2 .ae-v2-sell__media img {
    filter: saturate(1.06) contrast(1.04) brightness(.94);
}

body.public-site-v2 .ae-v2-sell__copy .ae-v2-eyebrow {
    color: var(--ae-v2-taupe);
}

/* La sección de venta siempre conserva fondo oscuro; su título no hereda tinta oscura en light mode. */
body.public-site-v2 .ae-v2-sell__copy .ae-v2-heading {
    color: #fff !important;
}

body.public-site-v2 .ae-v2-sell__copy .ae-v2-copy {
    color: rgba(255, 255, 255, .76) !important;
}

body.public-site-v2 .ae-v2-sell__copy .ae-v2-button {
    background: var(--ae-v2-taupe);
    color: #fff;
}

body.public-site-v2 .ae-v2-finance-strip {
    border-color: rgba(140, 122, 107, .45);
    background: var(--ae-v2-taupe-soft);
}

body.public-site-v2 .ae-v2-finance-strip .ae-v2-eyebrow {
    color: #6f5c4c;
}

/* This panel deliberately stays light in either theme, so it cannot inherit dark-mode copy. */
body.public-site-v2 .ae-v2-finance-strip h2 {
    color: #171311;
    font-weight: 750;
}

body.public-site-v2 .ae-v2-finance-strip p {
    color: #574d46;
    font-weight: 500;
}

body.public-site-v2 .ae-v2-finance-strip .ae-v2-button {
    background: #fff;
    color: var(--ae-v2-ink);
}

body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:hover,
body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:focus-visible {
    background: var(--ae-v2-ink);
    color: #fff;
}

/* Keep this callout readable in light mode even when a legacy or theme rule loads later. */
html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip {
    background: #e7e0da !important;
    color: #171311 !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-eyebrow,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip .ae-v2-eyebrow {
    color: #58483b !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip h2,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip h2 {
    color: #171311 !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip p,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip p {
    color: #574d46 !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-button,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip .ae-v2-button {
    border-color: #171311 !important;
    background: #171311 !important;
    color: #fff !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:hover,
html[data-theme="light"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:focus-visible,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:hover,
html:not([data-theme]) body.public-site-v2 .ae-v2-finance-strip .ae-v2-button:focus-visible {
    border-color: #6f5c4c !important;
    background: #6f5c4c !important;
}

/* Supporting V2 pages reuse their proven public data and forms, while this
 * layer gives them the same showroom rhythm as the V2 home. */
body.public-site-v2 .ae-contact,
body.public-site-v2 .ae-sell-page,
body.public-site-v2 .ae-about-manifesto,
body.public-site-v2 .ae-about-pillars,
body.public-site-v2 .ae-about-services,
body.public-site-v2 .favorites-premium__selection {
    background: var(--ae-v2-paper);
    color: var(--ae-v2-ink);
}

body.public-site-v2 .ae-contact__hero,
body.public-site-v2 .ae-sell-page__hero,
body.public-site-v2 .ae-about-hero,
body.public-site-v2 .favorites-premium__hero {
    background: #090909;
}

body.public-site-v2 .ae-contact__hero-grid,
body.public-site-v2 .ae-sell-page__hero-grid,
body.public-site-v2 .favorites-premium__checkers {
    display: none;
}

body.public-site-v2 .ae-contact__hero::after,
body.public-site-v2 .ae-sell-page__hero::after,
body.public-site-v2 .ae-about-hero::after,
body.public-site-v2 .favorites-premium__hero::after {
    background: radial-gradient(circle at 72% 38%, rgba(140, 122, 107, .30), transparent 44%);
    content: "";
}

body.public-site-v2 .ae-contact__route-preview,
body.public-site-v2 .favorites-premium__counter {
    border-color: rgba(140, 122, 107, .62);
    border-radius: 0;
    background: rgba(10, 10, 10, .86);
}

body.public-site-v2 .ae-contact__route-preview strong,
body.public-site-v2 .favorites-premium__counter strong,
body.public-site-v2 .favorites-premium__selection-head small,
body.public-site-v2 .ae-contact__section-heading span,
body.public-site-v2 .ae-contact__form-intro > span {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-contact__workspace,
body.public-site-v2 .ae-sell-page__rail,
body.public-site-v2 .ae-sell-page__configurator,
body.public-site-v2 .ae-sell-page__faq,
body.public-site-v2 .ae-about-business,
body.public-site-v2 .ae-about-process,
body.public-site-v2 .ae-about-locations {
    background: var(--ae-v2-paper);
}

body.public-site-v2 .ae-contact__branch-card,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__form-card,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__summary,
body.public-site-v2 .ae-contact__form-panel,
body.public-site-v2 .ae-contact__info-grid > *,
body.public-site-v2 .ae-about-pillar,
body.public-site-v2 .ae-about-service,
body.public-site-v2 .ae-about-location,
body.public-site-v2 .ae-about-member,
body.public-site-v2 .favorites-premium__empty {
    border-color: var(--ae-v2-line);
    border-radius: 0;
    box-shadow: none;
}

body.public-site-v2 .ae-contact__branch-card:hover,
body.public-site-v2 .ae-contact__branch-card:focus-visible,
body.public-site-v2 .ae-about-service:hover,
body.public-site-v2 .ae-about-service:focus-visible,
body.public-site-v2 .ae-about-member:hover {
    border-color: var(--ae-v2-taupe);
    box-shadow: 0 18px 42px rgba(39, 32, 28, .12);
    transform: translate3d(0, -4px, 0);
}

body.public-site-v2 .ae-contact__control {
    border-radius: 0;
}

body.public-site-v2 .ae-contact__control:focus-within {
    border-color: var(--ae-v2-taupe);
    box-shadow: 0 0 0 3px rgba(140, 122, 107, .16);
}

body.public-site-v2 .ae-contact__submit,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__next,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__submit,
body.public-site-v2 .ae-about-button--primary,
body.public-site-v2 .favorites-premium__button--primary,
body.public-site-v2 .favorites-premium__empty-action {
    border-radius: 0;
    background: var(--ae-v2-ink);
}

body.public-site-v2 .ae-contact__submit:hover,
body.public-site-v2 .ae-contact__submit:focus-visible,
body.public-site-v2 .ae-about-button--primary:hover,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__next:hover,
body.public-site-v2 .ae-sell-modal.ae-sell-page .ae-sell__submit:hover,
body.public-site-v2 .favorites-premium__button--primary:hover,
body.public-site-v2 .favorites-premium__empty-action:hover {
    background: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-about-kicker,
body.public-site-v2 .ae-about-eyebrow,
body.public-site-v2 .ae-about-pillar__number {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-about-cta__panel {
    border-radius: 0;
    background: #0a0a0a;
}

body.public-site-v2 .favorites-premium {
    --black: var(--ae-v2-ink);
    --white: var(--ae-v2-paper);
    --muted: var(--ae-v2-muted);
    --line: var(--ae-v2-line);
    --line-strong: rgba(140, 122, 107, .66);
    background: var(--ae-v2-paper);
    color: var(--ae-v2-ink);
}

body.public-site-v2 .favorites-premium__hero h1 span,
body.public-site-v2 .favorites-premium__eyebrow,
body.public-site-v2 .favorites-premium__counter small {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .favorites-premium__button,
body.public-site-v2 .favorites-premium__counter,
body.public-site-v2 .favorites-premium__empty {
    border-radius: 0;
}

html[data-theme="dark"] body.public-site-v2 {
    --ae-v2-paper: #0c0c0c;
    --ae-v2-ink: #f7f5f2;
    --ae-v2-line: rgba(255, 255, 255, .15);
    --ae-v2-muted: #b6afa9;
}

html[data-theme="dark"] body.public-site-v2 .ae-legacy-search,
html[data-theme="dark"] body.public-site-v2 .ae-v2-section:nth-child(even),
html[data-theme="dark"] body.public-site-v2 .ae-v2-stat,
html[data-theme="dark"] body.public-site-v2 .ae-v2-vehicle-card,
html[data-theme="dark"] body.public-site-v2 .ae-v2-vehicle-card__spec,
html[data-theme="dark"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-button {
    background: #151515;
}

html[data-theme="dark"] body.public-site-v2 .ae-legacy-search__query-shell {
    background: #101010;
}

html[data-theme="dark"] body.public-site-v2 .ae-legacy-search__query-icon,
html[data-theme="dark"] body.public-site-v2 .ae-legacy-search__photo,
html[data-theme="dark"] body.public-site-v2 .ae-legacy-search__photo::after,
html[data-theme="dark"] body.public-site-v2 .ae-v2-finance-strip .ae-v2-button {
    color: #fff;
}

/* Theme state can briefly retain .is-dark while the global switch changes. The
   html data-theme wins so form copy is always legible in light mode. */
html[data-theme="light"] body.public-site-v2 :is(.ae-v2-search, .ae-v2-filter-form) :is(input, select),
html:not([data-theme]) body.public-site-v2 :is(.ae-v2-search, .ae-v2-filter-form) :is(input, select) {
    border-color: rgba(23, 19, 17, .22) !important;
    background: #fff !important;
    color: #171311 !important;
    -webkit-text-fill-color: #171311 !important;
}

html[data-theme="light"] body.public-site-v2.is-dark .ae-v2-select__trigger,
html[data-theme="light"] body.public-site-v2 .ae-v2-select__trigger,
html:not([data-theme]) body.public-site-v2 .ae-v2-select__trigger {
    border-color: rgba(23, 19, 17, .22) !important;
    background: #fff !important;
    color: #171311 !important;
    -webkit-text-fill-color: #171311 !important;
}

html[data-theme="light"] body.public-site-v2 .ae-v2-select__menu,
html:not([data-theme]) body.public-site-v2 .ae-v2-select__menu {
    background: #fff !important;
    color: #171311 !important;
}

/* Los filtros avanzados conservan el comportamiento nativo, pero ahora su
   contenido entra y sale con una señal visual clara. */
body.public-site-v2 .ae-v2-advanced {
    border-top-color: var(--ae-v2-line);
    transition: border-color .24s ease, padding .24s ease;
}

body.public-site-v2 .ae-v2-advanced summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    transition: color .2s ease, transform .2s ease;
}

body.public-site-v2 .ae-v2-advanced summary::after {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform .24s ease;
}

body.public-site-v2 .ae-v2-advanced[open] summary {
    color: var(--ae-v2-taupe);
}

body.public-site-v2 .ae-v2-advanced[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

body.public-site-v2 .ae-v2-advanced[open] .ae-v2-advanced__grid {
    animation: ae-v2-filter-reveal .32s cubic-bezier(.2, .72, .18, 1) both;
}

body.public-site-v2 .ae-v2-advanced.is-transitioning {
    overflow: hidden;
}

body.public-site-v2 .ae-v2-filter-form :is(input, select, button),
body.public-site-v2 .ae-v2-filter-actions a,
body.public-site-v2 .ae-v2-category-rail a {
    transition: transform .2s cubic-bezier(.2, .72, .18, 1), color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.public-site-v2 .ae-v2-filter-form :is(input, select):focus,
body.public-site-v2 .ae-v2-category-rail a:hover,
body.public-site-v2 .ae-v2-filter-actions a:hover {
    transform: translateY(-1px);
}

body.public-site-v2 .ae-v2-filter-form.is-submitting button[type="submit"] {
    position: relative;
    cursor: progress;
    pointer-events: none;
}

body.public-site-v2 .ae-v2-filter-form.is-submitting button[type="submit"]::after {
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    animation: ae-v2-filter-spin .64s linear infinite;
}

@keyframes ae-v2-filter-reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ae-v2-filter-spin {
    to { transform: rotate(360deg); }
}

body.public-site-v2.ae-v2-motion-ready .ae-v2-motion-item {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    will-change: opacity, transform;
}

body.public-site-v2.ae-v2-motion-ready .ae-v2-motion-item.is-visible {
    animation: ae-v2-reveal .72s cubic-bezier(.2, .72, .18, 1) var(--ae-v2-motion-delay, 0ms) both;
}

@keyframes ae-v2-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 760px) {
    body.public-site-v2 .ae-v2-pagination {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    body.public-site-v2 .ae-v2-pagination__action {
        min-width: 0;
        width: 100%;
    }

    body.public-site-v2 .ae-v2-pagination__status {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    body.public-site-v2 .ae-nav-main__inner {
        min-height: 64px;
    }

    body.public-site-v2 .ae-hero {
        min-height: 650px;
    }

    body.public-site-v2 .ae-hero__media {
        left: 0;
    }

    body.public-site-v2 .ae-hero__media-shade {
        background: linear-gradient(0deg, #080808 0%, rgba(8, 8, 8, .82) 42%, rgba(8, 8, 8, .20) 100%);
    }

    body.public-site-v2 .ae-hero__shell {
        align-items: end;
    }

    body.public-site-v2 .ae-hero__title {
        font-size: clamp(46px, 14vw, 66px);
    }

    body.public-site-v2 [data-public-home-search-v4] {
        margin-top: -26px;
    }

    body.public-site-v2 .ae-legacy-search-band {
        width: min(100% - 24px, 1240px);
    }

    body.public-site-v2 .ae-legacy-search {
        padding: 17px;
    }

    body.public-site-v2 .ae-legacy-search__intro {
        display: block;
    }

    body.public-site-v2 .ae-legacy-search__intro-copy h2 {
        font-size: 23px;
    }

    body.public-site-v2 .ae-legacy-search__photo {
        min-width: 48px;
        padding-inline: 11px;
    }

    body.public-site-v2 .ae-legacy-search__photo::after {
        display: none;
    }

    body.public-site-v2 .ae-v2-section {
        padding-block: 58px;
    }

    body.public-site-v2 .ae-v2-category {
        min-height: 240px;
    }

    body.public-site-v2 .ae-v2-sell__media::after {
        background: linear-gradient(0deg, rgba(10, 10, 10, .5), transparent 70%);
    }

    body.public-site-v2 .ae-v2-energy-categories {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.public-site-v2 * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* V2 dropdowns: the real select stays in the form for native submission,
   while this visible control gives every list a consistent branded treatment. */
body.public-site-v2 .ae-v2-select {
    position: relative;
    width: 100%;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--ae-v2-ink);
}

body.public-site-v2 .ae-v2-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.public-site-v2 .ae-v2-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--ae-v2-line);
    border-radius: 0;
    background: #fff;
    color: #171311;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

body.public-site-v2 .ae-v2-select__trigger:hover,
body.public-site-v2 .ae-v2-select.is-open .ae-v2-select__trigger {
    border-color: #8c7a6b;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, .16);
}

body.public-site-v2 .ae-v2-select__trigger:focus-visible {
    outline: 2px solid #8c7a6b;
    outline-offset: 2px;
}

body.public-site-v2 .ae-v2-select__trigger:disabled {
    opacity: .56;
    cursor: not-allowed;
}

body.public-site-v2 .ae-v2-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-site-v2 .ae-v2-select__chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

body.public-site-v2 .ae-v2-select.is-open .ae-v2-select__chevron {
    transform: rotate(225deg) translate(-2px, -1px);
}

body.public-site-v2 .ae-v2-select__menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    max-height: min(320px, 46vh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid rgba(23, 19, 17, .22);
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 12, 10, .20);
    scrollbar-color: #8c7a6b #eee9e4;
    scrollbar-width: thin;
}

body.public-site-v2 .ae-v2-select.is-upward .ae-v2-select__menu {
    top: auto;
    bottom: calc(100% + 7px);
}

body.public-site-v2 .ae-v2-select__menu::-webkit-scrollbar {
    width: 9px;
}

body.public-site-v2 .ae-v2-select__menu::-webkit-scrollbar-track {
    background: #eee9e4;
}

body.public-site-v2 .ae-v2-select__menu::-webkit-scrollbar-thumb {
    border: 2px solid #eee9e4;
    border-radius: 12px;
    background: #8c7a6b;
}

body.public-site-v2 .ae-v2-select__option {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 11px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #171311;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

body.public-site-v2 .ae-v2-select__option:hover,
body.public-site-v2 .ae-v2-select__option:focus-visible {
    border-left-color: #8c7a6b;
    outline: 0;
    background: #f1ece7;
    color: #171311;
}

body.public-site-v2 .ae-v2-select__option.is-selected {
    border-left-color: #8c7a6b;
    background: #8c7a6b;
    color: #fff;
}

body.public-site-v2 .ae-v2-select__option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

body.public-site-v2.is-dark .ae-v2-select__trigger,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__trigger {
    border-color: rgba(255, 255, 255, .22);
    background: #171717;
    color: #f7f5f2;
}

body.public-site-v2.is-dark .ae-v2-select__menu,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__menu {
    border-color: rgba(255, 255, 255, .22);
    background: #171717;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .52);
    scrollbar-color: #8c7a6b #292727;
}

body.public-site-v2.is-dark .ae-v2-select__option,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__option {
    color: #f7f5f2;
}

body.public-site-v2.is-dark .ae-v2-select__option:hover,
body.public-site-v2.is-dark .ae-v2-select__option:focus-visible,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__option:hover,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__option:focus-visible {
    background: #302b28;
    color: #fff;
}

body.public-site-v2.is-dark .ae-v2-select__menu::-webkit-scrollbar-track,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__menu::-webkit-scrollbar-track {
    background: #292727;
}

body.public-site-v2.is-dark .ae-v2-select__menu::-webkit-scrollbar-thumb,
html[data-theme='dark'] body.public-site-v2 .ae-v2-select__menu::-webkit-scrollbar-thumb {
    border-color: #292727;
}
