/**
 * Talavera CF - Staff y Directiva
 * Carrusel infinito de miembros del staff/directiva
 */

.tcfs-wrapper {
    box-sizing: border-box;
    width: 100%;
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.tcfs-wrapper *,
.tcfs-wrapper *::before,
.tcfs-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Filtros ---------- */
.tcfs-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 36px;
    padding: 0 10px;
}

.tcfs-filter {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.tcfs-filter:hover,
.tcfs-filter:focus {
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.tcfs-filter.is-active {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 800px) {
    .tcfs-filters {
        justify-content: center;
        gap: 8px;
    }
    .tcfs-filter {
        padding: 10px 18px;
        font-size: 12px;
    }
}

/* ---------- Carrusel ---------- */
.tcfs-carousel {
    position: relative;
}

.tcfs-track-wrap {
    overflow: hidden;
    width: 100%;
    transition: opacity 0.25s ease;
}

.tcfs-track-wrap.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.tcfs-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

/* ---------- Card (clavada al primer plugin pero sin dorsal) ---------- */
.tcfs-card {
    flex: 0 0 auto;
    width: calc((100% - (3 * 28px)) / 4); /* 4 visibles, gap 28px */
    margin-right: 28px;
    background-color: #0d1525;
    border: 1px solid #64748B;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tcfs-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #0F172A;
    overflow: hidden;
}

.tcfs-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.tcfs-card__info {
    padding: 22px 24px 26px;
}

.tcfs-card__name {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tcfs-card__role {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive: visibles por viewport */
@media (max-width: 1100px) {
    .tcfs-card {
        width: calc((100% - (2 * 22px)) / 3);
        margin-right: 22px;
    }
}

@media (max-width: 800px) {
    .tcfs-card {
        width: calc((100% - 18px) / 2);
        margin-right: 18px;
    }
    .tcfs-card__info {
        padding: 16px 18px 20px;
    }
    .tcfs-card__name {
        font-size: 18px;
    }
    .tcfs-card__role {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tcfs-card {
        width: 100%;
        margin-right: 16px;
    }
}

/* ---------- Flechas ---------- */
.tcfs-arrows {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.tcfs-arrow {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
    line-height: 0;
}

.tcfs-arrow:hover,
.tcfs-arrow:focus {
    background-color: rgba(255, 255, 255, 0.12);
    outline: none;
}

.tcfs-arrow:active {
    transform: scale(0.95);
}

.tcfs-arrow[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .tcfs-arrow {
        width: 44px;
        height: 44px;
    }
}

/* ---------- Estado vacío ---------- */
.tcfs-empty {
    flex: 1 0 100%;
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    opacity: 0.7;
    font-size: 16px;
}

/* Evitar scroll lateral en wrapper estrecho */
.tcfs-wrapper {
    overflow: hidden;
}
