/* ---------- BASE GENERAL ---------- */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/cloudy.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  line-height: 1.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0,47,108,0.85);
  padding: 14px 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  overflow-x: auto;
  white-space: nowrap;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 0 20px;
  width: max-content;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.menu a:hover {
  color: orange;
  transform: scale(1.05);
}

/* ---------- CONTENIDO PRINCIPAL ---------- */
.content {
  padding-top: 120px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- PANEL TRANSLÚCIDO ---------- */
.panel {
  margin: 50px auto;
  padding: 25px;
  width: 100%;
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: white;
  font-size: 16px;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* ---------- LOGO ---------- */
.logo {
  max-width: 400px;
  height: auto;
  margin-top: 45px;
  margin-left: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* ---------- PANEL CONTACTO + DISCORD ---------- */
.contact-discord-panel {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}

.contact-discord-panel .discord-text {
  flex: 0 0 40%;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  font-size: 16px;
  color: white;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-discord-panel .discord-widget-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-discord-panel .discord-widget-wrapper iframe {
  width: 100%;
  min-height: 300px;
  border-radius: 8px;
}

/* ---------- PANEL ROSTER Y TABLAS ---------- */
.roster-scroll {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  text-align: center;
  margin-bottom: 40px; /* 🔹 separa los paneles */
}

/* ---------- TABLAS AUTOAJUSTABLES ---------- */
.roster-table {
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.05);
  width: 100%;
  table-layout: auto;
}

.roster-table th,
.roster-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-table th {
  background-color: rgba(0, 91, 170, 0.9);
  color: white;
  font-weight: bold;
  text-align: center;
}

.roster-table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- SCROLLBAR PERSONALIZADO ---------- */
.roster-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.roster-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 91, 170, 0.6);
  border-radius: 5px;
}
.roster-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

/* ---------- BOTONES ---------- */
.button,
a.button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #005bbb;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover,
a.button:hover {
  background-color: #004199;
  transform: scale(1.05);
}

/* ---------- MENSAJE DE CARGA ---------- */
.loading-message {
  font-style: italic;
  color: #ccc;
  margin: 10px 0;
}

/* ---------- ÚLTIMOS VUELOS ---------- */
.latest-title {
  text-align: center;
  color: orange;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.landing-good { color: #7CFC00; font-weight: bold; }
.landing-bad  { color: #FF6347; font-weight: bold; }

/* ---------- ANIMACIONES ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   🔸 RESTAURADO: LÍNEA DE TIEMPO (para acerca.html)
   ===================================================== */
.timeline {
  position: relative;
  margin: 50px auto;
  padding: 20px 0;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255,255,255,0.3);
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 20px 30px;
  box-sizing: border-box;
}

.timeline-event::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: orange;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.timeline-event.left {
  left: 0;
  text-align: right;
}

.timeline-event.left::before {
  right: -6px;
}

.timeline-event.right {
  left: 50%;
  text-align: left;
}

.timeline-event.right::before {
  left: -6px;
}

.timeline-event h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
  color: orange;
}

.timeline-event p {
  margin: 0;
  font-size: 0.95em;
  color: #ddd;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-event {
    width: 100%;
    padding-left: 30px;
    text-align: left;
  }

  .timeline-event.left,
  .timeline-event.right {
    left: 0;
  }

  .timeline-event::before {
    left: 0;
  }
}
/* ---------- FOOTER BASE ---------- */
.footer {
  color: white;
  padding: 30px 15px 15px;
  text-align: center;
  font-size: 14px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 10px;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
}

.footer-left p {
  font-style: italic;
  font-size: 13px;
  color: #ffcc00;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffcc00;
}

.footer-social a {
  margin: 0 6px;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, color 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.15);
  color: #ffcc00;
}

.footer-bottom {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 10px;
}

/* ---------- VARIANTES ---------- */

/* 🟦 Fondo sólido (institucional) */
.footer.solid {
  background: linear-gradient(90deg, rgba(0,47,108,0.95), rgba(0,91,170,0.9));
  box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
  border-top: 2px solid rgba(255,255,255,0.1);
}

/* 🌫️ Fondo translúcido (efecto vidrio) */
.footer.glass {
  background: rgba(0, 47, 108, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}
/* --- Asegura que el footer quede siempre al fondo --- */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1; /* Empuja el footer hacia abajo */
}

footer {
  margin-top: auto;
}
