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

:root {
  --bg:       #fffcf2;
  --ink:      #1a1814;
  --charcoal: #2e2b26;
  --stone:    #9e9688;
  --border:   #e2ddd4;
  --flame:    #ba181b;
  --flame-dk: #8b1013;

  --serif-title: 'Alfa Slab One', Georgia, serif;
  --serif-body:  'Source Serif 4', Georgia, serif;
  --serif-ui:    'Libre Baskerville', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px solid var(--ink);
  background: var(--bg);
}

.masthead-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}

.masthead-left {
  font-family: var(--serif-ui);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 4px;
}

.masthead-center {
  text-align: center;
}

.logo {
  font-family: var(--serif-title);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  display: block;
}

.logo span { color: var(--flame); }

.tagline {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.3px;
  margin-top: 0.4rem;
  display: block;
}

.masthead-right {
  text-align: right;
  font-family: var(--serif-ui);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 4px;
}

/* ── NAV ── */
nav {
  background: var(--ink);
  border-top: 1px solid var(--charcoal);
  position: relative;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

nav a {
  font-family: var(--serif-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c8c1b0;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  display: block;
  transition: color 0.15s, background 0.15s;
}

nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

nav a.active {
  color: var(--flame);
}

/* HAMBURGER — oculto en desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #c8c1b0;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SECTION RULE ── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-rule span {
  font-family: var(--serif-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--flame);
  white-space: nowrap;
}

.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-rule::before { display: none; }

.section-rule--light::before,
.section-rule--light::after {
  background: rgba(255,255,255,0.12);
}

/* ── HERO ── */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid var(--border);
}

/* HERO MAIN */
a.hero-main {
  padding: 2.5rem 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

a.hero-main::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 280px; height: 280px;
  background: var(--flame);
  opacity: 0.06;
  border-radius: 50%;
  transform: translate(40%, 40%);
  pointer-events: none;
}

a.hero-main:hover { background: #222018; }

.hero-tag {
  font-family: var(--serif-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--serif-title);
  font-size: 42px;
  line-height: 1.1;
  color: var(--bg);
  margin-bottom: 1.25rem;
  flex: 1;
}

.hero-excerpt {
  font-family: var(--serif-body);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: #c0b9a8;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-date {
  font-family: var(--serif-ui);
  font-size: 9px;
  letter-spacing: 1px;
  color: #7a7266;
}

.hero-cta {
  font-family: var(--serif-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flame);
}

/* HERO SIDEBAR */
.hero-sidebar {
  display: flex;
  flex-direction: column;
}

a.sidebar-story {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

a.sidebar-story:last-child { border-bottom: none; }
a.sidebar-story:hover { background: #f5f0e6; }

a.sidebar-story .card-tag {
  font-family: var(--serif-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flame);
}

a.sidebar-story h3 {
  font-family: var(--serif-title);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.15s;
}

a.sidebar-story:hover h3 { color: var(--flame); }

a.sidebar-story p {
  font-family: var(--serif-body);
  font-size: 12.5px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--stone);
}

a.sidebar-story .meta {
  font-family: var(--serif-ui);
  font-size: 8.5px;
  color: #bdb6a9;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ── OPINIÓN ── */
.opinion-section {
  background: var(--ink);
  width: 100%;
}

.opinion-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

a.opinion-card {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
  background: var(--bg);
}

a.opinion-card:hover {
  background: #f5f0e6;
}

.opinion-card-tag {
  font-family: var(--serif-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flame);
}

.opinion-card-title {
  font-family: var(--serif-title);
  font-size: 17px;
  line-height: 1.25;
  color: var(--charcoal);
  flex: 1;
  transition: color 0.15s;
}

a.opinion-card:hover .opinion-card-title {
  color: var(--flame-dk);
}

.opinion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.opinion-author {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 12px;
  font-weight: 300;
  color: var(--stone);
}

.opinion-avatar {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

/* ── RESEÑAS ── */
.resenas-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.resenas-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

.resenas-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
}

.resena-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
  background: var(--bg);
}

.resena-card:hover {
  background: #f5f0e6;
  border-color: var(--stone);
}

.resena-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resena-card--small {
  flex: 1;
}

.resena-type {
  font-family: var(--serif-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flame);
}

.resena-title {
  font-family: var(--serif-title);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.15s;
}

.resena-card--small .resena-title {
  font-size: 17px;
}

.resena-card:hover .resena-title {
  color: var(--flame);
}

.resena-excerpt {
  font-family: var(--serif-body);
  font-size: 13.5px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--stone);
  flex: 1;
}

.resena-card--small .resena-excerpt {
  font-size: 12.5px;
}

.resena-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.resena-score {
  font-size: 11px;
  color: var(--flame);
  letter-spacing: 2px;
}

.resena-author {
  font-family: var(--serif-ui);
  font-size: 8.5px;
  letter-spacing: 1px;
  color: var(--stone);
  text-transform: uppercase;
}

/* ── GLOSARIO ── */
.glosario-section {
  background: var(--charcoal);
  width: 100%;
}

.glosario-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

.glosario-intro {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  color: var(--stone);
  margin-bottom: 2rem;
  margin-top: -1rem;
}

.glosario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

a.glosario-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 2rem;
  background: var(--charcoal);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  align-items: flex-start;
}

a.glosario-card:hover {
  background: #353129;
}

.glosario-letra {
  font-family: var(--serif-title);
  font-size: 56px;
  line-height: 1;
  color: var(--flame);
  opacity: 0.35;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  transition: opacity 0.15s;
}

a.glosario-card:hover .glosario-letra {
  opacity: 0.7;
}

.glosario-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.glosario-term {
  font-family: var(--serif-title);
  font-size: 20px;
  line-height: 1.1;
  color: var(--bg);
}

.glosario-def {
  font-family: var(--serif-body);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--stone);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 3px solid var(--flame);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #2e2b26;
}

