:root {
  --bg: #f3f4f6;
  --bg-page: #f9fafb;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --text: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  color: var(--text);
}

/* LAYOUT GENERAL */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--bg-header);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #eff6ff, #2563eb);
  color: #0b1120;
  font-size: 1.1rem;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
}

.nav__brand-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

.nav__brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Grupo de links tipo "píldora" */
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.25rem 0.35rem;

  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Link base */
.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;

  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;

  color: var(--text-muted);
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

/* Hover */
.nav__link:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
}

/* Estado activo (lo puedes poner con una clase extra) */
.nav__link--active {
  background: rgba(15, 23, 42, 1);
  color: #f9fafb;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.9),
    0 10px 25px rgba(15, 23, 42, 0.9);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: none;
}

.btn--primary:hover {
  transform: none;
  box-shadow: none;
}

.btn--primary-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
}

.btn--primary-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn--ghost {
  background: #eef2ff;
  color: #4f46e5;
}

.btn--ghost:hover {
  background: #e0e7ff;
}

.btn--small {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

/* MAIN */

.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* BANNER (VIDEO/IMAGEN) */

.top-media {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  border-radius: 18px;
  overflow: hidden;
}

.top-media video,
.top-media img {
  width: 100%;
  height: clamp(300px, 48vw, 620px);
  object-fit: cover;
  display: block;
}

.top-media--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.top-media__overlay-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.top-media__overlay-content h1 {
  margin: 0;
  font-size: 2rem;
}

.top-media__overlay-content p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  border: 1px solid #bfdbfe;
}

.hero__title {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem); /* un poco más grande */
  margin: 0.9rem 0 0.5rem;
  line-height: 1.1;
  color: #0f172a;
}


.hero__highlight {
  color: var(--accent-strong);
}

.hero__subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.hero__meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
}

.hero__meta-item strong {
  font-size: 0.95rem;
  color: #111827;
}

.hero__actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tira de "vuelos en línea" debajo del hero */
.online-strip {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  color: #1d4ed8;
}

.online-strip__label {
  color: #4b5563;
}

.online-strip__value {
  font-weight: 600;
}

/* Versión tema oscuro */
.theme-dark .online-strip {
  background: rgba(15, 23, 42, 0.9);
  border-color: #1f2937;
  color: #38bdf8;
}

.theme-dark .online-strip__label {
  color: #9ca3af;
}

.theme-dark .online-strip__value {
  color: #e5e7eb;
}

/* Mejorar legibilidad de textos en modo oscuro */

.theme-dark .section__title {
  color: #e5e7eb;           /* Títulos de sección mucho más claros */
}

.theme-dark .section__subtitle {
  color: #cbd5f5;           /* Subtítulo debajo del título de sección */
}

.theme-dark .hero__hint {
  color: #cbd5f5;           /* "Pagos en tarjeta..." y textos similares */
}

.theme-dark .hero__subtitle {
  color: #d1d5db;           /* Un poquito más claro que el text-muted base */
}

.theme-dark .card__body {
  color: #d1d5db;           /* Texto dentro de las tarjetas aún más legible */
}

.theme-dark .online-strip__label {
  color: #cbd5f5;           /* "Vuelos virtuales en línea ahora:" más visible */
}

/* ============================
   CONTACTO — DARK MODE FIX
   ============================ */

.theme-dark .contact__title {
  color: #e5e7eb;
}

.theme-dark .contact__subtitle {
  color: #cbd5f5;
}

.theme-dark .contact__email-label {
  color: #e2e8f0;
}

.theme-dark .contact__email {
  color: #38bdf8;
}

.theme-dark .contact__note {
  color: #cbd5f5;
}


/* SECCIONES / GRID / CARDS */

.section {
  margin-bottom: 2.8rem;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section__title {
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
  color: #0f172a;
}

.section__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.section__link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--accent-strong);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.25);
  background-color: #f9fafb;
}

.card__icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.card:hover .card__icon {
  transform: translateY(-2px);
  opacity: 0.95;
}

.card__title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #111827;
}

