body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #121212;
  animation: fadeIn 1.2s ease-in-out;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111;
  box-shadow: 0 0 10px #cee21420;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-step,
.form-step2 {
  display: none;
  flex-direction: column;
  gap: 1em;
  animation: fadeIn 0.5s ease-in-out;
  width: 400%;
  max-width: 1000px;
  background: linear-gradient(135deg, #092d55c5, #121212);
  padding: 2rem;
  border-radius: 16px;
  color: white;
  margin-top: 1rem;
  margin-left: -125%;
}

.form-step.active {
  display: flex;
}

input,
textarea {
  padding: 0.8em;
  border: none;
  border-radius: 8px;
  background: #1b1a1aa5;
  color: #f0f0f0;
  font-size: 1em;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 0.8em 1.5em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: #1496e220;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background-color: #1496e220;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.progress-container {
  width: 80%;
  height: 10px;
  background: #444;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #092d55c5, #121212);
  transition: width 0.3s;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  border-top: 1px solid #333;
  color: #666;
  margin-top: 3rem;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Estilo tipo billete --- */
.airplane-ticket {
  width: 400%;
  max-width: 1000px;
  background: linear-gradient(135deg, #092d55c5, #121212);
  padding: 2rem;
  border-radius: 16px;
  color: white;
  margin-top: 1rem;
  margin-left: -75%;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ticket-logo {
  height: 50px;
}

.ticket-airline {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
}

.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-field {
  display: flex;
  flex-direction: column;
}

.ticket-field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: block;
  color: #f0f0f0;
}

.ticket-field input,
.ticket-field select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.6em;
  border-radius: 8px;
  color: rgb(140, 140, 140);
  font-size: 1em;
}

.ticket-field textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.6em;
  border-radius: 8px;
  color: white;
  font-size: 1em;
  resize: vertical;
  min-height: 80px;
}

.ticket-field.ticket-full {
  grid-column: span 2;
}

.ticket-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ticket-layout {
  display: flex;
  flex-direction: column;  /* 🔑 Esto evita que left y right queden en paralelo */
  gap: 1.5rem;
}

.ticket-left {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ticket-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-box {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.ticket-box label {
  font-weight: bold;
  margin-bottom: 0.4rem;
  display: block;
  color: #fff;
}

.ticket-box textarea {
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 0.6em;
  color: #fff;
  font-size: 1em;
  resize: vertical;
}

.whitelist-banner {
  max-width: 80%;
  margin-top: 10%;
  width: 300px;
}

/* --- Popup --- */
#popup-recordatorio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-hidden {
  display: none !important;
}

.popup-card {
  background: #1f1f1f;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  position: relative;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.popup-card h3 {
  margin-top: 0;
  color: #cee214;
}

.popup-card p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Dropdown --- */
.navbar .nav-links li.dropdown {
  position: relative;
}

.navbar .nav-links li.dropdown .dropdown-menu,
.navbar .nav-links li.dropdown .dropdown-menu2 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2e2e2e;
  border: 1px solid #444;
  border-radius: 6px;
  min-width: 180px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

.navbar .nav-links li.dropdown:hover .dropdown-menu,
.navbar .nav-links li.dropdown:hover .dropdown-menu2 {
  display: block;
}

.navbar .nav-links li.dropdown .dropdown-menu li,
.navbar .nav-links li.dropdown .dropdown-menu2 li {
  display: block;
  width: 100%;
}

.navbar .nav-links li.dropdown .dropdown-menu li a,
.navbar .nav-links li.dropdown .dropdown-menu2 li a {
  display: block;
  width: 100%;
  padding: 10px 15px;
  color: #f1f1f1;
  background-color: transparent;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: left;
}

.navbar .nav-links li.dropdown .dropdown-menu li a:hover,
.navbar .nav-links li.dropdown .dropdown-menu2 li a:hover {
  background-color: #2a2a2a;
}

/* --- Contadores de caracteres --- */
#contador-historia,
#contador-reglas {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 4px;
  margin-right: 4px;
}

textarea.input-error,
input.input-error,
select.input-error {
  border: 1px solid #e74c3c !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

textarea.input-error + #contador-historia,
textarea.input-error + #contador-reglas {
  color: #e74c3c;
}

