/* ============================================= */
/* TSF - Todo Sobre Fitness                      */
/* Estilos unificados para boxes y detalle       */
/* ============================================= */

/* ===== BOXES (listador + página TSF) ===== */

.tsf-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.tsf-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tsf-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #333;
}

.tsf-box-img {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}

.tsf-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tsf-box:hover .tsf-box-img img {
    transform: scale(1.06);
}

.tsf-box-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tsf-box-tag {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0a2f55;
    font-weight: 700;
    margin-bottom: 8px;
}

.tsf-box-title {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 8px;
}

.tsf-box-desc {
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tsf-box-cta {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0a2f55;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    transition: color 0.2s;
}

.tsf-box:hover .tsf-box-cta {
    color: #1a5fa0;
}

.tsf-box-cta i {
    margin-left: 4px;
    transition: transform 0.2s;
}

.tsf-box:hover .tsf-box-cta i {
    transform: translateX(3px);
}

/* ===== PÁGINA TODO SOBRE FITNESS ===== */

.tsf-page-header {
    text-align: center;
    padding: 30px 15px 10px;
}

.tsf-page-header h1 {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 28px;
    color: #0a2f55;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.tsf-page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 50px;
}

.tsf-page-grid .tsf-box {
    width: calc(33.333% - 14px);
}

/* Animación fade-up para la página */
@keyframes tsfFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsf-page-box {
    opacity: 0;
}

.tsf-page-box.tsf-visible {
    animation: tsfFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== LISTADOR - Boxes TSF entre productos ===== */

.tsf-listador-item .tsf-box {
    height: 100%;
}

/* ===== DETALLE TSF ===== */

.tsf-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.tsf-detalle-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.tsf-detalle-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    font-family: 'Ubuntu Condensed', sans-serif;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.tsf-detalle-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.tsf-detalle-breadcrumb a:hover {
    color: #333;
}

.tsf-detalle-title {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.tsf-detalle-descripcion {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.tsf-detalle-contenido {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto;
}

.tsf-detalle-contenido p {
    margin-bottom: 20px;
}

.tsf-detalle-contenido h2 {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 24px;
    color: #333;
    margin: 35px 0 15px;
}

.tsf-detalle-contenido img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Scroll reveal */
.tsf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tsf-reveal.tsf-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Productos recomendados */
.tsf-productos-section {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 30px 15px 20px;
    border-top: 1px solid #eee;
}

.tsf-productos-title {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.tsf-productos-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tsf-productos-grid > .box-product {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    float: none;
    padding: 0;
}

/* Ocultar comparador en esta vista */
.tsf-productos-section .comp-btn,
.tsf-productos-section .comp-checkbox-wrapper,
.tsf-productos-section .comp-check-label {
    display: none !important;
}

/* Mobile Swiper */
.tsf-productos-mobile {
    display: none;
    position: relative;
    padding: 0 0 40px;
}

.tsf-productos-mobile .swiper-button-prev,
.tsf-productos-mobile .swiper-button-next {
    color: #333;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    top: 40%;
}

.tsf-productos-mobile .swiper-button-prev::after,
.tsf-productos-mobile .swiper-button-next::after {
    font-size: 15px;
    font-weight: bold;
}

.tsf-productos-mobile .swiper-button-prev {
    left: 2px;
}

.tsf-productos-mobile .swiper-button-next {
    right: 2px;
}

.tsf-productos-mobile .swiper-pagination-bullet-active {
    background: #333;
}

.tsf-productos-mobile .swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.tsf-productos-mobile .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 15px;
}

.tsf-productos-mobile .swiper-slide {
    padding: 0;
    box-sizing: border-box;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
    .tsf-page-grid .tsf-box {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .tsf-page-grid .tsf-box {
        width: 100%;
    }

    .tsf-page-header h1 {
        font-size: 22px;
    }

    .tsf-productos-grid {
        display: none;
    }

    .tsf-productos-mobile {
        display: block;
    }

    .tsf-productos-mobile .box-product {
        width: 85vw !important;
        margin: 0 auto;
    }

    .tsf-productos-section {
        padding: 20px 10px 0;
    }

    .tsf-detalle-title {
        font-size: 24px;
    }
}