.card__body {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* CARDS DE RUTAS (MMTY → MMUN, etc.) */

.card.route-card {
  position: relative;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.card.route-card::after {
  content: "✈️";
  position: absolute;
  right: 1.2rem;
  top: 1.1rem;
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card.route-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(#ffffff, #ffffff),
    linear-gradient(130deg, #2563eb, #60a5fa, #a5b4fc);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.card.route-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* CTA FINAL */

.cta {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  border: 1px solid #bfdbfe;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.cta__text {
  max-width: 420px;
}

.cta__text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.cta__text p {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.3rem 1.5rem 1.7rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-note {
  margin-top: 0.25rem;
}

/* ====== EVENT CARD (Próximo evento, estilo ticket) ====== */

.event-card {
  position: relative;
  border-radius: 18px;
  padding: 1.1rem 1.6rem 1.2rem 2.4rem; /* más espacio a la izquierda */
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Barra vertical tipo ticket */
.event-card::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #6366f1, #a855f7);
}

/* Pato enojado POP-IN  */
.event-card::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  width: 60px;
  height: 60px;
  background-image: url("/media/pato-enojado.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.event-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Hover general */
.event-card:hover {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  transform: none;              /* 👈 sin brinco */
}

/* Header evento */

.event-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.event-card__badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 500;
}

.event-card__date {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Título y ruta */

.event-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: #0f172a;
}

/* IMAGEN DENTRO DEL EVENTO */

.event-card__media {
  position: relative;
  margin: 0.4rem 0 0.8rem;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.event-card__media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.96;
}

.event-card:hover .event-card__media img {
  transform: scale(1.03);
  opacity: 1;
}

/* overlay oscuro abajo */
.event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0) 60%
  );
}

/* tag con ruta y hora */
.event-card__media-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.7rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  white-space: nowrap;
}

/* Texto descriptivo y chips */

.event-card__description {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0.45rem 0 0.7rem;
  line-height: 1.4;
}

.event-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.event-card__chip {
  font-size: 0.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #4b5563;
}

.event-card__chip--vatsim {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
  font-weight: 500;
}

.event-card__chip--link {
  text-decoration: none;
  border-color: #2563eb;
  background: #f0f7ff;
  color: #1d4ed8;
}

/* Footer: countdown */

.event-card__footer {
  margin-top: 0.1rem;
}

.event-card__countdown {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
  animation: countdown-pulse 2.2s ease-out infinite;
}

@keyframes countdown-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-card {
    margin-top: 1.5rem;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    margin-top: 0.4rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links a {
    text-align: right;
  }
}

@media (max-width: 768px) {
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-main {
    padding-inline: 1.1rem;
  }

  .top-media video,
  .top-media img {
    height: 200px;
  }
}

/* =========================
   TEMA OSCURO (.theme-dark)
   ========================= */

.theme-dark {
  --bg: #020617;
  --bg-page: #020617;
  --bg-header: rgba(15, 23, 42, 0.92);
  --bg-card: #020617;
  --accent: #60a5fa;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #38bdf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.theme-dark body {
  background: var(--bg-page);
  color: var(--text);
}

.theme-dark .site-header {
  background: var(--bg-header);
  border-bottom-color: #111827;
}

.theme-dark .nav__brand-title {
  color: #e5e7eb;
}

.theme-dark .nav__brand-subtitle {
  color: var(--text-muted);
}

.theme-dark .nav__logo {
  background: radial-gradient(circle at 30% 20%, #0b1120, #38bdf8);
  color: #e5e7eb;
}

.theme-dark .nav__links {
  background: #020617;
  border-color: #1f2937;
}

.theme-dark .nav__link {
  color: var(--text-muted);
}

.theme-dark .nav__link:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #e5e7eb;
}
}

.theme-dark .card {
  background: var(--bg-card);
  border-color: #1f2937;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.theme-dark .card__title {
  color: #e5e7eb;
}

.theme-dark .card__body {
  color: var(--text-muted);
}

.theme-dark .cta {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-color: #1f2937;
}

.theme-dark .cta__text h3 {
  color: #e5e7eb;
}

.theme-dark .cta__text p {
  color: var(--text-muted);
}

.theme-dark .site-footer {
  background: #020617;
  border-top-color: #1f2937;
}

.theme-dark .footer-inner {
  color: var(--text-muted);
}

/* Event card en oscuro */

.theme-dark .event-card {
  background: #020617;
  border-color: #1f2937;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

.theme-dark .event-card__title {
  color: #e5e7eb;
}

.theme-dark .event-card__date,
.theme-dark .event-card__description {
  color: #9ca3af;
}

.theme-dark .event-card__chip {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}

.theme-dark .event-card__chip--link {
  background: rgba(37, 99, 235, 0.1);
  border-color: #38bdf8;
  color: #bae6fd;
}

.theme-dark .event-card__media {
  background: #020617;
}

/* Botón de tema */

.theme-toggle {
  margin-left: 0.8rem;
  font-size: 1.1rem;
  border: 1px solid var(--border-subtle);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* HERO en modo oscuro */

.theme-dark .hero__title {
  color: #e5f0ff;              /* texto principal mucho más claro */
}

.theme-dark .hero__highlight {
  color: #38bdf8;              /* la parte “Sin drama…” más neón */
}

.theme-dark .hero__subtitle {
  color: var(--text-muted);    /* gris claro legible */
}

.theme-dark .hero__meta-item strong {
  color: #e5e7eb;              /* 10,000+ / 97% / 42+ bien visibles */
}

.theme-dark .hero__meta-item {
  color: #9ca3af;              /* etiqueta “Pasajeros felices”, etc. */
}

.theme-dark .hero__badge {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(129, 140, 248, 0.7);
  color: #e5f0ff;
}

/* Logo grande en el header */
.nav__brand--img img {
  height: 52px;           /* tamaño del logo */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .nav__brand--img img {
    height: 42px;         /* versión móvil */
  }
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1rem;
}

.nav__socials .icon {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.nav__socials a:hover .icon {
  fill: var(--accent-strong);
  transform: translateY(-2px);
}

/* Dark mode */
.theme-dark .nav__socials .icon {
  fill: #9ca3af;
}

.theme-dark .nav__socials a:hover .icon {
  fill: #38bdf8;
}

.login-btn {
  margin-left: 1rem;
  font-weight: 600;
  background-color: var(--accent);
  color: white !important;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-btn:hover {
  background-color: var(--accent-strong);
  transform: translateY(-1px);
}

.theme-dark .login-btn {
  background-color: #38bdf8;
}

.theme-dark .login-btn:hover {
  background-color: #0ea5e9;
}

/* ======================================================
   PANEL DE PILOTO — ESTILOS GLOBALES
   ====================================================== */

/* Página principal del panel */
.panel {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  min-height: calc(100vh - 80px);
}

.panel__inner {
  width: 100%;
  max-width: 1100px;
}

/* Encabezado */
.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.panel__title {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.panel__subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
}

.panel__tag {
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.panel__tag-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.panel__tag-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Grids del panel */
.panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .panel__grid {
    grid-template-columns: 1fr;
  }
}
/* Cards SOLO dentro del panel (para no tocar otras .card del sitio) */
.panel .card {
  border-radius: 1.4rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid transparent;
}

.panel .card--primary {
  /* colores concretos se aplican por tema */
}

.panel .card__title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.panel .card__text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1.3rem;
}

.panel .card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem 1.5rem;
}

.panel .card__details dt {
  opacity: 0.7;
  margin-bottom: 0.1rem;
}

.panel .card__details dd {
  font-weight: 500;
}

/* Acciones rápidas */
.card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Stats */
.panel__stats {
  margin-bottom: 2.5rem;
}

.panel__stats-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.panel .stat-card {
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid transparent;
}

.panel .stat-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-card__unit {
  font-size: 0.9rem;
  opacity: 0.8;
}

.stat-card__hint {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Footer panel */
.panel__footer {
  display: flex;
  justify-content: flex-end;
}

/* Responsive panel */
@media (max-width: 768px) {
  .panel {
    padding-top: 2.5rem;
  }

  .panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel__grid {
    grid-template-columns: 1fr;
  }

  .panel__footer {
    justify-content: flex-start;
  }
}

/* Quitar animaciones / brincos SOLO en las tarjetas del panel */
.panel .card,
.panel .stat-card,
.panel__tag {
  transition: none;
  animation: none;
  transform: none;
}

/* === PANEL EN DARK MODE === */
.theme-dark .panel {
  background: transparent;
}

.theme-dark .panel .card,
.theme-dark .panel .stat-card {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.theme-dark .panel__subtitle,
.theme-dark .panel .card__text,
.theme-dark .panel .stat-card__hint {
  color: #cbd5f5;
}

.theme-dark .panel__tag {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

.theme-dark .stat-card__value--good {
  color: #4ade80;
}

.theme-dark .stat-card__value--bad {
  color: #f97373;
}

/* === PANEL EN LIGHT MODE === */
:root:not(.theme-dark) .panel {
  background: #f4f4f5;
}

:root:not(.theme-dark) .panel .card,
:root:not(.theme-dark) .panel .stat-card {
  background: #ffffff;
  color: #020617;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

:root:not(.theme-dark) .panel__subtitle,
:root:not(.theme-dark) .panel .card__text,
:root:not(.theme-dark) .panel .stat-card__hint {
  color: #4b5563;
}

:root:not(.theme-dark) .panel__tag {
  background: #e5edff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

:root:not(.theme-dark) .panel__tag-label {
  color: #64748b;
}

:root:not(.theme-dark) .panel__tag-value {
  color: #1e293b;
}

:root:not(.theme-dark) .stat-card__value--good {
  color: #16a34a;
}

:root:not(.theme-dark) .stat-card__value--bad {
  color: #dc2626;
}

/* ======================================================
   LOGIN DE PILOTOS — ESTILOS GLOBALES
   ====================================================== */

/* Fondo del área de login en light mode */
:root:not(.theme-dark) .login {
  background: #f4f4f5;
}

/* LOGIN EN DARK MODE */
.theme-dark .login__card {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.theme-dark .login__title,
.theme-dark .login__subtitle {
  color: #e2e8f0;
}

.theme-dark .login__field span {
  color: #cbd5e1;
}

.theme-dark .login__field input {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  color: #e2e8f0 !important;
}

.theme-dark .login__field input::placeholder {
  color: #94a3b8 !important;
}

.theme-dark .login__field input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px #38bdf8 !important;
}

/* LOGIN EN LIGHT MODE */
:root:not(.theme-dark) .login__card {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10) !important;
}

.theme-dark .login__card {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45) !important;
}

:root:not(.theme-dark) .login__title {
  color: #0f172a;
}

:root:not(.theme-dark) .login__subtitle {
  color: #475569;
}

:root:not(.theme-dark) .login__field span {
  color: #334155;
}

:root:not(.theme-dark) .login__field input {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important; /* gris suave */
  color: #0f172a !important; /* texto oscuro */
}

:root:not(.theme-dark) .login__field input::placeholder {
  color: #94a3b8 !important;
}

:root:not(.theme-dark) .login__field input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
  background: #ffffff !important;
}

/* Botón login — versión estable sin brincos ni parpadeos */
.btn--login {
  background: linear-gradient(to bottom right, #ffffff, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Hover en modo claro */
.btn--login:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  border-color: rgba(148, 163, 184, 0.45);
}

/* ===== MODO OSCURO ===== */
.theme-dark .btn--login {
  background: linear-gradient(to bottom right, #1e293b, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Hover oscuro SUAVE (sin cambios bruscos que generan flicker) */
.theme-dark .btn--login:hover {
  background: linear-gradient(to bottom right, #243447, #111827);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
/* =========================
   LOGIN — VERSIÓN MÓVIL
   ========================= */
@media (max-width: 640px) {
  .login {
    padding: 2.5rem 1rem 3rem;
    align-items: flex-start; /* evita que quede tan pegado abajo */
  }

  .login__card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    padding: 1.75rem 1.4rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  }

  .login__title {
    font-size: 1.4rem;
    text-align: left;
  }

  .login__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.3rem;
  }

  .login__field input {
    font-size: 0.95rem;
  }

  .btn--login {
    width: 100%;
    text-align: center;
  }

  .login__hint {
    text-align: left;
    font-size: 0.8rem;
  }
}
/* =========================
   PANEL PILOTOS — MÓVIL
   ========================= */
@media (max-width: 640px) {
  .panel {
    padding: 2.2rem 1rem 3rem;
  }

  .panel__inner {
    max-width: 100%;
  }

  .panel__title {
    font-size: 1.5rem;
  }

  .panel__header {
    gap: 0.8rem;
    margin-bottom: 1.4rem;
  }

  .panel__tag {
    align-self: flex-start;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
  }

  .panel__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.8rem;
  }

  .panel .card {
    padding: 1.4rem 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .panel__footer {
    justify-content: flex-start;
  }

  .panel__footer .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .nav {
    padding: 0.6rem 1rem;
  }

  .nav__socials {
    display: none; /* si quieres quitar iconitos en pantallas muy chicas */
  }

  .login-btn {
    padding-inline: 0.9rem;
    font-size: 0.78rem;
  }
}

/* =========================
   THEME TOGGLE — VERSIÓN MÓVIL
   ========================= */
@media (max-width: 640px) {
  .theme-toggle {
    border: none;
    background: transparent;
    padding: 0.15rem;
    margin-left: 0.4rem;     /* pegadito al botón "Iniciar sesión" */
    font-size: 1rem;         /* un poco más pequeño */
    box-shadow: none;
  }

  .theme-toggle:hover {
    background: transparent; /* sin efecto raro en hover */
    transform: none;
  }
}

/* Versión normal del toggle (escritorio) */
.theme-toggle--mobile {
  display: none;
}

@media (max-width: 640px) {
  /* Ocultar el toggle del header */
  .theme-toggle {
    display: none !important;
  }

  /* Mostrar el toggle dentro del menú */
  .theme-toggle--mobile {
    display: inline-flex !important;
    margin-top: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: transparent;
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text);
  }

  .theme-toggle--mobile:hover {
    background: var(--accent-soft);
  }

  .theme-toggle-mobile {
    text-align: center;
    width: 100%;
  }
}
/* Ocultar botón sol/luna en pantallas pequeñas */
@media (max-width: 640px) {
  .theme-toggle {
    display: none !important;
  }
}

/* ===========================
   Layout formularios tipo "join"
   (Únete, Activar, Registro, etc.)
   =========================== */

.join {
  margin-top: 1.5rem;
}

.join__header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: left;
}

.join__title {
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.join__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
  line-height: 1.5;
}

.join__subtitle--small {
  font-size: 0.8rem;
}

.join__box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.7rem;
  transform: none !important;
  box-shadow: none;
}

.join__form-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.join__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.join__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.join__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.join__required {
  color: #ef4444;
  font-weight: 600;
  margin-left: 0.1rem;
}

.join__input {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.join__input::placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
}

.join__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background-color: #f9fafb;
}

.join__actions {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.join__disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Dark mode */
.theme-dark .join__box {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.theme-dark .join__input {
  background: #020617;
  border-color: #1f2937;
  color: var(--text);
}

.theme-dark .join__input::placeholder {
  color: #6b7280;
}

/* ======== Página de Términos y Condiciones ======== */

.terms {
  margin-top: 1.5rem;
}

.terms__header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: left;
}

.terms__title {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.terms__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.terms__box {
  max-width: 820px;
  padding: 2rem 1.6rem;
  margin: 0 auto;
  text-align: left;
  line-height: 1.55;
}

.terms__box h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

.terms__box p {
  font-size: 0.95rem;
  margin: 0.3rem 0 1rem;
  color: var(--text-muted);
}

/* ===== Modo oscuro ===== */
:global(.theme-dark) .terms__title {
  color: #e5e7eb !important;
}

:global(.theme-dark) .terms__subtitle {
  color: #cbd5f5 !important;
}

:global(.theme-dark) .terms__box h2 {
  color: #e2e8f0 !important;
}

:global(.theme-dark) .terms__box p {
  color: #cbd5f5 !important;
}

/* =========================================================
   PÁGINA: ÚNETE / FORMULARIO DE APLICACIÓN
   Estilos extraídos desde unete.astro
   ========================================================= */

.join {
  margin-top: 1.5rem;
}

.join__header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: left;
}

.join__title {
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.join__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
  line-height: 1.5;
}

.join__subtitle--small {
  font-size: 0.8rem;
}

.join__box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.7rem;
  transform: none !important; /* quitar brinco del hover global de .card */
  box-shadow: none;
}

.join__form-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.join__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.join__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.join__field--sm {
  max-width: 180px;
}

.join__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.join__required {
  color: #ef4444;
  font-weight: 600;
  margin-left: 0.1rem;
}

.join__input {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.join__input::placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
}

.join__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background-color: #f9fafb;
}

.join__actions {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.join__disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ALERTAS */
.join__alert {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
}

.join__alert--warning {
  background: #f97316;           /* naranja fuerte */
  border-color: #ea580c;         /* borde más oscuro */
  color: #ffffff;                /* texto blanco */
  font-weight: 600;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.35); /* brillo suave */
}

:global(.theme-dark) .join__alert--warning {
  background: #b45309;      /* naranja quemado para dark mode */
  border-color: #92400e;
  color: #fff7ed;           /* blanco suave */
  box-shadow: 0 0 8px rgba(180, 83, 9, 0.4);
}

/* HONEYPOT */
.honeypot {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* TÉRMINOS */
.join__terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.join__terms input[type="checkbox"] {
  margin-top: 0.15rem;
}

.join__terms-text a {
  text-decoration: underline;
  color: var(--accent);
  font-weight: 500;
}

.join__terms-text a:hover {
  opacity: 0.9;
}

/* MODO OSCURO */
:global(.theme-dark) .join__box {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

:global(.theme-dark) .join__input {
  background: #020617;
  border-color: #1f2937;
  color: var(--text);
}

:global(.theme-dark) .join__input::placeholder {
  color: #6b7280;
}

:global(.theme-dark) .join__alert--warning {
  background: #45210a;
  border-color: #facc15;
  color: #fef9c3;
}

/* Botón sin sombra global */
.join__actions .btn--primary {
  box-shadow: none !important;
}

.join__actions .btn--primary:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Botón que contiene el banner (sin color, sin borde, sin nada) */
.panel__banner-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0.3rem 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
}

/* Banner base */
.vamsys-banner,
.liveries-banner,
.discord-banner {
  width: 210px;    /* Ajusta si quieres */
  height: 55px;    /* Ajusta si quieres */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  pointer-events: none;
}

/* Light mode */
.vamsys-banner {
  background-image: url("/media/vamsys.png");
}
.discord-banner {
  background-image: url("/media/discord.png");
}
.liveries-banner {
  background-image: url("/media/liveries.png");
}

/* Dark mode */
.theme-dark .vamsys-banner {
  background-image: url("/media/vamsys-white.png");
}
.theme-dark .discord-banner {
  background-image: url("/media/discord-white.png");
}
.theme-dark .liveries-banner {
  background-image: url("/media/liveries-white.png");
}

/* =====================================
   FIX SELECT para modo claro / oscuro
   ===================================== */

/* Estilo consistente del dropdown */
.join__input select,
select.join__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='%236b7280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;
  padding-right: 2rem;
}

/* LIGHT MODE */
:root:not(.theme-dark) select.join__input {
  background-color: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text);
}

:root:not(.theme-dark) select.join__input option {
  background: #ffffff;
  color: #111827;
}

/* DARK MODE */
.theme-dark select.join__input {
  background-color: #020617 !important;
  border-color: #1f2937 !important;
  color: #e5e7eb !important;
}

.theme-dark select.join__input option {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

/* =====================================
   FIX: Acomodo final del formulario Únete
   ===================================== */

.join__actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;              /* Separación real entre checkbox, botón y texto */
  align-items: stretch;      /* ¡Importante! Estira todo al ancho del form */
}

/* El checkbox */
.join__terms {
  line-height: 1.45;
}

/* Centrado del botón */
.join__button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;   /* centra el botón */
}

.join__button-wrapper .btn--login {
  width: 60%;                /* Ajustable: 60% se ve muy elegante */
  max-width: 280px;          /* No se hace demasiado grande */
}

/* Disclaimer */
.join__disclaimer {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
}
.join__disclaimer {
  position: relative;
  padding-top: 1rem;
}

.join__disclaimer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--border-subtle);
  opacity: 0.5;
}

