@import url('mobile.css');

/* La Botella y la Mosca — estilos compartidos (páginas internas) */

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

:root {
  --black:  #111;
  --white:  #fff;
  --bg:     #f2f1ee;
  --line:   #dddcd8;
  --gray:   #777;
  --lgray:  #aaa;
  --serif:  'Jost', 'Futura', 'Century Gothic', sans-serif;
  --sans:   'Jost', 'Futura', 'Century Gothic', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.hero-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  height: 72px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-left:hover { color: #fff; }

.hbg { display: flex; flex-direction: column; gap: 5px; }
.hbg span { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 1px; }

.menu-lbl {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-center { display: flex; justify-content: center; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-link img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.logo-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.1rem;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nav-icon:hover { color: #fff; }
.nav-icon svg { width: 15px; height: 15px; fill: currentColor; }

.nav-buscar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.4rem;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-buscar:hover { color: #fff; }
.nav-buscar svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── MENÚ LATERAL ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.side-menu {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100%;
  background: var(--black);
  z-index: 200;
  padding: 2.5rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.86,0,0.07,1);
}
.side-menu.open { transform: none; }

.menu-close {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  margin-bottom: 2.5rem;
}

.side-menu nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.side-menu nav a:hover,
.side-menu nav a.active { color: #fff; }
.side-menu nav a.active { font-weight: 500; }

/* ── BUSCADOR ── */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 12vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }

.search-box { width: 100%; max-width: 680px; padding: 0 2rem; }

.search-input-wrap {
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  gap: 0.75rem; padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.search-input-wrap svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 2; flex-shrink: 0; }

.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--sans); font-size: 1.6rem; font-weight: 300;
  color: #fff; caret-color: #fff;
}
.search-input::placeholder { color: rgba(255,255,255,0.2); }

.search-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); font-size: 1.2rem;
  transition: color 0.2s;
}
.search-close:hover { color: #fff; }

.search-result-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.15s;
}
.search-result-item:hover .sr-title { opacity: 0.7; }

.sr-cat {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 0.25rem;
}
.sr-title {
  font-size: 0.95rem; font-weight: 500; color: #fff;
  line-height: 1.3; transition: opacity 0.2s;
}
.sr-author { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }
.search-hint {
  font-size: 0.72rem; color: rgba(255,255,255,0.25);
  text-align: center; margin-top: 1.5rem;
}

/* ── HERO DE PÁGINA ── */
.page-hero {
  margin-top: 72px;
  background: var(--black);
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.page-hero-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── LAYOUT ── */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* ── CONTENIDO PROSA ── */
.content-section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.content-section:last-of-type { border-bottom: none; }

.sobre-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.sobre-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lgray);
  padding-top: 0.35rem;
}

.sobre-body h2 {
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.sobre-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.sobre-body p, .prose p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.sobre-body ul, .prose ul {
  margin: 0 0 1.2rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: #444;
  line-height: 1.8;
}

.sobre-body li, .prose li { margin-bottom: 0.4rem; }

/* ── BOTONES ── */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--black);
  padding: 0.7rem 2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
}
.btn-outline:hover { background: var(--black); color: #fff; }

.btn-black {
  display: inline-block;
  background: var(--black);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-black:hover { background: #333; }

/* ── GRILLA ARTÍCULOS ── */
.sec-head-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.sec-head-line h2 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sec-head-line a {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.sec-head-line a:hover { color: var(--black); }

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1.5px solid var(--line);
}

.art-card {
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 0.2s;
}
.art-card:hover { background: #eceae6; }

.art-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.75rem;
}

.art-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: auto;
  padding-bottom: 1rem;
  transition: opacity 0.2s;
}
.art-card:hover .art-card-title { opacity: 0.65; }

.art-card-author {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--gray);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: 0.15s;
}
.filter-btn:hover,
.filter-btn.active { background: var(--black); color: #fff; border-color: var(--black); }

/* ── ARCHIVO DE ARTÍCULOS ── */
.archive-section {
  margin-top: 72px;
  padding: 3rem 0 5rem;
  background: var(--bg);
}

.archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.archive-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.5rem;
}

.archive-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.archive-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  max-width: 340px;
  text-align: right;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-bottom: 2rem;
}

