body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f2f4f8;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0;
}

h1 {
  font-size: 25px;
  color: #333;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  margin: 5px 0;
  border-left: 5px solid #3e5585;
  padding-left: 10px;
}

/* Identificadores y Clases Específicas */
#DivW {
  font-size: 60px;
  margin-top: -25px;
  font-weight: bold;
}

.centrado {
  text-align: center;
}

/* Componente: Contador */
.contador-container {
  text-align: center;
  margin-top: 5px;
  font-family: monospace;
}

.contador {
  font-size: 2.5em;
  letter-spacing: 5px;
  background: #000;
  color: #0f0;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

.subtexto {
  display: block;
  margin-top: 10px;
  font-size: 1.2em;
  color: #333;
}

/* Componente: Tabla */
table {
  border-collapse: collapse;
  margin: 20px auto;
  font-family: monospace;
  font-size: 0.8rem;
  min-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background-color: white;
}

thead {
  background-color: #3e5585;
  color: #fff;
}

th, td {
  padding: 8px 15px;
  text-align: center;
  border: 1px solid #ccc;
}

tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

tbody tr:hover {
  background-color: #e0ebff;
}

/* Gráficos / Charts */
.chart-container { 
  background: white; 
  padding: 10px; 
  border-radius: 8px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  margin-bottom: 15px; 
  max-height: 250px; 
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

canvas { 
  max-height: 200px; 
}

.boton, button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 1px solid #a9a9a9;
  box-sizing: border-box;
}

.boton {
  background-color: silver;
  color: black;
  width: auto;
}

.boton:hover {
  background-color: #2a3b5d;
  color: white;
  border-color: #2a3b5d;
}

button {
  width: 100%;
  padding: 0.7rem;
  background-color: #0077cc;
  color: white;
  border: none;
  outline: none;
  font-weight: bold;
}

button:hover {
  background-color: #005fa3;
}

form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: bold;
  text-align: left;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 600px) {
  body, h1 {
    font-size: 18px;
  }
  #DivW {
    font-size: 40px;
    margin-top: -10px;
  }
  .contador {
    font-size: 1.5em;
    letter-spacing: 2px;
  }
  table {
    font-size: 0.7em;
    width: 100%;
    min-width: auto;
  }
}
.btn-volver { display: block; width: 100px; padding: 10px; text-align: center; background: #3e5585; color: white; text-decoration: none; border-radius: 5px; }
