.carteles {
    background: var(--bg2);
    overflow: hidden;
}

.carteles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 30px;
}

.cartel-item {
    position: relative;
    width: clamp(110px, 12vw, 150px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(.22,.68,0,1.2), box-shadow 0.3s ease;
    cursor: pointer;
}

.cartel-item:nth-child(1) { transform: rotate(-3deg); }
.cartel-item:nth-child(2) { transform: rotate(2deg); }
.cartel-item:nth-child(3) { transform: rotate(-2deg); }
.cartel-item:nth-child(4) { transform: rotate(3deg); }

.cartel-item:hover {
    transform: rotate(0deg) scale(1.08) translateY(-6px) !important;
    box-shadow: 0 18px 50px rgba(255,123,0,0.35);
    z-index: 10;
}

.cartel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* pin superior */
.cartel-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 10px;
    background: rgba(255,123,0,0.8);
    border-radius: 0 0 5px 5px;
    z-index: 2;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: min(90vw, 480px);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: lbIn 0.3s cubic-bezier(.22,.68,0,1.2);
}
@keyframes lbIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 768px) {
    .cartel-item {
        width: clamp(90px, 38vw, 130px);
    }
    .cartel-item:nth-child(1),
    .cartel-item:nth-child(2),
    .cartel-item:nth-child(3),
    .cartel-item:nth-child(4) {
        transform: rotate(0deg);
    }
}
