body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f6f6;
}

header {
    background-color: #003366; 
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    padding: 2rem;
}

.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    background-color: #003366; /* Azul tipo Diners Club */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #002244;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-bottom: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Barra de navegación */
.nav-bar {
    background-color: #003366;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* Menú lateral */
.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin: 0;
    background-color: #f9f6f6;
    height: 100vh;
    width: 200px;
    float: left;
}

.menu ul {
    list-style-type: none;
    padding: 0;
}

.menu ul li {
    margin-bottom: 15px;
}

.menu ul li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

/* Contenedor de opciones */
.options-container {
    
    margin: auto;
    margin-top: 10px;
    width: 400px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.options-container-reglas {
    margin: auto;
    margin-top: 40px;
    width: 100%; 
    max-width: 800px; 
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.925);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.test-question {
    text-align: center;   /* Centrar el texto */
    font-size: 24px;      /* Aumentar tamaño de letra */
    font-weight: bold;    /* Hacer el texto más grueso */
    margin-bottom: 20px;  /* Espaciado inferior */
    color: rgb(5, 5, 5);         /* Color de la letra (ajústalo según tu diseño) */
}


.test-option-button{
    width: 100%;
    margin-bottom: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #0e4477;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.options-container button {
    width: 100%;
    margin-bottom: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #0e4477;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    }

    .test-option-button {
        width: 100%;
        margin-bottom: 5px;
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        background-color: #0e4477;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: left; /* Asegurar alineación del texto a la izquierda */
        display: flex;
        align-items: center;
        gap: 10px; /* Espacio entre el icono y el texto */
    }

.icon {
    width: 30px;
    height: 30px;
    margin-left: 5px;
     /* Hace que los SVG sean blancos sobre fondo oscuro */
}

.options-container button:hover {
    background-color: #4caf50;
}

/* Botones de Tomar Test */
.options-button-test {
    background-color: #4caf50; /* Verde */
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.options-button-test:hover {
    background-color: #45a049;
}

/* Botones de Ver Resultados */
.options-button-results {
    background-color: #5a9bd6; /* Azul claro */
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.options-button-results:hover {
    background-color: #407fbf;
}

.contenedor-boton-atras {
  position: absolute;  /* Posicionamiento absoluto */
  top: 20px;           /* Ajusta la distancia desde la parte superior */
  right: 20px;         /* Ajusta la distancia desde la derecha */
}

.btn-back {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

/* Contenedor de opciones para Tomar Test */
#opciones-test {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* Contenedor de opciones */
.opciones-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar horizontalmente los elementos dentro del contenedor */
    justify-content: center; /* Centrar verticalmente el contenedor */
    gap: 20px; /* Espacio entre los botones */
    margin: 0 auto; /* Centrar el contenedor horizontalmente */
    padding: 20px;
    background-color: #ffffff; /* Fondo blanco */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    width: 400px; /* Ancho del contenedor */
    height: auto; /* Ajustar el alto automáticamente */
    position: absolute; /* Posicionar el contenedor */
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%); /* Ajustar al centro exacto */
}


/* Botones de opciones para Tomar Test */
.options-button-test {
    background-color: #407fbf; /* Celeste */
    color: white;
    font-size: 20px; /* Botones más grandes */
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Botones del ancho del contenedor */
    text-align: center;
    transition: background-color 0.3s ease;
}

.options-button-test:hover {
    background-color: #5AAEDD; /* Celeste más oscuro al pasar el mouse */
}

table button {
    background-color: #003366; /* Azul tipo Diners */
    color: white;
    font-size: 14px; /* Ajusta el tamaño de la fuente */
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

table button:hover {
    background-color: #002244; /* Azul más oscuro para el hover */
}
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 30px; /* Espacio para el ícono */
}

.password-container #togglePassword {
    position: absolute;
    right: 10px;
    cursor: pointer;
}

/* Contenedor principal de los gráficos */


/* Estilos específicos para el gráfico de dona */

#pieChart {
    max-width: 100%;
    max-height: 100%;
    width: 650px; 
    height: 450px;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    position: relative;
    z-index: 10;
    align-items: center; /* Centrar la dona verticalmente */
    justify-content: center; /* Centrar la dona horizontalmente */
    border: 2px solid rgb(19, 4, 102); /* Agregar margen alrededor */
    padding: 15px; /* Aumentar la distancia entre el borde y el gráfico */
    background-color: transparent;
    border-radius: 5px;
}


/* Estilos para el primer gráfico de barras */
#barChart {
    width: 100%; 
    max-width: 1000px;
    height:4000px;
    max-height: 4000px;
    background-color: transparent;
    position: relative;
    z-index: 10;
   
}

@media print {
    #barChart {
        height: 4000px !important; /* 🔹 Ajusta la altura solo al imprimir */
        max-height: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Ajustes generales para los gráficos */

#graficosContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Agrega más espacio entre gráficos */
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

/* Estilos para cada gráfico */
#graficoPastelContainer, 
#graficosBarrasContainer1, 
#graficosBarrasContainer2 {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin-bottom: 40px; /* Espacio entre gráficos */
    text-align: center;
}

canvas {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
    background-color: transparent;
    position: relative;
    z-index: 10;

}

  .grafico-wrapper {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 40px;
  }

/*grafico de barras por colores */

.chart-container {
    width: 100%;
    max-width: 700px; /* 🔹 Ajusta el ancho máximo */
    height: 400px; /* 🔹 Reduce la altura para mejor visualización */
    margin-bottom: 40px; /* 🔹 Espaciado entre gráficos */
}

hr {
    border: 0;
    height: 2px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
    }
    

.color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    margin: 0;
    padding: 0;
    background: white;
    font-size: 16px; /* Aumenta tamaño del texto */
    line-height: 1.8; /* Mejora espaciado del texto */
    font-family: Arial, sans-serif;
  }

  @page {
    size: A4;
    margin: 12mm 20mm; /* Márgenes: arriba/abajo 15mm, laterales 20mm */
  }

  #contenidoPDF {
    width: 100%;
    max-width: 754px; /* más estrecho que 794px para respetar los márgenes */
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    color: #000;
  }

  header, footer, button, .no-print {
    display: none !important;
  }

  .salto-pagina {
    break-before: page;
    page-break-before: always;
  }

  canvas {
    max-width: 100%;
    height: auto !important;
    
  }

  #pieChart {
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    display: block;
  }
}

.logo-esp {
  text-align: right;
  margin: 10px 0 20px;
}

.logo-esp img {
  height: 50px;
  width: auto;
}







