/*
    * J.Atiencia 11.09.2015 
    * Implementa estilos para el sitio completo
*/

/*==== Algoritmo de distribución fija 4 columnas ====*/
.Tabla4 {
    background: #fff;
    white-space: normal; /* Impide los saltos de línea automáticos */
}
.TablaFija4 {
    table-layout: fixed;
}
/* Las dos primeras columnas de la tabla fija son de 120 pixeles de ancho */

/* Celdas de la tabla */
.Tabla4 td {
    overflow: hidden; /* Oculta el contenido que sobresale del contenedor */
    -moz-text-overflow: ellipsis;
    text-overflow: ellipsis; /* Si el texto excede el tamaño del contenedor mostrará "..." al final */
}

.Tabla4 td:nth-child(-n+4) {
    border-right: 1px solid #fff;
}

/*==== Algoritmo de distribución fija 5 columnas ====*/
.Tabla5 {
    background: #fff;
    white-space: normal; 
}
.TablaFija5 {
    table-layout: fixed;
}
.TablaFija5 td:nth-child(-n+5) {
    width: 222px;
}
.Tabla5 td {
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.Tabla5 td:nth-child(-n+5) {
    border-right: 1px solid #fff;
}

/*==== Algoritmo de distribución fija 5 columnas variante pixeles ====*/
.Tabla50 {
    background: #fff;
    white-space: normal; 
}
.TablaFija50 {
    table-layout: fixed;
}
.TablaFija50 td:nth-child(-n+5) {
    width: 210px;
}
.Tabla50 td {
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.Tabla50 td:nth-child(-n+5) {
    border-right: 1px solid #fff;
}

/*==== Algoritmo de distribución fija 3 columnas ====*/
.Tabla3 {
    background: #fff;
    white-space: normal;
}
.TablaFija3 {
    table-layout: fixed;
}
.TablaFija3 td:nth-child(-n+3) {
    width: 370px;
}
.Tabla3 td {
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.Tabla3 td:nth-child(-n+3) {
    border-right: 1px solid #fff;
}

tr td {
    /*border-bottom: 1px dashed #CCC;*/
    border-bottom: 1px solid #fff;
}

tr:last-child td {
    border-bottom: none;
}

.displayNone {
    display: none;
}

.displayBlock {
    display: block;
}

.divBackground{
    background-color: rgb(37, 44, 82) !important;
}

.migas_pan {
    font-family: Consolas, monospace;
    color: #ffff2a;
    font-size: 14px;
    padding-left: 10px;
}

.ContentBusqueda {
    background-color: #f3ecec;
    -ms-border-radius: 20px;
    border-radius: 20px;
    border: 2px dotted #252c52;
    margin-top: -10px;
}

.mensajeNuevaBusqueda {
    font-family: Consolas, monospace;
    color: #f57878;
    font-size: 17px;
    text-decoration: underline double;
    text-align: center;
}

#content-topbar{
    width:100%;
    min-height: 50px;
    height:auto;
}

div.logindisplay {
    border: 0px solid #0061a7;
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: bold;
    float: right;
    background:#252c52;
    width:auto;
    padding:5px;
    min-height: 50px;
    height:auto;
    -ms-border-radius: 10px;
    border-radius: 10px;
}

#top-header{
   width:100%;
   height:55px;
}

#top-header .texto-asunto {    
    font-size: 45px;
    align-content: center;
    float:left;
    margin-top: -35px;
    color:#252c52;
    font-family: Berlin Sans FB;
}

    #top-header .logo-mre {
        background: url('maestra/logoInstitucionColor.png') center center no-repeat;
        background-size: 180px 60px;
        width:500px;
        height:60px;
        float:right;
    }

.encabezado {        
        background: url('../images/banner.jpg') center center no-repeat;

	height: 14vh;
	min-height: 14vh;
	padding-left: 0;
	display: block;

    }

.body-content {
    background: white;   
    width: 100%;
    min-width: 100%;
    padding: 0px;
}



.contenido {
    padding:10px;
    width: 100%;
     
    margin-left:auto;
    margin-right:auto;
}

.k-window .contenido{
    width: calc(100% - 20px);
}

.formulario {
    background-color: rgba(253, 253, 253, 0);
    width: 100%;   
    padding: 10px;
}

.titulos-fiel {
    background: none repeat scroll 0 0 #428bca;
    -ms-border-radius: 20px;
    border-radius: 10px;
    color: #fff;
    padding-left: 10px !important;
}

