:root {
  --bg: #0b1220;
  --bg-2: #0f1729;
  --panel: #141e33;
  --border: #24304a;
  --text: #e8edf5;
  --muted: #9aa7bd;
  --green: #4cc764;
  --green-dark: #3aa851;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand span { color: var(--green); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-links a.cta {
  background: var(--green); color: #08130b; padding: 8px 18px; border-radius: 8px;
}
.nav-links a.cta:hover { background: var(--green-dark); color: #08130b; }
/* Nav en movil: las anclas sobran (se llega con scroll) y GitHub/Ko-fi ya estan en el footer */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a[href^="#"]:not(.cta) { display: none; }
}
@media (max-width: 480px) {
  .nav-links a:not(.cta) { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: url("/imgs/hero.jpg") center 35% / cover no-repeat;
  padding: 110px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,18,32,0.96) 25%, rgba(11,18,32,0.72) 60%, rgba(11,18,32,0.55));
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.1;
}
.hero h1 span { color: var(--green); }
.hero .tagline {
  display: block; line-height: 1.5;
  margin-top: 6px; font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.35em; font-weight: 600; color: #cfd8e6; text-transform: uppercase;
}
.hero p.lead {
  margin-top: 22px; max-width: 560px; font-size: 1.15rem; color: #c4cedd;
}
.hero-buttons { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px; font-size: 1.05rem; font-weight: 700;
  transition: background 0.15s;
}
.btn-green { background: var(--green); color: #08130b; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border: 1px solid #46536e; color: #e8edf5; background: rgba(20,30,51,0.6); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn svg { flex: none; }
.hero-chips { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 0.85rem; font-weight: 600; color: #c4cedd;
  border: 1px solid #3a4763; border-radius: 999px; padding: 5px 14px;
  background: rgba(15,23,41,0.65);
}
.chip b { color: var(--green); }

/* ---- Sections ---- */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.section-sub { margin-top: 10px; color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.shot {
  margin-top: 40px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.shot-caption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; text-align: center; font-style: italic; }

/* ---- Features grid ---- */
.grid {
  margin-top: 46px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(76,199,100,0.12); margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; color: #fff; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---- Split section ---- */
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 10px; }
.split .shot { margin-top: 0; }
.split ul { margin-top: 18px; list-style: none; }
.split li { padding-left: 30px; position: relative; margin-bottom: 12px; color: #c4cedd; }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- Download ---- */
.steps { margin-top: 42px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #08130b;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 0.96rem; }
.step b { color: var(--text); }
.note {
  margin-top: 30px; background: rgba(76,199,100,0.07); border: 1px solid rgba(76,199,100,0.35);
  border-radius: 12px; padding: 18px 22px; color: #c4cedd; font-size: 0.95rem;
}
.note b { color: var(--green); }
.dl-cta { margin-top: 38px; text-align: center; }
.dl-cta .btn { font-size: 1.15rem; padding: 16px 36px; }
.dl-meta { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }

/* ---- FAQ ---- */
.faq { margin-top: 42px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: #fff;
  list-style: none; position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 1.4rem; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); }
.faq details p a { font-weight: 600; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--green); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   Paginas de guia (/deepnest-alternative/, /how-to-nest-dxf-files/, ...)
   ============================================================ */

/* Cabecera de pagina interior: sin foto, para que el texto cargue rapido */
.page-head { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 54px 0 44px; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: #fff;
  letter-spacing: -1px; line-height: 1.15; max-width: 860px;
}
.page-head .lead { margin-top: 18px; max-width: 720px; font-size: 1.12rem; color: #c4cedd; }

/* Migas: mismo orden que el BreadcrumbList del JSON-LD */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span { margin: 0 8px; opacity: 0.6; }

/* Cuerpo del articulo */
.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem); font-weight: 800; color: #fff;
  letter-spacing: -0.4px; margin-top: 46px; margin-bottom: 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; color: #fff; margin-top: 30px; margin-bottom: 8px; }
.prose p { color: #c4cedd; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.prose ol { counter-reset: prose-step; }
.prose li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #c4cedd; }
.prose ul > li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800;
}
.prose ol > li { counter-increment: prose-step; }
.prose ol > li::before {
  content: counter(prose-step) "."; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.prose b, .prose strong { color: var(--text); }
.prose .shot { margin: 30px 0; }
.prose .note { margin-bottom: 24px; }
.prose > .btn { margin-top: 8px; }

/* Tabla comparativa (solo /deepnest-alternative/) */
.table-scroll { overflow-x: auto; margin-bottom: 24px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.prose th, .prose td {
  border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top;
}
.prose th { background: var(--panel); color: #fff; font-weight: 700; }
.prose td { color: #c4cedd; }

/* Rejilla de guias: tarjetas que son enlaces enteros */
.guides { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guide {
  display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; color: inherit; transition: border-color 0.15s;
}
.guide:hover { border-color: var(--green); }
.guide h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.guide p { color: var(--muted); font-size: 0.94rem; }

/* Cierre de cada guia: CTA + saltos a las hermanas */
.next-up { margin-top: 52px; border-top: 1px solid var(--border); padding-top: 34px; }
.next-up h2 { font-size: 1.2rem; color: #fff; margin-bottom: 16px; }
.next-up ul { list-style: none; }
.next-up li { margin-bottom: 10px; }
.next-up a { font-weight: 600; }
