/**
 * Banner con Efecto Ken Burns (Zoom y Pan Suave)
 * Diseño profesional y moderno
 */

#banner {
    padding: 0;
    margin: 60px 0;
    overflow: hidden;
}

/* Contenedor del banner */
.banner-parallax {
    position: relative;
    height: 200px;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.4s ease;
}

.banner-parallax:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* Imagen de fondo con efecto Ken Burns */
.banner-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurnsZoom 15s ease-in-out infinite alternate;
    will-change: transform;
}

/* Animación Ken Burns - Zoom y Pan suave */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-3%, 2%);
    }
}

.banner-parallax:hover .banner-parallax-bg {
    animation-play-state: paused;
}

/* Overlay con gradiente animado */
.banner-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Animación de gradiente sutil */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.banner-parallax:hover .banner-parallax-overlay {
    opacity: 0.8;
}

/* Contenido del banner */
.banner-parallax-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

/* Posiciones del contenido */
.banner-parallax-content.position-left {
    align-items: flex-start;
    text-align: left;
}

.banner-parallax-content.position-center {
    align-items: center;
    text-align: center;
}

.banner-parallax-content.position-right {
    align-items: flex-end;
    text-align: right;
}

/* Título del banner */
.banner-parallax-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease;
}

/* Descripción del banner */
.banner-parallax-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

/* Icono de enlace (si es clickeable) */
.banner-parallax-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-parallax:hover .banner-parallax-link-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-parallax-link-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .banner-parallax {
        height: 175px;
    }
    
    .banner-parallax-title {
        font-size: 1.8rem;
    }
    
    .banner-parallax-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .banner-parallax {
        height: 150px;
    }
    
    .banner-parallax-content {
        padding: 25px;
    }
    
    .banner-parallax-title {
        font-size: 1.5rem;
    }
    
    .banner-parallax-description {
        font-size: 0.9rem;
    }
    
    .banner-parallax-link-icon {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .banner-parallax-link-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .banner-parallax {
        height: 120px;
    }
    
    .banner-parallax-content {
        padding: 15px;
    }
    
    .banner-parallax-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .banner-parallax-description {
        font-size: 0.8rem;
    }
}

/* Estados del banner */
.banner-parallax.no-link {
    cursor: default;
}

.banner-parallax.no-link:hover {
    transform: none;
}