.archive-filters a {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgray);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.archive-filters a:hover { color: var(--black); }

.archive-filters a.active {
  color: var(--black);
  border-bottom-color: var(--black);
  font-weight: 600;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
}

.archive-grid .card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.archive-grid .card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #ccc;
  overflow: hidden;
  position: relative;
}

.archive-grid .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-grid .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.archive-grid .ph.c1 { background: #3a3a4a; }
.archive-grid .ph.c2 { background: #2a3a2a; }
.archive-grid .ph.c3 { background: #3a2a2a; }
.archive-grid .ph.c4 { background: #2a3038; }
.archive-grid .ph.c5 { background: #38302a; }
.archive-grid .ph.c6 { background: #2a3838; }

.archive-grid .card-body {
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-grid .card-meta {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.45rem;
  display: flex;
  gap: 0.6rem;
}

.archive-grid .card-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.35rem;
  transition: opacity 0.2s;
}

.archive-grid .card-title:hover { opacity: 0.55; }

.archive-grid .card-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: #555;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.archive-grid .card-author {
  font-size: 0.68rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 0.5rem;
}

.archive-empty {
  grid-column: 1 / -1;
  background: var(--bg);
  padding: 4rem 2rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-header { flex-direction: column; align-items: flex-start; }
  .archive-desc { text-align: left; max-width: none; }
}

@media (max-width: 560px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-section { padding: 2rem 0 3.5rem; }
}

/* ── QUIÉNES SOMOS ── */
.about-page {
  margin-top: 72px;
  padding: 3rem 0 0;
  background: var(--bg);
}

.about-lead {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.about-visual {
  position: relative;
  margin: 0 -2rem 2.5rem;
  height: 38vh;
  min-height: 240px;
  max-height: 380px;
  overflow: hidden;
  background: var(--black);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.88;
}

.about-visual-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}

.about-visual-cap span {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.35rem;
}

.about-visual-cap strong {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  max-width: 520px;
}

.about-issue {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.about-issue-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
}

.about-issue-theme {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lgray);
}

.about-logo img {
  width: 100%;
  height: auto;
}

.about-lead-text {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.65;
  color: #333;
  max-width: 560px;
}

.about-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.about-block-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lgray);
  padding-top: 0.4rem;
}

.about-block-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.about-block-body p {
  font-size: 0.94rem;
  font-weight: 300;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.about-block-body p:last-child { margin-bottom: 0; }

.about-quote {
  margin: 0;
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.about-quote p {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--black);
  max-width: 680px;
  margin: 0 auto 1rem;
}

.about-quote cite {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lgray);
}

.about-quote--secondary {
  background: #e8e7e3;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-bottom: none;
}

.about-pillars {
  background: #e8e7e3;
  padding: 3rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-pillars-head {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-pillar-num {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lgray);
  margin-bottom: 0.65rem;
}

.about-pillar h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.about-pillar p {
  font-size: 0.84rem;
  font-weight: 300;
  color: #555;
  line-height: 1.75;
}

.about-sections {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.about-sections-head {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.about-sections-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1.5px solid var(--line);
}

.about-sections-list a {
  display: block;
  background: var(--bg);
  padding: 1.1rem 1.25rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.about-sections-list a:hover {
  background: #eceae6;
}

.about-sections-list span {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.about-team {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.about-team-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.about-team-head h2 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.about-member-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.about-member-rol {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.75rem;
}

.about-member-bio {
  font-size: 0.84rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

.about-cta {
  padding: 3.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.about-cta h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.about-cta p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
}

@media (max-width: 860px) {
  .about-lead { grid-template-columns: 1fr; }
  .about-logo { max-width: 120px; }
  .about-block { grid-template-columns: 1fr; gap: 1rem; }
  .about-pillars-grid { grid-template-columns: 1fr; }
  .about-sections-list { grid-template-columns: 1fr; }
  .about-team-grid { grid-template-columns: 1fr; }
  .about-cta { grid-template-columns: 1fr; }
  .about-visual { margin: 0 -2rem 2rem; }
  .archive-header { flex-direction: column; align-items: flex-start; }
  .archive-desc { text-align: left; max-width: none; }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ── ARTÍCULO INDIVIDUAL ── */
body.article-page .article-header {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.article-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.article-cat {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-meta {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--lgray);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-featured {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 2rem 0;
}

.article-body {
  padding: 3rem 0 5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #333;
}
.article-body p { margin-bottom: 1.4rem; }

.lang-switch {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.lang-switch a {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--gray);
  transition: 0.15s;
}
.lang-switch a:hover,
.lang-switch a.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

/* ── BARRA DE LECTURA (scroll en artículo) ── */
body.article-page { margin-top: 72px; }

body.article-page.reading-scrolled { margin-top: 0; }

.read-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.read-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(17, 17, 17, 0.22);
  transition: width 0.15s ease-out;
  will-change: width;
}

body.reading-scrolled .read-progress {
  top: 56px;
  background: rgba(0, 0, 0, 0.05);
}

body.read-bg-dark .read-progress {
  background: rgba(255, 255, 255, 0.06);
}

body.read-bg-dark .read-progress-fill {
  background: rgba(255, 255, 255, 0.28);
}

body.article-page.reading-scrolled .hero-nav {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.article-read-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 56px;
  background: var(--read-bar-bg, #eceae6);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.reading-scrolled .article-read-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.read-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.read-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.read-bar-left a {
  flex-shrink: 0;
  display: flex;
}

.read-bar-left img.logo-light,
.read-bar-left img.logo-dark {
  height: 22px;
  width: auto;
}
.read-bar-left img.logo-dark { display: none; }
body.read-bg-dark .read-bar-left img.logo-light { display: none; }
body.read-bg-dark .read-bar-left img.logo-dark { display: block; }

.read-bar-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--read-bar-text, var(--black));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-bar-tools {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.read-bar-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 0 0.35rem;
}

.read-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 52px;
  padding: 0.2rem 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--read-bar-text, var(--black));
  transition: opacity 0.15s;
}

.read-tool:hover { opacity: 0.55; }

.read-tool svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.read-tool-label {
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
}

.read-tool-icon svg { width: 18px; height: 18px; }

.read-tool-pdf svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }

/* Modos de lectura */
body.read-bg-sepia {
  --bg: #f4f0e6;
  --read-bar-bg: #ede8dc;
}

body.read-bg-dark {
  --bg: #1a1a1a;
  --black: #f0f0f0;
  --read-bar-bg: #222;
  --read-bar-text: #eee;
  --line: #333;
  --gray: #aaa;
  --lgray: #777;
}

body.read-bg-dark .article-body { color: #ccc; }
body.read-bg-dark .article-subtitle { color: #999; }
body.read-bg-dark .hero-nav { background: rgba(10,10,10,0.98); }

body.read-size-sm .article-body { font-size: 0.92rem; }
body.read-size-lg .article-body { font-size: 1.12rem; line-height: 1.9; }

@media (max-width: 768px) {
  .read-tool-label { display: none; }
  .read-tool { min-width: 36px; }
  .read-bar-sep { margin: 0 0.15rem; }
}

@media (max-width: 520px) {
  .read-bar-tools {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

@media print {
  .hero-nav, .article-read-bar, .read-progress, .lang-switch, .cta-section, footer,
  #navShell, #siteFooter {
    display: none !important;
  }
  body.article-page { margin-top: 0; }
}

/* ── AUTORES ── */
.authors-page {
  margin-top: 72px;
  padding: 3rem 0 0;
  background: var(--bg);
}

.authors-loading,
.authors-empty {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--lgray);
  padding: 2rem 0 3rem;
}

.authors-list {
  padding: 1rem 0 0;
}

.author-back {
  padding: 0.5rem 0 1.5rem;
}

.author-back a {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}

.author-back a:hover {
  color: var(--black);
}

.author-profile--solo {
  border-bottom: none;
  padding-top: 0;
}

.author-no-works {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--lgray);
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

a.author-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

a.author-card:hover {
  opacity: 0.72;
}

.author-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.author-profile:first-child {
  padding-top: 0.5rem;
}

.author-profile-photo {
  aspect-ratio: 4 / 5;
  background: #e8e7e3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-placeholder {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #bbb;
  text-transform: uppercase;
}

.author-profile-meta {
  margin-bottom: 0.5rem;
}

.author-profile-rol {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lgray);
}

.author-profile-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--black);
}

.author-profile-bio p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1rem;
  max-width: 640px;
}

.author-profile-bio p:last-child {
  margin-bottom: 0;
}

.author-profile-works {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.author-profile-biblio {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.author-profile-biblio h3,
.author-profile-works h3 {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 1rem;
}

.author-articles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-articles li + li {
  border-top: 1px solid var(--line);
}

.author-articles a.author-art-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  align-items: start;
}

.author-articles a.author-art-card:hover {
  opacity: 0.72;
}

.author-art-thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  background: #e8e7e3;
}

.author-art-thumb--empty {
  background: #e8e7e3;
}

.author-art-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.author-art-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: #666;
  line-height: 1.45;
  margin: 0.15rem 0;
}

.author-art-date {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--lgray);
  margin-top: 0.15rem;
}

.author-articles a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.author-articles a:hover {
  opacity: 0.65;
}

.author-art-cat {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lgray);
}

.author-art-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
}

.authors-collab {
  padding: 3.5rem 0 0;
}

.authors-collab-head {
  margin-bottom: 2rem;
}

.authors-collab-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.authors-collab-head p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray);
}

