@import url(https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap);

html {
    font-size: 62.5%;
    height: 100%;
    width: 100%;
    font-family: "Plus Jakarta Sans", serif;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    box-sizing: inherit;
}

body{
    background-color: #eef3fd86;
}

ol{
    padding: 0;
}

a{
    text-decoration: none;
}

li{
    list-style: none;
    font-size: 14px;
    line-height: 25px;
}

.toast-message{
    font-size: 16px;
}

.w-100{
    width: 100% !important;
}

.card{
    margin-top: 40px;
    padding: 16px 24px;
    border-radius: 10px;
}

.bg-primary{
    background-color: #294266;
}

.bg-light-primary{
    background-color: #cdddf7;
}

.bg-secondary{
    background-color: #00AC47;
}

.bg-blue{
    background-color: #4281EF;
}

.bg-thirty{
    background-color: #D9941A;
}

.d-none{
    display: none;
}

.d-flex{
    display: flex;
    flex-wrap: wrap;
}

.justify-content-between{
    justify-content: space-between;
}

.justify-content-center{
    justify-content: center;
}

.align-center{
    align-items: center;
}

.gap-10{
    gap: 10px;
}

.col-40{
    flex: 0 0 auto;
    width: 40%;
}

.col-50{
    flex: 0 0 auto;
    width: 50%;
}

.col-60{
    flex: 0 0 auto;
    width: 60%;
}

.col-75{
    flex: 0 0 auto;
    width: 75%;
}

.col-25{
    flex: 0 0 auto;
    width: 25%;
}

.text-muted{
    color: #5a6a85;
    opacity: 0.7;
}

.m-0{
    margin: 0;
}

.mt-40{
    margin-top: 40px;
}

.disabled-btn{
    background-color: #3737379e;
    border: none;
    color: #f5f5f5;
    margin: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
}


/* CSS para dataTables */

div.dt-container .dt-paging .dt-paging-button.current,div.dt-container .dt-paging .dt-paging-button.current:hover {
    color: #fff !important;
    background-color: #AA343A;
    border-color: #AA343A;
}


div.dt-container .dt-paging .dt-paging-button,div.dt-container .dt-paging .dt-paging-button:hover{
    background-color: #FFF;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #dfe5ef;
    margin-right: 5px;
    border-radius: 5px;
}

.dt-length, .dt-search, .dt-info, .dt-empty, th, td, .toast-message{
    font-size: 14px;
}

th, td{
    padding: 15px !important;
}


