/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Degradado oscuro desde arriba (incluyendo zona del header) hacia abajo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 20%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

/* Texto dinámico dentro del hero */
.hero-dynamic {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.hero-dynamic.show {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-dynamic-text {
    color: white;
    font-size: 1.25rem;
    line-height: 1.4;
    max-width: 900px;
    text-align: center;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.45);
    display: inline-block;
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animación de entrada tipo rebote */
.hero-dynamic-text.enter-bounce {
    animation: bounceIn 700ms;
}

@keyframes bounceIn {
    0% { transform: translateY(-30px) scale(0.98); opacity: 0; }
    60% { transform: translateY(8px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Fade para cambio de frase */
.hero-dynamic-text.fade-out { opacity: 0; transform: translateY(6px); }
.hero-dynamic-text.fade-in { opacity: 1; transform: translateY(0); }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: titleDropBounce 1.2s ease-out forwards;
}

@keyframes titleDropBounce {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: translateY(15px);
    }
    75% {
        transform: translateY(-8px);
    }
    90% {
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    background: linear-gradient(135deg, #9b87c7 0%, #c5b8d9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(155, 135, 199, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(155, 135, 199, 0.4);
    background: linear-gradient(135deg, #8a74b3 0%, #b3a4cc 100%);
}