/* VERSION: 1.0.8 - SLIDER SIMPLE Y EFECTIVO */

.custom-slider {
    max-width: 900px;
    margin: 2rem auto;
    height: 400px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.custom-slides {
    width: 100%;
    height: 100%;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.custom-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    z-index: 1;
}

.slider-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* CSS básico para el slider - sin interferir */
.slider-image img {
    opacity: 1;
    visibility: visible;
    display: block;
}

.slider-content {
    position: absolute;
    bottom: 200px;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.1) 100%);
    color: white !important;
    border-radius: 0 0 18px 18px;
    z-index: 10;
    min-height: 120px;
}

.slider-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 3px 15px rgba(0,0,0,0.9);
    max-width: 100%;
    word-wrap: break-word;
    color: white !important;
    display: block !important;
    visibility: visible !important;
}

.slider-meta {
    display: inline-block !important;
    background: #00bcd4 !important;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,188,212,0.3);
    visibility: visible !important;
}

.custom-slider-prev,
.custom-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-slider-prev { left: 15px; }
.custom-slider-next { right: 15px; }

.custom-slider-prev svg,
.custom-slider-next svg {
    width: 20px;
    height: 20px;
    fill: #00bcd4;
}

/* Responsive */
@media (max-width: 900px) {
    .custom-slider {
        height: 300px;
    }
    .slider-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .custom-slider {
        height: 250px;
    }
    .slider-content {
        padding: 1.5rem;
    }
    .slider-content h2 {
        font-size: 1.1rem;
    }
    .slider-meta {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}   