/* Selector de rutas comerciales en /vende-tu-auto.
 * Cada tarjeta es legible por sí sola y usa la misma jerarquía en ambos temas. */
.ae-sell-page .ae-sale-routes {
    --route-bg: #f8f7f4;
    --route-panel: #fffefd;
    --route-line: #dedbd4;
    --route-text: #181715;
    --route-muted: #706b64;
    --route-shadow: 0 18px 42px rgba(37, 31, 25, .09);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
}

html[data-theme="dark"] .ae-sell-page .ae-sale-routes {
    --route-bg: #0a0d11;
    --route-panel: #12171d;
    --route-line: rgba(216, 225, 235, .15);
    --route-text: #f7f3ed;
    --route-muted: #a9afb8;
    --route-shadow: 0 22px 56px rgba(0, 0, 0, .34);
}

.ae-sell-page .ae-sale-route {
    --route-accent: #8c7a6b;
    --route-accent-rgb: 140, 122, 107;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 304px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--route-line);
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--route-accent-rgb), .11), transparent 39%),
        linear-gradient(145deg, var(--route-panel), var(--route-bg));
    color: var(--route-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--route-shadow);
    transition: border-color .24s ease, transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s ease, background .24s ease;
}

.ae-sell-page .ae-sale-route:nth-child(2) {
    /* Neutral gray replaces the former blue accent. */
    --route-accent: #b7b8b4;
    --route-accent-rgb: 183, 184, 180;
}

.ae-sell-page .ae-sale-route:nth-child(3) {
    --route-accent: #756255;
    --route-accent-rgb: 117, 98, 85;
}

.ae-sell-page .ae-sale-route::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--route-accent);
}

.ae-sell-page .ae-sale-route::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -76px;
    right: -72px;
    width: 174px;
    height: 174px;
    border: 1px solid rgba(var(--route-accent-rgb), .26);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(var(--route-accent-rgb), .055), 0 0 0 48px rgba(var(--route-accent-rgb), .03);
}

.ae-sell-page .ae-sale-route:hover,
.ae-sell-page .ae-sale-route.is-active {
    border-color: rgba(var(--route-accent-rgb), .78);
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(var(--route-accent-rgb), .18), var(--route-shadow);
}

.ae-sell-page .ae-sale-route.is-active {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--route-accent-rgb), .20), transparent 43%),
        linear-gradient(145deg, var(--route-panel), var(--route-bg));
}

.ae-sell-page .ae-sale-route:focus-visible {
    outline: 3px solid var(--route-accent);
    outline-offset: 4px;
}

.ae-sell-page .ae-sale-route__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 38px;
}

.ae-sell-page .ae-sale-route__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(var(--route-accent-rgb), .46);
    border-radius: 16px !important;
    background: rgba(var(--route-accent-rgb), .10);
    color: var(--route-accent);
    box-shadow: inset 0 1px rgba(255, 255, 255, .38);
}

html[data-theme="dark"] .ae-sell-page .ae-sale-route__icon {
    background: rgba(var(--route-accent-rgb), .18);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.ae-sell-page .ae-sale-route__icon svg { width: 23px; height: 23px; }

.ae-sell-page .ae-sale-route__number {
    min-width: 38px;
    padding: 7px 9px;
    border: 1px solid rgba(var(--route-accent-rgb), .28);
    border-radius: 999px;
    background: rgba(var(--route-accent-rgb), .08);
    color: var(--route-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-align: center;
}

.ae-sell-page .ae-sale-route__body { display: grid; gap: 10px; }

.ae-sell-page .ae-sale-route__eyebrow {
    color: var(--route-accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ae-sell-page .ae-sale-route__title {
    display: block;
    max-width: 12ch;
    color: var(--route-text);
    font-size: clamp(26px, 2.25vw, 34px);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: .98;
}

.ae-sell-page .ae-sale-route__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 19px;
    border-top: 1px solid var(--route-line);
    color: var(--route-text);
    font-size: 10px;
}

.ae-sell-page .ae-sale-route__cta b { font-weight: 800; }

.ae-sell-page .ae-sale-route__cta > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    background: var(--route-accent);
    color: #fff;
    box-shadow: 0 7px 16px rgba(var(--route-accent-rgb), .28);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ae-sell-page .ae-sale-route:hover .ae-sale-route__cta > span,
.ae-sell-page .ae-sale-route.is-active .ae-sale-route__cta > span {
    transform: translateX(3px);
    box-shadow: 0 10px 22px rgba(var(--route-accent-rgb), .42);
}

.ae-sell-page .ae-sale-route__cta svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
    .ae-sell-page .ae-sale-routes { gap: 14px; }
    .ae-sell-page .ae-sale-route { min-height: 278px; padding: 21px; }
    .ae-sell-page .ae-sale-route__top { margin-bottom: 30px; }
}

@media (max-width: 700px) {
    .ae-sell-page .ae-sale-routes { grid-template-columns: 1fr; }
    .ae-sell-page .ae-sale-route { min-height: 242px; padding: 20px; border-radius: 19px !important; }
    .ae-sell-page .ae-sale-route__top { margin-bottom: 27px; }
    .ae-sell-page .ae-sale-route__title { max-width: none; font-size: clamp(27px, 8vw, 32px); }
    .ae-sell-page .ae-sale-route__cta { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ae-sell-page .ae-sale-route,
    .ae-sell-page .ae-sale-route__cta > span { transition: none; }
    .ae-sell-page .ae-sale-route:hover { transform: none; }
}

body main.ae-sell-page > .ae-sell-page__configurator .ae-sell { background: #0b0e11 !important; }
html[data-theme="light"] body main.ae-sell-page > .ae-sell-page__configurator .ae-sell { background: #f3f4f5 !important; }
