/* ============================================================
   NORDWISE — style.css
   Identidad visual: negro #121212 · burdeos #940126
   No hace falta tocar este archivo para editar contenido.
   ============================================================ */

:root {
  --bg:       #121212;
  --bg-alt:   #181818;
  --bg-card:  #1d1d1d;
  --bg-card2: #252525;
  --red:      #940126;
  --red-h:    #b01030;
  --light:    #E2E1E1;
  --mid:      #BBC3C7;
  --dim:      #888888;
  --white:    #ffffff;
  --border:   rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.16);
  --red-soft: rgba(148,1,38,0.35);

  --f-h: 'Epilogue', system-ui, sans-serif;
  --f-b: 'Figtree', system-ui, sans-serif;
  --f-m: 'JetBrains Mono', monospace;

  --pad:   clamp(24px, 5vw, 68px);
  --sec-y: clamp(84px, 9vw, 130px);
  --max-w: 1140px;
  --r: 18px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--light);
  font-family: var(--f-b); font-size: 16.5px; line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, transparent, var(--red) 35%, var(--red) 65%, transparent);
}
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--f-h); color: var(--white); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: transparent;
  background: linear-gradient(100deg, var(--red-h), #e0355f); -webkit-background-clip: text; background-clip: text; }
a { color: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 860px; }
.wrap-prose  { max-width: 760px; }
.center { text-align: center; }
.section { padding: var(--sec-y) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.sec-lead { color: var(--mid); margin-top: 16px; font-size: 17px; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-h); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 26px; height: 1px; background: currentColor; }

/* ── Botones ── */
.btn-p, .btn-o {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; text-decoration: none;
  font-family: var(--f-b); font-size: 14.5px; font-weight: 500;
  cursor: pointer; border: none; transition: all .22s ease;
}
.btn-p { background: var(--red); color: var(--white); box-shadow: 0 8px 28px -10px var(--red-soft); }
.btn-p:hover { background: var(--red-h); transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--red-soft); }
.btn-o { background: transparent; color: var(--light); border: 1px solid var(--border-2); }
.btn-o:hover { border-color: rgba(255,255,255,0.35); color: var(--white); transform: translateY(-2px); }
.btn-big { padding: 17px 38px; font-size: 15.5px; }
.arr { transition: transform .22s; display: inline-block; }
.btn-p:hover .arr, .card-link:hover .arr, .post-card:hover .arr { transform: translateX(4px); }

