/* ═══════════════════════════════════════════════
   ARCFOX HERO SLIDER
   Premium automotive slider
   ═══════════════════════════════════════════════ */

/* ─── Base ─── */
.arcfox-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Montserrat', sans-serif;
}

.arcfox-hero *,
.arcfox-hero *::before,
.arcfox-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Track & Slides ─── */
.arcfox-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.arcfox-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: none;
}

.arcfox-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.arcfox-hero__slide.is-leaving {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* ─── Overlay ─── */
.arcfox-hero__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* ─── Media (background) ─── */
.arcfox-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.arcfox-hero__media--desktop {
    display: block;
}

.arcfox-hero__media--mobile {
    display: none;
}

/* Image backgrounds */
div.arcfox-hero__media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video backgrounds */
video.arcfox-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Slide transition: clip-path wipe ─── */
.arcfox-hero__slide.is-entering {
    visibility: visible;
    opacity: 1;
    z-index: 4;
    clip-path: inset(0 100% 0 0);
    animation: arcfox-wipe-in 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.arcfox-hero__slide.is-leaving {
    z-index: 3;
    animation: arcfox-scale-out 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes arcfox-wipe-in {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0% 0 0); }
}

@keyframes arcfox-scale-out {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.08); opacity: 0; }
}

/* ─── Content ─── */
.arcfox-hero__content {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 6% 140px;
    max-width: 620px;
}

.arcfox-hero__content--center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arcfox-hero__content--right {
    left: auto;
    right: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.arcfox-hero__content--left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Text colors */
.arcfox-hero__content--white { color: #fff; }
.arcfox-hero__content--dark  { color: #1E1E1E; }

/* ─── Title ─── */
.arcfox-hero__title {
    display: block;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
}

.arcfox-hero__slide.is-active .arcfox-hero__title,
.arcfox-hero__slide.is-entering .arcfox-hero__title {
    animation: arcfox-content-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* ─── Description ─── */
.arcfox-hero__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
}

.arcfox-hero__slide.is-active .arcfox-hero__desc,
.arcfox-hero__slide.is-entering .arcfox-hero__desc {
    animation: arcfox-content-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* ─── Buttons ─── */
.arcfox-hero__buttons {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(25px);
}

.arcfox-hero__slide.is-active .arcfox-hero__buttons,
.arcfox-hero__slide.is-entering .arcfox-hero__buttons {
    animation: arcfox-content-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.arcfox-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Solid blue */
.arcfox-hero__btn--solid {
    background: #4698CB;
    color: #fff;
    border: 2px solid #4698CB;
}

.arcfox-hero__btn--solid:hover {
    background: #3580ad;
    border-color: #3580ad;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(70, 152, 203, 0.35);
}

/* Outline */
.arcfox-hero__btn--outline {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
}

.arcfox-hero__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Gold */
.arcfox-hero__btn--gold {
    background: #CEB797;
    color: #1E1E1E;
    border: 2px solid #CEB797;
}

.arcfox-hero__btn--gold:hover {
    background: #bfa67f;
    border-color: #bfa67f;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(206, 183, 151, 0.35);
}

/* Content entry animation */
@keyframes arcfox-content-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Arrows ─── */
.arcfox-hero__arrow {
    position: absolute;
    bottom: 48px;
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(206, 183, 151, 0.5);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcfox-hero__arrow:hover {
    background: #CEB797;
    border-color: #CEB797;
    color: #1E1E1E;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(206, 183, 151, 0.3);
}

.arcfox-hero__arrow:active {
    transform: scale(0.95);
}

.arcfox-hero__arrow--prev {
    left: 6%;
}

.arcfox-hero__arrow--next {
    left: calc(6% + 66px);
}

/* ─── Dots ─── */
.arcfox-hero__dots {
    position: absolute;
    right: 6%;
    bottom: 48px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arcfox-hero__dot {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcfox-hero__dot-fill {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcfox-hero__dot-index {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.arcfox-hero__dot.is-active {
    width: 44px;
}

.arcfox-hero__dot.is-active .arcfox-hero__dot-fill {
    opacity: 0;
    transform: scale(0);
}

.arcfox-hero__dot.is-active .arcfox-hero__dot-index {
    opacity: 1;
    transform: translateY(0);
    color: #CEB797;
}

.arcfox-hero__dot:hover .arcfox-hero__dot-fill {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
}

/* ─── Counter ─── */
.arcfox-hero__counter {
    position: absolute;
    right: 6%;
    bottom: 100px;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
}

.arcfox-hero__counter-current {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    transition: all 0.4s ease;
}

/* ─── Progress bar (auto-play) ─── */
.arcfox-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4698CB, #CEB797);
    z-index: 20;
    width: 0%;
    animation: arcfox-progress 6s linear forwards;
}

.arcfox-hero.is-paused::after {
    animation-play-state: paused;
}

@keyframes arcfox-progress {
    to { width: 100%; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    .arcfox-hero {
        /* 500x800 ratio = 62.5vw : 100vw — ajustamos para que la imagen 500x800 quede centrada */
        height: calc(100vw * 800 / 500);
        max-height: 100vh;
        max-height: 100svh;
    }

    .arcfox-hero__media--desktop {
        display: none;
    }

    .arcfox-hero__media--mobile {
        display: block;
    }

    div.arcfox-hero__media--mobile {
        background-size: cover;
        background-position: center center;
    }

    /* Content adjustments */
    .arcfox-hero__content {
        padding: 0 7% 110px;
        max-width: 100%;
    }

    .arcfox-hero__content--right {
        text-align: left;
        align-items: flex-start;
    }

    .arcfox-hero__title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .arcfox-hero__desc {
        font-size: 13px;
    }

    /* Arrows */
    .arcfox-hero__arrow {
        width: 44px;
        height: 44px;
        bottom: 32px;
    }

    .arcfox-hero__arrow--prev {
        left: 7%;
    }

    .arcfox-hero__arrow--next {
        left: calc(7% + 56px);
    }

    /* Dots */
    .arcfox-hero__dots {
        right: 7%;
        bottom: 38px;
    }

    /* Counter */
    .arcfox-hero__counter {
        right: 7%;
        bottom: 80px;
        font-size: 2rem;
    }

    /* Buttons */
    .arcfox-hero__btn {
        padding: 10px 22px;
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .arcfox-hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .arcfox-hero__btn {
        width: 100%;
        text-align: center;
    }
}
