/*
  base.css — tokens de diseño y estilos base compartidos por el blog de Noboru.

  Extraído del <style> inline de index.html (no lo reemplaza: el homepage y las
  páginas de servicio existentes siguen con su propio <style> auto-contenido,
  sin cambios). Este archivo es el punto de partida para /blog y para cada
  nuevo artículo — así no se duplican los tokens y estilos base en cada página
  nueva de la serie.
*/

:root {
  --bg: #0b0b0d;
  --cream: #faf6ef;
  --tint: #1d1712;
  --paper: #171310;
  --beige: #201a15;
  --line: rgba(255,255,255,.12);
  --ink: #f5f4f1;
  --ink-soft: rgba(245,244,241,.72);
  --muted: rgba(245,244,241,.46);
  --red: #d6431f;
  --red-dark: #ad3617;
  --red-soft: rgba(214,67,31,.18);
  --ochre: #d9a441;
  --ochre-soft: rgba(217,164,65,.18);
  --ochre-deep: #f0c674;
  --sage: #5fb87a;
  --sage-soft: rgba(95,184,122,.18);
  --dark: #000000;
  --dark-line: rgba(255,255,255,.10);
  --dark-text: rgba(245,244,241,.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; }

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

.accent { color: var(--red); }

/* ── NAV ── */
nav {
  position: fixed; top:0; left:0; right:0; z-index:200;
  display:flex; justify-content:space-between; align-items:center;
  padding: 20px 56px;
  background: transparent;
}
.nav-bg { position:absolute; inset:0; background: rgba(11,11,13,.86); backdrop-filter: blur(6px); opacity:0; transition: opacity .3s; z-index:-1; }
nav.scrolled .nav-bg { opacity:1; border-bottom:1px solid var(--line); }

.logo { font-family:'Montserrat', sans-serif; font-style:italic; font-size:25px; font-weight:900; letter-spacing:.01em; color:var(--ink); text-decoration:none; line-height:1; }
.nav-links { display:flex; align-items:center; gap:40px; }
.nav-link { font-size:14px; font-weight:500; color:var(--ink-soft); text-decoration:none; transition:color .2s; }
.nav-link:hover { color:var(--red); }
.nav-cta {
  font-size:13px; font-weight:600;
  color:var(--cream); background:var(--red);
  padding:11px 24px; border-radius:8px; text-decoration:none;
  transition:background .2s;
  border:none; cursor:pointer; font-family:inherit;
}
.nav-cta:hover { background:var(--red-dark); }

/* ── BUTTONS ── */
.btn-main {
  background:var(--red); color:var(--cream);
  font-size:14px; font-weight:600;
  padding:16px 30px; border-radius:10px; text-decoration:none;
  transition:background .2s, box-shadow .2s; white-space:nowrap;
  display:inline-block; border:none; cursor:pointer; font-family:inherit;
  box-shadow: 0 14px 28px -10px rgba(214,67,31,.45);
}
.btn-main:hover { background:var(--red-dark); }
.btn-outline {
  font-size:14px; font-weight:600;
  color:var(--ink); text-decoration:none;
  padding:16px 26px; border-radius:10px;
  border:1.5px solid var(--line);
  transition:border-color .2s, color .2s; white-space:nowrap;
  display:inline-block;
}
.btn-outline:hover { color:var(--red); border-color:var(--red); }

/* ── SECTION SHELL ── */
section { padding: 120px 56px; border-bottom:1px solid var(--line); }
.section-head { max-width:720px; margin-bottom:64px; }
.eyebrow {
  display:inline-block; font-family:'JetBrains Mono', monospace;
  font-size:12px; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--red); margin-bottom:18px;
}
.section-title { font-size:clamp(32px,4.2vw,52px); font-weight:800; }
.section-sub { font-size:16px; line-height:1.7; color:var(--muted); margin-top:18px; max-width:560px; }