/* ── Nav ── */
.nw-nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 200; height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad);
  background: rgba(18,18,18,0); transition: background .3s, border-color .3s, height .3s;
  border-bottom: 1px solid transparent;
}
.nw-nav.scrolled { background: rgba(18,18,18,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); height: 62px; }
.nw-logo { font-family: var(--f-h); font-weight: 800; font-size: 21px; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.nw-logo span { color: var(--red-h); }
.nw-links { display: flex; gap: 26px; }
.nw-links a { color: var(--mid); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; position: relative; padding: 6px 0; }
.nw-links a:hover { color: var(--white); }
.nw-links a.on { color: var(--white); }
.nw-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); border-radius: 2px; }
.nw-nav-right { display: flex; align-items: center; gap: 14px; }
.nw-lang { font-family: var(--f-m); font-size: 12.5px; color: var(--mid); text-decoration: none; border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; transition: all .2s; }
.nw-lang:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-nav { padding: 10px 22px; font-size: 13.5px; }
.nw-burger { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nw-burger span { width: 20px; height: 2px; background: var(--light); transition: all .25s; border-radius: 2px; }
body.menu-open .nw-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nw-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nw-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.hero-home  { padding: clamp(150px, 18vw, 210px) 0 var(--sec-y); }
.hero-inner { padding: clamp(130px, 14vw, 175px) 0 clamp(56px, 6vw, 84px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 8%, rgba(148,1,38,0.16), transparent 65%),
    radial-gradient(ellipse 40% 35% at 8% 92%, rgba(148,1,38,0.07), transparent 60%);
}
.hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 70px); align-items: center; }
.hero-inner .hero-grid { grid-template-columns: 1fr; }
.hero-desc { color: var(--mid); font-size: clamp(16.5px, 1.6vw, 19px); max-width: 560px; margin-top: 24px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-ctas.center { justify-content: center; }
.hero-micro { font-family: var(--f-m); font-size: 11px; letter-spacing: .14em; color: var(--dim); margin-top: 30px; text-transform: uppercase; }

/* Panel decorativo del hero (home) */
.hero-panel {
  background: linear-gradient(160deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 28px; font-family: var(--f-m); font-size: 13px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(148,1,38,0.06);
  transform: rotate(1.2deg);
}
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-tag { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.panel-badge { background: rgba(148,1,38,.18); color: #e0637f; font-size: 10.5px; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(148,1,38,.35); }
.panel-big { font-size: 30px; color: var(--white); font-weight: 500; margin-bottom: 20px; }
.panel-big small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; margin-top: 4px; }
.panel-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); }
.panel-row .lbl { color: var(--dim); }
.panel-row .val { color: var(--light); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 2px; }
.dot.ok { background: #3ecf7a; box-shadow: 0 0 8px rgba(62,207,122,.6); }

/* ── Grids y tarjetas ── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card, .post-card, .testi, .pillar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::before, .post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.card-link, .post-card { text-decoration: none; display: block; }
.card-link:hover, .post-card:hover { transform: translateY(-5px); border-color: var(--red-soft); background: var(--bg-card2); }
.card-link:hover::before, .post-card:hover::before { opacity: 1; }
.card-tag { font-family: var(--f-m); font-size: 11px; color: var(--red-h); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.card h3, .post-card h3 { margin-bottom: 12px; font-size: 20px; }
.card p, .post-card p { color: var(--mid); font-size: 14.5px; }
.card-price { font-family: var(--f-m); color: var(--white); font-size: 17px; margin-top: 18px; }
.card-more { display: inline-flex; gap: 8px; align-items: center; color: var(--red-h); font-size: 13.5px; font-weight: 600; margin-top: 20px; }

/* ── Stats ── */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: clamp(44px, 5vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-n { font-family: var(--f-m); font-size: clamp(30px, 3.6vw, 44px); color: var(--white); font-weight: 500; }
.stat-n::after { content: ''; display: block; width: 26px; height: 2px; background: var(--red); margin: 12px auto 10px; border-radius: 2px; }
.stat-l { color: var(--dim); font-size: 13.5px; }

/* ── About + pilares ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.about-copy p { color: var(--mid); margin: 18px 0; }
.about-copy .btn-o { margin-top: 10px; }
.pillars { display: grid; gap: 16px; }
.pillar { padding: 24px 26px; }
.pillar h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pillar h3::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--red); flex-shrink: 0; }
.pillar p { color: var(--mid); font-size: 14px; }

/* ── Pasos ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-card); }
.step-n { font-family: var(--f-m); font-size: 13px; color: var(--red-h); margin-bottom: 40px; }
.step-n::after { content: ''; position: absolute; top: 62px; left: 24px; right: 24px; height: 1px; background: var(--border); }
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { color: var(--mid); font-size: 14px; }

/* ── Checklist ── */
.checklist { list-style: none; display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; font-size: 15.5px; }
.tick { color: var(--red-h); font-weight: 700; flex-shrink: 0; }

/* ── Qué es ── */
.what-desc { color: var(--mid); font-size: 17.5px; margin-top: 20px; max-width: 720px; }

/* ── Precio ── */
.price-box { text-align: center; background: linear-gradient(170deg, var(--bg-card2), var(--bg-card)); border: 1px solid var(--red-soft); border-radius: 22px; padding: clamp(40px, 5vw, 60px); max-width: 560px; margin: 0 auto; box-shadow: 0 30px 80px -40px var(--red-soft); }
.price-badge { display: inline-block; background: rgba(148,1,38,.18); color: #e0637f; border: 1px solid rgba(148,1,38,.4); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 30px; margin-bottom: 22px; }
.price-value { font-family: var(--f-m); font-size: clamp(44px, 6vw, 64px); color: var(--white); font-weight: 500; letter-spacing: -0.03em; }
.price-note { color: var(--mid); font-size: 15px; margin: 14px 0 30px; }

/* ── FAQ ── */
.faq-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--red-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; text-align: left; background: none; border: none; color: var(--white); font-family: var(--f-b); font-size: 15.5px; font-weight: 600; padding: 20px 24px; cursor: pointer; }
.faq-ico { position: relative; width: 26px; height: 26px; border: 1px solid var(--border-2); border-radius: 50%; flex-shrink: 0; transition: all .25s; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.6px; background: var(--light); transform: translate(-50%, -50%); transition: all .25s; }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-ico { background: var(--red); border-color: var(--red); }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--mid); font-size: 14.5px; line-height: 1.8; }

/* ── Testimonios ── */
.privacy-badge { text-align: center; color: var(--dim); font-size: 13px; margin: -28px auto 40px; }
.testi blockquote { color: var(--light); font-size: 15px; line-height: 1.75; margin-bottom: 22px; }
.testi blockquote::before { content: '“'; display: block; font-family: var(--f-h); font-size: 44px; color: var(--red-h); line-height: 1; margin-bottom: 8px; }
.testi figcaption strong { display: block; color: var(--white); font-size: 14.5px; }
.testi figcaption span { color: var(--dim); font-size: 13px; }

/* ── Blog ── */
.post-meta { display: flex; gap: 8px; font-family: var(--f-m); font-size: 12px; color: var(--dim); margin-bottom: 16px; flex-wrap: wrap; }
.post-card .post-meta { margin-bottom: 14px; }
.post-back { display: inline-block; color: var(--dim); text-decoration: none; font-size: 13.5px; margin-bottom: 26px; transition: color .2s; }
.post-back:hover { color: var(--white); }
.post-body { padding-bottom: var(--sec-y); }
.post-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.post-tags span { font-family: var(--f-m); font-size: 11.5px; color: var(--mid); border: 1px solid var(--border-2); padding: 5px 14px; border-radius: 30px; }

/* ── Prosa (blog + legales) ── */
.prose { color: var(--mid); font-size: 16.5px; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; margin: 36px 0 12px; }
.prose h4 { font-size: 16.5px; margin: 28px 0 10px; }
.prose p { margin: 16px 0; }
.prose ul, .prose ol { margin: 16px 0 16px 22px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--red-h); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--white); }
.prose blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 22px; margin: 24px 0; color: var(--light); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose code { font-family: var(--f-m); font-size: .88em; background: var(--bg-card2); padding: 2px 7px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border-2); padding: 10px 14px; text-align: left; }
.prose th { color: var(--white); background: var(--bg-card); }

