/* =============================================
   Teatro Diana — Custom Carousel
   ============================================= */

.td-carousel-section {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.td-carousel {
    position: relative;
    width: 100%;
    user-select: none;
}

/* ---- Track ---- */
.td-carousel__track-wrapper {
    overflow: hidden;
    width: 100%;
}

.td-carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.td-carousel__track.no-transition {
    transition: none !important;
}

/* ---- Slides ---- */
.td-carousel__slide {
    /* Desktop: 3 slides visible */
    flex: 0 0 calc(100% / 3);
    min-width: calc(100% / 3);
    box-sizing: border-box;
}

.td-carousel__link {
    display: block;
    width: 100%;
}

.td-carousel__link img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border: none;
}

/* ---- Botones de navegación ---- */
.td-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    outline: none;
}

.td-carousel__btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.td-carousel__btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.td-carousel__btn--prev { left: 12px; }
.td-carousel__btn--next { right: 12px; }

/* ---- Tablet: 2 slides ---- */
@media (max-width: 1199px) and (min-width: 768px) {
    .td-carousel__slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

/* ---- Móvil: 1 slide ---- */
@media (max-width: 767px) {
    .td-carousel__slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .td-carousel__link img {
        height: 200px;
    }

    .td-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .td-carousel__btn--prev { left: 6px; }
    .td-carousel__btn--next { right: 6px; }
}
