body {
  background: #0b2b5f;
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: #dcc9a4;
  max-width: 400px;
  margin: 60px auto;
  padding: 40px 30px 30px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(11, 43, 95, 0.18);
  text-align: center;
  animation: fadeIn 1s;
  border: 2px solid #0b2b5f;
}

.titulo {
  color: #0b2b5f;
  margin-bottom: 32px;
  font-size: 2.1em;
  letter-spacing: 1px;
  font-weight: bold;
  /*text-shadow: 1px 1px 0 #951a3e, 2px 2px 0 #dcc9a4;*/
}
.animar-titulo {
  animation: bounceIn 1.2s;
}
.animar-form {
  animation: slideDown 1.2s;
}

label {
  font-size: 1.1em;
  color: #951a3e;
  font-weight: bold;
}

input[type="text"] {
  width: 90%;
  padding: 10px;
  margin: 16px 0 24px 0;
  border: 2px solid #0b2b5f;
  border-radius: 6px;
  font-size: 1.05em;
  outline: none;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(11, 43, 95, 0.08);
}
input[type="text"]:focus {
  border-color: #951a3e;
  box-shadow: 0 0 6px #951a3e;
}
.btn-animado,
.btn-imprimir {
  background: linear-gradient(90deg, #0b2b5f, #951a3e);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(11, 43, 95, 0.13);
  transition: background 0.3s, transform 0.2s;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 8px;
}
.btn-animado:hover,
.btn-imprimir:hover {
  background: linear-gradient(90deg, #951a3e, #0b2b5f);
  transform: scale(1.05);
}

#mensaje-error {
  color: #d32f2f;
  background: #fff6f9;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 18px;
  padding: 10px 0;
  animation: bounceInError 0.8s;
}
@keyframes bounceInError {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.tabla-talleres {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 12px 0;
  background: #fff;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 18px rgba(11, 43, 95, 0.08);
  animation: fadeIn 1s;
}
.tabla-talleres th,
.tabla-talleres td {
  padding: 12px 8px;
  text-align: center;
  font-size: 1em;
}
.tabla-talleres th {
  background: #0b2b5f;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 1px;
  font-weight: bold;
  border-bottom: 3px solid #dcc9a4;
}
.tabla-talleres tr {
  border-bottom: 1px solid #dcc9a4;
  transition: background 0.2s;
}
.tabla-talleres tr:hover {
  background: #dcc9a4;
}
.tabla-talleres td {
  color: #0b2b5f;
  font-size: 1em;
}

.btn-registrar {
  background: #951a3e;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(11, 43, 95, 0.13);
}
.btn-registrar:hover {
  background: linear-gradient(90deg, #951a3e, #0b2b5f);
  transform: scale(1.07);
}
.btn-cupo {
  background: #dcc9a4;
  color: #951a3e;
  padding: 8px 20px;
  border: 1px solid #951a3e;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.7;
  letter-spacing: 1px;
}
.leyenda-cupo {
  display: block;
  font-size: 0.95em;
  color: #951a3e;
  margin-top: 4px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeInValido {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bounceInValido {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.comprobante-valido {
  color: #0b2b5f;
  font-weight: bold;
  margin-top: 24px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInValido 1s;
}
.comprobante-valido .icono-valido {
  display: inline-block;
  margin-right: 10px;
  animation: bounceInValido 1.2s;
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 20px 5vw;
  }
  .tabla-talleres th,
  .tabla-talleres td {
    padding: 10px 4px;
    font-size: 0.95em;
  }
}
@media (max-width: 400px) {
  .container {
    padding: 5px 1vw;
    max-width: 100vw;
  }
  .titulo {
    font-size: 1em;
  }
  label,
  .btn-animado,
  .btn-imprimir {
    font-size: 0.95em;
  }
  input[type="text"] {
    font-size: 0.95em;
    padding: 8px;
  }
  .tabla-talleres th,
  .tabla-talleres td {
    font-size: 0.85em;
    padding: 5px 1px;
  }
}
