/* =============================================
   SLIDER SYSTEM - MUSEDOCK THEMES
   Versión mejorada y coherente
   ============================================= */

/* ---------- RESET Y ESTILOS BASE ---------- */
.swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition-property: transform;
}

.swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navegación básica */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.swiper-pagination-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Captions básicos */
.caption {
    position: absolute;
    z-index: 15;
    max-width: 80%;
}

/* ---------- ESTILOS DE FLECHAS ---------- */
/* Estilos predefinidos para flechas de navegación */

/* Flechas redondeadas blancas */
.arrow-rounded-white {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #333 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
}

.arrow-rounded-white:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Flechas naranja caja */
.arrow-orange-box {
    background: #FF6600 !important;
    color: white !important;
    border-radius: 4px !important;
    width: 40px !important;
    height: 40px !important;
}

.arrow-orange-box:hover {
    background: #ff8533 !important;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5) !important;
}

/* Flechas azules minimal */
.arrow-simple-blue {
    background: transparent !important;
    color: #3399FF !important;
    font-size: 22px !important;
    text-shadow: 0 0 5px rgba(51, 153, 255, 0.3) !important;
}

.arrow-simple-blue:hover {
    transform: scale(1.2) !important;
    text-shadow: 0 0 10px rgba(51, 153, 255, 0.5) !important;
}

/* Flechas redondeadas negras */
.arrow-rounded-black {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
}

.arrow-rounded-black:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Flechas cuadradas azules */
.arrow-square-blue {
    background: #3399FF !important;
    color: white !important;
    border-radius: 0 !important;
    width: 40px !important;
    height: 40px !important;
}

.arrow-square-blue:hover {
    background: #66b3ff !important;
}

/* Flechas transparentes blancas */
.arrow-transparent-white {
    background: transparent !important;
    color: white !important;
    font-size: 24px !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.arrow-transparent-white:hover {
    transform: scale(1.2) !important;
}

/* ---------- POSICIONES DE CAPTIONS ---------- */
/* Definiciones explícitas para posiciones */

.caption.position-top-left {
    top: 20px !important;
    left: 20px !important;
    text-align: left !important;
}

.caption.position-top-right {
    top: 20px !important;
    right: 20px !important;
    text-align: right !important;
}

.caption.position-bottom-left {
    bottom: 20px !important;
    left: 20px !important;
    text-align: left !important;
}

.caption.position-bottom-right {
    bottom: 20px !important;
    right: 20px !important;
    text-align: right !important;
}

.caption.position-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

/* Captions clickeables */
.caption[onclick] {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.caption[onclick]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ---------- TEMAS VISUALES ---------- */
/* Estilos de temas completos para el slider */

/* 1. TEMA: Dark Rounded */
.theme-dark-rounded .swiper-slide .caption {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.theme-dark-rounded .swiper-button-prev,
.theme-dark-rounded .swiper-button-next {
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.theme-dark-rounded .swiper-pagination-bullet {
    background: white !important;
}

/* 2. TEMA: Light Minimal */
.theme-light-minimal .swiper-slide .caption {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.theme-light-minimal .swiper-button-prev,
.theme-light-minimal .swiper-button-next {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
}

.theme-light-minimal .swiper-pagination-bullet {
    background: #aaa !important;
}

/* 3. TEMA: Hero Full */
.theme-hero-full .swiper-slide .caption {
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    padding: 30px 40px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    bottom: 0 !important;
    left: 0 !important;
    text-align: center !important;
}

.theme-hero-full .swiper-button-prev,
.theme-hero-full .swiper-button-next {
    background: rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 !important;
}

.theme-hero-full .swiper-pagination-bullet {
    background: white !important;
}

/* 4. TEMA: Testimonial Light */
.theme-testimonial-light .swiper-slide .caption {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    padding: 20px 30px !important;
    border-radius: 10px !important;
    font-style: italic !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.theme-testimonial-light .swiper-button-prev,
.theme-testimonial-light .swiper-button-next {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
}

.theme-testimonial-light .swiper-pagination-bullet {
    background: #999 !important;
}

/* 5. TEMA: Elegant Gold */
.theme-elegant-gold .swiper-slide img {
    border-radius: 6px !important;
    border: 2px solid gold !important;
}

.theme-elegant-gold .swiper-slide .caption {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.9), rgba(255, 215, 0, 0.9)) !important;
    color: #333 !important;
    padding: 15px 20px !important;
    border-radius: 0 !important;
    border-left: 3px solid #b8860b !important;
}

.theme-elegant-gold .swiper-button-prev,
.theme-elegant-gold .swiper-button-next {
    background: gold !important;
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #b8860b !important;
}

.theme-elegant-gold .swiper-pagination-bullet {
    background: gold !important;
    border: 1px solid #b8860b !important;
}

/* 6. TEMA: Modern Thin */
.theme-modern-thin .swiper-slide .caption {
    background: rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7) !important;
}

.theme-modern-thin .swiper-button-prev,
.theme-modern-thin .swiper-button-next {
    background: transparent !important;
    color: white !important;
    font-size: 20px !important;
}

.theme-modern-thin .swiper-pagination-bullet {
    background: white !important;
    height: 2px !important;
    width: 20px !important;
    border-radius: 0 !important;
}

/* ---------- ESTILOS PARA GALLERY ---------- */
/* Estilo específico para el modo gallery */

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.swiper.gallery-top {
    margin-bottom: 10px;
}

.swiper.gallery-thumbs {
    height: 100px;
}

.gallery-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.gallery-thumbs .swiper-slide img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Theme específico para gallery */
.theme-gallery-light .swiper-slide img {
    border-radius: 6px;
}

.theme-gallery-light .gallery-thumbs .swiper-slide {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-gallery-light .gallery-thumbs .swiper-slide-thumb-active {
    border-color: #FF6600;
    transform: scale(1.05);
}

.theme-gallery-light .swiper-button-prev,
.theme-gallery-light .swiper-button-next {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

/* ---------- ANIMACIONES ---------- */
/* Efectos de animación para captions */

.caption.animation-fade-in {
    animation: caption-fade-in 0.5s ease-in-out;
}

.caption.animation-slide-up {
    animation: caption-slide-up 0.5s ease-out;
}

.caption.animation-slide-down {
    animation: caption-slide-down 0.5s ease-out;
}

@keyframes caption-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes caption-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes caption-slide-down {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Animaciones para los efectos de hover en flechas */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
}

/* ---------- RESPONSIVE ---------- */
/* Ajustes para dispositivos móviles */

@media (max-width: 768px) {
    .caption {
        max-width: 90%;
        padding: 10px 15px !important;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 30px !important;
        height: 30px !important;
    }
    
    .theme-hero-full .swiper-slide .caption {
        padding: 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .caption {
        max-width: 95%;
        padding: 8px 12px !important;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 25px !important;
        height: 25px !important;
    }
}