/**
 * Estilos para la página de Colaboraciones
 * Bordador Errante
 */

/* ===== SECCIÓN COLABORACIONES ===== */
.collaborations {
    padding-top: 7rem;
    padding-bottom: 1rem;
    text-align: center;
    background-color: #fafafa;
    min-height: calc(100vh - 200px);
}

.collaborations .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.collaborations-container {
    max-width: 1300px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 0 30px;
}

/* ===== TARJETAS DE COLABORACIÓN ===== */
.collaboration-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.collaboration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ===== CARRUSEL ===== */
.collaboration-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.collaboration-slide {
    width: 100%;
    height: 100%;
    display: none;
    animation: fadeIn 0.5s ease;
}

.collaboration-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.collaboration-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.collaboration-card:hover .collaboration-slide img {
    transform: scale(1.08);
}

/* ===== BOTONES DEL CARRUSEL ===== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(85, 107, 93, 0.8);
    color: white;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(85, 107, 93, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

/* ===== MINIATURAS ===== */
.collaboration-thumbnails {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.collaboration-thumb {
    width: 45px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.collaboration-thumb.active,
.collaboration-thumb:hover {
    opacity: 1;
    transform: scale(1.08);
    border-color: white;
}

/* ===== INFORMACIÓN DE LA COLABORACIÓN ===== */
.collaboration-info {
    padding: 1.5rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.collaboration-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.collaboration-partner {
    font-size: 0.95rem;
    color: #556b5d;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.collaboration-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}

.collaboration-description::-webkit-scrollbar {
    width: 4px;
}

.collaboration-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.collaboration-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.collaboration-description::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ===== ESTADO VACÍO ===== */
.no-collaborations {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.no-collaborations i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .collaborations-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 1.5rem;
    }

    .collaboration-carousel {
        height: 220px;
    }

    .collaboration-title {
        font-size: 1.2rem;
    }

    .collaboration-description {
        max-height: 150px;
    }
}

/* ===== MODAL LIGHTBOX ===== */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10001;
    transition: all 0.3s ease;
}

.zoom-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

.zoom-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .zoom-nav {
        padding: 0.6rem 0.9rem;
        font-size: 1.5rem;
    }

    .zoom-prev {
        left: 10px;
    }

    .zoom-next {
        right: 10px;
    }

    .zoom-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}