/* Estilo oscuro para los campos del formulario de Únete */
.unete-form input,
.unete-form select,
.unete-form textarea {
  background: rgba(15, 23, 42, 0.9);   /* fondo oscuro, similar al login */
  color: #e5e7eb;                      /* texto claro */
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
}

/* Cuando el campo tiene el foco (cuando estás escribiendo) */
.unete-form input:focus,
.unete-form select:focus,
.unete-form textarea:focus {
  background: rgba(15, 23, 42, 0.95);  /* NO se pone blanco */
  color: #e5e7eb;                      /* texto siempre claro */
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* Placeholder un poco más tenue, pero legible */
.unete-form input::placeholder,
.unete-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

/* ============================================================
   FORMULARIO ÚNETE — VARIANTE DARK / LIGHT
   Usa la clase .theme-dark que ya manejas en BaseLayout
   ============================================================ */

/* ---------- DARK MODE (escritorio con tema oscuro) ---------- */
.theme-dark .join__box {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  color: #e5e7eb;
}

.theme-dark .join__form-title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.theme-dark .join__form input,
.theme-dark .join__form select,
.theme-dark .join__form textarea,
.theme-dark .join__input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.7rem 0.9rem;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.theme-dark .join__form input:focus,
.theme-dark .join__form select:focus,
.theme-dark .join__form textarea:focus,
.theme-dark .join__input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.85);
}

