/* Autos Esquivel — premium hero override (deployment-safe).
 *
 * Este archivo vive en /public y welcome.blade.php lo carga con filemtime(),
 * por lo que el rediseño no depende de que el bundle Vite del servidor haya
 * sido recompilado. También normaliza versiones anteriores del hero que aún
 * puedan quedar servidas por un manifest viejo.
 */

.public-site-rebuild {
    overflow-x: clip;
}

.ae-hero {
    --ae-hero-ink: #f7f5f1;
    --ae-hero-muted: rgba(247, 245, 241, .66);
    --ae-hero-soft: rgba(247, 245, 241, .11);
    --ae-hero-line: rgba(247, 245, 241, .18);
    --ae-hero-accent: #d9cbb6;
    --ae-hero-panel: rgba(9, 9, 10, .42);
    position: relative !important;
    isolation: isolate !important;
    min-height: clamp(610px, calc(100svh - 104px), 780px) !important;
    overflow: hidden !important;
    background: #080809 !important;
    color: var(--ae-hero-ink) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

/* El hero se mantiene cinematográfico incluso cuando el resto del sitio usa tema claro. */
html[data-theme="light"] .ae-hero {
    --hero-fg: var(--ae-hero-ink) !important;
    --hero-muted: var(--ae-hero-muted) !important;
    --hero-faint: rgba(247, 245, 241, .08) !important;
    --hero-line: var(--ae-hero-line) !important;
    --hero-surface: rgba(9, 9, 10, .52) !important;
    --hero-button: #f5f2ec !important;
    --hero-button-fg: #0b0b0c !important;
    background: #080809 !important;
}

/* Mata marcas de agua/wordmarks de versiones viejas (por ejemplo NEXT). */
.ae-hero::after,
.ae-hero__ghost,
.ae-hero__ghost-word,
.ae-hero__wordmark,
.ae-hero__watermark,
.ae-hero__background-word,
.ae-hero__next {
    content: none !important;
    display: none !important;
}

.ae-hero__media {
    left: 34% !important;
    right: 0 !important;
    width: auto !important;
    overflow: hidden !important;
    opacity: 1 !important;
}

.ae-hero__media img,
.ae-hero__poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 58% 52% !important;
    filter: grayscale(.28) saturate(.8) contrast(1.12) brightness(.68) !important;
}

html[data-theme="light"] .ae-hero__media img,
html[data-theme="light"] .ae-hero__poster {
    filter: grayscale(.28) saturate(.8) contrast(1.12) brightness(.68) !important;
    opacity: .96 !important;
}

.ae-hero__media-shade {
    background:
        linear-gradient(90deg,
            #080809 0%,
            rgba(8, 8, 9, .99) 22%,
            rgba(8, 8, 9, .88) 39%,
            rgba(8, 8, 9, .52) 58%,
            rgba(8, 8, 9, .28) 76%,
            rgba(8, 8, 9, .46) 100%),
        linear-gradient(0deg, rgba(8, 8, 9, .52), transparent 52%) !important;
}

html[data-theme="light"] .ae-hero__media-shade {
    background:
        linear-gradient(90deg,
            #080809 0%,
            rgba(8, 8, 9, .99) 22%,
            rgba(8, 8, 9, .88) 39%,
            rgba(8, 8, 9, .52) 58%,
            rgba(8, 8, 9, .28) 76%,
            rgba(8, 8, 9, .46) 100%),
        linear-gradient(0deg, rgba(8, 8, 9, .52), transparent 52%) !important;
}

.ae-hero__grid {
    opacity: .16 !important;
    background-size: 88px 88px !important;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 42%, transparent 78%) !important;
}

.ae-hero__speed-lines {
    opacity: .13 !important;
}

.ae-hero__glow {
    opacity: .75 !important;
    background: radial-gradient(ellipse, rgba(217, 203, 182, .13), transparent 66%) !important;
}

.ae-hero__shell {
    min-height: inherit !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0 !important;
    padding-top: clamp(70px, 8vh, 96px) !important;
    padding-bottom: clamp(88px, 10vh, 116px) !important;
}

.ae-hero__content {
    position: relative !important;
    width: min(760px, 68vw) !important;
    max-width: 100% !important;
    padding: 0 0 0 clamp(0px, 1.2vw, 18px) !important;
    justify-self: start !important;
}

/* Línea editorial superior: más discreta y premium que el bloque anterior. */
.ae-hero__eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 30px !important;
    margin: 0 0 22px !important;
    color: rgba(247, 245, 241, .64) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
}

.ae-hero__eyebrow::before {
    content: "" !important;
    display: block !important;
    width: 34px !important;
    height: 1px !important;
    flex: 0 0 34px !important;
    background: linear-gradient(90deg, var(--ae-hero-accent), rgba(217, 203, 182, .12)) !important;
}

.ae-hero__mark {
    display: none !important;
}

/* Si producción todavía sirve el bundle viejo, actualizamos el copy visible sin esperar rebuild. */
.ae-hero__eyebrow > span {
    font-size: 0 !important;
}

.ae-hero__eyebrow > span::after {
    content: "Compra · Venta · Consigna" !important;
    font-size: 11px !important;
}

.ae-hero__kinetic {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 24px !important;
    margin: 0 0 10px !important;
    color: rgba(247, 245, 241, .7) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
}

.ae-hero__kinetic-window {
    color: var(--ae-hero-accent) !important;
}

.ae-hero__title {
    width: min(100%, 760px) !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: var(--ae-hero-ink) !important;
    font-size: clamp(58px, 6.3vw, 100px) !important;
    font-weight: 760 !important;
    line-height: .88 !important;
    letter-spacing: -.064em !important;
    text-wrap: balance !important;
}

