.cf24-publicidad{
    position: relative;
    width:100%;
    margin:20px 0;
}

.cf24-publicidad .wrap{
    position: relative;
}

.cf24-publicidad .item {
    display: none;
    width: 100%;
    position: relative;
    aspect-ratio: 5 / 1; /* Mantiene proporción 2000x400 */
}

.cf24-publicidad .item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.cf24-publicidad .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Controles de navegación */
.slider-controles {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: none; /* Ocultar las flechas */
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    pointer-events: all;
    background: rgba(39, 65, 152, 0.8);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(13, 175, 204, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 175, 204, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Indicadores (dots) */
.slider-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Ocultar los indicadores */
    gap: 10px;
    z-index: 10;
}

.slider-indicadores .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(39, 65, 152, 0.8);
}

.slider-indicadores .dot:hover {
    background: rgba(13, 175, 204, 0.9);
    border-color: rgba(13, 175, 204, 0.9);
    transform: scale(1.2);
}

.slider-indicadores .dot.active {
    background: rgba(13, 175, 204, 1);
    border-color: rgba(13, 175, 204, 1);
    width: 28px;
    border-radius: 6px;
}

/* Modal de imagen ampliada */
.imagen-ampliada-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background 0.3s ease;
}

.imagen-ampliada-overlay.visible {
    background: rgba(0, 0, 0, 0.95);
}

.imagen-ampliada-contenedor {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.imagen-ampliada-overlay.visible .imagen-ampliada-contenedor {
    opacity: 1;
    transform: scale(1);
}

.imagen-ampliada {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.btn-cerrar-ampliacion {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: white;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-cerrar-ampliacion:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

.cf24-publicidad .item.no-animation {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cf24-publicidad {
        margin: 10px 0;
        border-radius: 4px;
    }
    
    .cf24-publicidad .item {
        aspect-ratio: 3 / 1;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 18px;
        border-radius: 6px;
    }
    
    .slider-controles {
        padding: 0 10px;
    }
    
    .slider-indicadores {
        bottom: 12px;
        gap: 8px;
    }
    
    .slider-indicadores .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-indicadores .dot.active {
        width: 22px;
    }
    
    .btn-cerrar-ampliacion {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .cf24-publicidad .item {
        aspect-ratio: 2 / 1;
    }
    
    .slider-btn {
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .slider-controles {
        padding: 0 8px;
    }
    
    .slider-indicadores {
        bottom: 8px;
        gap: 6px;
    }
    
    .slider-indicadores .dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-indicadores .dot.active {
        width: 18px;
    }
}