/* ==========================================================================
   Estilos Single y Taxonomía - Telser de Venezuela (v1.3.0)
   ========================================================================== */

/* Breadcrumbs */
.telser-breadcrumb > li + li:before {
    content: "/\00a0";
    padding: 0 5px;
    color: #999;
}

/* Contenedor del Carrusel + Miniaturas */
.telser-gallery-stage {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 815px;
    align-items: flex-start;
}

/* Panel de Miniaturas a la Izquierda */
.telser-thumbs-panel {
    width: 100px;
    min-width: 100px;
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.telser-thumbs-panel::-webkit-scrollbar {
    width: 4px;
}
.telser-thumbs-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.telser-thumbs-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.telser-thumb-slot {
    width: 100%;
    height: 60px;
    min-height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: all 0.25s ease-in-out;
}

.telser-thumb-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.telser-thumb-slot:hover {
    opacity: 1;
}

.telser-thumb-slot.active {
    opacity: 1;
    border-color: #004b93;
    box-shadow: 0 0 5px rgba(0, 75, 147, 0.4);
}

/* Panel del Slider 700x350 */
.telser-slider-panel {
    width: 700px;
    max-width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.telser-slider-only {
    width: 100%;
}

.telser-slider-panel #telser-owl-carousel,
.telser-slider-panel .owl-stage-outer,
.telser-slider-panel .owl-stage,
.telser-slider-panel .owl-item,
.telser-slider-panel .item {
    height: 350px !important;
}

.telser-slider-panel .item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Desactivar flechas por defecto de Owl para evitar conflictos */
.telser-slider-panel .owl-nav {
    display: none !important;
}

/* Flechas personalizadas (Icono blanco con fondo negro al 50%) */
.telser-slider-nav .telser-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    outline: none;
}

.telser-slider-nav .telser-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
}

.telser-slider-nav .telser-prev-btn {
    left: 12px;
}

.telser-slider-nav .telser-next-btn {
    right: 12px;
}

/* Sidebar y Contacto */
.telser-contact-widget {
    background-color: #f7f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.telser-contact-widget h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #004b93;
    border-bottom: 2px solid #004b93;
    padding-bottom: 8px;
}

.telser-contact-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #444;
}

.telser-contact-list li i {
    width: 22px;
    color: #004b93;
}

.telser-btn-email {
    background-color: #004b93;
    border-color: #003a73;
    margin-top: 15px;
    font-weight: bold;
}

.telser-btn-email:hover {
    background-color: #00366b;
}

/* ==========================================================================
   Sección: Grid de Taxonomía (Bootstrap 3 - Sin efectos Hover)
   ========================================================================== */

.telser-grid-row {
    margin-left: -15px;
    margin-right: -15px;
}

.telser-card-item {
    width: 100%;
    height: 390px;
    max-height: 390px;
    margin-bottom: 30px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Efectos hover completamente deshabilitados */
    transform: none !important;
    transition: none !important;
}

/* Contenedor de la Imagen */
.telser-card-img-wrap {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    background: #f4f4f4;
}

.telser-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
    transition: none !important;
}

/* Cuerpo de la Tarjeta */
.telser-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 210px;
    flex-grow: 1;
}

.telser-card-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 8px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.telser-card-title a {
    color: #222222;
    text-decoration: none;
}

.telser-card-title a:hover {
    color: #004b93;
    text-decoration: none;
}

/* Resumen / Descripción Corta */
.telser-card-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: #666666;
    height: 55px;
    overflow: hidden;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Botón de la Tarjeta */
.telser-card-footer {
    margin-top: auto;
}

.telser-card-footer .btn-primary {
    background-color: #004b93;
    border-color: #003870;
    font-size: 13px;
    font-weight: bold;
    padding: 7px 12px;
    border-radius: 4px;
}

.telser-card-footer .btn-primary:hover {
    background-color: #00366b;
    border-color: #002850;
}

.btn-ver-servicio, .btn-ver-servicio:hover{
    background-color: #205ad0 !important;
    border-color:#205ad0 !important;
}

/*
* pagina single
*/

.telser-single-title{
    font-weight: bold;
    font-size:28px !important;
}

.content-single-service p, div{
    text-align:justify !important;
    font-size:16px;
    line-height:24px;
}

.telser-btn-email{
    background-color:#205ad0 !important;
    border-color:#205ad0 !important;
}
.telser-contact-widget h3{
    color:#205ad0 !important;
    border-bottom: 2px solid #205ad0 !important;
}
.telser-contact-widget i{
    color:#205ad0 !important;
}
.telser-faqs-heading{
    color:#205ad0 !important;
}

/* ==========================================================================
   MEDIA QUERIES (ADAPTACIÓN COMPLETA PARA MÓVILES Y TABLETS)
   ========================================================================== */

/* Tablets / Dispositivos Medianos (<= 991px) */
@media (max-width: 991px) {
    .telser-gallery-stage {
        max-width: 100%;
    }
    .telser-slider-panel {
        max-width: 100%;
    }
    .telser-sidebar-container {
        margin-top: 35px;
    }
}

/* Dispositivos Móviles (<= 767px) */
@media (max-width: 767px) {
    /* El contenedor pasa a columna (carrusel arriba, miniaturas abajo) */
    .telser-gallery-stage {
        flex-direction: column;
        gap: 12px;
    }

    /* Carrusel 100% fluido con relación de aspecto 16:9 */
    .telser-slider-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .telser-slider-panel #telser-owl-carousel,
    .telser-slider-panel .owl-stage-outer,
    .telser-slider-panel .owl-stage,
    .telser-slider-panel .owl-item,
    .telser-slider-panel .item,
    .telser-slider-panel .item img {
        height: 100% !important;
        max-height: none !important;
    }

    /* Las miniaturas se convierten en una tira horizontal con scroll táctil */
    .telser-thumbs-panel {
        order: 2;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px;
        padding: 5px 2px 10px 2px;
        -webkit-overflow-scrolling: touch;
    }

    .telser-thumb-slot {
        width: 75px !important;
        min-width: 75px !important;
        height: 50px !important;
        min-height: 50px !important;
    }

    /* Flechas de navegación táctiles */
    .telser-slider-nav .telser-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .telser-slider-nav .telser-prev-btn {
        left: 6px;
    }

    .telser-slider-nav .telser-next-btn {
        right: 6px;
    }

    .telser-single-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .telser-card-img-wrap {
        height: 180px;
    }
}
