/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}



body {
  background: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

header, footer {
  background: #611232;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

main {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

.intro {
  text-align: center;
  margin-top: 50px;
}

.intro p{
    font-size: 32px;
    font-weight:lighter;
    font-family:Arial, Helvetica, sans-serif;
    font-style: normal;
    color: #333
}

.intro .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #1b396a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.formulario {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario label {
  font-weight: bold;
}

.formulario input,
.formulario select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.formulario button {
  background: #1b396a;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.formulario button:hover {
  background: #004080;
}
.formulario input:focus,
.formulario select:focus {
  outline: none;              /* elimina el borde por defecto del navegador */
  border: 2px solid #004080;  /* borde azul */
  box-shadow: 0 0 5px rgba(0, 64, 128, 0.5); /* efecto de resplandor */
}


footer {
  margin-top: 50px;
}

/* Responsivo */
@media (max-width: 600px) {
  main {
    padding: 10px;
  }

  .formulario {
    gap: 10px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

table th {
  background: #004080;
  color: white;
}

.btn-eliminar {
  display: inline-block;
  padding: 5px 10px;
  background: crimson;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.btn-eliminar:hover {
  background: darkred;
}


/* Página de registro */
.page-registro {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f9, #e6eef7);
}

.card-registro {
  background: white;
  padding: 40px;
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  animation: fadeIn 0.8s ease-in-out;
}

.card-registro h1 {
  font-size: 2rem;
  color: #611232;
  margin-bottom: 20px;
  text-align: center;
}

.formulario label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.formulario input,
.formulario select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

/* Efecto al enfocar */
.formulario input:focus,
.formulario select:focus {
  outline: none;
  border: 2px solid #004080;
  box-shadow: 0 0 6px rgba(0, 64, 128, 0.4);
}

/* Botón estilizado */
.formulario button {
  width: 100%;
  padding: 14px;
  background: #1b396a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.formulario button:hover {
  background: #004080;
  transform: scale(1.03);
}

/* Animación reutilizada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}






/* Estilo especial para la página de gracias */
.page-gracias {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f9, #e6eef7);
}

.card-gracias {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

.card-gracias h1 {
  font-size: 2.2rem;
  color: #611232;
  margin-bottom: 20px;
}

.card-gracias p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
}

.card-gracias .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #611232;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.card-gracias .btn:hover {
  background: #4e0c27;
  transform: scale(1.05);
}

/* Animación de aparición */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
