@font-face {
  font-family: 'Crillee';
  src: url('../fonts/CrilleeItalicBT.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

/* ===== Fondo general ===== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  background: url('../images/fondo.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #222;
  box-sizing: border-box;
}

/* ===== Banner superior ===== */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11,29,97,0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.logo {
  max-height: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ===== Contenedor del formulario ===== */
.form-container {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.50); /* blanco translúcido */
  -webkit-backdrop-filter: blur(25px) saturate(160%) contrast(120%);
  border-radius: 25px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  animation: fadeIn 0.6s ease;
  margin-top: 130px;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Encabezados ===== */
.form-container h2 {
  font-family: 'Crillee', sans-serif;
  font-size: 26px;
  color: #0B1D61;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #222;
  margin-bottom: 22px;
}

/* ===== Formulario ===== */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

input, select {
  width: 90%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,0.9);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

/* ===== Checkboxes alineados ===== */
label {
  width: 90%;
  font-size: 13px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  line-height: 1.4;
}

label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0B1D61;
  margin: 0;
}

label a {
  color: #0B1D61;
  text-decoration: none;
}
label a:hover {
  text-decoration: underline;
}

/* ===== Botón ===== */
button {
  width: 90%;
  background: linear-gradient(90deg, #007BFF, #004cbf);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s;
}
button:hover {
  background: linear-gradient(90deg, #0056b3, #003d99);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
  margin-top: 18px;
  font-size: 12px;
  color: #333;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-radius: 10px;
  width: 90%;
  max-width: 350px;
  padding: 25px 20px;
  text-align: center;
}

/* ===== Input PIN ===== */
.pin-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}

/* ===== Botón modal ===== */
.close-btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .form-container {
    margin-top: 12vh;
    max-width: 92%;
    padding: 28px 22px;
  }

  .logo {
    max-height: 34px;
  }

  input, select, button {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin-top: 10vh;
    padding: 25px 18px;
  }
  .form-container h2 {
    font-size: 22px;
  }
  button {
    font-size: 15px;
  }
}
