/* Estilo base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #005eff;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px;
}

h1, h2, h3 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Estilos para el contenedor principal */
.contenedor {
  width: 80%;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Estilos para el logo */
.imagen img {
  max-width: 150px;
  display: block;
  margin: 0 auto 20px;
}

/* Estilos para el formulario */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-bottom: 10px;
}

textarea {
  width: 80%;
  height: 150px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-size: 16px;
  resize: vertical;
}


/* Estilo cuando se pasa el ratón (hover) sobre el select */
select:hover {
  background-color: #d70000; /* Cambio de color al hacer hover */
}

/* Estilo del botón */
button {
  background-color: #f70000;
  color: white;
  border: none;
  padding: 20px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #c70000; /* Cambio de color de fondo en hover */
}

button:disabled {
  background-color: #ff0000;
}

/* Estilos para el análisis general */
#analisis-general {
  margin-top: 30px;
  padding: 20px;
  background-color: #ecf0f1;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Asegura que no se desborde */
  overflow-x: auto; /* Permite desplazamiento horizontal si es necesario */
}

#analisis-general pre {
  font-size: 16px;
  text-align: left;
  line-height: 1.5;
}

/* Estilos para la graficación de datos */
#Graficacion-datos {
  margin-top: 30px;
  padding: 20px;
  background-color: #ecf0f1;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#Graficacion-datos canvas {
  width: 100%;
  max-width: 100%; /* Se ajusta al tamaño del contenedor */
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Separación del botón de la página principal */
.volver {
  margin-top: 20px;
  text-align: center;
}

/* Estilo de la línea roja degradada */
footer .linea-roja {
  width: 35cm;
  height: 20px;
  margin: 20px center;
  background: linear-gradient(90deg, #000000, #ff0000, #ffffff);
  animation: movimientoAgua 3s linear infinite;
}

