/**
 * Galería Carrusel CSS
 * /assets/galeria-carrusel.css
 */

/* ============================================
   CAROUSEL CONTAINER
   ============================================ */
.gc-carousel {
    margin: 36px 0;
    padding: 0;
    max-width: 100%;
}

/* ============================================
   MAIN IMAGE
   ============================================ */
.gc-main {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid #e2e8f0;
}

.gc-main-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.gc-main-img.gc-fading {
    opacity: 0.4;
}

/* ============================================
   ARROWS
   ============================================ */
.gc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    opacity: 0;
    z-index: 2;
}

.gc-carousel:hover .gc-arrow {
    opacity: 1;
}

.gc-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
}

.gc-arrow-prev { left: 12px; }
.gc-arrow-next { right: 12px; }

/* ============================================
   COUNTER
   ============================================ */
.gc-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* ============================================
   CAPTION
   ============================================ */
.gc-caption {
    padding: 10px 4px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
}

/* ============================================
   THUMBNAILS
   ============================================ */
.gc-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gc-thumbs::-webkit-scrollbar {
    height: 6px;
}
.gc-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.gc-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.gc-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.gc-thumb:hover {
    opacity: 0.9;
    border-color: #94a3b8;
}

.gc-thumb-active {
    opacity: 1;
    border-color: #0085C3;
    box-shadow: 0 0 0 1px rgba(0,133,195,0.3);
}

.gc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .gc-main-img {
        max-height: 360px;
    }
    
    .gc-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
        opacity: 1;
    }
    
    .gc-arrow-prev { left: 8px; }
    .gc-arrow-next { right: 8px; }
    
    .gc-thumb {
        width: 64px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .gc-carousel {
        margin: 24px -16px;
    }
    
    .gc-main {
        border-radius: 0;
    }
    
    .gc-main-img {
        max-height: 280px;
    }
    
    .gc-thumbs {
        padding: 4px 16px;
    }
    
    .gc-thumb {
        width: 56px;
        height: 42px;
        border-width: 2px;
    }
}
