html, body {
    height: 100%;
    
}

body {
    font-family: 'Oxygen Mono', monospace, system-ui, -apple-system, sans-serif;
    font-display: optional;
    margin-left: 3px;
    margin-right: 3px;
}

.rounded-logo {
    border-radius: 6px;
}


.titulos {
    margin-top: 3.5em;
    margin-bottom: 1em;
}   

/* BOTON SUBIR */

.subir {
    position: fixed; 
    bottom: 20px;    
    right: 20px;    
    z-index: 1000;  

}

.enlace-menu-seccion {
    display: inline-block;
    background-color: rgba(139,0,0,0.9); 
    color: #fff;
    font-weight: normal;
    /*text-transform: uppe;*/
    padding: 10px 20px; 
    border-radius: 9px; 
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease, transform 0.2s ease;  
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 8em;
    font-size: 0.9rem;
}

.enlace-menu-seccion:hover {
    background-color: #a10000;
    transform: scale(1.05); 
}

a:hover{
    color:white;
}


.par {
    font-size: clamp(1rem, 2.5vw, 1.2rem); 
    color: #333;  
    line-height: 1.6; 
    text-align: justify; 
    padding: 0 14rem;  
}

.par strong {
    color: #8B0000;  
    font-weight: bold; 
}



.frecs {
  aspect-ratio: 1200 / 590;    
  display: block;
  width: 94%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto 2em auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.webHide {
    
    max-width: 97%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.general_ads {
    max-width: 97%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}


/*********************** NAVBAR Y DONAR ********************************/


.navbar {
            background-color: #8B0000;
        }

        .nav-link {
            color: #ffffff;
            opacity: 1;
        }

        .dropdown-mobile {
            width: 100%;
            text-align: center;
        }

        .dropdown-mobile .nav-link {
            display: block;
            width: 100%;
            padding: 10px 0;
            background-color: #fff;
            color: #8B0000;
            border-radius: 5px;
            margin: 5px 0;
        }

        .donate-button {
            margin-left: auto;
            margin-right: auto;
            margin-top: 10px;
            margin-bottom: 6px;
            text-align: center;
            width: 96%;
            background-color: #FDBD01;
            color: #000000;
            padding-top: 3px;
            padding-bottom: 3px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1.1em;
            /*font-weight: bold;*/
            /*border: 2px solid #FFD700*/
        }

          @media (min-width: 992px) {
            .donate-button {
                display: none;
            }
        }



/*********************** TABLAS ***************************************/


.resultados {
    display: block;
    justify-content: center;
    margin: auto;
    width: fit-content;
    overflow: auto ;
    max-height: 660px;
}

.Content {
  /*border: 1px solid;*/
  margin: auto;
  height: 700px;
  width: fit-content;
  overflow: auto;
}


.tblres {
    /*max-height: 760px;*/
    border-collapse: collapse;
    /*width: fit-content;*/
    /*display: block;*/
}


.tblres thead {
    border-top: 2px;
    position: sticky;
    top: -1px;
    background-color: #000;
    color: white;
}


.tblres th, .tblres td {
    padding: 8px 12px;
    text-align: center;
    font-size: calc(0.8vw + 0.5em);  
    font-weight: normal;
}


.tblres tbody tr:hover {
    background-color: #f1f1f1;
}


.tblres, .tblres th, .tblres td {
    border: 1px solid #ddd;
    border-collapse: collapse;
}

.tabla-tris th {
    background-color: #000;
    color: white;
}


.tblres thead th {
    border: none;
    background-color: #000;
    color: white; 
}

.tblest {
    height: auto;
}

/*******************************************************************/

.flashit {
    animation: flash 1.1s infinite alternate;
}

@keyframes flash {
    from { opacity: 0.4; }
    to { opacity: 1; }     
}

/************************* IDX *****************************************/


.idx tbody td:nth-child(2) {
    background-color: rgba(4, 7, 32, 0.1);
}


.adcnl tbody td:nth-child(9) {
    background-color: rgba(157, 0, 255, 0.1);
}


    input {
     margin-top: 9px;
     margin-bottom: 9px;
    }


#form input {
  font-size: 2.1vw;
  text-align: center;
  width: 8%;
  display: inline-block;
  border: 2px solid #8B0000;
  border-radius: 5px;
}

#form1 input {
  font-size: 2vw;
  text-align: center;
  width: 13%;
  display: inline-block;
  border: 2px solid #8B0000;
  border-radius: 4px;
}

