:root {
  --azul: #005a9c;
  --verde: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f6f9;
  padding: 30px;
}

.contenedor {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.encabezado {
  background: linear-gradient(135deg, var(--azul), #0086d1);
  color: white;
  text-align: center;
  padding: 40px;
}

.encabezado img {
  width: 120px;
  margin-bottom: 15px;
}

.encabezado h1 {
  margin-bottom: 15px;
}

.encabezado p {
  margin-top: 10px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px;
}

.grupo {
  display: flex;
  flex-direction: column;
}

.grupo-completo {
  grid-column: 1 / 3;
}

input,
select,
textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

textarea {
  min-height: 120px;
}

.check {
  grid-column: 1/3;
}

button {
  grid-column: 1/3;
  background: var(--verde);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  opacity: 0.9;
}

/* MODAL */

.modal-exito {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal-exito.activo {
  opacity: 1;
  visibility: visible;
}

.modal-contenido {
  background: white;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.checkmark {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #28a745;
  color: white;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-bottom: 20px;
}
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--azul);
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1px;
  transition: 0.3s;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-volver:hover {
  background: white;
  color: var(--verde);
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
  }

  .grupo-completo,
  .check,
  button {
    grid-column: auto;
  }
}
