/* Contenedor principal del Slider */
.box-slider.custom-insor-slider {
    width: 100%;
    position: relative;
}

/* Configuraciones para simular el Bootstrap Container / Row / Col en Salient */
.custom-insor-slider .item {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.custom-insor-slider .insor-slide-container {
    width: 100%;
    /* Max width similar al container de Bootstrap o Salient */
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.custom-insor-slider .insor-slide-content {
    /* Simulando col-md-6 */
    width: 67%;
    box-sizing: border-box;
}

/* Tipografía y Textos */
.custom-insor-slider .titulo-banner {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    min-height: 80px;
}

.custom-insor-slider .texto-banner,
.custom-insor-slider .texto-banner p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* Botón principal (Reemplazo de los btn de Bootstrap) */
.custom-insor-slider .btn-entidad {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.custom-insor-slider .btn-entidad:hover {
    background-color: white;
    color: #000;
    text-decoration: none;
}

/* Controles del Slider (Flechas Circulares Centradas) */
.custom-insor-slider .owl-theme .owl-nav {
    margin: 0;
    position: static;
}

.custom-insor-slider button.owl-prev,
.custom-insor-slider button.owl-next {
    position: absolute;
    /* top 50 e Y-50 es el estandar mundial para centrado vertical perfecto */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    /* Forma Circular */
    background: rgba(0, 0, 0, 0.4) !important;
    /* Fondo oscuro semi-transparente estilo premium */
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 2.5em !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Corrección óptica para los caracteres tipográficos de las flechas (‹ y ›) */
.custom-insor-slider button.owl-prev span,
.custom-insor-slider button.owl-next span {
    display: block;
    line-height: 1;
    position: relative;
    top: -4px;
    /* Eleva el caracter que por defecto se alinea muy abajo en su baseline */
}

.custom-insor-slider button.owl-prev {
    left: 20px;
}

.custom-insor-slider button.owl-next {
    right: 20px;
}

.custom-insor-slider button.owl-prev:hover,
.custom-insor-slider button.owl-next:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
    border-color: #fff !important;
}

.custom-insor-slider button:focus {
    outline: 0;
}

/* Botones de Play / Pause Circulares */
.custom-insor-slider .caja-play-pause {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Separación proporcional entre el play y el pause */
}

.custom-insor-slider .insor-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    /* Forma Circular */
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
}

.custom-insor-slider .insor-btn i {
    margin: 0;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.custom-insor-slider .insor-btn-play i {
    margin-left: 3px !important;
    /* Corrección óptica visual para que el triángulo del play se vea en el puro centro */
    margin-top: 5px !important;
}

.custom-insor-slider .insor-btn-stop i {
    margin-left: 0 !important;
    margin-top: 5px !important;
}

.custom-insor-slider .insor-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    border-color: #fff;
}

/* Responsive (Mobile view) */
@media (max-width: 768px) {
    .custom-insor-slider .insor-slide-content {
        width: 100%;
        text-align: center;
    }

    .custom-insor-slider .titulo-banner {
        font-size: 1.4rem;
        min-height: auto;
    }

    .custom-insor-slider button.owl-prev {
        left: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.5em !important;
    }

    .custom-insor-slider button.owl-next {
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.5em !important;
    }

    .custom-insor-slider .insor-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}