* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.index_contenedor {
    width: 100%;
    max-width: 980px;
    margin: auto;
}

.index_encabezado {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 25px;
}

.index_logo_principal {
    width: 220px;
    height: auto;
}

.index_titulo {
    color: #000000;
    font-family: Georgia, 'Times New Roman', serif;
}

.index_titulo_sistemas {
    font-size: 48px;
    letter-spacing: 3px;
}

.index_titulo_ursol {
    font-size: 76px;
    letter-spacing: 5px;
    margin-top: 20px;
}

.index_ventana {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 0 0 10px 10px;
    box-shadow: 7px 7px 8px rgba(0,0,0,0.45);
    padding: 25px 25px 12px 25px;
    min-height: 480px;
}

.index_area_central {
    width: 74%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.index_logo_desglosa {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
}

.index_datos {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 8px;
    align-items: center;
    max-width: 620px;
    margin-top: 8px;
    font-size: 14px;
}

.index_datos input {
    height: 30px;
    border: 1px solid #999999;
    background: #ffffff;
    text-align: center;
    font-size: 15px;
    color: #008000;
}

.index_botones {
    width: 24%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.index_boton {
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    padding: 0;
}

.index_boton img {
    width: 95px;
    height: auto;
    transition: transform 0.2s ease;
}

.index_boton:hover img {
    transform: scale(1.08);
}

/* Fondo para mostrar páginas sobre index.php */

.index_modal_fondo {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Ventana flotante */

.index_modal_ventana {
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.50);
    overflow: hidden;
}

/* Página cargada dentro de la ventana */

#index_iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media screen and (max-width: 760px) {

    body {
        padding: 10px;
    }

    .index_encabezado {
        justify-content: center;
        gap: 20px;
    }

    .index_logo_principal {
        width: 130px;
    }

    .index_titulo_sistemas {
        font-size: 32px;
    }

    .index_titulo_ursol {
        font-size: 48px;
        margin-top: 10px;
    }

    .index_ventana {
        flex-direction: column;
        padding: 18px;
    }

    .index_area_central,
    .index_botones {
        width: 100%;
    }

    .index_botones {
        flex-direction: row;
        margin-top: 25px;
        gap: 12px;
    }

    .index_boton img {
        width: 75px;
    }

    .index_modal_ventana {
        width: 98%;
        height: 92vh;
    }
}

@media screen and (max-width: 480px) {

    .index_encabezado {
        flex-direction: column;
        gap: 5px;
    }

    .index_titulo {
        text-align: center;
    }

    .index_botones {
        flex-direction: column;
    }

    .index_datos {
        grid-template-columns: 1fr;
    }
}