.news-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.slider-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slider-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-item:hover .slider-image img {
    transform: scale(1.05);
}

.slider-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.slider-content h4 a {
    color: #c7ea46;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.slider-content p {
    margin-top: 10px;
    font-size: 16px;
}

/* Flechas de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background-color: #c7ea46;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Bullets de navegación */
.slider-bullets {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.bullet {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bullet.active,
.bullet:hover {
    background-color: #c7ea46;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-content {
        width: 90%;
    }
    .slider-content h4 a {
        font-size: 18px;
    }
    .slider-content p {
        font-size: 14px;
    }
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
