/*estilos1,css*/
body {
    margin: 0; 
    font-family: Arial, sans-serif;
    padding: 0;
}

.contenedor {
    display: grid;
    margin: 0;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto; 
    grid-template-columns: 1fr; 
}

header {
    background: linear-gradient(90deg, #007e9d 0%, #0096ba 55%, #00a6cd 100%);
    height: 65px; 
    margin: 0;
    padding: 6px;
    display: flex;
    align-items: flex-start; 
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

main {
    padding: 0 1rem 1rem 1rem;
    overflow: auto;
}

footer {
    background-color: #5d5c60; 
    color: white; 
    height: 60px; 
    padding: 0; 
    text-align: center; 
    display: flex; 
    align-items: center; 
}

.table_ancho {
    border-collapse: collapse;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    border: none;
}

th, td {
    border: solid transparent; 
    padding: 0px;
    width: 33.33%;
}

.img_logo {
    border: 0.7px solid white;
}


/*para login*/
.form_main {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    padding: 30px 30px 30px 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.062);
}

.heading {
    font-size: 1.5em;
    color: #2e2e2e;
    font-weight: 600;
    margin: 15px 0 30px 0;
}

.inputContainer {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inputIcon {
    position: absolute;
    left: 10px;
}

.inputField {
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgb(173, 173, 173);
    border-radius: 30px;
    margin: 15px 0;
    color: black;
    font-size: .8em;
    font-weight: 500;
    box-sizing: border-box;
    padding-left: 30px;
}

.inputField:focus {
    outline: none;
    border-bottom: 2px solid rgb(0, 150, 186);
}

.inputField::placeholder {
    color: rgb(80, 80, 80);
    font-size: 1em;
    font-weight: 500;
}

#button {
    position: relative;
    width: 100%;
    border: 2px solid #0096ba;
    background-color: #0096ba;
    height: 40px;
    color: white;
    font-size: .8em;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 30px;
    margin: 20px;
    cursor: pointer;
    overflow: hidden;
}

#button::after {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.253);
    height: 100%;
    width: 150px;
    top: 0;
    left: -200px;
    border-bottom-right-radius: 100px;
    border-top-left-radius: 100px;
    filter: blur(10px);
    transition-duration: .5s;
}

#button:hover::after {
    transform: translateX(600px);
    transition-duration: .5s;
}

.signupContainer {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.signupContainer p {
    font-size: .9em;
    font-weight: 500;
    color: black;
}

.signupContainer a {
    font-size: .7em;
    font-weight: 500;
    background-color: #2e2e2e;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
}


/*para tooltip*/
.tooltip-inner {
    max-width: 220px; 
    font-size: 12px;
    text-align: center;
    padding: 8px; 
}


/*Progress*/
#progressBarContainer {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 3px;
    overflow: hidden;
}

#progressBar {
    transition: width 0.4s ease;
}


/*acordeon Estado contraído*/
#accordionPanelsStayOpenExample .accordion-button {
    background-color: inherit; 
    color: inherit; 
}

/* acordeon Estado expandido */
#accordionPanelsStayOpenExample .accordion-button:not(.collapsed) {
    background-color: #0096ba; 
    color: #fff; 
}


/* Para que el submenú se abra pegado al item padre y no se monte sobre la barra */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.125rem;
    transform: none !important;
}


/* Botones tipo radio Bootstrap con color institucional */
.sexo-hist .btn-outline-primary {
    color: #0096ba;
    border-color: #0096ba;
}

.sexo-hist .btn-outline-primary:hover {
    background-color: #0096ba;
    border-color: #0096ba;
    color: #fff;
}

.sexo-hist .btn-check:checked + .btn-outline-primary {
    background-color: #0096ba;
    border-color: #0096ba;
    color: #fff;
}

.sexo-hist .btn-check:focus + .btn-outline-primary,
.sexo-hist .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 186, 0.25);
}


/* =========================================================
   RESPONSIVE SISANE - V2
   Objetivo: NO tocar la vista de PC. Solo corrige tablet/celular.
   ========================================================= */

.mapa-ris-home {
    height: 650px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.home-table img,
.img_logo {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .mapa-ris-home {
        height: auto !important;
        width: 100% !important;
        max-height: none;
        margin: 0 auto;
    }

    .home-text-col {
        padding: 18px !important;
        font-size: 1rem;
        line-height: 1.55;
    }

    .home-text-col p {
        margin-top: 0.9rem !important;
        margin-bottom: 0.9rem !important;
    }
}

@media (max-width: 767.98px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
    }

    header {
        height: auto;
        min-height: 52px;
        padding: 6px 8px;
        align-items: center;
        overflow: hidden;
    }

    header .table_ancho {
        width: 100%;
        max-width: 100%;
        table-layout: auto !important;
    }

    header .table_ancho tr {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    header .table_ancho td {
        display: block;
        width: auto !important;
        border: 0 !important;
        padding: 0 !important;
    }

    header .table_ancho td:nth-child(2),
    header .table_ancho td:nth-child(3) {
        display: none !important;
    }

    .img_logo {
        width: auto;
        height: auto;
        max-height: 42px;
        max-width: calc(100vw - 24px);
        object-fit: contain;
        display: block;
    }

    main {
        padding: 0 0 0.75rem 0;
        overflow-x: hidden;
    }

    main > .navbar.table_ancho {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-collapse {
        padding-top: 0.5rem;
    }

    .navbar-nav .nav-link,
    .dropdown-item {
        white-space: normal;
    }

    .dropdown-menu {
        max-width: calc(100vw - 1.5rem);
    }

    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin-left: 1rem;
        margin-top: 0;
        transform: none !important;
    }

    .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.75rem;
    }

    .ms-auto .btn {
        width: 100%;
    }

    .home-table,
    .home-table tbody,
    .home-table tr,
    .home-table td {
        display: block;
        width: 100% !important;
    }

    .home-table .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-top: 1rem !important;
    }

    .home-table .row {
        --bs-gutter-x: 0;
    }

    .home-text-col {
        padding: 14px 10px 20px 10px !important;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .home-text-col .w-50 {
        width: 80% !important;
        max-width: 280px;
    }

    footer {
        height: auto;
        min-height: 60px;
        padding: 10px 8px;
    }

    footer .table_ancho,
    footer .table_ancho tbody,
    footer .table_ancho tr,
    footer .table_ancho td {
        display: block;
        width: 100% !important;
        text-align: center !important;
        border: 0 !important;
    }

    footer .table_ancho td {
        line-height: 1.35;
        font-size: 0.86rem;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   Login responsive mínimo - NO modifica la vista de PC
   ========================================================= */

.login-separacion {
    height: 4rem;
}

@media (max-width: 820px) {
    .login-separacion {
        height: 3rem;
    }

    .login-table,
    .login-table tbody,
    .login-table tr,
    .login-table td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .login-table .login-logo-cell {
        display: none !important;
    }

    .login-table .login-form-cell {
        display: block !important;
        width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-table .form_main {
        width: 280px;
        max-width: calc(100vw - 36px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 390px) {
    .login-separacion {
        height: 2.5rem;
    }

    .login-table .form_main {
        max-width: calc(100vw - 28px);
    }
}