/* ==========================================================================
   Draikotune Tools — estilos compartidos
   Paleta propia (distinta del morado del dashboard) para que esta rama
   de Draikotune se sienta parte de la familia, pero identificable aparte.
   ========================================================================== */

:root {
  --bg: #09090b;
  --surface: #131316;
  --surface-2: #1b1b1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --muted: #9a9aa2;
  --accent: #c6ff3d;
  --accent-dim: rgba(198, 255, 61, 0.14);
  --accent-ink: #0a1400;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  animation: nav-drop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(19, 19, 22, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, 0.55);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-brand img {
  height: 20px;
  width: auto;
}

.nav-brand .divider {
  color: var(--border-strong);
}

.nav-brand .suffix {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-back:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.5);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.2s ease;
}

.btn-accent:hover {
  opacity: 0.92;
  box-shadow: 0 8px 28px -6px rgba(198, 255, 61, 0.55);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

/* ---------- Badge / eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text);
  opacity: 0.8;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Banner promocional (antes del footer, en todas las páginas) ---------- */

.promo-banner {
  position: relative;
  overflow: hidden;
  margin: 96px auto 0;
  max-width: var(--container);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 12% 15%, rgba(198, 255, 61, 0.1), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(198, 255, 61, 0.07), transparent 40%),
    var(--surface);
  padding: 40px 24px;
  text-align: center;
  /* Altura mínima garantizada — el "bloque de espaciado" queda asegurado
     por esto, no por el padding (que ya vimos que puede fallar por
     cascada). display:flex + justify-content:center centra el contenido
     dentro de ese alto mínimo, dejando aire real arriba y abajo siempre. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.promo-banner::before,
.promo-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 255, 61, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.promo-banner::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
}

.promo-banner::after {
  width: 180px;
  height: 180px;
  bottom: -100px;
  left: -60px;
}

.promo-banner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  line-height: 1.08;
  position: relative;
  z-index: 1;
}

.promo-banner h2 .accent-line {
  color: var(--accent);
}

.promo-banner p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  max-width: 44ch;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.6;
}

.promo-banner .btn-white {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 28px;
  background: #fff;
  color: #0a0a0c;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.promo-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.25);
}

.promo-banner .promo-fine {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .promo-banner {
    margin-top: 64px;
    padding: 40px 32px !important;
    min-height: 560px !important;
    border-radius: var(--radius-lg);
  }
  .promo-banner h2 {
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
  }
  .promo-banner p {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
  }
  .promo-banner::before {
    width: 220px;
    height: 220px;
    top: -90px;
    right: -70px;
  }
  .promo-banner::after {
    width: 160px;
    height: 160px;
    bottom: -70px;
    left: -50px;
  }
  .promo-banner h2 {
    line-height: 1.15;
  }
  .promo-banner p {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.65;
  }
  .promo-banner .btn-white {
    margin-top: 34px;
    padding: 15px 28px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-links {
    display: none;
  }
  .nav {
    top: 10px;
    padding: 0 12px;
  }
  .nav-inner {
    padding: 8px 8px 8px 14px;
  }
  .nav-brand img {
    height: 16px;
  }
  .nav-brand {
    font-size: 12px;
  }
  .nav-back {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .wrap {
    padding: 0 18px;
  }
}
