
/* === CONTENEDOR PRINCIPAL === */
.quote-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
}

/* === IMAGEN PRINCIPAL === */
.quote-main-image {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.quote-main-image:hover {
    transform: scale(1.01);
}

.quote-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* === OVERLAY Y BOTÓN DE EXPANSIÓN === */
.quote-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-main-image:hover .quote-gallery-overlay {
    opacity: 1;
}

.quote-expand-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;

    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.quote-main-image:hover .quote-expand-btn {
    transform: scale(1);
}

.quote-expand-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* === CONTADOR DE IMÁGENES === */
.quote-image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.quote-thumbnails{   
    position: relative;
    margin: 10px 0px 10px 0px;
}

.quote-thumbnails-swiper{
   width: 90%;
   margin: 0 auto;
}
.quote-thumbnails .slider-arrow{

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    align-items: center;
    z-index: 999;
}

.quote-thumbnails .button-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin: 0 5px;
    pointer-events: auto;
}

.quote-thumbnails .button-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.quote-thumbnails .button-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Clase nativa de Swiper para botones deshabilitados */
.quote-thumbnails .button-arrow.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.quote-thumb {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.quote-thumb.active {
    border-color:var(--primary);
}

.quote-thumb:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quote-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.quote-thumb:hover img {
    transform: scale(1.05);
}

/* === MODAL DE GALERÍA === */
.quote-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-gallery-modal.active {
    display: flex;
    opacity: 1;
}

.quote-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* === BOTONES DEL MODAL === */
.quote-close-btn,
.quote-prev-btn,
.quote-next-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.quote-close-btn:hover,
.quote-prev-btn:hover,
.quote-next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quote-close-btn {
    top: 20px;
    right: 20px;
}

.quote-prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.quote-next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* === IMAGEN DEL MODAL === */
.quote-modal-image {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* === CONTADOR DEL MODAL === */
.quote-modal-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* === THUMBNAILS DEL MODAL === */
.quote-modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
}

.quote-modal-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.quote-modal-thumb.active {
    border-color:var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.quote-modal-thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

.quote-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  
    
    .quote-expand-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .quote-modal-content {
        padding: 10px;
    }
    
    .quote-close-btn,
    .quote-prev-btn,
    .quote-next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .quote-prev-btn {
        left: 10px;
    }
    
    .quote-next-btn {
        right: 10px;
    }
    
    .quote-modal-counter {
        bottom: 60px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .quote-modal-thumbnails {
        bottom: 10px;
        gap: 6px;
    }
    
    .quote-modal-thumb {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
 
    
    .quote-modal-thumb {
        width: 40px;
        height: 40px;
    }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-gallery {
    animation: fadeInUp 0.6s ease-out;
}

.quote-thumb {
    animation: fadeInUp 0.6s ease-out;
}

.quote-thumb:nth-child(1) { animation-delay: 0.1s; }
.quote-thumb:nth-child(2) { animation-delay: 0.2s; }
.quote-thumb:nth-child(3) { animation-delay: 0.3s; }
.quote-thumb:nth-child(4) { animation-delay: 0.4s; }
.quote-thumb:nth-child(5) { animation-delay: 0.5s; }

/* === ESTADOS DE CARGA === */
.quote-gallery.loading .quote-main-img {
    opacity: 0.5;
}

.quote-gallery.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solidvar(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
