/* Estilos compartidos de las guias de maticai.app.
   Paleta tomada de la landing (Matic AI - Web.html) para que sean consistentes. */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f172a;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none;
}

.nav-logo-icon { width: 26px; height: 26px; object-fit: contain; }
.nav-logo span { color: var(--blue-light); }
.nav-cta {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: .6rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: .9rem;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-light); }

/* ---------- Articulo ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }

.crumb { color: var(--muted-2); font-size: .85rem; margin-bottom: 1.25rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue-light); }

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15;
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 2.5rem; }

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 700;
  margin: 3rem 0 1rem; letter-spacing: -.01em;
}
h3 { font-size: 1.15rem; font-weight: 650; margin: 2rem 0 .6rem; }

p { color: #cbd5e1; margin-bottom: 1.1rem; }
strong { color: #fff; font-weight: 650; }

ul, ol { color: #cbd5e1; margin: 0 0 1.4rem 1.25rem; }
li { margin-bottom: .55rem; }

a { color: var(--blue-light); }

table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem;
  display: block; overflow-x: auto; white-space: nowrap;
}
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #fff; font-weight: 650; background: rgba(255,255,255,.03); }
td { color: #cbd5e1; }

.callout {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 1.2rem 1.4rem; margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(96,165,250,.06));
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 18px; padding: 2rem; margin: 3.5rem 0 2rem; text-align: center;
}
.cta h2 { margin-top: 0; }
.cta-btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: .85rem 1.8rem; border-radius: 12px; font-weight: 650; margin-top: .5rem;
  transition: background .2s;
}
.cta-btn:hover { background: var(--blue-light); }
.cta-note { color: var(--muted-2); font-size: .85rem; margin-top: .9rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 4rem;
  padding: 2.5rem 1.5rem; text-align: center; color: var(--muted-2); font-size: .9rem;
}
footer nav { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue-light); }

@media (max-width: 640px) {
  .wrap { padding-top: 6.5rem; }
  .nav-logo { font-size: 1rem; }
}