.theme-dark .join__form input::placeholder,
.theme-dark .join__form textarea::placeholder,
.theme-dark .join__input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.theme-dark .join__form select option {
  background: #0f172a;
  color: #e5e7eb;
}

/* ---------- LIGHT MODE (sin .theme-dark, móvil y escritorio claro) ---------- */
:root:not(.theme-dark) .join__box {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

:root:not(.theme-dark) .join__form-title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

:root:not(.theme-dark) .join__form input,
:root:not(.theme-dark) .join__form select,
:root:not(.theme-dark) .join__form textarea,
:root:not(.theme-dark) .join__input {
  width: 100%;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.9rem;
  color: #111827;
  font-size: 0.95rem;
}

:root:not(.theme-dark) .join__form input:focus,
:root:not(.theme-dark) .join__form select:focus,
:root:not(.theme-dark) .join__form textarea:focus,
:root:not(.theme-dark) .join__input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: #ffffff;
}

:root:not(.theme-dark) .join__form input::placeholder,
:root:not(.theme-dark) .join__form textarea::placeholder,
:root:not(.theme-dark) .join__input::placeholder {
  color: #9ca3af;
}

/* ---------- Estilos comunes a ambos temas ---------- */
.join__label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.join__required {
  color: #f87171;
}

.join__field {
  margin-bottom: 1rem;
}

