/* Este Carrusel en su Cnt .slider y .slder-tranck esta aplicado en vrell y en Car-Testimonio  */

.slider {
    width:              100%;
    /*max-width:          1400px;*/
    margin:             0 auto;
    padding:            20px;
    overflow:           hidden; /* Essential for hiding overflowing carousel items */
    /*border:             solid 8px #FFCC00;*/
}

.slider .slider-track {
    display:            flex;
    flex-wrap:          nowrap;
    align-items:        center;
    gap:                20px; /* Usa gap para el espacio entre ítems */
    transition:         transform 0.5s ease-in-out;
    /*border:             8px solid #FF0000;*/
}

/* Clases específicas para los ítems de cada carrusel */

/* Carrusel de testimonios (cards) */
.cntg-tdopn.carousel-item-card {
    flex-shrink:        0;
    flex-basis:         450px;
    width:              350px;
    height:             650px;
    box-shadow:         0 10px 20px #000;
    background-size:    cover;
    display:            flex;
    flex-direction:     column;
    /*justify-content:    center;*/
     justify-content: flex-end;
    align-items:        center;
    text-align:         center;
    overflow:           hidden;
    position:           relative;
   /*border:             4px 4px 4px #FF0000;*/
   /*Border:              solid 4px #FFCC00;*/
}

/* --- ESTILOS CORREGIDOS PARA EL CARRUSEL DE VIDEOS (REEL) --- */
/* gallery_item también debería tener un ancho fijo para el carrusel de videos */
.gallery_item.carousel-item-video {
    flex-shrink:        0; /* Evita que el elemento se encoja */
    /* *** AJUSTE DE TAMAÑO AÚN MÁS PEQUEÑO AQUÍ *** */
    width:              150px;  /* Ancho más pequeño para cada video reel */
    height:             280px;  /* Altura más pequeña para cada video reel (formato vertical de reel) */
    margin-right:       20px; /* Espacio entre los videos */
    box-sizing:         border-box;
    display:            flex; /* Usar flexbox para centrar el video dentro del figure */
    justify-content:    center;
    align-items:        center;
    overflow:           hidden; /* Oculta cualquier parte del video que se desborde */
   /*border:             10px solid #FFCC00;    Para depuración, puedes quitarlo */
}

.gallery_item.carousel-item-video video {
    width:              100%; /* El video ocupa el 100% del ancho del contenedor figure */
    height:             100%; /* El video ocupa el 100% de la altura del contenedor figure */
    object-fit:         cover; /* Recorta el video para llenar el contenedor sin distorsión */
    display:            block;
    cursor:             pointer;
    /*border:             3px solid #FF0000;*/
}

.gallery_item.carousel-item-video video:hover {
    transform:          scale(1.05); /* Ligeramente más pequeño el efecto de zoom para reels */
    transition:         all 0.5s ease;
}

.gallery_content{
    /*margin-top:       200px;*/
    width:              100%;
    /*margin:           2rem auto;*/
    position:           relative;
    display:            flex;
    flex-wrap:          wrap;
    padding:            8px;
    box-shadow:         0px 0px 8px 3px #888;
    gap:                8px;
    /*border:           solid 12px #FF0000;*/
}
/* .gallery_item{
        flex-grow: 1;
        overflow: hidden;
    }*/
    .gallery_mimg{
        width:          100%;
        height:         100%;
        display:        block;
        object-fit:     cover;
        /*border:       solid 8px #000;*/
    }

   .gallery_mimg:hover{
        background:     #000;
        cursor:         pointer;
        transform:      scale(1.1);
        transition:     transform ease 0.3s;
    }



/* --- ESTILOS PARA LA GALERÍA EN FORMATO GRID (RESTAURADOS) --- */
/* Esta sección debe ser como la tenías originalmente, sin clases de slider */
/*.gallery_content {
     Aquí van los estilos  galería de imágenes/videos GRID
    width:              100%;
    max-width:        1400px;
    margin:             0 auto;
    padding:            20px;
    border:             solid 4px #FFCC00;
     Si tienes más estilos para .gallery_content que afecten el grid, ponlos aquí
     Asegúrate de que no tenga `overflow: hidden;` ni `display: flex;` para el grid

}*/