.footer-logo {
  font-family: var(--serif-title);
  font-size: 32px;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--flame); }

.footer-p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--stone);
  max-width: 260px;
  line-height: 1.7;
}

.newsletter-label {
  font-family: var(--serif-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.75rem;
  display: block;
}

.sub-btn {
  font-family: var(--serif-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  background: var(--flame);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}

.sub-btn:hover { background: var(--flame-dk); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-ui);
  font-size: 9px;
  letter-spacing: 1px;
  color: #4a4640;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  /* masthead */
  .masthead-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.25rem 1rem;
  }
  .masthead-left, .masthead-right { display: none; }
  .logo { font-size: 42px; }
  .tagline { font-size: 12px; }

  /* nav hamburguesa */
  .nav-inner {
    padding: 0 1.25rem;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 2px;
    font-size: 10px;
  }

  /* hero */
  .hero {
    padding: 2rem 1.25rem 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  a.hero-main {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 1.5rem;
  }

  .hero-title { font-size: 28px; }
  .hero-excerpt { font-size: 14px; }

  /* opinión */
  .opinion-inner {
    padding: 2rem 1.25rem;
  }

  .opinion-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .opinion-card-title { font-size: 15px; }

  /* reseñas */
  .resenas-inner {
    padding: 2rem 1.25rem 2.5rem;
  }

  .resenas-grid {
    grid-template-columns: 1fr;
  }

  .resena-card--featured .resena-title {
    font-size: 20px;
  }

  /* glosario */
  .glosario-inner {
    padding: 2rem 1.25rem 2.5rem;
  }

  .glosario-grid {
    grid-template-columns: 1fr;
  }

  .glosario-letra {
    font-size: 44px;
    width: 38px;
  }

  /* footer */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 34px; }

  .opinion-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-title { font-size: 24px; }

  .resena-title { font-size: 18px; }
  .resena-card--small .resena-title { font-size: 15px; }

  .glosario-letra { font-size: 36px; width: 32px; }
  .glosario-term { font-size: 17px; }
  a.glosario-card { gap: 1rem; padding: 1.5rem 1.25rem; }
}