.titulos-fiel2 {
    background: none repeat scroll 0 0 #f57878;
    -ms-border-radius: 5px;
    border-radius: 5px;
    color: #fff;
    padding-left: 5px;
    font-style: italic;
    padding: 3px;
}

.seccion-titulo {
    border-spacing: 7px;
    padding-left: 10px;
    font-size: 12px;
    font-weight: bold;
}

.table-seccion {
    padding-bottom: 5px;
    width: 100%;
}

.table-seccion-sup {
    padding-bottom: 25px;
    width: 87%;
}

.td-seccion {
    width: 150px;
}

.textIngresoDatos:focus {
    border: 2px solid #252c52;
}

.k-window  .formulario {
     width: calc(100% - 20px);
}

.base_foo .logo2
{
    margin-top: 9px;
    margin-left: auto;
    margin-right:auto; 
    left:50%;   
}

.base_foo .logradouro
{
    text-align: right;
    margin-top: 6px;
    margin-right: 20px;
    margin-bottom: 0px;
    float: right;
	width:300px;
	font-size:11px;
}

.cell
{
    display: table-cell;
    margin: 8px;
    margin-right: 20px;
}

.iconoFotografia {
    /* Ancho de la imagen que usaremos como boton */
    width: 50px;
    /* Altura de la imagen que usaremos como boton */
    height: 50px;
    /* Grado de opacidad de la imagen que usaremos como boton */
    /*opacity: 0.6;*/
    position: fixed;
    bottom: 350px; /* conviene que quede arriba del footer */
    right: 190px; /* Izquierda o derecha según el diseño*/
    /*display: none;*/
    /* URL de la imagen que usaremos como boton */
    border-radius: 10px; 
    -ms-background-size: 50px;
    background-size: 50px;
}

.iconoVerFotografia {
    position: fixed;
    bottom: 300px; /* conviene que quede arriba del footer */
    right: 130px; /* Izquierda o derecha según el diseño*/
    /*display: none;*/
    /* URL de la imagen que usaremos como boton */
    border-radius: 10px; 
    -ms-background-size: 50px;
    background-size: 50px;
    border: 2px solid green;
}

.buttonDescarga {
	-moz-box-shadow: 0px 0px 0px 2px #9fb4f2;
	-webkit-box-shadow: 0px 0px 0px 2px #9fb4f2;
	box-shadow: 0px 0px 0px 2px #9fb4f2;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #7892c2), color-stop(1, #476e9e));
	background:-moz-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-webkit-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-o-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-ms-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#7892c2', endColorstr='#476e9e',GradientType=0);
	background-color:#7892c2;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
	border:1px solid #4e6096;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:14px;
	/*padding:7px 41px;*/
	text-shadow:0px 1px 0px #283966;
}
.buttonDescarga:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #476e9e), color-stop(1, #7892c2));
	background:-moz-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background:-webkit-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background:-o-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background:-ms-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background:linear-gradient(to bottom, #476e9e 5%, #7892c2 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#476e9e', endColorstr='#7892c2',GradientType=0);
	background-color:#476e9e;
}
.buttonDescarga:active {
	position:relative;
	top:1px;
}

/* CYumbillo 08012019 - Utilizado para mostrar un borde al div */
.borderInfo {
    border: 1px solid #283966;
    -ms-border-radius: 10px;
    border-radius: 10px;
}

.watermark {
  width: 100%;
  height: 72vh;
  display: block;
  position: relative;
}

.watermark::after {
  content: "";
 background:url('../Content/imagenes/fondoSolo.png');
  opacity: 0.2;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;   
}

/* Utilizado para mostrar mensajes personalizados */
.mensajeCampoObligatorio {
    display: inline-block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000;
    font-size: 12px;
    text-align: center;
    background-color: #ffb400;
    border-color: #ffb400;
    border-radius: 3px;
}



/************ Inicio visor de pdfs ************/

.modal-lg-50 {
    width: 60%;
    max-width: 60%;
}

.modal-lg-80 {
    width: 80%;
    max-width: 80%;    
}

.modal-header-estilo {
    background-color: #002041;
    color: white;
}

.modal-header .close {
    color: white;
    opacity: 1;
}

.modal-body {

    overflow-y: auto;
   padding: 5px;
}

