h1, h2, h3 {
  color: #333;
}

.contenedor {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.paso {
  margin-bottom: 20px;
}

.valoracion {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.valoracion th, .valoracion td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.casos-lista {
  list-style: none;
  padding-left: 0;
}

.casos-lista li {
  margin: 5px 0;
}

.casos-lista a {
  text-decoration: none;
  color: #007bff;
}

.casos-lista a:hover {
  text-decoration: underline;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #f0f4f8, #e2e8f0);
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.casos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.caso-card {
  text-decoration: none;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  color: #1a202c;
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

.card-content p {
  color: #4a5568;
  font-size: 0.95rem;
}
#buscador {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  margin-bottom: 30px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2d3748;
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

.toast.hidden {
  display: none;
}
#ayuda {
  background-color: #ffcccc;
  color: #333;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

#solucion {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #008f39;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button.ay1{
  background-color: #b5e7a0;
  color: black;
}
button.ay2{
  background-color: #82b74b;
  color: black;
}
button.ay3{
  background-color: #86af49;
  color: black;
}
button:hover {
  background-color: #34a853;
}
.ayuda-contextual {
  margin-top: 10px;
  background-color: #f9fafb;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.ayuda-box p {
  margin: 0;
  color: #333;
}

.cerrar-ayuda {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

.cerrar-ayuda:hover {
  color: #e74c3c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
#navegacion-final {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
}
#navegacion-inicial {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
}

.btn-volver, .btn-siguiente {
  background-color: #009900;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-volver:hover, .btn-siguiente:hover {
  background-color: #00e600;
}
.ddd{
  border-radius: 5px;
  border: 1px solid #000000;
}



