/********** Template CSS **********/
:root {
    --primary: #00a2f3;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #05417e;
}

/* html {
    scroll-behavior: smooth;
} */

/* @media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
} */

.logo {
    width: 9rem;
    height: 3rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar {
    z-index: 99;
}

@media (min-width: 992px){
    .barra{
        justify-content: space-evenly;
    }
    .barra-navegacion {
        gap:1.3rem;
    }
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 28rem;
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/mision.webp) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #05417e;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

.object-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.form {
    width: 100%;
    text-align: start;
}

.form-info {
    padding: 1rem;
    display: grid;
    gap: 2rem;
}

.a-lot-of-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

 .files-container{
    display:grid;
    gap:2rem;
}

@media (min-width: 998px) {
    .form {
        width: 70%;
    }

    .form-info {
        padding: 1rem 2rem;
        grid-template-columns: 1fr 1fr;
    }
    .files-container{
        grid-column: span 2;
    }
}

.botton {
    width: 100%;
}

@media (min-width: 768px) {
    .botton {
        width: auto !important;
    }
}

.input-file {
    background-color: #fff !important;
}

.block {
    display: block;
}

/* #dc3545 */

/* .form .form-control:invalid {
    display: none;
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
} */

.error-text {
    margin: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* .form .form-control:valid {
    border-color: transparent;
} */

/* .form-control:focus:invalid {
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
} */

.errores-container {
    position: fixed;
    z-index: 9999;
    background-color: transparent;
    border-radius: 0.5rem;
    left: 15;
    bottom: 15;
    overflow-y: auto;
    max-height: 40rem;
    background-color: #000;
    padding: 1rem;
}

.errores {
    border-radius: 0.5rem;
    background-color: #f8f3d6;
    padding: 0.6rem;
    color: #8d764a;
    border-color: #8d764a;
    border: 1px solid;
}

.errores p {
    margin: 0;
}

.chat-box {
    font-size: 0.8rem;
}

.back-to-top {
    position: initial !important;
}

.accessibility {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    bottom: 1.1rem;
    right: 1.2rem;
    z-index: 99;
}

.accessibility-window {
    height: 25rem;
    width: 20rem;
    background-color: #e3eff2;
    position: absolute;
    flex-direction: column;
    gap: 0.6rem;
    bottom: 5rem;
    right: 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0.5rem;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.19);
}

.show-window {
    display: flex;
}

.hidden-window {
    display: none;
}

.boton-asistente {
    transition: transform 0.1s ease-in-out;
    background-color: transparent;
    border: none;
}

.boton-asistente:hover {
    transform: scale(1.1);
}

.imagen-boton {
    width: 3.5rem;
    height: 4.5rem;
}

.header-chat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
}

.header-chat-profile {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.header-chat p {
    margin: 0;
    font-weight: bold;
}

.header-image {
    border-radius: 50%;
    width: 2.3rem;
    height: 2.1rem;
    box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.07);
}

.message-chat {
    position: relative;
    display: grid;
    gap: 0.8rem;
    margin: 1rem 1rem 1rem 0.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    /* Ajusta la posición para que sobresalga a la izquierda */
    width: 20px;
    /* Ajusta el ancho de la esquina destacada */
    height: 20px;
    /* Ajusta la altura de la esquina destacada */
    background-color: white;
    /* Mismo color de fondo que el mensaje */
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    /* Crea una forma triangular hacia la izquierda */
    border-radius: 0.5rem;
}

.quest-chat {
    margin: 1rem 0.5rem 1rem 1rem;
    padding: 1rem;
    color: white;
    background-color: #3498db;
    position: relative;
    border-radius: 0.5rem;
}

.message-chat-text {
    margin: 0;
    overflow-wrap: break-word;
    max-width: 90%;
}

.response::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    /* Ajusta la posición para que sobresalga a la izquierda */
    width: 20px;
    /* Ajusta el ancho de la esquina destacada */
    height: 20px;
    /* Ajusta la altura de la esquina destacada */
    background-color: #3498db;
    /* Mismo color de fondo que el mensaje */
    clip-path: polygon(100% 0, 0 0, 0 100%);
    /* Crea una forma triangular inversa */
    border-radius: 0.2rem;
}