.formulario{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.form-label{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 1rem 16px;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-control{
    display: block;
    width: 100%;
    padding: 16px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #5a6a85;
    background-color: transparent;
    background-clip: padding-box;
    border: 1px solid #dfe5ef;
    appearance: none;
    border-radius: 7px;
    box-shadow: unset;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: none;
}

input:focus {
    border: 1px solid #b8cff5;
}

.titulo-form{
    font-size: 20px;
    margin-top: 0;
    font-weight: 600;
}

.label-form{
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 400;
}

.divBoton{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}


.btn-enviar{
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #00AC47;
    border: 2px solid #00AC47;
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-enviar:hover{
    background-color: #FFF;
    color: #00AC47;
    transform: translateY(-7.5px);
}
/* Inicio de CSS */


.contenedor{
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.contenido{
    box-sizing: border-box;
    max-width: 100%;
    background-color: #FFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.titulo{
    margin: 0;
    font-size: 22px;
    color: #2A3547;
}

.breadcrumb{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item{
    font-size: 14px;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    padding-right: 0.5rem;
    content: var(--bs-breadcrumb-divider, "•")
}

.seccion-detalles{
    display: grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
}

.titulo-sec-consulta{
    font-size: 20px;
    max-width: 350px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.seccion-botones-consulta{
    display: grid;
    justify-content: end;
    align-items: center;
}

.seccion-sheets{
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-sheets{
    border: 2px solid #00AC47;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;

}

.btn-sheets:hover{
    background-color: #FFF;
    color: #00AC47;
    transform: translateY(-10px);
}

.btn-conectar{
    border: 2px solid #4281EF;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;

}

.btn-conectar:hover{
    background-color: #FFF;
    color: #4281EF;
    transform: translateY(-10px);
}

.seccion-opciones{
    background-color: #FFF;
    margin-top: 40px;
    background-color: #FFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.titulo-opciones{
    margin: 0;
    font-size: 22px;
    color: #2A3547;
    text-align: center;
}

.div-botones{
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.btn-cargar{
    min-height: 300px;
    background-color: #078877;
    border: 2px solid #078877;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-cargar:hover{
    background-color: #FFF;
    color: #078877;
    transform: translateY(-10px);
}

.btn-insertar{
    min-height: 300px;
    background-color: #075488;
    border: 2px solid #075488;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-insertar:hover{
    background-color: #FFF;
    color: #075488;
    transform: translateY(-10px);
}

.btn-eliminar{
    min-height: 300px;
    background-color: #d9301a;
    border: 2px solid #d9301a;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-eliminar:hover{
    background-color: #FFF;
    color: #d9301a;
    transform: translateY(-10px);
}

.btn-reemplazar{
    min-height: 300px;
    background-color: #33240a;
    border: 2px solid #33240a;
    color: #FFF;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-reemplazar:hover{
    background-color: #FFF;
    color: #33240a;
    transform: translateY(-10px);
}

.div-iconos{
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Fin de CSS */


/* Estilo del botón de los tres puntos */
.dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
  }

  .dropdown-button:focus {
    outline: none;
  }

  /* Lista desplegable oculta por defecto */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: -160px; /* Mover a la izquierda del botón */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important; /* Asegurar que esté encima de otros elementos */
    min-width: 150px;
    padding: 10px 0;
  }

  .dropdown-menu a {
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
  }

  .dropdown-menu a:hover {
    background-color: #f1f1f1;
  }

  /* Clase para mostrar la lista */
  .dropdown-menu.show {
    display: block;
  }

.dropdown-item{
    padding: 5px;
    display: flex;
    align-items: center;
}

.contenedor-consulta{
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.img-logo{
    display: flex;
    margin: 0 auto;
    max-width: 300px;
}


.titulo-consulta{
    text-align: center;
    font-size: 30px;
}

.sub-titulo-consulta{
    margin-top: 0;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
}

.sub-titulo2-consulta{
    margin-top: 0;
    text-align: center;
    font-weight: 800;
    font-size: 25px;
    margin-bottom: 0px;
}

.campoConsulta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.campoConsulta label {
    font-size: 17.5px;
    flex: 0 0 10rem;
}

.campoConsulta input {
    flex: 1;
    margin-left: 1.5rem;
    font-size: 17.5px;
    border: 1px solid #dbdade;
    border-radius: 1rem;
    padding: 1rem;
    outline: none;
}

#matricula:focus{
    border: 1px solid #b8cff5;
}

.divBtnBuscar{
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnBuscar{
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #254467;
    border: 2px solid #254467;
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btnBuscar:hover{
    background-color: #FFF;
    color: #254467;
    transform: translateY(-7.5px);
}

.detalles-consulta{
    max-width: 80%;
    margin: 0 auto;
    margin-top: 20px;
}

.contenido-consulta{
    width: 100%;
}

.divError{
    display: flex;
    justify-content: center;
}

.error {
    max-width: 50%;
    margin-top: 3rem;
    background-color: #d12c2c;
    padding: 1.5rem;
    text-align: center;
    line-height: 3rem;
    color: #FFF;
    border-radius: 1rem;
}

.error h3{
    font-size: 20px;
    margin: 0;
    color: #FFF;
}

.error p{
    font-size: 15px;
    margin: 0;
}

.seccion-resultados {
    width: 100%;
    overflow-x: auto;
}


.parrafo{
    font-size: 16px;
    line-height: 1.3;
    text-align: justify;
    padding: 5px 35px;
}

.texto-rojo{
    color: red;
    font-weight: bold;
}








/* Vista para pantallas menores a 769px */
@media (max-width: 769px) {
    .img-logo{
        max-width: 200px;
    }

    .campoConsulta {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .campoConsulta label {
        flex: 0 0 0;
        margin-bottom: 10px;
    }

    .campoConsulta input {
        margin-left: 0;
        width: 100%;
    }

    .error{
        max-width: 90%;
    }

    .detalles-consulta{
        max-width: 90%;
    }

    .seccion-resultados table, thead, tbody, th, td, tr {
        display: block;
    }

    .seccion-resultados thead {
        display: none;
    }

    .seccion-resultados tr {
        border: 1px solid #e9e9e9;
        background-color: #FFF;
        border-radius: 15px;
        box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
        margin-bottom: 20px;
        padding: 20px;
    }

    .seccion-resultados td {
        display: flex;
        justify-content: space-around;
        padding: 10px;
        margin-bottom: 10px;
    }

    .seccion-resultados td:nth-child(odd) {
        background-color: #EAEDF2;
        border-radius: 25px; /* Bordes redondeados */
    }

    .seccion-resultados td:nth-child(even) {
        background-color: #fff;
        border: 1px solid #ccc;
        color: #000;
        border-radius: 25px
    }

    .seccion-resultados td::before {
        content: attr(data-label);
        font-weight: bold;
    }

    .seccion-resultados td:first-child {
        font-weight: bold;
        background-color: #1C5073;
        justify-content: center;
        color: #fff;
    }

}

/* Vista para pantallas mayores a 769px */
@media (min-width: 770px) {

    .seccion-resultados table {
        width: 100%;
        border-spacing: 10px;
        margin: 20px 0;
    }

    .seccion-resultados th, td {
        border-radius: 25px;
        padding: 10px;
        text-align: center;
    }

    .seccion-resultados th {
        color: #FFF;
        background-color: #1C5073;
    }

    .seccion-resultados td:first-child {
        display: none;
    }

    .seccion-resultados tr:nth-child(even) {
        background-color: #EAEDF2;
        color: #000;
    }

    .seccion-resultados tr:nth-child(odd) {
        background-color: #fff;
        color: #000;
    }

    .seccion-resultados tr:nth-child(odd) td {
        border: 1px solid #ddd;
    }

}
