﻿/* ============================================================
 * Hero Fan Slider
 * ============================================================ */

.se-hero-fan {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
 * STAGE — área donde se animan las cartas
 * ============================================================ */
.se-hero-fan__stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.se-hero-fan__card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 18px;
    transform-origin: 50% 100%;
    transition:
        transform 1.4s cubic-bezier(0.65, 0.05, 0.35, 1),
        opacity   1.4s cubic-bezier(0.65, 0.05, 0.35, 1),
        filter    1.4s cubic-bezier(0.65, 0.05, 0.35, 1);
    will-change: transform, opacity;
    opacity: 0;
}

.se-hero-fan__img {
    width: 100%;
    height: 100%;
    max-height: 80%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.se-hero-fan--overlay .se-hero-fan__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0)   35%,
        rgba(0, 0, 0, 0)   60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

/* ============================================================
 * POSICIONES DEL ABANICO
 * ============================================================ */
.se-hero-fan__card--pos-top {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
}
.se-hero-fan__card--pos-2 {
    transform: translateY(20px) rotate(-0.8deg) scale(0.965);
    opacity: 0.95;
    filter: brightness(0.9);
    z-index: 9;
}
.se-hero-fan__card--pos-3 {
    transform: translateY(42px) rotate(-1.6deg) scale(0.93);
    opacity: 0.9;
    filter: brightness(0.8);
    z-index: 8;
}
.se-hero-fan__card--pos-4 {
    transform: translateY(66px) rotate(-2.4deg) scale(0.895);
    opacity: 0.85;
    filter: brightness(0.7);
    z-index: 7;
}
.se-hero-fan__card--pos-5 {
    transform: translateY(92px) rotate(-3.2deg) scale(0.86);
    opacity: 0.8;
    filter: brightness(0.6);
    z-index: 6;
}

.se-hero-fan__card--leaving {
    transform: translateY(-40px) rotate(5deg) scale(1);
    opacity: 0;
    z-index: 15;
}
.se-hero-fan__card--entering {
    transform: translateY(120px) rotate(-5deg) scale(0.75);
    opacity: 0;
    z-index: 1;
}
.se-hero-fan__card--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(120px) rotate(-5deg) scale(0.75);
    z-index: 1;
}

/* ============================================================
 * CONTENIDO CENTRAL
 * ============================================================ */
.se-hero-fan__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    pointer-events: none;
}

.se-hero-fan__content > * {
    pointer-events: auto;
}

.se-hero-fan__title {
    margin: 40px 0 16px;
    line-height: 0.95;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.se-hero-fan__title em,
.se-hero-fan__title i {
    font-style: italic;
    font-weight: 300;
}

.se-hero-fan__subtitle {
    margin: 0 0 28px;
    line-height: 1.3;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);

}

.se-hero-fan__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: none;
    transition: transform 0.25s ease;
    font-family: inherit;
}

.se-hero-fan__cta:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.se-hero-fan__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.se-hero-fan__cta-icon svg,
.se-hero-fan__cta-icon i {
    width: 100%;
    height: 100%;
    font-size: 18px;
}

/* ============================================================
 * TEXTO INFERIOR (cambia por slide)
 * ============================================================ */
.se-hero-fan__bottom {
    position: absolute;
    bottom: calc(20% + 40px);
    left: 48px;
    right: 48px;
    z-index: 25;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.se-hero-fan__bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.se-hero-fan__bottom-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.se-hero-fan__bottom-text {
    display: inline-block;
    max-width: 70%;
    line-height: 1.4;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    transition: opacity 0.6s ease;
}

.se-hero-fan__bottom-text.is-fading {
    opacity: 0;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 768px) {
    .se-hero-fan__stage { top: 0; left: 0; right: 0; bottom: 0; }
    .se-hero-fan__bottom { bottom: calc(20% + 14px); left: 20px; right: 20px; }
    .se-hero-fan__bottom-text { max-width: 85%; }
    .se-hero-fan__cta { padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .se-hero-fan__card { transition: opacity 0.6s ease !important; }
    .se-hero-fan__card--pos-2,
    .se-hero-fan__card--pos-3,
    .se-hero-fan__card--pos-4,
    .se-hero-fan__card--pos-5 {
        transform: none !important;
        display: none;
    }
}
