/* ============================================
   SLIDER - OCUPA EL 100% DEL CONTENEDOR
   ============================================ */
.slider-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    flex: 0 0 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ========== IMÁGENES ========== */
.slide-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop: mostrar imagen desktop, ocultar móvil */
.imagen-desktop {
    display: block;
}
.imagen-mobile {
    display: none;
}

/* En móvil: mostrar imagen móvil, ocultar desktop */
@media (max-width: 768px) {
    .imagen-desktop {
        display: none;
    }
    .imagen-mobile {
        display: block;
    }
    /* Si no hay imagen móvil, mostramos la desktop igualmente */
    .imagen-mobile:empty + .imagen-desktop {
        display: block;
    }
}

/* ========== VIDEOS ========== */
.slide-video,
.slide-html {
    width: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.slide-video .video-embed-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.slide-video .video-embed-wrapper iframe {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: none;
    display: block;
}

.slide-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Orientación vertical para videos */
.slide-video.orientacion-vertical .video-embed-wrapper iframe {
    max-width: 400px;
    aspect-ratio: 9 / 16;
}
.slide-video.orientacion-cuadrado .video-embed-wrapper iframe {
    max-width: 500px;
    aspect-ratio: 1 / 1;
}

/* ========== PUNTOS INDICADORES ========== */
.slider-puntos {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.punto {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    pointer-events: auto;
}

.punto.activo {
    background: #333;
}

.punto:hover {
    background: #555;
}

/* ========== FLECHAS DE NAVEGACIÓN ========== */
.slider-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-flecha:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-flecha.anterior {
    left: 10px;
}

.slider-flecha.siguiente {
    right: 10px;
}

.slider-container:hover .slider-flecha {
    opacity: 1;
}

@media (hover: none) {
    .slider-flecha {
        opacity: 0.7;
        background: rgba(0, 0, 0, 0.4);
    }
    .slider-flecha:hover {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .slider-slide {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .slider-flecha {
        padding: 8px 12px;
        font-size: 18px;
    }
}