/* noteveryone.com: estilo editorial (blanco y negro, letras grandes, naranja de acento)
   Lo usan la portada y las páginas nuevas (projects, notes, about, agency, es/agencia). */

:root {
    --bg: #f6f5f2;
    --ink: #0d0d0d;
    --muted: #5d5b56;
    --line: #0d0d0d;
    --line-soft: #cfccc5;
    --acc: #ff4500;
    --acc-ink: #c23500; /* naranja más oscuro para texto pequeño sobre fondo claro */
    --band: #0d0d0d;
    --band-ink: #f6f5f2;
    --band-muted: #b9b6ae;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
::selection { background: var(--acc); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Menú ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; }
.logo { font: 800 18px Manrope, sans-serif; letter-spacing: -.5px; text-decoration: none; color: var(--ink); }
.logo i { color: var(--acc); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--acc-ink); }
.lang { font: 700 12px Manrope, sans-serif; letter-spacing: 1px; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 14px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer; }

/* ---------- Botones y piezas ---------- */
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 16px 26px; border-radius: 999px; text-decoration: none; font-weight: 500; border: 0; font-size: 1rem; cursor: pointer; }
.btn:hover { background: #2a2a2a; }
.btn.acc { background: var(--acc); color: #fff; }
.btn.acc:hover { background: #e03d00; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.mono { font: 400 12px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.tag { font-size: 13px; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.tag.live { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ---------- Portada ---------- */
.hero { padding: 80px 0 70px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { font: 800 clamp(3rem, 10vw, 8.6rem)/.88 Manrope, sans-serif; letter-spacing: -.05em; text-transform: uppercase; position: relative; }
.hero h1 span { color: var(--acc); }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 36px; flex-wrap: wrap; position: relative; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 520px; color: var(--muted); }

/* Retrato pixelado (lo dibuja site.js) */
.retrato { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; aspect-ratio: 1; }
.retrato i { display: block; transition: background-color .9s ease; }
.hero .retrato { position: absolute; right: -30px; top: 24px; width: min(580px, 62vw); }

/* ---------- Secciones ---------- */
.sec { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 60px 0; border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }
.sec-t { font: 700 13px Manrope, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; }
.big { font: 800 clamp(2.2rem, 5vw, 3.6rem)/1 Manrope, sans-serif; letter-spacing: -.03em; }
.big + p, .sec-body > p { font-size: 1.15rem; line-height: 1.6; color: var(--muted); margin: 18px 0 24px; max-width: 640px; }

.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.row:first-child { border-top: 0; padding-top: 0; }
a.row:hover h3 { color: var(--acc-ink); }
.num { font: 700 14px Manrope, sans-serif; color: var(--muted); }
.row h3 { font: 800 1.6rem Manrope, sans-serif; letter-spacing: -.02em; }
.row p { color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 620px; }
.row .learned { margin-top: 10px; font-size: .95rem; color: var(--ink); }
.row .learned b { font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; color: var(--acc-ink); margin-right: 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sec-body a { color: var(--acc-ink); }

/* ---------- Cabecera de página interior ---------- */
.page-head { padding: 70px 0 50px; border-bottom: 1px solid var(--line); }
.page-head h1 { font: 800 clamp(2.8rem, 8vw, 6rem)/.9 Manrope, sans-serif; letter-spacing: -.05em; text-transform: uppercase; }
.page-head h1 span { color: var(--acc); }
.page-head p { margin-top: 24px; }

/* ---------- Texto largo (about, notas) ---------- */
.prose { max-width: 680px; padding: 60px 0; }
.prose h2 { font: 800 1.8rem/1.15 Manrope, sans-serif; letter-spacing: -.02em; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.15rem; line-height: 1.7; color: #2c2b28; margin-bottom: 18px; }
.prose a { color: var(--acc-ink); }
.prose ul { margin: 0 0 18px 22px; font-size: 1.15rem; line-height: 1.7; color: #2c2b28; }

/* ---------- Listas numeradas (Qué hago) ---------- */
.steps { list-style: none; counter-reset: paso; }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { counter-increment: paso; content: "0" counter(paso); font: 700 14px Manrope, sans-serif; color: var(--muted); }
.steps h3 { font: 800 1.4rem Manrope, sans-serif; letter-spacing: -.02em; }
.steps p { color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- Banda oscura y pie ---------- */
.band { background: var(--band); color: var(--band-ink); padding: 80px 0; }
.band .big { color: var(--band-ink); }
.band p { color: var(--band-muted); font-size: 1.15rem; margin: 16px 0 28px; max-width: 620px; }
.footer { background: var(--band); color: var(--band-muted); font-size: 14px; border-top: 1px solid #2a2a2a; padding: 30px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--band-muted); text-decoration: none; }
.footer a:hover { color: var(--band-ink); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); z-index: 20; }
    .nav.abierto .nav-links { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 16px 0; font: 800 1.6rem Manrope, sans-serif; border-top: 1px solid var(--line-soft); }
    .nav-links .lang { display: inline-block; font: 700 12px Manrope, sans-serif; margin: 16px 0; padding: 6px 12px; }
    .hero { min-height: auto; padding: 230px 0 44px; }
    .hero .retrato { width: 270px; right: -24px; top: 12px; gap: 3px; }
    .sec { grid-template-columns: 1fr; gap: 18px; }
    .row { grid-template-columns: 1fr; gap: 6px; }
    .row .tag { justify-self: start; }
    .steps li { grid-template-columns: 1fr; gap: 6px; }
    .page-head { padding: 44px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .retrato i { transition: none; }
}
