/* Reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f4f4f9; /* Fondo suave */
  color: #333; /* Texto oscuro */
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #A5C9FF, #B2A1FF);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Menú de navegación en la página principal */
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Sombra más suave */
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background-color: #f0f4ff; /* Fondo suave al pasar el ratón */
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card p,
.card ul {
  font-size: 1rem;
  color: #555;
}

/* Secciones dentro de las páginas */
main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

section.card {
  margin-bottom: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

section.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

pre {
  background: #f4f4f9;
  padding: 1rem;
  border-radius: 8px;
  color: #444;
  overflow-x: auto;
  font-size: 1rem;
  margin-top: 1rem;
}

footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  color: #777;
  margin-top: 3rem;
  border-top: 2px solid #ddd;
}

footer p {
  font-weight: 300;
}

/* Botones de navegación en el header */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
  color: #4A90E2;
}

/* Efecto al pasar el mouse sobre los links */
a:hover {
  color: #A5C9FF;
  transform: scale(1.05);
  transition: color 0.2s, transform 0.2s;
}

/* Media Queries: */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  header p {
    font-size: 1.1rem;
  }
  
  .menu {
    padding: 1.5rem;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  padding: 12px 15px;
  border: 1px solid #ddd; /* Borde suave */
  text-align: center;
}

table th {
  background-color: #A5C9FF; /* Fondo suave para los encabezados */
  color: #fff;
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9; /* Fondo suave para filas pares */
}

table tbody tr:hover {
  background-color: #e6f0ff; /* Fondo claro al pasar el ratón por encima */
}

table td {
  font-size: 1.1rem;
  color: #555;
}

/* Estilo para las tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

table th {
  background-color: #A5C9FF;
  color: #fff;
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tbody tr:hover {
  background-color: #e6f0ff;
}

table td {
  font-size: 1.1rem;
  color: #555;
}

/* Estilo para el gráfico */
canvas {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
}
