body {
    background-color: #111;
    color: #eee;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-image: url('/static/img/Fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

/*----------------------------------------------------------------------------- 
---------------------------  CONTENEDORES -------------------------------------
------------------------------------------------------------------------------*/

.contenedor-login {
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-dashboard {
    font-size: 20px;
    margin-bottom: 40px;
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    width: 700px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-admin {
    font-size: 20px;
    margin-bottom: 40px;
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    width: 700px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-config {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 550px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-alta {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 550px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-baja {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 550px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-modificar {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 550px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-analisis {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-bitacora {
    background-color: #000000;
    padding-top: 120px;
    padding-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.contenedor-resultados {
    background-color: #000000;
    padding-top: 100px;  /* Solo espacio arriba para evitar que la cabecera tape el contenido */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
    margin: 30px auto;
    max-width: 1000px;
    width: 95%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;
}

/* Tabla con scroll horizontal si se necesita */
.contenedor-tabla {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: center;
    font-size: 10px;
}


.contenedor-encabezado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*background-color: #0E111F;*/
    background: linear-gradient(90deg, #0E111F, #000050, #100AED,  #000050, #0E111F); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Ajusta la altura según necesidad */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1000; /* Asegura que quede encima del resto */
}

.contenedor-cargando {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #111;
    color: #eee;
}

.password-container {
  position: relative;
  width: 100%;
  /* max-width: 300px; */
}

.password-container2 {
  position: relative;
  width: 70%;
  margin: 0 auto;
  /* max-width: 300px; */
}

/*----------------------------------------------------------------------------- 
------------------------------  TABLAS ----------------------------------------
------------------------------------------------------------------------------*/

.tabla-resultados {
    margin: 20px auto; /* Centra horizontalmente la tabla */
    width: 90%;
    border-collapse: collapse;
}

.tabla-resultados th, .tabla-resultados td {
    padding: 8px;
    border: 1px solid #ddd;
}

.tabla-datos {
    margin: 20px auto;
    width: 60%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11px;
}

.tabla-datos th, .tabla-datos td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tabla-datos th {
    background-color: #100AED;
    text-align: center;
}


/*----------------------------------------------------------------------------- 
---------------------  TITULOS, ETIQUETAS, TEXTOS -----------------------------
------------------------------------------------------------------------------*/


/* Título */
.titulo-encabezado {
    font-size: 20px;
    font-family: 'Arial', sans-serif;
    color: #BC955A;
    margin: 0;
    text-align: center;
}

/* Usuario y cierre */
.header-derecha {
    font-size: 14px;
    font-weight: bold;
    color: #00f2ff;
    white-space: nowrap;
}

/* Estilo de enlace de cerrar sesión */
.cerrar-sesion {
    margin-left: 10px;
    margin-right: 20px;
    font-size: 12px;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.cerrar-sesion:hover {
    text-decoration: underline;
    color: #FFAAAA;
}

/* Logo */
.logo-encabezado {
    margin-left: 50px;
    height: 70px;
}

.logo {
    width: 320px;
    margin-bottom: 10px;
}

.logo2 {
    width: 150px;
    margin-bottom: 10px;
}

/*-------------------------------------------------------------------*/

.logo3-contenedor {
  position: relative;
  display: inline-block;
  width: 300px;  /* Ajusta al tamaño real del logo */
  height: auto;
}

.logo3-contenedor img {
  display: block;
  width: 100%;
  height: auto;
}

.logo3-brillo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: url('logo.png');  /* Asegúrate que sea la misma imagen del logo */
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-image: url('logo.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  background: linear-gradient(135deg, transparent 40%, #ffffff 50%, transparent 60%);
  background-size: 300% 300%;
  animation: recorrer-brillo 5s linear infinite;  /* tiempo original 2.5 s */
  opacity: 0.6;
}
@keyframes recorrer-brillo {
  0%   { background-position: 0% 0%; opacity: 0; }
  10%  { background-position: 0% 0%; opacity: 1; }
  50%  { background-position: -200% 0%; opacity: 0; }
  100% { background-position: -200% 0%; opacity: 0; }
}


/*-----------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/

.logo4-contenedor {
  position: relative;
  display: inline-block;
  width: 150px;  /* Ajusta al tamaño real del logo */
  height: auto;
}

.logo4-contenedor img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 50px;
}

.logo4-brillo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-left: 50px;
  pointer-events: none;
  mask-image: url('logo.png');  /* Asegúrate que sea la misma imagen del logo */
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-image: url('logo.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  background: linear-gradient(135deg, transparent 40%, #ffffff 50%, transparent 60%);
  background-size: 300% 300%;
  animation: recorrer-brillo 5s linear infinite;  /* tiempo original 2.5 s */
  opacity: 0.6;
}

/*-----------------------------------------------------------------------*/


.campo-personalizado {
    width: 250px;
    height: 20px;
    font-size: 16px;
    padding: 5px 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    row-gap: 0 px;
    max-width: 650px;
    margin: 0 auto;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}

.tab button {
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
    border: none;
    padding: 2px;
    cursor: pointer;
    /* margin-right: 5px; */
    height: 90px;
    flex: 1 1 calc(15% - 4px); /* 3 botones por fila, dejando espacio */
    transition: background-color 0.3s;
    margin: 2px 2px 2px 2px;
    box-sizing: border-box;
}

.tab button.active {
    background-color: #100AED;
    color: #fff700
}


@font-face {
  font-family: 'Tactic Sans';
  src: url('/static/fonts/TacticSans-Bld.otf') format('truetype');
}

@font-face {
  font-family: 'Tactic Sans 2';
  src: url('/static/fonts/TacticSans-Reg.otf') format('truetype');
}

.logo-text {
  font-family: 'Tactic Sans', sans-serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 40px;
}

.logo-text2 {
  font-family: 'Tactic Sans', sans-serif;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 40px;
}

.logo-text3 {
  font-family: 'Tactic Sans', sans-serif;
  font-size: 24px;
  color: #ffffff;
}

.logo-text4 {
  font-family: 'Tactic Sans', sans-serif;
  font-size: 24px;
  color: #fff200;
}

.titulo {
    color: #BC955A;
    margin-bottom: 40px;
}

.subtitulo {
    color: #ffffff;
    font-size: 10px;
    margin-top: 80px;
}

.etiqueta1 {
    font-family: 'Tactic Sans 2', sans-serif;
    color: #ffffff;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.etiqueta2 {
    font-family: 'Tactic Sans 2', sans-serif;
    color: #ffffff;
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.etiqueta3 {
    font-family: 'Tactic Sans 2', sans-serif;
    color: #fff98d;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.estilo_texto1 {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}

.estilo_password1 {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}

.estilo_archivo1 {
    width: 60%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: #000050;
    color: white;
    text-align: center;
}

.estilo_texto2{
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}

.estilo_password1{
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}


.estilo_password2{
    width: 70%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}

.estilo_texto3 {
    width: 20%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #BC955A;
}

.toggle-password2 {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #BC955A;
}

.toggle-password3 {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #BC955A;
}

.botonera {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 250px;
    margin: 0 auto;
}

.botones-piramide .fila-superior {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.botones-piramide .fila-inferior {
    display: flex;
    justify-content: center;
}

button {
    font-family: 'Tactic Sans 2', sans-serif;
    background-color: #100AED;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 200px;
    margin-top: 40px;
    margin-bottom: 40px;
}

button:hover {
    background-color: #00f2ff;
    color: black;
}

.boton2 {
    font-family: 'Tactic Sans 2', sans-serif;
    background-color: #007517;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 200px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.boton2:hover {
    background-color: #ece872;
    color: black;
}

.boton {
    font-family: 'Tactic Sans 2', sans-serif;
    background-color: #100AED;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 200px;

    display: flex; 
    align-items: center;  /* Centrado vertical*/
    justify-content: center; /*Centrado horizontal */
}

.boton:hover {
    font-family: 'Tactic Sans 2', sans-serif;
    background-color: #00f2ff;
    color: black;
}

.boton3 {
    font-family: 'Tactic Sans 2', sans-serif;
    background-color: #5c3f00;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 200px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.boton3:hover {
    background-color: #00f2ff;
    color: black;
}

.boton.salir {
    background-color: #000050;
}

.boton.salir:hover {
    background-color: #b7b7b7;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #100AED;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1.5s linear infinite;
    margin-top: 20px;
}

.riesgo-verde {
    color: #28a745;  /* Verde */
    font-weight: bold;
}

.riesgo-naranja {
    color: #ffc107;  /* Naranja */
    font-weight: bold;
}

.riesgo-rojo {
    color: #dc3545;  /* Rojo */
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*-------------------------------------------------------------------------------------------------------------
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {
    .botones-fila, .botones-grid, .botones-piramide .fila-superior, .botones-piramide .fila-inferior {
        flex-direction: column !important;
        align-items: center !important;
    }

    .boton-menu {
        width: 80% !important;
        font-size: 16px;
        margin: 10px 0;
    }

    .contenedor-encabezado {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .header-izquierda, .header-centro, .header-derecha {
        justify-content: center;
        margin: 5px 0;
    }

    .cerrar-sesion {
        display: block;
        margin-top: 5px;
    }
}
