:root {
  --bg: #f4f1ec;
  --paper: #ffffff;
  --text: #0f0f0f;
  --muted: #707070;
  --line: rgba(0, 0, 0, 0.08);

  --accent: #8e1c1c;   /* rojo códice */
  --accent2: #0c5e63;  /* turquesa mineral */

  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  transition: background .35s ease, color .35s ease;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
.narrow { max-width: 760px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 236, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.14em;
}
.tagline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.issueMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

.modeToggle {
  font-size: 11px;
  letter-spacing: 0.12em;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.22);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  padding: 120px 0 78px;
}
.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero__title {
  font-weight: 300;
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero__lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 820px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btnPrimary, .btnGhost, .btnInline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.btnPrimary {
  background: var(--text);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: 999px;
}
.btnGhost {
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.section { padding: 78px 0; }
.section--thin { padding: 56px 0; }
.section--alt {
  background: rgba(255,255,255,0.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.h2 {
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 22px;
}
.h2--sm { font-size: 22px; }
.p { margin: 0 0 14px; color: var(--text); }
.p.small { font-size: 13px; color: var(--muted); }

.quickGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.quickCard {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  background: rgba(255,255,255,0.55);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.quickCard:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.75);
}
.quickCard__title {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.quickCard__desc {
  font-size: 13px;
  color: var(--muted);
}

.bullets {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
  overflow: hidden;
}
.bullet {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.bullet:first-child { border-top: 0; }
.bullet__k {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.bullet__v { font-size: 14px; }

.sectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.microLink {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 28, 28, 0.35);
  padding-bottom: 2px;
}

.volGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.volCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: rgba(255,255,255,0.70);
}
.volCard--ghost { opacity: .86; }
.volCard__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.stamp {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.year {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.volCard__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}
.volCard__desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.btnInline {
  color: var(--accent);
  border-bottom: 1px solid rgba(142, 28, 28, 0.35);
  padding-bottom: 2px;
}

.contactBox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: rgba(255,255,255,0.65);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.muted { color: var(--muted); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.active { opacity: 1; transform: none; }

/* Negative mode (laboratorio sutil) */
.dark {
  --bg: #0f0f0f;
  --paper: #121212;
  --text: #f4f1ec;
  --muted: #bfbfbf;
  --line: rgba(244,241,236,0.14);
  --accent: #0c5e63;
  --accent2: #8e1c1c;
}
.dark .topbar { background: rgba(15,15,15,0.86); }
.dark .pill,
.dark .quickCard,
.dark .volCard,
.dark .contactBox,
.dark .bullets,
.dark .btnGhost {
  background: rgba(18,18,18,0.62);
}
.dark .modeToggle { border-color: rgba(244,241,236,0.28); }

/* Responsive */
@media (max-width: 980px) {
  .hero__title { font-size: 44px; }
  .quickGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .volGrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 92px 0 64px; }
  .hero__title { font-size: 36px; }
  .topbar__inner { align-items: flex-start; }
}