/* =====================================================================
   WalkaMundi — shared styles for content pages
   (About, Press, Contact, Privacy, Terms, Cookies)
   Matches the landing page design system.
   ===================================================================== */

:root {
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --display: "IM Fell English", "EB Garamond", serif;
  --tobacco: #6b4226;
  --slate: #4a6b7c;
  --slate-soft: #7c95a1;
  --paper: #f5efdc;
  --paper-2: #ede3cb;
  --cream: #fbf6e5;
  --terracotta: #a87420;
  --terracotta-2: #c8a24e;
  --terracotta-deep: #6f4f12;
  --olive: #5f7a1f;
  --ink: #2e1f1a;
  --ink-2: #5d4037;
  --ink-3: #8a7163;
  --rule: rgba(46, 31, 26, 0.16);
  --rule-strong: rgba(46, 31, 26, 0.32);
  --ease: cubic-bezier(0.32, 0.72, 0.35, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wm-highlight, #daa520);
  outline-offset: 3px;
  border-radius: 6px;
}

/* paper-noise texture, same as landing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 2; }

/* ===== Layout ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
p { margin: 0; }

.eyebrow {
  font-family: var(--wm-font-mono, "Special Elite", monospace);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.55;
}

/* ===== Header (same as landing) ===== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 220, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.wordmark .ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: 0 0 48px;
  box-shadow: 0 1px 0 rgba(46,31,26,0.1), 0 6px 18px rgba(46,31,26,0.1);
}
.wordmark img.mark { height: 52px; width: auto; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a {
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--terracotta); }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 3px;
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-toggle button.active { background: var(--terracotta); color: #fff; }
.header-right { display: flex; align-items: center; gap: 22px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .site-inner { padding: 12px 20px; }
  .wordmark .ico { width: 38px; height: 38px; flex: 0 0 38px; }
  .wordmark img.mark { height: 38px; }
}

/* ===== Page head ===== */
.page-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/fondo_header.png") top left / auto 100% repeat-x;
  opacity: 0.08;
  mix-blend-mode: multiply;
}
.page-head .container { position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}
.back-link:hover { color: var(--terracotta); gap: 12px; }
.page-head h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  margin: 16px 0 0;
  letter-spacing: -0.015em;
  max-width: 900px;
}
.page-head .intro {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 720px;
}
.page-head .updated {
  font-family: var(--wm-font-mono, "Special Elite", monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 22px;
}

/* ===== Page body / prose ===== */
.page-body { padding: 56px 0 88px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose section { margin-bottom: 44px; }
.prose section:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule-strong);
}
.prose h2 .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  margin-right: 10px;
  font-weight: 500;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.btn) {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease);
}
.prose a:not(.btn):hover { color: var(--terracotta-deep); }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.prose ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "·";
  color: var(--terracotta);
  font-size: 26px;
  line-height: 1;
  margin-top: -5px;
  flex: 0 0 auto;
}
.prose strong, .prose b { color: var(--ink); font-weight: 700; }

/* callout / legal notice */
.note-box {
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--terracotta);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 36px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.note-box strong { color: var(--ink); }

/* fast-facts grid (press) */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 4px 0 8px;
}
@media (max-width: 560px) { .fact-grid { grid-template-columns: 1fr; } }
.fact-grid .fact {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
}
.fact .fact-k {
  font-family: var(--wm-font-mono, "Special Elite", monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fact .fact-v {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* asset / contact cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 4px 0 8px;
}
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: 0 12px 24px rgba(46,31,26,0.08);
}
.info-card .ic {
  width: 44px; height: 44px;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.info-card h3 { margin: 0 0 6px; font-size: 19px; }
.info-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.info-card a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--terracotta);
}
.info-card a.btn:hover { color: var(--terracotta-deep); }

/* ===== Reveal on scroll (same vibe as landing) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Footer (same as landing) ===== */
footer {
  background: var(--ink);
  color: #d4c0a8;
  padding: 64px 0 28px;
  font-size: 14px;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
footer .col h5 {
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
footer .col a {
  display: block;
  color: #d4c0a8;
  text-decoration: none;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.18s var(--ease);
}
footer .col a:hover { color: #fff; }
footer .brand-col .brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
footer .brand-col .brand-row .ico { width: 44px; height: 44px; border-radius: 9px; flex: 0 0 44px; }
footer .brand-col .brand-row img.mark { height: 42px; width: auto; filter: brightness(1.1); }
footer .brand-col p { color: #a89380; line-height: 1.55; }
footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: #a89380;
  font-size: 13px;
}
footer .bottom .langs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--wm-font-mono, "Special Elite", monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
footer .bottom .langs span {
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}
