/* ===============================
   Reset + variables
================================ */

:root {
  --bg: #0f1115;
  --panel: #161a22;
  --text: #e6e8ee;
  --muted: #9aa0ad;
  --accent: #ff3d00;   /* rojo-anaranjado */
  --border: #262b36;

  --neon: #39ff14;     /* verde neón para hover */
  --shadow: rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* ===============================
   Header
================================ */

.topbar {
  border-bottom: 1px solid var(--border);
  background: #0c0e13;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 240px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-name span {
  color: var(--accent);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===============================
   NAV como botonera (4 botones)
================================ */

.nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 0.85rem;
  border-radius: 12px;

  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;

  color: var(--text);
  background: rgba(22, 26, 34, 0.75);
  border: 1px solid var(--border);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease;
}

/* Botón "activo" (Resetea) */
.nav-btn--primary {
  background: linear-gradient(180deg, rgba(255, 61, 0, 0.95), rgba(255, 61, 0, 0.65));
  border-color: rgba(255, 61, 0, 0.55);
  color: #0b0d12;
  box-shadow: 0 14px 40px rgba(255, 61, 0, 0.18);
}

.nav-btn:hover,
.nav-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(57, 255, 20, 0.7);
  box-shadow:
    0 0 0 3px rgba(57, 255, 20, 0.15),
    0 18px 55px rgba(0, 0, 0, 0.55);

  /* Hover creativo: brillo neón + leve cambio de contraste */
  filter: saturate(1.15) contrast(1.05);

  /* Efecto "borde neón" suave */
  background:
    radial-gradient(120px 40px at 20% 10%, rgba(57, 255, 20, 0.22), transparent 70%),
    rgba(22, 26, 34, 0.85);
  color: var(--neon);
  outline: none;
}

/* Evita hover agresivo en el activo: mantiene identidad naranja pero añade neon sutil */
.nav-btn--primary:hover,
.nav-btn--primary:focus-visible {
  color: #0b0d12;
  border-color: rgba(57, 255, 20, 0.55);
  background:
    radial-gradient(140px 50px at 20% 10%, rgba(57, 255, 20, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 61, 0, 0.98), rgba(255, 61, 0, 0.62));
}

/* ===============================
   Hero
================================ */

.hero {
  padding: 4rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.hero p {
  margin-top: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 16px 45px rgba(255, 61, 0, 0.16);
}

.primary:hover,
.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(57, 255, 20, 0.12),
    0 18px 60px rgba(0, 0, 0, 0.55);
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(22, 26, 34, 0.55);
}

.ghost:hover,
.ghost:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(57, 255, 20, 0.6);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  color: var(--neon);
}

.notice {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  font-size: 0.85rem;
  border-radius: 12px;
}

/* ===============================
   Hero card
================================ */

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.steps {
  list-style: none;
}

.steps li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.steps span {
  background: var(--accent);
  color: #000;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border-radius: 7px;
}

/* ===============================
   Panel
================================ */

.panel {
  padding: 4rem 0;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.group {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 14px;
}

.group h3 {
  margin-bottom: 1rem;
}

.item {
  margin-bottom: 1.2rem;
}

.item label {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  align-items: center;
}

.actions {
  margin-left: 1.5rem;
  margin-top: 0.4rem;
}

.actions a {
  margin-right: 0.8rem;
  font-size: 0.8rem;
}

/* ===============================
   Info sections
================================ */

.info {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.info.alt {
  background: #0c0e13;
}

/* ===============================
   Footer
================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===============================
   Responsive
================================ */

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

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

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0;
  }

  .brand {
    min-width: unset;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