/* ── CTA final ── */
.cta-final { background:
  radial-gradient(ellipse 60% 70% at 50% 110%, rgba(148,1,38,0.18), transparent 70%), var(--bg); border-top: 1px solid var(--border); }
.cta-final .hero-ctas { margin-top: 34px; }

/* ── Footer ── */
.nw-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: clamp(56px, 6vw, 80px) 0 0; }
.f-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 48px; }
.f-brand p { color: var(--dim); font-size: 14px; margin: 16px 0; max-width: 260px; }
.f-mail { color: var(--mid); font-size: 14px; text-decoration: none; }
.f-mail:hover { color: var(--white); }
.f-col h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 16px; }
.f-col a { display: block; color: var(--mid); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
.f-col a:hover { color: var(--white); }
.f-bottom { border-top: 1px solid var(--border); padding: 22px var(--pad); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: none; }

/* ── 404 ── */
.err-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ── Animación de aparición ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nw-links { display: none; }
  .nw-burger { display: flex; }
  body.menu-open .nw-links {
    display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(18,18,18,0.98); border-bottom: 1px solid var(--border);
    padding: 20px var(--pad) 30px; gap: 4px; z-index: 190;
  }
  body.menu-open .nw-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: repeat(3, 1fr); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-nav { display: none; }
}
