/* Carrusel de banners */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 55.56%; /* Ratio 16:9 aproximado para 1080x600 */
    overflow: hidden;
    margin: -90px 0 0 0;
    background: transparent;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
}

.banner-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
    left: 20px;
}

.banner-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 400px;
    }
    
    .banner-slide img {
        object-fit: cover;
        object-position: center;
    }
    
    .banner-overlay h2 {
        font-size: 1.5rem;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .banner-carousel {
        height: 350px;
    }
    
    .banner-slide img {
        object-fit: cover;
        object-position: center;
    }
    
    .banner-overlay {
        padding: 1rem;
    }
    
    .banner-overlay h2 {
        font-size: 1.2rem;
    }
}
