/* ═══════════════════════════════════════════════════
   Alemautos Hero Slider — CSS
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Container ──────────────────────────── */
.alm-hero {
    position: relative;
    width: 100%;
    height: calc(100vw * 800 / 1920);
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

/* ─── Track & Slides ─────────────────────────────── */
.alm-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.alm-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    visibility: hidden;
    z-index: 0;
}

.alm-hero__slide.is-active {
    visibility: visible;
    z-index: 2;
}

.alm-hero__slide.is-entering {
    visibility: visible;
    z-index: 3;
    animation: alm-wipe-in 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

/* Reverse wipe */
.alm-hero__slide.is-entering.is-reverse {
    animation-name: alm-wipe-in-reverse;
}

/* ─── Transitions ────────────────────────────────── */
@keyframes alm-wipe-in {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0% 0 0); }
}

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

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

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

/* ─── Media (background images) ──────────────────── */
.alm-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.alm-hero__media--desktop { display: block; }
.alm-hero__media--mobile  { display: none; }

/* ─── Content ────────────────────────────────────── */
.alm-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: 80px 80px 0;
    box-sizing: border-box;
}

.alm-hero__content--left   { margin-right: auto; text-align: left; }
.alm-hero__content--center { margin: 0 auto; text-align: center; }
.alm-hero__content--right  { margin-left: auto; text-align: right; }

/* Title */
.alm-hero__title {
    display: block;
    font-family: 'Titulo ligth', sans-serif;
    font-size: clamp(28px, 3.2vw, 52px);
    font-weight: 300;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    line-height: 1.15;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(24px);
}

/* Description */
.alm-hero__desc {
    font-family: 'MBC', sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.65);
    line-height: 1.5;
    margin: 0 0 24px;
    opacity: 0;
    transform: translateY(24px);
}

/* Button */
.alm-hero__buttons {
    opacity: 0;
    transform: translateY(24px);
}

.alm-hero__btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-family: 'MBC', sans-serif;
    font-weight: 600;
    color: #fff;
    background: #0078d6;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.alm-hero__btn:hover {
    background: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 120, 214, 0.4);
    color: #fff;
    text-decoration: none;
}

/* ─── Content entrance animation ─────────────────── */
.alm-hero__slide.is-active .alm-hero__title,
.alm-hero__slide.is-entering .alm-hero__title {
    animation: alm-content-up 0.6s ease forwards 0.4s;
}
.alm-hero__slide.is-active .alm-hero__desc,
.alm-hero__slide.is-entering .alm-hero__desc {
    animation: alm-content-up 0.6s ease forwards 0.55s;
}
.alm-hero__slide.is-active .alm-hero__buttons,
.alm-hero__slide.is-entering .alm-hero__buttons {
    animation: alm-content-up 0.6s ease forwards 0.7s;
}

@keyframes alm-content-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Arrows ─────────────────────────────────────── */
.alm-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease;
    padding: 0;
}

.alm-hero__arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.alm-hero__arrow--prev { left: 0; }
.alm-hero__arrow--next { right: 0; }

/* ─── Dots ───────────────────────────────────────── */
.alm-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.alm-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.alm-hero__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.alm-hero__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════
   Mobile — ≤ 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .alm-hero {
        height: calc(100vw * 480 / 430);
        max-height: 100svh;
    }

    .alm-hero__media--desktop { display: none; }
    .alm-hero__media--mobile  { display: block; }

    .alm-hero__content {
        padding: 60px 24px 0;
        max-width: 100%;
    }

    .alm-hero__title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .alm-hero__desc {
        font-size: 14px;
    }

    .alm-hero__arrow {
        width: 36px;
        height: 36px;
    }

    .alm-hero__arrow svg {
        width: 16px;
        height: 16px;
    }

    .alm-hero__dots {
        bottom: 16px;
        gap: 8px;
    }

    .alm-hero__dot {
        width: 10px;
        height: 10px;
    }
}
