/* ============================
   CLIENTES – ESTILOS GENERALES
===============================*/

.clientes-wrapper {
    padding: 20px 0;
}

.tf-client-item {
    text-align: center;
    cursor: pointer;
}


/* Ajustar imágenes en el listado para que todas queden parejas */
.tf-client-item img {
    width: 100%;
    height: 220px;      /* ← altura pareja */
    object-fit: cover;  /* ← recorta sin deformar */
    border-radius: 10px;
    border-radius: var(--radius, 10px);
    transition: transform .2s ease;
}

.tf-client-item:hover img {
    transform: scale(1.03);
}

.tf-client-item p {
    margin-top: 10px;
    font-size: 18px;
    color: var(--title, #000);
}

/* ============================
   LIGHTBOX / VIEWER TF
===============================*/

#tf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

#tf-lightbox.open {
    display: flex;
}

.tf-lightbox-content {
    background: #ffffff;
    width: 95%;
    max-width: 1200px;
    border-radius: 12px;
    position: relative;
    padding: 25px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
}

/* Cerrar */
.tf-lightbox-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
}

/* Flechas navegación */
.tf-lightbox-prev,
.tf-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}

.tf-lightbox-prev { left: -20px; }
.tf-lightbox-next { right: -20px; }

/* Imagen principal */
.tf-lightbox-main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

/* Galería abajo */
.tf-lightbox-gallery {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-lightbox-gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border .2s;
}

.tf-lightbox-gallery img.active,
.tf-lightbox-gallery img:hover {
    border-color: #333;
}

/* Lado derecho */
#tf-lightbox-description {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 15px;
}

.tf-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    color: #fff;
    cursor: pointer;
    padding: 0px 18px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    user-select: none;
    z-index: 50;
}

#tf-lightbox-prev { left: 20px; }
#tf-lightbox-next { right: 20px; }

.tf-lightbox-arrow:hover {
    background: rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    .tf-lightbox-content {
        grid-template-columns: 1fr;
    }

    .tf-lightbox-main-image {
        height: 300px;
    }

    .tf-lightbox-prev,
    .tf-lightbox-next {
        display: none;
    }
}

.swiper-pagination {
    position:relative!important;
}
