* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fondo: #070b1f;
  --fondo-2: #0d1330;
  --card: #121a3a;
  --card-2: #182247;
  --texto: #ffffff;
  --texto-2: #aeb7d8;
  --morado: #6d3df4;
  --morado-2: #8757ff;
  --azul: #2f6bff;
  --verde: #2d9e6b;
  --rojo: #dc2626;
  --borde: rgba(255,255,255,0.12);
  --sombra: 0 18px 40px rgba(0,0,0,0.25);
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  height: 72px;
  border-bottom: 1px solid var(--borde);
  background: rgba(7,11,31,0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--morado-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--texto-2);
}

.nav-links a:hover {
  color: white;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--morado), var(--morado-2));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(109,61,244,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--borde);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

.btn-danger {
  background: var(--rojo);
  color: white;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: var(--sombra);
}

.input,
.select,
.textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--borde);
  color: white;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #7d86aa;
}

.label {
  font-size: 0.85rem;
  color: var(--texto-2);
  margin-bottom: 7px;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-green {
  background: rgba(45,158,107,0.15);
  color: #56d89d;
}

.badge-yellow {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
}

.badge-red {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}

.grid {
  display: grid;
  gap: 18px;
}

.empty {
  color: var(--texto-2);
  padding: 24px;
  text-align: center;
}

.footer {
  padding: 32px 0;
  margin-top: 56px;
  border-top: 1px solid var(--borde);
  color: var(--texto-2);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .navbar {
    height: auto;
    min-height: 64px;
  }

  .navbar-inner {
    padding: 12px 0;
    gap: 12px;
  }

  .logo,
  .logo-img {
    flex: 0 0 auto;
  }

  .logo-img img {
    max-width: 120px;
    height: auto;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a,
  .nav-links button {
    white-space: nowrap;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
  }

  .btn-small {
    width: auto;
    min-height: 38px;
    padding: 9px 12px;
  }

  .input,
  .select,
  .textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .page {
    padding-top: 24px;
  }

  .page-head h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .page-head p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* =========================
   APP PROMO BANNER
   ========================= */

.app-promo-banner {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109,61,244,0.22), rgba(47,107,255,0.14)),
    rgba(255,255,255,0.06);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

.app-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.app-promo-text {
  display: grid;
  gap: 3px;
  flex: 1;
}

.app-promo-text strong {
  font-size: 0.95rem;
}

.app-promo-text span {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.app-promo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-promo-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--morado), var(--morado-2));
  color: white;
  font-weight: 900;
  font-size: 0.82rem;
  white-space: nowrap;
}

.app-promo-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.app-promo-banner.hide {
  display: none;
}

@media (max-width: 760px) {
  .app-promo-banner {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    padding: 12px;
  }

  .app-promo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .app-promo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .app-promo-btn {
    padding: 9px 11px;
    text-align: center;
  }

  .app-promo-close {
    width: 100%;
    height: 32px;
  }
}

/* =========================
   RESPONSIVE NAVBAR GENERAL
   ========================= */

@media (max-width: 760px) {
  .navbar {
    height: auto;
    min-height: 64px;
  }

  .navbar-inner {
    padding: 10px 0;
    align-items: center;
    gap: 12px;
  }

  .logo-img img {
    max-width: 118px;
    height: auto;
  }

  .nav-links {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    max-width: 58vw;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-links button {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
  }
}

@media (max-width: 390px) {
  .logo-img img {
    max-width: 104px;
  }

  .nav-links {
    max-width: 56vw;
  }

  .nav-links a,
  .nav-links button {
    font-size: 0.7rem;
    padding: 7px 9px;
  }
}