.pdf-controls {
    height: 5vh;
    width: 100%;
    background-color: #002041;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 5px;
}

#container-pdf-viewer .pdf-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

    #container-pdf-viewer .pdf-controls button {
        background: none;
        border: none;
        color: white;
        font-size: 1.7rem;
        padding: 5px 10px;
        margin: 0 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        #container-pdf-viewer .pdf-controls button:hover {
            transform: scale(1.1);
        }

    #container-pdf-viewer .pdf-controls span {
        color: white;
        font-size: 1.7rem;
        margin: 0 5px;
    }

#container-canvas {
    width: 100%;
    height:auto;
    overflow: auto;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#documentoPdf {
    max-width: 100%;
    height: auto;
    display: block;
    border: 2px solid #C7C8C9;
}
#contenedorPDF {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/************ Fin visor de pdfs ************/

.tipo-consulta {
        display: grid;
        grid-template-columns: 0.3fr 1.5fr; /* Dos columnas de tamaño igual */
        padding: 2vh 5vw;
    }

.datos-consulta {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de tamaño igual */
    padding: 2vh 5vw;
}

    .datos-consulta > * {
        max-width: 500px;
    }

.datos {
    width: 100%;
    margin-right: 20px;
}

.info-container {
    display: flex;
    align-items: center;
    column-gap: 1vw;
}

.form-group {
    display: grid;
    grid-template-columns: 1.0fr 1.4fr;
    margin-bottom: 7px;
    width: 100%;
}

.captcha-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .form-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .datos-consulta {
        grid-template-columns: 1fr; /* Una sola columna en pantallas más estrechas */
    }

    .borderInfo{
        grid-template-columns: 1fr;
        margin-top:15px;
    }

    .tipo-consulta {
        grid-template-columns: 1fr; /* Una sola columna en pantallas más estrechas */
    }

    .modal-lg-80 {
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .borderInfo > div {
        grid-template-columns: 1fr !important;
    }
}

/*----------------------------------------------------------------------------------------*/
.column-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    text-align: start;
}

.columnItem {
    margin-left: 2vw;
    width: 100%;
    display: grid;
    grid-template-columns: 4fr 6fr;
    justify-item: start;
    align-items: center;
}

.password-input {
    display: flex;
    align-items: center;
    column-gap: 1vw;
}

    .password-input img {
        cursor: pointer;
    }

.control-label {
    width: 100%;
    display: block;
    font-weight: bold;
}

.textIngresoDatos {
    max-height: 30px;
}

#divAyudaDatos {
    justify-content: center;
    align-content: center;
}

/*********** Mostrar Cargando(estilo progress) **********/
.loading-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #002041;
    color: yellow;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 3rem;
    z-index: 5000;
    text-align: center;
    width: 80%;
    max-width: 70vh;
    box-sizing: border-box;
}

.loading-text {
    display: inline-block;
}

.loading-dots {
    display: inline-block;
    width: 3ch; /* Ancho fijo para 3 caracteres */
    text-align: left;
}

    .loading-dots:after {
        content: '';
        animation: dots 1.5s steps(4, end) infinite;
    }

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}
/************* Fin cargando*/

/*************Mensajes notificaciones **********/

.alertNotificacion {
    display: none;
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 1000;
    text-align: center;
    max-width: 90%;
}

.alert-icon {
    margin-right: 10px;
    font-size: 20px;
}

/***********  spinner cargando **********/
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/*-------------------------------------------    RESPONSIVE ---------------------------------------------------*/

@media (max-width: 768px) {

    /*mensaje de carga spinner*/
    .loading-message {
        width: 90%;
        font-size: 2.5rem;
        padding: 10px;
    }

    /*Notificaciones para errores en respuestas servidor*/
    .alertNotificacion {
        font-size: 16px;
        padding: 12px 15px;
        width: 90%;
        max-width: 90%;
        text-align: center;
        border-radius: 5px;
    }

    .alert-icon {
        font-size: 18px;
    }

    /*Modal visor pdf*/
    .modal-lg-80, .modal-lg-50 {
        width: 100%;
        max-width: 100%;
    }

    #container-canvas {
        height: auto; 
    }

}

@media only screen and (max-width: 768px) {

    #hidObteniendoDatos {
        background-color: aqua;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .modal-lg-50 {
        width: 80%;
        max-width: 80%;
    }

    .modal-lg-80 {
        width: 90%;
        max-width: 90%;
    }
}