/* Estilos específicos para los elementos de la galería (Grid) */
/* Asumiendo que tus ítems dentro de gallery_content son gallery_item */

/* AQUI TRABAJARE LOS NUEVOS ST PARA */
.gallery_content .item-vreel {
    position:           relative; /* Necesario para posicionar el overlay */
    display:            inline-block;      /* O display: block; float: left; o display: grid; como lo tenías */
    vertical-align:     top; /* Para alinear elementos inline-block */
    /*width:              calc(33.33% - 20px);  Ejemplo para 3 columnas con gap de 20px */
    width:              150px;
    height: 280px;
    margin-right:       20px; /* Espacio entre los elementos */
    margin-bottom:      20px; /* Espacio entre las filas */
    box-sizing:         border-box; /* Incluir padding y border en el width/height */
    height:             200px; /* Altura fija para los elementos del grid si lo deseas */
    overflow:           hidden; /* Para que la imagen/video no se desborde */
    border:             1px solid #ccc; /* Ejemplo de borde */
    box-shadow:         0 2px 5px rgba(0,0,0,0.1); /* Ejemplo de sombra */
    border-radius:      8px;
    cursor:             pointer; /* Cursor pointer en todo el item-vreel */
    /*border:             solid 5px #FF0000;*/

}

/* Overlay con botón de play */
.item-vreel .play-overlay {
    position:           absolute;
    top:                0;
    left:               0;
    width:              100%;
    height:             100%;
    background:         rgba(0,0,0,0); /* Transparente por defecto */
    display:            flex;
    justify-content:    center;
    align-items:        center;
    /* La transformación inicial es 1, no 1.1 */
    transform:          scale(1);
    transition:         all ease 0.5s;
    z-index:            10; /* Asegura que el overlay esté por encima de la imagen */
}

/* Efectos al pasar el mouse por .item-vreel */
.item-vreel:hover .play-overlay {
    background:         rgba(0,0,0,.7); /* Opacidad al pasar el mouse */
    transform:          scale(1.1); /* Escala al pasar el mouse */
}

/* El botón de play siempre será visible, sin cambiar su opacidad */
.play-button {
    width:              60px;
    height:             60px;
    background-color:   #fff;
    border-radius:      50%;
    display:            flex;
    justify-content:    center;
    align-items:        center;
    position:           relative;
    z-index:            11; /* Asegura que el botón esté por encima del overlay */
}

.play-button::before {
    content:            '';
    position:           absolute;
    width:              0;
    height:             0;
    border-top:         15px solid transparent;
    border-bottom:      15px solid transparent;
    border-left:        25px solid #000;
    left:               55%; /* Ajusta la posición del triángulo para que se vea centrado */
    transform:          translateX(-50%);
}

/* Si tu grid era con CSS Grid, entonces podrías tener algo así: */
/* .gallery_content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gallery_content .gallery_item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} */


.gallery_content .gallery_item img,
.gallery_content .gallery_item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- FIN ESTILOS DE GALERÍA GRID RESTAURADOS --- */


/* Estilos específicos de los testimonios (ya los tenías, solo agrupados aquí) */
.testimonios {
    /* ... tus estilos existentes ... */
}

.testimonios__header {
    /* ... tus estilos existentes ... */
}

.shaperfil img {
    position: relative;
    background-color: #002244;
    border-radius: 50%;
    height: 200px;
    width: 200px;
    top: 10px;
    margin-left: -8px;
    box-shadow: 0 2px 15px #000;
    transform: rotate(0deg);
    z-index: 1;
    object-fit: cover;
}

.image-lg img {
    position: absolute;
    height: 90px;
    width: 130px;
    top: 150px;
    margin-left: -165px;
    background-size: cover;
    border: none;
    border-radius: 50%;
    z-index: 2;
}

.cntg-tdopn h3 {
    position: relative;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 10px;
    text-transform: capitalize;
    z-index: 3;
}

.empcli {
    position: relative;
    margin-top: -10px;
    font-size: 15px;
    padding: 0;
    color: #0093af;
    z-index: 3;
    line-height: 2;
    font-size: 16px;
}