/* ── BLOG: LISTADO DE ARTÍCULOS ── */
.post-list { display:flex; flex-direction:column; gap:20px; max-width:820px; }
.post-card {
  display:block; background:var(--paper); border:1px solid var(--line); border-radius:14px;
  padding:32px; text-decoration:none; transition:border-color .2s;
}
.post-card:hover { border-color:var(--red); }
.post-card:hover .post-arrow { transform:translateX(4px); }
.post-meta {
  display:flex; align-items:center; gap:10px;
  font-family:'JetBrains Mono', monospace; font-size:11.5px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color:var(--red); margin-bottom:14px;
}
.post-title { font-size:22px; font-weight:800; color:var(--ink); margin-bottom:10px; line-height:1.3; }
.post-excerpt { font-size:15px; line-height:1.65; color:var(--muted); margin-bottom:18px; max-width:640px; }
.post-arrow { display:inline-block; font-size:14px; font-weight:700; color:var(--ink-soft); transition:transform .2s; }

/* ── BLOG: ARTÍCULO ── */
.article-wrap { max-width:720px; }
.article-back {
  font-size:13.5px; font-weight:600; color:var(--muted); text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; margin-bottom:28px; transition:color .2s;
}
.article-back:hover { color:var(--red); }
.article-meta {
  font-family:'JetBrains Mono', monospace; font-size:12px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color:var(--red); margin-bottom:20px;
}
.article-h1 {
  font-size:clamp(32px,4.2vw,52px); font-weight:800; line-height:1.12;
  letter-spacing:-.02em; max-width:720px; margin-bottom:44px;
}
.article-body { max-width:700px; }
.article-body p { font-size:16.5px; line-height:1.8; color:var(--ink-soft); margin-bottom:24px; }
.article-body h2 { font-size:clamp(24px,2.8vw,32px); font-weight:800; color:var(--ink); margin:52px 0 20px; }
.article-body ul { margin:0 0 24px 22px; }
.article-body li { font-size:16.5px; line-height:1.8; color:var(--ink-soft); margin-bottom:10px; }
.article-body strong { color:var(--ink); font-weight:700; }
.article-cta { margin-top:56px; padding-top:40px; border-top:1px solid var(--line); max-width:700px; }
.article-cta p { font-size:16px; line-height:1.7; color:var(--muted); margin-bottom:22px; max-width:560px; }

/* ── CTA (reutilizado del homepage) ── */
.cta { display:grid; grid-template-columns:1fr 460px; gap:72px; align-items:start; }
.cta-title { font-size:clamp(34px,4.6vw,54px); font-weight:800; }
.cta-desc { font-size:16px; line-height:1.8; color:var(--muted); margin-top:22px; max-width:460px; }
.contact-block { margin-top:36px; }
.contact-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 0; border-top:1px solid var(--line);
  text-decoration:none; color:var(--ink); transition:color .2s;
}
.contact-block .contact-row:last-child { border-bottom:1px solid var(--line); }
.contact-row:hover { color:var(--red); }
.contact-row:hover .c-arrow { transform:translateX(4px); }
.c-type { font-family:'JetBrains Mono', monospace; font-size:10.5px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); width:90px; flex-shrink:0; }
.contact-row:hover .c-type { color:var(--red); }
.c-val { font-size:15px; font-weight:600; flex:1; }
.c-arrow { font-size:16px; transition:transform .2s; }
.cta-note { font-size:12.5px; color:var(--muted); margin-top:18px; }

/* ── FOOTER ── */
footer { padding:28px 56px; display:flex; justify-content:space-between; align-items:center; border-bottom:none; }
.f-l, .f-r { font-family:'JetBrains Mono', monospace; }
.f-l { font-size:11.5px; font-weight:500; color:var(--muted); }
.f-r { font-size:11.5px; color:var(--muted); opacity:.7; }

/* ── ANIMS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
.reveal { opacity:0; transform:translateY(32px); transition:opacity .7s ease, transform .7s ease; }
.reveal.on { opacity:1; transform:translateY(0); }
.d1{transition-delay:.08s;} .d2{transition-delay:.16s;} .d3{transition-delay:.24s;} .d4{transition-delay:.32s;}

/* ── RESPONSIVE ── */
@media (max-width:960px) {
  nav { padding:16px 24px; }
  .nav-links { display:none; }
  section { padding-left:24px; padding-right:24px; padding-top:100px; padding-bottom:80px; }
  .section-head { margin-bottom:44px; }

  .article-h1 { margin-bottom:32px; }
  .article-body p, .article-body li { font-size:15.5px; }

  .cta { grid-template-columns:1fr; gap:40px; }

  footer { flex-direction:column; gap:10px; text-align:center; }
}
