/* === ACS Global Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
/* ======== BASE ======== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0A1630;
  color: white;
  text-align: center;
  padding-top: 80px; /* to prevent header overlap */
  overflow-x: hidden;
}

/* ======== HERO (limpio y coherente) ======== */
.hero {
  padding: 6rem 1rem;
  background: #081428; /* azul base del logo */
  background-image: none !important;
  box-shadow: none !important;
}

.hero h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #d9d9d9;
  margin-bottom: 2rem;
}

.hero-logo {
  width: 200px;
  margin: 30px auto 25px;
  display: block;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
}

/* ======== BOTÓN ======== */
.hero button {
  background: #FFB300;
  color: #0A1830;
  font-weight: 700;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero button:hover {
  background: #ffcb42;
  transform: scale(1.05);
}

/* ======== FOOTER ======== */
footer {
  padding: 1rem;
  border-top: 1px solid #1A335C;
  color: #bbb;
  font-size: 0.9rem;
}

/* ======== ACS HEADER (Balanced Alignment v2.1) ======== */
.acs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 24, 48, 0.95);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 3.4rem 0.8rem 2.4rem; /* ⬅️ margen derecho ligeramente mayor */
  border-bottom: 2px solid #FFB300;
  z-index: 1000;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* ======== MENU NAV CENTRAL (Optical Centering) ======== */
.acs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1.5rem;
  transform: translateX(18px); /* 🔧 corrección óptica centrada */
}

/* ======== CLOCK POSITION (Right Edge Precision) ======== */
.acs-clock-header {
  margin-right: 18px; /* ⏱ un toque más cerca del borde derecho */
}

/* ======== CLOCK COLOR (Unified Airbus Green) ======== */
.acs-clock-header {
  color: #00ff80; /* Verde Airbus tipo cockpit */
}

/* Scroll effect */
.acs-header.scrolled {
  background: rgba(10, 24, 48, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Logo */
.acs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.acs-logo img {
  height: 36px;
  width: auto;
}

.acs-logo h1 {
  font-size: 1rem;
  color: #FFB300;
  margin: 0;
  letter-spacing: 1px;
}

/* Navigation */
.acs-nav {
  display: flex;
  gap: 1.2rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.acs-nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.acs-nav a:hover {
  color: #FFB300;
}

/* Auth buttons */
.acs-auth {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.acs-auth a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.login-btn {
  border: 1px solid #FFB300;
  color: #FFB300;
  background: transparent;
}

.login-btn:hover {
  background: #FFB300;
  color: #0A1830;
}

.register-btn {
  background: #FFB300;
  color: #0A1830;
}

.register-btn:hover {
  background: #ffcb42;
}

/* ======== LOGO ACS ======== */
.acs-symbol {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFB300;
  background: linear-gradient(145deg, #FFB300, #FFD75E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 2px solid #FFB300;
  border-radius: 8px;
  padding: 4px 8px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
  transition: all 0.4s ease;
}

.acs-symbol:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 187, 0, 0.5);
  text-shadow: 0 0 15px rgba(255, 179, 0, 0.6);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 850px) {
  .acs-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .acs-logo {
    justify-content: center;
    flex-basis: 100%;
  }

  .acs-nav {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 0.4rem;
    gap: 1rem;
  }

  .acs-auth {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

.hero-logo {
  width: 180px;
  margin: 25px auto 10px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.4));
}

/* ======== REGISTER PAGE ======== */
.register-section {
  background: #081428;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 4rem 1rem;
}

.register-section h2 {
  color: #FFB300;
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.register-section p {
  color: #ccc;
  margin-bottom: 2rem;
  text-align: center;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 350px;
}

.register-form input,
.register-form select {
  padding: 0.9rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #0C1F3C;
  color: white;
  font-size: 1rem;
}

.register-form input:focus,
.register-form select:focus {
  border: 2px solid #FFB300;
}

.register-form button {
  background: #FFB300;
  color: #0A1830;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-form button:hover {
  background: #ffcb42;
  transform: scale(1.05);
}

.login-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.login-link a {
  color: #FFB300;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ======== DASHBOARD ======== */
.dashboard {
  background: #081428;
  min-height: 100vh;
  color: white;
  padding: 6rem 2rem;
}

.top-info {
  text-align: center;
  margin-bottom: 3rem;
}

.top-info h2 {
  color: #FFB300;
  font-size: 1.8rem;
}

.top-info .credits {
  color: #00ff88;
  font-weight: 700;
}

.top-info .plan {
  color: #FFB300;
  font-weight: 600;
}

.buy-btn {
  background: #FFB300;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  color: #0A1830;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  background: #ffcb42;
  transform: scale(1.05);
}

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

.panel {
  background: #0C1F3C;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #1A335C;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.panel h3 {
  color: #FFB300;
  margin-bottom: 1rem;
}

.panel ul {
  list-style: none;
  padding: 0;
  color: #ccc;
}

.panel li {
  margin-bottom: 0.8rem;
}

.up {
  color: #00ff88;
  font-weight: 600;
}

.logout-btn {
  color: #FFB300;
  text-decoration: none;
  border: 1px solid #FFB300;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.logout-btn:hover {
  background: #FFB300;
  color: #0A1830;
}

/* =========================================
   CLEAN HEADER — DROPDOWN REMOVED
   ========================================= */
.dropdown,
.dropbtn,
.dropdown-content,
.dropdown-bridge {
  all: unset;
  display: none;
}

.dropbtn::after {
  content: "";
}

/* =======================================================
   GLOBAL AUTH BUTTONS — Unifica Login, Register y Logout
   ======================================================= */
.login-btn,
.register-btn,
.logout-btn {
  border: 1px solid #FFB300;
  color: #FFB300;
  background: transparent;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.login-btn:hover,
.register-btn:hover,
.logout-btn:hover {
  background: #FFB300 !important; /* fondo dorado */
  color: #000000 !important;      /* letras negras */
  transform: scale(1.05);
}

/* ============================================================
   === ACS FMS CLOCK DISPLAY (MCDU Green Style) ===
   Version: 1.3
   Date: 2025-11-08
   ============================================================ */
.acs-clock-header {
  color: #00FF9C; /* Verde FMS */
  font-family: 'Orbitron', 'Consolas', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-left: auto;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.9);
  user-select: none;
  animation: fmsGlow 3s ease-in-out infinite;
}

@keyframes fmsGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 255, 156, 0.8); }
  50% { text-shadow: 0 0 16px rgba(0, 255, 156, 1); }
}