.cntg-tdopn p {
    position: relative;
    margin-top: -10px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 2;
    color: rgb(105, 100, 109);
    height: 210px;
    z-index: 3;
    font-size: 0.9rem;
    text-align: justify;
}

.icons {
    margin-top: 35px;
    width: 100%;
    background: rgba(0, 0, 0, .9);
    padding: 15px;
    /*border: solid 4px #FFCC00;*/
}

.icons a {
    padding: 5px;
}

.icons i {
    margin-left: 10px;
    font-size: 20px;
    transition: .3s;
}

.icons i:hover {
    cursor: pointer;
    transform: scale(1.2);
    transition: all 1s ease;
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column; /* Para centrar verticalmente si hay título/descripción */
}

/* Nota: Si `mostrarlightbox` usa CSS `:target`, esta regla podría ser necesaria.
   Si usa JavaScript para `display: flex`, esta regla no es estrictamente necesaria.
   La mantengo porque tu código original no especificaba el control exacto del lightbox.
*/
/* .lightbox:target {
    display: flex;
} */


.lightbox_close {
    position:           absolute;
    top:                20px;
    right:              30px;
    color:              #fff;
    font-size:          40px;
    cursor:             pointer;
}

.lightbox_img, .lightbox_video, .lightbox_img_content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Para que la imagen/video se ajuste sin distorsionarse */
    display: block; /* Asegura que sean elementos de bloque para el centrado */
}
.lightbox_img {
    display: none; /* Asegúrate de que el placeholder img no se muestre si no lo usas */
}

/* Aquí debería ir el <video> si no lo manejas internamente en `mostrarlightbox` */
.lightbox .lightbox_video {
    max-width: 90%;
    max-height: 90%;
    display: block; /* Asegura que el video se muestre */
    object-fit: contain;
    /* Para 9:16, podrías considerar un aspect-ratio o padding-bottom trick aquí
       si el video no se ajusta bien. Asumo que mostrarlightbox lo ajusta */
}


/* Media queries (mantengo las tuyas, solo las incluyo para contexto) */
@media screen and (min-width: 1200px) {
    /* ... */
}

@media screen and (max-width: 1199px) {
    /* ... */
}

@media screen and (max-width: 1024px) {
    /* ... */
}

@media screen and (max-width: 768px) {
    .testimonios {
        width: 100%;
    }

    .testimonios__header {
        width: 100%;
    }

    .testimonios__header span {
        font-size: 20px;
    }

    .cntg-tdopn {
        width: 80%;
    }
    /* ... otras reglas existentes ... */
    /* Ajustes para reels en pantallas pequeñas */
    .gallery_item.carousel-item-video {
        width: 120px; /* Ajuste más pequeño para tabletas/móviles */
        height: 220px;
    }
}

@media screen and (max-width: 600px) {
    .testimonios {
        width: 100%;
    }

    .testimonios__header {
        width: 120%;
    }

    .testimonios__header H1 {
        font-size: 40px;
    }

    .testimonios__header span {
        font-size: 20px;
    }

    .cntg-tdopn {
        width: 120%;
    }

    .cntg-tdopn p {
        font-size: 13px;
    }

    .empcli {
        font-size: 13px;
    }

    /* Ajustes para reels en pantallas pequeñas */
    .gallery_item.carousel-item-video {
        width: 90px; /* Reduce el ancho del video en pantallas pequeñas */
        height: 160px;
    }
}

@media screen and (max-width: 480px) {
    .testimonios {
        width: 100%;
    }

    .testimonios__header {
        width: 120%;
    }

    .testimonios__header H1 {
        font-size: 30px;
    }

    .testimonios__header span {
        font-size: 17px;
    }

    .cntg-tdopn {
        width: 100%;
    }

    .empcli {
        font-size: 13px;
    }

    .cntg-tdopn p {
        font-size: 10px;
    }

    /* Ajustes para reels en pantallas muy pequeñas */
    .gallery_item.carousel-item-video {
        width: 70px; /* Ajuste aún más para pantallas móviles */
        height: 120px;
    }
}

@media screen and (max-width: 320px) {
    /* ... */
}