.ae-hero__title-main,
.ae-hero__title-accent {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
}

.ae-hero__title-main {
    color: #f8f7f4 !important;
    text-shadow: 0 12px 44px rgba(0, 0, 0, .28) !important;
}

.ae-hero__title-accent {
    margin-top: .06em !important;
    color: var(--ae-hero-accent) !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    font-weight: 520 !important;
    letter-spacing: -.055em !important;
    text-shadow: 0 10px 36px rgba(0, 0, 0, .3) !important;
}

.ae-hero__copy {
    max-width: 560px !important;
    margin: 24px 0 0 !important;
    color: rgba(247, 245, 241, .66) !important;
    font-size: clamp(15px, 1.12vw, 18px) !important;
    line-height: 1.58 !important;
    letter-spacing: -.012em !important;
}

.ae-hero__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: auto !important;
    margin-top: 30px !important;
}

.ae-hero__cta {
    position: relative !important;
    min-height: 54px !important;
    padding: 0 22px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    overflow: hidden !important;
    color: #f7f5f1 !important;
    background: rgba(14, 14, 15, .44) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    backdrop-filter: blur(16px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
    font-size: 13px !important;
    font-weight: 720 !important;
    letter-spacing: .01em !important;
    text-decoration: none !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease !important;
}

.ae-hero__cta--primary {
    min-width: 202px !important;
    border-color: rgba(247, 245, 241, .94) !important;
    background: #f5f2ec !important;
    color: #0b0b0c !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22) !important;
}

.ae-hero__cta--secondary {
    min-width: 170px !important;
}

.ae-hero__cta:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, .58) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24) !important;
}

.ae-hero__cta--primary:hover {
    background: #fff !important;
}

.ae-hero__cta:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 4px !important;
}

.ae-hero__finance-link {
    margin-top: 17px !important;
    color: rgba(247, 245, 241, .58) !important;
    font-size: 12px !important;
}

.ae-hero__signals {
    margin-top: 28px !important;
    color: rgba(247, 245, 241, .52) !important;
}

/* El rail y la división vertical hacían que la composición se viera pesada. */
.ae-hero__rail {
    display: none !important;
    border-left: 0 !important;
}

.ae-hero__bottom {
    border-color: rgba(255, 255, 255, .09) !important;
    color: rgba(247, 245, 241, .42) !important;
}

/* Asegura que un bundle anterior no deje el contenido invisible por la animación de entrada. */
.ae-hero__eyebrow,
.ae-hero__kinetic,
.ae-hero__title > span,
.ae-hero__copy,
.ae-hero__actions,
.ae-hero__finance-link,
.ae-hero__signals {
    opacity: 1 !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .ae-hero__media {
        left: 24% !important;
    }

    .ae-hero__content {
        width: min(720px, 78vw) !important;
    }

    .ae-hero__title {
        font-size: clamp(54px, 8vw, 82px) !important;
    }
}

/* Móvil: fondo protagonista, copy corto y CTAs limpios sin bloques toscos. */
@media (max-width: 720px) {
    .ae-hero {
        min-height: clamp(590px, calc(100svh - 72px), 690px) !important;
    }

    .ae-hero__media {
        left: -12% !important;
        right: -14% !important;
        opacity: .72 !important;
    }

    .ae-hero__media img,
    .ae-hero__poster {
        object-position: 62% 50% !important;
        filter: grayscale(.42) saturate(.72) contrast(1.12) brightness(.52) !important;
    }

    .ae-hero__media-shade,
    html[data-theme="light"] .ae-hero__media-shade {
        background:
            linear-gradient(0deg, #080809 0%, rgba(8, 8, 9, .64) 42%, rgba(8, 8, 9, .42) 100%),
            linear-gradient(90deg, rgba(8, 8, 9, .84), rgba(8, 8, 9, .26)) !important;
    }

    .ae-hero__grid,
    .ae-hero__speed-lines {
        opacity: .08 !important;
    }

    .ae-hero__shell {
        align-items: end !important;
        padding-top: 76px !important;
        padding-bottom: 70px !important;
    }

    .ae-hero__content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    .ae-hero__eyebrow {
        margin-bottom: 18px !important;
        font-size: 10px !important;
    }

    .ae-hero__eyebrow > span::after {
        font-size: 10px !important;
    }

    .ae-hero__kinetic {
        margin-bottom: 8px !important;
        font-size: 12px !important;
    }

    .ae-hero__title {
        width: 100% !important;
        font-size: clamp(42px, 13vw, 62px) !important;
        line-height: .9 !important;
        letter-spacing: -.054em !important;
    }

    .ae-hero__title-accent {
        font-size: .9em !important;
    }

    .ae-hero__copy {
        max-width: 92% !important;
        margin-top: 19px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .ae-hero__actions {
        width: 100% !important;
        margin-top: 25px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .ae-hero__cta,
    .ae-hero__cta--primary,
    .ae-hero__cta--secondary {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .ae-hero__finance-link {
        margin-top: 14px !important;
    }

    .ae-hero__signals {
        margin-top: 20px !important;
    }

    .ae-hero__bottom {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .ae-hero {
        min-height: 570px !important;
    }

    .ae-hero__shell {
        padding-top: 62px !important;
        padding-bottom: 54px !important;
    }

    .ae-hero__title {
        font-size: clamp(39px, 12.6vw, 52px) !important;
    }

    .ae-hero__copy {
        max-width: 100% !important;
    }

    .ae-hero__actions {
        grid-template-columns: 1fr !important;
    }

    .ae-hero__cta,
    .ae-hero__cta--primary,
    .ae-hero__cta--secondary {
        min-height: 48px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-hero *,
    .ae-hero *::before,
    .ae-hero *::after {
        animation: none !important;
        transition: none !important;
    }
}
