/* Estilos específicos para la página de trabajos */
.categoria-section {
    margin-bottom: 4rem;
}

.categoria-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.categoria-header h3 {
    font-size: 2rem;
    color: #fff;
    border-left: 6px solid var(--gold-start, #cf9f2e);
    padding-left: 1rem;
}

/* ===== CARRUSEL MEJORADO CON BOTONES ===== */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    background: #1a1a1a;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-track img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
                linear-gradient(135deg, var(--gold-start, #cf9f2e), var(--gold-end, #f1c40f)) border-box;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-track img:hover {
    transform: scale(1.02);
    border-color: var(--gold-start, #cf9f2e);
}

/* Botones de navegación */
.carousel-nav {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--gold-start, #cf9f2e);
    color: var(--gold-start, #cf9f2e);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--gold-start, #cf9f2e);
    color: #111;
    transform: scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mensaje cuando no hay imágenes */
.empty-category {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-style: italic;
    background: #111;
    border-radius: 20px;
    border: 1px dashed var(--gold-start, #cf9f2e);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--gold-start, #cf9f2e);
    cursor: pointer;
    z-index: 10000;
    transition: 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid var(--gold-start, #cf9f2e);
    box-shadow: 0 0 30px rgba(207, 159, 46, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold-start, #cf9f2e);
    color: var(--gold-start, #cf9f2e);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: var(--gold-start, #cf9f2e);
    color: #111;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    border: 1px solid var(--gold-start, #cf9f2e);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-track img {
        width: 220px;
        height: 160px;
    }

    .categoria-header h3 {
        font-size: 1.6rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        bottom: -30px;
    }
}