/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Estilos para el single de toros */
.toro-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para la galería con tabs */
.toro-gallery-tabs {
    margin-bottom: 30px;
}

.tab-navigation {
    display: flex;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #002e5f;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #4c8c1f;
    border-color: #4c8c1f;
    background-color: #f8f9fa;
    border: 3px solid #4c8c1f;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.thumbnail-item img {
    width: 100% !important;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}

/* Estilos para Fancybox personalizados */
.thumbnail-item a {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: -10px;
}

.thumbnail-item a:hover {
    text-decoration: none;
}

.thumbnail-item a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 18px;
}

.thumbnail-item a:hover::after {
    opacity: 1;
}

/* Personalización de Fancybox */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.fancybox__button {
    color: white;
}

.fancybox__button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fancybox__caption {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
}

/* Estilos para las thumbnails */
.fancybox__thumbs {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fancybox__thumb {
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fancybox__thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.fancybox__thumb.is-nav-selected {
    border-color: #4c8c1f;
    box-shadow: 0 0 10px rgba(76, 140, 31, 0.5);
}

.fancybox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-videos {
    margin-top: 40px;
}

.videos-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
}

.video-container {
    margin: 0;
    width: 50%;
    height: 50%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(76, 140, 31, 0.5);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
}

.ficha-tecnica {
    margin-top: 70px;
}

.vc_hidden-md {
    display: none;
}

.vc_block-md {
    display: block;
}

@media (max-width: 991px) {
    .vc_hidden-md {
        display: block;
    }

    .vc_block-md {
        display: none;
    }
}

@media (max-width: 1200px) {
    .vc_hidden-md {
        display: block;
    }

    .vc_block-md {
        display: none;
    }
}

@media (max-width: 768px) {

    .toro-single {
        padding: 20px 0;
    }

    .vc_hidden-xs {
        display: none;
    }

    .vc_block-xs {
        display: block;
    }

    /* Estilos responsivos para tabs */
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 5px;
        font-size: 14px;
        flex: 1;
        min-width: auto;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .thumbnail-item img {
        height: 120px;
    }
    
    /* Thumbnails responsivas en Fancybox */
    .fancybox__thumbs {
        height: 80px;
    }
    
    .fancybox__thumb {
        height: 60px;
        width: 60px;
    }
    
}




