/*
 * IEU Portal - Hero de la portada
 */

@keyframes ieuKen {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

.ieu-hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #071a35;
    color: #fff;
}

.ieu-hero-slides,
.ieu-hero-slide,
.ieu-hero-slide-bg {
    position: absolute;
    inset: 0;
}

.ieu-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

.ieu-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.ieu-hero-slide-bg {
    background-position: center;
    background-size: cover;
}

.ieu-hero-slide.is-active .ieu-hero-slide-bg {
    animation: ieuKen 8s ease-in-out infinite alternate;
}

.ieu-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(3, 17, 40, .92),
        rgba(11, 45, 94, var(--hero-overlay, .74)) 42%,
        rgba(11, 45, 94, .25) 72%,
        rgba(3, 17, 40, .05)
    );
}

.ieu-hero-slide .ieu-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ieu-kicker {
    margin: 0 0 20px;
    color: var(--ieu-green, var(--green, #69b42e));
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ieu-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-family: Merriweather, serif;
    font-size: 58px;
    line-height: 1.05;
    text-shadow: 0 6px 25px rgba(0, 0, 0, .28);
}

.ieu-hero h1 span {
    display: block;
    color: var(--ieu-gold, var(--gold, #d6a324));
}

.ieu-hero .ieu-hero-text {
    max-width: 760px;
    margin: 0 0 24px;
    color: #fff;
    font-size: 20px;
    line-height: 1.65;
}

.ieu-hero-btn {
    width: auto;
    min-width: 0;
    max-width: max-content;
    min-height: 46px;
    padding: 0 22px;
    align-self: flex-start;
    flex: 0 0 auto;
}

.ieu-hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    background: rgba(3,17,40,.46);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
}

.ieu-hero-arrow:hover,
.ieu-hero-arrow:focus-visible {
    background: rgba(11,45,94,.9);
    border-color: rgba(255,255,255,.82);
}

.ieu-hero-prev { left: 24px; }
.ieu-hero-next { right: 24px; }

.ieu-hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.ieu-hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.ieu-hero-dot.is-active {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .ieu-hero-slide,
    .ieu-hero-slide.is-active .ieu-hero-slide-bg {
        transition: none;
        animation: none;
    }
}

@media (max-width: 900px) {
    .ieu-hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 29px;
    }

    .ieu-hero-prev { left: 12px; }
    .ieu-hero-next { right: 12px; }
}

@media (max-width: 640px) {
    .ieu-hero {
        height: 520px;
    }

    .ieu-hero h1 {
        font-size: 36px;
    }

    .ieu-hero .ieu-hero-text {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.55;
    }
}