/* .input-chat {
    padding: 0.5rem;
    height: 3.5rem;
    border: 1px solid #e1e1e1;
    margin: 0 1rem 1rem 1rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
} */

.accessibility-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
    list-style: none;
}

.accessibility-item {
    border: 1px solid #e1e1e1;
    border-radius: 0.2rem;
    padding: 0.5rem;
}

.accessibility-item:hover {
    color: white;
    background-color: #00a2f3;
    cursor: pointer;
    transition: all ease-in-out .3s;
}

.message-list {
    display: grid;
    gap: 0.8rem;
    padding: 0 1rem;
}

::-webkit-scrollbar {
    width: 8px;
}

/* Estilo del 'thumb' (la parte que puedes arrastrar) */
::-webkit-scrollbar-thumb {
    background-color: #888;
    /* Color del 'thumb' */
    border-radius: 4px;
    /* Borde redondeado del 'thumb' */
}

/* Estilo del 'track' (la pista de la barra de desplazamiento) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Color de la pista */
    border-radius: 4px;
    /* Borde redondeado de la pista */
}

.noticia-imagen {
    width: 100%;
}

.noticias-container {
    display: grid;
    place-items: center;
    margin: 1rem 1rem;
}

.sidebar-images {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 992px) {

    .noticias-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        margin: 3rem 5rem;
    }

    .entradas-container {
        display: grid;
        gap: 3rem;
        grid-template-columns: 2fr 1fr;
    }

    .sidebar-images {
        gap: 2rem;
    }

    .noticia-imagen {
        width: 100%;
        aspect-ratio: 2 / 1.5;
        height: 20rem;
    }

    .imagen-principal {
        height: 32rem;
    }
}

.noticias-text {
    font-size: 1.1rem;
}

.noticias-text-container {
    height: 100%;
    width: 100%
}

.noticias-text span {
    font-weight: bold;
}

.footer-container {
    display: flex;
    gap: 2rem;
    justify-content: space-evenly;
    width: 100%;
    /* w-100 d-flex gap-4 justify-content-evenly */
}

.footer-image {
    height: 6rem;
}

@media (min-width: 768px) {
    .footer-image {
        height: 13rem;
    }
}

.remark {
    font-weight: bold;
}

.overlay {
    background-color: rgba(0, 0, 0, .5);
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 100;
}

.demo-option-container {
    position: fixed;
    top: 0;
    left: 100%;
    height: 100%;
    z-index: 1000;
    transition: all .5s;
    width: 350px;
    max-width: calc(100% - 95px);
}

.visible {
    transform: translateX(-100%);
}

.demo-option-wrapper {
    display: grid;
    grid-template-rows: 1fr 2fr;
    row-gap: 2em;
}

.demo-panel-header {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1rem;
    background-color: #05417e;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .demo-panel-header {
        gap: 2rem;
    }
}

.demo-panel-header .icono {
    text-align: left;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.colum {
    padding: 0 1.4em;
}

.formulario-certificado {
    display: grid;
    gap: 2rem;
}

.select-certificado {
    padding: 0.7rem;
    border-radius: 0.3rem;
}

.input-certificado {
    padding: 0.7rem;
    border-radius: 0.3rem;
}

.fijar-body {
    overflow: hidden;
}

.abrir-sidebar {
    cursor: pointer !important;
}

.modal-certificado {
    width: 90%;
    border: none;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .modal-certificado {
        width: 70%;
    }
}


.modal-certificado .table {
    margin-bottom: 0;
}

.table-title {
    padding: -2rem;
}

.modal-certificado .table caption {
    background-color: #05417e;
    color: white !important;
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    caption-side: top;
    padding: 1rem;
    margin: -1rem -1rem 0 -1rem;
}

.cerrar-modal {
    cursor: pointer;
}

.modal-certificado .table caption .id-certificado {
    font-weight: bold;
}

.text-header-modal {
    color: white;
}

.descripcion {
    resize: none;
    height: 10rem;
}

.formulario-solicitud {
    display: grid;
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 998px) {
    .formulario-solicitud {
        width: 40%;
        padding: 0;
    }
}