/* Contenedor general */
.historias-slider-container {
    padding: 40px 0;
}

/* Tarjeta principal */
.historia-card-final {
    background-color: rgba(10, 53, 60, 0.85); 
    color: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Calificación por estrellas */
.star-rating {
    margin-bottom: 25px; /* Espacio debajo de las estrellas */
    display: flex;
    gap: 8px; /* Espacio entre las estrellas */
}
.star-rating svg {
    width: 18px;
    height: 18px;
    fill: #4A6C6E; /* Color de estrella vacía */
}
.star-rating svg.filled {
    fill: #21A1A1; /* Color verde azulado para estrella llena */
}

/* Texto del testimonio */
.testimonio-texto {
    width: 100%;
    color: #DCFFFF;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-align: left;

}
.testimonio-texto p {
    margin: 0;
}

/* Caja del autor */
.autor-box {
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(0, 31, 36, 0.66); 
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autor-imagen-y-texto {
    display: flex;
    align-items: center;
        text-align: left;
}

.autor-imagen img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 16px;
}

.autor-info p {
    margin: 0;
    line-height: 1.4;
}
.autor-nombre {
    font-size: 18px;
    font-weight: 400;
}
.autor-ubicacion {
    font-size: 16px;
    opacity: 0.8;
}

/* Botón "Ver Historia" */
.historia-boton {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    background-color: #008080;
    border-radius: 24px;
    color: #ffffff !important;
    padding: 11px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.historia-boton:hover {
    background-color: #1aa0a0;
}
.historia-boton .boton-icono {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #ffffff;
}

.swiper-pagination-bullet {
        width: 24px;
        height: 16px;
        border-radius: 24px;
        opacity: 0.5;
    
}
.swiper-pagination-bullet-active {
        opacity: 1;
        height: 16px;
        width: 60px;
        border-radius: 24px;
}

.goverlay, .glightbox-mobile .goverlay {
    background: rgba(10, 25, 27, 0.9); 
}
.gslide-video {
    border-radius: 24px !important;
    overflow: hidden !important; 
    background: none; 
}
.gclose {
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.gclose svg {
    width: 25px; 
    height: 25px;
    fill: #ffffff; 
}

.gclose:hover {
    background: #21A1A1; 
    opacity: 1;
    transform: rotate(90deg); 
}
.plyr__control--overlaid {
    background-color: #1a5059;
}
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: #1a5059;
    border-radius: 10px;
    height: 48px;
    width: 48px;
    border: 1px solid #0a353c;
    transition: background-color 0.3s ease;
    position: relative;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: #21A1A1;
}

.gnext svg,
.gprev svg {
    display: none !important;
}
.gnext::after,
.gprev::after {
    content: ''; /* Obligatorio para que exista */
    position: absolute; /* Lo posicionamos sobre el botón */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55%;
}

.gnext::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='27' viewBox='0 0 27 27' fill='none'%3E%3Cpath d='M14.1377 5.41211C14.593 6.92619 16.0313 9.86779 18.4844 11.2246H4.5V12.4248H18.5566C16.0598 13.7634 14.5974 16.7466 14.1377 18.2754L15.2998 18.6875C17.0623 13.4 20.9625 12.3879 22.5 12.4629V11.2246H22.1738C20.4677 11.151 16.9485 9.94607 15.2998 5L14.1377 5.41211Z' fill='white'/%3E%3C/svg%3E");
}

.gprev::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='27' viewBox='0 0 27 27' fill='none'%3E%3Cpath d='M12.8623 5.41211C12.407 6.92619 10.9687 9.86779 8.51562 11.2246H23V12.4248H8.44336C10.9402 13.7634 12.4026 16.7466 12.8623 18.2754L11.7002 18.6875C9.93767 13.4 6.03752 12.3879 4.5 12.4629V11.2246H4.82617C6.53227 11.151 10.0515 9.94607 11.7002 5L12.8623 5.41211Z' fill='white'/%3E%3C/svg%3E");
}

.glightbox-clean .gprev {
top: -50vh;
        left: 20px;
}
.glightbox-clean .gnext {
    right: -95vw;
    top: -55vh;
    
}

@media only screen and (max-width: 768px) {
    

.glightbox-container .ginner-container {
        width: 80% !important;
        height: auto;
        max-height: 80vh; 
    }
    .autor-nombre {
    font-size: 16px;
    }
    .star-rating {
    justify-content: center;
        
    }
    .testimonio-texto {
    font-size: 14px;
        text-align: center;
    }
     .autor-box { 
         flex-wrap: wrap;
             gap: 16px;

        
    }
    .autor-info  {
    width: 100%;
    }
    .autor-imagen-y-texto {
        widht: 100% !important;
        gap: 12px;
    }
    .historia-boton {
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    .glightbox-clean .gnext {
    right: -90vw;
}
}