#form2 input {
  font-size: 1.1vw;
  text-align: center;
  width: 13%;
  display: inline-block;
  border: 2px solid #8B0000;
  border-radius: 4px;
  /*padding-top: 0.7%;*/
  /*padding-bottom: 0.7%;*/
}

.buscar {
	display: block;
	text-align: center;
	margin-top: 10px;
   margin-bottom: 10px;
}

#display, #displayb {
    
  border-radius: 4px;
  border: 2px solid #FFDF00;
  color: #FFFFFF;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 16px;
  background-color: rgba(4, 7, 32, 1);
}


/***************** Opciones para dispositivos moviles ********************************/

@media (max-width: 991px) {
    
    body {
    padding-top: 130px;
    }
    
    
    .titulos {
    margin-top: 1em;

    }
    
    .verif {
    margin-top: -30px;

    }  
    
    .resultados {
      max-width: 100%;
      overflow-x: auto; 
      overflow-y: auto; 
      white-space: nowrap;
      box-sizing: border-box; 
      margin: auto;
      max-height: 400px;
    }
    

    .enlace-menu-seccion {
        padding: 5px 12px; 
        font-size: 1rem; 
        border-radius: 15px;
    }

    .subir {
        bottom: 3rem;  
        right: 1rem;
    }
    
    .par {
    padding: 0 1rem;  
    }
    
    
    
    .tblres th, .tblres td {
    padding: 3px 6px;
    font-size: calc(2vw + 0.5em);
    white-space:nowrap;

    }
    
    /*.tblres {*/
    /*max-height: 400px;*/
    /*}*/
    

    .tblest {
    height: auto;
    }
    
    .mobileHide {
        display: none;
    }
    
    /*input {*/
    /* margin-top:40px;*/
    /*}*/
    
    #form input {
      font-size: 5.9vw;
      display: inline-block;
      width: 13%;
      border: 1px solid #8B0000;
      border-radius: 3px;
      /*margin-right: -5px;*/
    }
    
    #form1 input {
      font-size: 5vw;
      display: inline-block;
      width: 35%;
      border: 1px solid #8B0000;
      border-radius: 4px;
      /*margin: auto;*/
    }
    
    #form2 input {
      font-size: 5vw;
      display: inline-block;
      width: 55%;
      border: 1px solid #8B0000;
      border-radius: 5px;
      /*margin: auto;*/
      /*padding-top: 2%;*/
      /*padding-bottom: 2%;*/
    }
    
    #display {
      width: 90%;    
    }

}

/***************** Opciones para dispositivos desktop OJO ********************************/

@media (min-width: 992px) {

    .webHide {
        display: none;
    }

    /*body {*/
    /*    padding-top: 65px;*/
    /*}*/

}

/*******************************************************************************/

/*************************** FOOTER ********************************************/

footer {
    margin-top: 2em;
}

/*******************************************************************************/


/******************** BALANZAS *************************************************/
.rojo-oscuro {
    color:darkred;
}

.naranja-oscuro {

    color: darkorange;
}

.azul {

    color: blue;
}

.azul-claro {

    color: lightblue;
}

/*********************************************************************************/

/************************* ALERTAS ************************************************/

.alerta-badge {
    display: inline-block;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 12px;
}

.alerta-pares {
    background-color: #8B0000;  
    color: #fff;
}

.alerta-nones {
    background-color: #FFD700;  
    color: #000;
}

/******************************************************************************************/

/***************************** BALANZA GLOBAL *********************************************/


.bal-cron td:not(:first-child) {
    background-color: rgba(0, 0, 0, 1);
    color: white;
}

.tabla-balanzas td:first-child {
    background-color: #ffffff; 
    color: #000000; 
}

.tabla-balanzas td.positivo {
    color: #D32F2F;
}

.tabla-balanzas td.negativo {
    color: #00FFFF; 
}

.tabla-balanzas tr:nth-child(even) {
    background-color: #f2f2f2;
}


/***************************** GENERADOR PRELOADER *****************************************/

#preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* Centra el elemento */
    z-index: 999;  /* Lo coloca por encima del resto del contenido */
    background-color: rgba(0, 0, 0, 0.8);  /* Fondo oscuro semi-transparente */
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Efecto de elevación */
    display: none; /* Oculto por defecto */
}

.loading-msg {
    font-size: 1rem;
    /*font-weight: bold;*/
    text-align: center;
}

.dots {
    display: inline-block;
    animation: dots 1.5s infinite steps(4);
}

@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}




