/* ══════════════════════════════════════════════════
   OBSERVATORIO PROVINCIAL DE TRANSPARENCIA — obs-shared.css
   ══════════════════════════════════════════════════ */

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

:root {
  --ink:        #1a1a1a;
  --ink-mid:    #3d3d3d;
  --ink-light:  #717171;
  --rule:       #d0ccc4;
  --rule-soft:  #e8e4df;
  --paper:      #f7f5f1;
  --white:      #ffffff;
  --primary:    #1d3557;
  --primary-dk: #0f1f35;
  --accent:     #e63946;
  --data:       #2a9d8f;
  --warn:       #e76f51;
  --mono:       'JetBrains Mono', 'Courier New', monospace;
  --serif:      'Libre Baskerville', Georgia, serif;
  --sans:       'Source Sans 3', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 740px; margin: 0 auto; padding: 0 2rem; }

/* HEADER */
header { background: var(--primary-dk); border-bottom: 3px solid var(--accent); }
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.logo {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
nav { display: flex; }
nav a {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  padding: 0 0.85rem;
  height: 60px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: all 0.15s;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
nav a.active { color: var(--white); border-bottom: 2px solid var(--accent); }
.header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-pill {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  transition: all 0.15s;
}
.lang-pill:hover, .lang-pill.active { color: var(--white); border-color: rgba(255,255,255,0.55); }

/* PAGE HEADER */
.page-header {
  background: var(--primary-dk);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}
.page-header .lead {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.7;
}
.page-header .section-label { color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; }

/* SECTION */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--rule-soft); }

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 640px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col--wide { grid-template-columns: 1.5fr 1fr; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #c1121f; }
.btn--outline-dark { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--outline-dark:hover { background: var(--primary); color: var(--white); }

/* DOC ROWS */
.doc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  text-decoration: none;
  transition: all 0.15s;
}
.doc-row:hover { background: var(--white); border-color: var(--primary); }

.doc-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
}
.doc-tag.pdf { background: #fce8e8; color: #b91c1c; }
.doc-tag.xlsx { background: #e8f0fb; color: #1a56b0; }
.doc-tag.csv { background: #e8f4e4; color: #2d7d46; }
.doc-tag.zenodo { background: var(--primary); color: white; }

.doc-name { font-size: 0.82rem; font-weight: 600; color: var(--ink); flex: 1; }
.doc-arrow { font-size: 0.8rem; color: var(--ink-light); margin-left: auto; }

/* FOOTER */
footer { background: var(--primary-dk); color: rgba(255,255,255,0.6); padding: 3rem 0 2rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.footer-desc { font-size: 0.78rem; line-height: 1.65; color: rgba(255,255,255,0.45); }
footer h5 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .two-col, .two-col--wide { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  nav { display: none; }
}