.join__field--sm {
  max-width: 150px;
}

.join__terms {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.join__terms-text {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.3;
}

.join__button-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.join__button-wrapper .btn--login {
  width: 100%;
}

.join__disclaimer {
  text-align: center;
  margin-top: 0.8rem;
  opacity: 0.8;
  font-size: 0.85rem;
}

.join__alert {
  margin-bottom: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

.join__alert--warning {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #92400e;
}

@media (max-width: 480px) {
  .join__box {
    padding: 2rem 1.5rem;
  }
}

.online-flights {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.online-flights__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.online-flights__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.online-flights__subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.online-flights__badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  white-space: nowrap;
}

.online-flights__empty {
  font-size: 0.85rem;
  opacity: 0.8;
}

.online-flights__table-wrapper {
  margin-top: 0.35rem;
  max-height: 220px;
  overflow: auto;
}

.online-flights__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  display: none; /* la muestra el JS */
}

.online-flights__table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.online-flights__table th,
.online-flights__table td {
  padding: 0.4rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.online-flights__table th {
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0.7;
}

.online-flights__table tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.24);
}

.online-flights__table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.14);
}

/* Versión light (si usas data-theme="light") */
[data-theme="light"] .online-flights {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .online-flights__table tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .online-flights__table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.08);
}
/* Sección a ancho completo */
.online-flights.fullwidth {
  width: 100%;
  max-width: 1280px; /* O tu ancho máximo global */
  margin: 2rem auto; /* centrada */
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

/* Para que el header, table y badge se alineen bien */
.online-flights.fullwidth .online-flights__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Que la tabla sí ocupe todo */
.online-flights.fullwidth .online-flights__table-wrapper {
  max-height: none;
  width: 100%;
}
/* Sección full-width con buen espaciado para arriba y abajo */
.online-flights--section {
  margin-top: 2.5rem;     /* separa del héroe */
  margin-bottom: 2.5rem;  /* separa de 'Lo que encontrarás…' */
}

/* En pantallas chicas podemos reducirlo */
@media (max-width: 640px) {
  .online-flights--section {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
  }
}

/* Alinear a la izquierda el resumen del piloto */
.card--primary {
  text-align: left;
}

/* Alinear títulos y valores en columnas */
.card__details {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.5rem 1rem;
}

.card__details dt {
  font-weight: 600;
  opacity: 0.8;
  margin: 0;
}

.card__details dd {
  margin: 0;
  font-weight: 500;
}