.authors-collab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.author-collab-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
}

.author-collab-initial {
  width: 40px;
  height: 40px;
  background: #e8e7e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 0.85rem;
}

.author-collab-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-collab-count {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--lgray);
}

.authors-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.authors-cta h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.authors-cta p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
}

/* Legacy cards (admin preview) */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.author-card-foto {
  aspect-ratio: 1;
  background: #e8e7e3;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  overflow: hidden;
}
.author-card-foto img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.author-rol {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.65rem;
}

.author-bio {
  font-size: 0.82rem;
  font-weight: 300;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.author-count {
  font-size: 0.68rem;
  color: var(--lgray);
}

/* ── NÚMEROS ── */
.nums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.num-cover {
  aspect-ratio: 3/4;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}
a:hover .num-cover { opacity: 0.85; }

.num-n {
  font-size: 1.8rem;
  font-weight: 200;
  color: #fff;
  letter-spacing: 0.06em;
}

.num-fecha {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.35rem;
}

.num-tema {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.num-sub {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--gray);
}

/* ── FORMULARIOS ── */
.form-section { padding: 5rem 0; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #999; }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lgray);
}

.word-counter {
  font-size: 0.68rem;
  color: var(--lgray);
  text-align: right;
  margin-top: 0.35rem;
}

.word-counter.over-limit {
  color: #c0392b;
}

.form-msg {
  font-size: 0.82rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.form-msg.ok { color: #2a7a40; }
.form-msg.err { color: #c0392b; }

.form-footer-link {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 1.5rem;
  text-align: center;
}

.form-footer-link a {
  color: var(--black);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.colab-intro {
  font-size: 0.88rem;
  font-weight: 300;
  color: #555;
  line-height: 1.65;
  max-width: 640px;
}

.colab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.colab-actions h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.colab-actions p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray);
}

.colab-actions-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.form-msg {
  font-size: 0.82rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
}
.form-msg.ok { background: #e6f4ea; color: #2a7a40; }
.form-msg.err { background: #fdecea; color: #c0392b; }

/* ── CTA ── */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .authors-grid { grid-template-columns: 1fr 1fr; }
  .author-profile { grid-template-columns: 160px 1fr; gap: 2rem; }
  .authors-collab-grid { grid-template-columns: 1fr 1fr; }
  .authors-cta { flex-direction: column; align-items: flex-start; }
  .nums-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .hero-nav { padding: 0 1.25rem; }
  .art-grid,
  .authors-grid,
  .nums-grid { grid-template-columns: 1fr; }
  .author-profile { grid-template-columns: 1fr; }
  .author-profile-photo { max-width: 200px; }
  .author-articles a.author-art-card { grid-template-columns: 1fr; }
  .author-art-thumb { width: 100%; height: 140px; }
  .authors-collab-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
