/* ================================================================
   CONSTRUCTIVA — BLOG CSS DESIGN SYSTEM
   Paleta editorial: Sepia terracota + IBM Plex Sans + Inter
   ================================================================ */

/* ------------------------------------------------------------------
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ------------------------------------------------------------------ */
:root {
  /* === Tipografía === */
  --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* === Paleta de color === */
  /* Warm Paper base */
  --c-bg:           #F7F4EE;   /* Fondo base sepia cálido */
  --c-bg-alt:       #FDFCF9;   /* Fondo alternativo (cards) */
  --c-bg-elevated:  #FFFFFF;   /* Fondo elevado (modales, tooltips) */

  /* Neutrales / Texto */
  --c-text:         #2C2723;   /* Espresso oscuro principal */
  --c-text-muted:   #6E6760;   /* Texto secundario */
  --c-text-subtle:  #9B948F;   /* Texto muy tenue */

  /* Terracota — color editorial principal */
  --c-primary:      #CD5414;   /* Terracota Constructiva */
  --c-primary-dark: #A8400D;
  --c-primary-soft: #F5E0D5;   /* Fondo suave primario */

  /* Bordes y divisores */
  --c-border:       #E3DBD0;
  --c-border-soft:  #EDE8E0;

  /* Categorías (colores de badge) */
  --c-infraestructura: #CD5414;
  --c-urbanismo:       #2563EB;
  --c-tecnologia:      #059669;
  --c-sostenibilidad:  #7C3AED;
  --c-mercado:         #D97706;
  --c-politica:        #DC2626;

  /* === Sombras === */
  --shadow-xs:  0 1px 3px rgba(44,39,35,.06);
  --shadow-sm:  0 2px 8px rgba(44,39,35,.08);
  --shadow-md:  0 4px 20px rgba(44,39,35,.10);
  --shadow-lg:  0 8px 40px rgba(44,39,35,.14);

  /* === Transiciones === */
  --t-fast:  .15s ease;
  --t-base:  .25s ease;
  --t-slow:  .4s ease;

  /* === Radio === */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* === Layout === */
  --container-max: 1200px;
  --container-px:  clamp(1rem, 4vw, 3rem);
  --header-h:      68px;
}

/* ------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }
input, textarea, select { font: inherit; }

/* ------------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--c-text);
}

.text-display  { font-size: clamp(2.5rem, 5vw, 4rem);   letter-spacing: -0.035em; }
.text-hero     { font-size: clamp(2rem, 4vw, 3rem);     letter-spacing: -0.03em; }
.text-title    { font-size: clamp(1.5rem, 3vw, 2rem);   letter-spacing: -0.025em; }
.text-heading  { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.text-subhead  { font-size: 1.125rem; font-weight: 500; }
.text-body     { font-size: 1rem; line-height: 1.75; }
.text-sm       { font-size: .875rem; }
.text-xs       { font-size: .75rem; }

.font-heading  { font-family: var(--font-heading); }
.font-serif    { font-family: var(--font-serif); }
.font-body     { font-family: var(--font-body); }

.text-muted    { color: var(--c-text-muted); }
.text-subtle   { color: var(--c-text-subtle); }
.text-primary  { color: var(--c-primary); }

/* ------------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--wide {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sm { padding-block: clamp(2rem, 4vw, 3rem); }

.article-page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ------------------------------------------------------------------
   5. HEADER / NAVBAR
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 125px;
  background-color: rgba(247,244,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}

.site-header.scrolled {
  height: var(--header-h);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
  background-color: rgba(247,244,238,.97);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.site-logo:hover { opacity: .8; }

.brand-logo-image {
  display: block;
  width: auto;
  height: 95px;
  object-fit: contain;
  transition: height var(--t-base);
}

.site-header.scrolled .brand-logo-image {
  height: 42px;
}

/* Main nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  padding: .45rem .85rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--c-text); background: var(--c-border-soft); }
.nav-link.active { color: var(--c-primary); background: var(--c-primary-soft); font-weight: 600; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: var(--c-text); background: var(--c-border-soft); }

/* Search bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg-elevated);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
  box-shadow: var(--shadow-md);
}
.search-bar.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .5rem 1rem;
  transition: border-color var(--t-fast);
}
.search-form:focus-within { border-color: var(--c-primary); }
.search-icon { color: var(--c-text-subtle); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: .9375rem;
  color: var(--c-text);
}
.search-input::placeholder { color: var(--c-text-subtle); }

/* Mobile menu */
.mobile-menu-btn { display: none; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg-elevated);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.mobile-nav-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.mobile-nav-link:hover { color: var(--c-text); background: var(--c-border-soft); }
.mobile-nav-cta { color: var(--c-primary); font-weight: 700; }

/* ------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .875rem;
  padding: .6rem 1.1rem;
  transition: all var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border: 1.5px solid var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(205,84,20,.25);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-border-soft); color: var(--c-text); }

.btn-sm  { font-size: .8125rem; padding: .45rem .875rem; }
.btn-lg  { font-size: 1rem; padding: .85rem 1.75rem; border-radius: var(--r-md); }
.btn-xl  { font-size: 1.0625rem; padding: 1rem 2rem; border-radius: var(--r-md); }

/* ------------------------------------------------------------------
   7. CATEGORY BADGES
   ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.badge:hover { transform: translateY(-1px); }

.badge-infraestructura { background: #FEE8DD; color: #913B0E; }
.badge-urbanismo       { background: #DBEAFE; color: #1E40AF; }
.badge-tecnologia      { background: #D1FAE5; color: #065F46; }
.badge-sostenibilidad  { background: #EDE9FE; color: #5B21B6; }
.badge-mercado         { background: #FEF3C7; color: #92400E; }
.badge-politica        { background: #FEE2E2; color: #991B1B; }
.badge-default         { background: var(--c-border-soft); color: var(--c-text-muted); }

/* ------------------------------------------------------------------
   8. POST CARDS
   ------------------------------------------------------------------ */

/* --- FEATURED / HERO CARD --- */
.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  color: inherit;
}
.card-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-featured__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.card-featured__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.card-featured__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--c-text);
  transition: color var(--t-fast);
}
.card-featured:hover .card-featured__title { color: var(--c-primary); }

.card-featured__excerpt {
  font-size: .9375rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-featured__stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--c-text-subtle);
}

.card-featured__image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.card-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card-featured:hover .card-featured__image img { transform: scale(1.04); }

.card-featured__image .read-time-pill {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

/* --- STANDARD GRID CARD --- */
.card-post {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  color: inherit;
}
.card-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-post__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c-border-soft);
}
.card-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card-post:hover .card-post__image img { transform: scale(1.05); }

.read-time-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  background: rgba(253,252,249,.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .03em;
  color: var(--c-text);
  box-shadow: var(--shadow-xs);
}

.card-post__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.card-post__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.card-post:hover .card-post__title { color: var(--c-primary); }

.card-post__excerpt {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--c-border-soft);
  margin-top: auto;
}

.card-post__stats {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* --- HORIZONTAL LIST CARD --- */
.card-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  color: inherit;
}
.card-list:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-list__image {
  overflow: hidden;
  background: var(--c-border-soft);
}
.card-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card-list:hover .card-list__image img { transform: scale(1.06); }

.card-list__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  justify-content: center;
}

.card-list__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.card-list:hover .card-list__title { color: var(--c-primary); }

.card-list__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   9. AUTHOR CHIP
   ------------------------------------------------------------------ */
.author-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.author-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--c-border);
  background: var(--c-border-soft);
  flex-shrink: 0;
}

.author-chip__name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

/* Author chip large */
.author-chip--lg .author-chip__avatar { width: 44px; height: 44px; }
.author-chip--lg .author-chip__name { font-size: .9375rem; color: var(--c-text); }
.author-chip--lg .author-chip__role { font-size: .8125rem; color: var(--c-text-subtle); }

/* ------------------------------------------------------------------
   10. SECTION HEADINGS
   ------------------------------------------------------------------ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1.2;
}

.section-subtitle {
  font-size: .9375rem;
  color: var(--c-text-muted);
  margin-top: .5rem;
  max-width: 60ch;
}

/* ------------------------------------------------------------------
   11. POST GRIDS
   ------------------------------------------------------------------ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.posts-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.posts-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.posts-list {
  display: grid;
  gap: 1rem;
}

/* ------------------------------------------------------------------
   12. BREADCRUMB
   ------------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--c-text-subtle);
}
.breadcrumb a { color: var(--c-text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb__sep { color: var(--c-text-subtle); }
.breadcrumb__current { color: var(--c-text-muted); font-weight: 500; }

/* ------------------------------------------------------------------
   13. CATEGORY CARDS (Archive Categorías)
   ------------------------------------------------------------------ */
.category-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--c-primary));
  transition: height var(--t-base);
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-card:hover::before { height: 5px; }

.category-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cat-color-soft, var(--c-primary-soft));
  color: var(--cat-color, var(--c-primary));
}

.category-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.category-card__description {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}

.category-card__count {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--cat-color, var(--c-primary));
}

/* ------------------------------------------------------------------
   14. PAGINATION
   ------------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg-alt);
  transition: all var(--t-fast);
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-btn--nav { width: auto; padding-inline: .75rem; gap: .35rem; }

/* ------------------------------------------------------------------
   15. ARTICLE CONTENT (Blog Post) — PREMIUM EDITORIAL
   ------------------------------------------------------------------ */

/* Hero image — full-bleed with overlay gradient */
.article-hero {
  width: 100%;
  height: clamp(320px, 45vw, 540px);
  overflow: hidden;
  border-radius: var(--r-xl);
  margin-block: 2.5rem;
  box-shadow: 0 12px 48px rgba(44,39,35,.18);
  position: relative;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform .8s ease;
}
.article-hero:hover img { transform: scale(1.025); }
/* Subtle vignette at the bottom */
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,39,35,.35) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* Article header — with category color stripe */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 0;
}
.article-header .breadcrumb { margin-bottom: 1.5rem; }

.article-title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  color: var(--c-text);
}

.article-subtitle {
  font-size: 1.1875rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 68ch;
  font-weight: 400;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 2px solid var(--c-primary);
  border-bottom: 1px solid var(--c-border);
}

/* Reading progress bar — thicker and with glow */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), #F07A3A);
  z-index: 99;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(205,84,20,.5);
}

/* Article BODY content — premium editorial typography */
.article-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 72ch;
}

/* Drop cap on the first paragraph */
.article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: .75;
  margin-right: .12em;
  margin-top: .08em;
  color: var(--c-primary);
}

.article-content p { margin-bottom: 1.6em; }

.article-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-top: 2.75em;
  margin-bottom: .75em;
  color: var(--c-text);
  letter-spacing: -0.03em;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--c-border-soft);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: .6em;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}

/* Premium blockquote */
.article-content blockquote {
  position: relative;
  border-left: 4px solid var(--c-primary);
  padding: 1.25rem 1.75rem 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, rgba(247,244,238,.6) 100%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 2.5em 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  font-style: italic;
}
.article-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -.25rem;
  left: 1rem;
  font-size: 4rem;
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--c-primary);
  opacity: .25;
  line-height: 1;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.25rem;
}
/* Custom bullet points */
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: .65em;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}
.article-content ol { list-style: decimal; padding-left: 1.5rem; }
.article-content li { margin-bottom: .65em; }

.article-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--c-primary-dark); }

.article-content strong { font-weight: 700; color: var(--c-text); }
.article-content em { font-style: italic; }

.article-content img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  margin: 2.5em auto;
}

.article-content pre {
  background: var(--c-text);
  color: #F7F4EE;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: .875rem;
  margin: 2em 0;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-content code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em;
  background: var(--c-border-soft);
  padding: .15em .4em;
  border-radius: 4px;
}

/* Tags list */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .75rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.tag-chip:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.share-label {
  font-size: .8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  transition: all var(--t-fast);
}
.share-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

/* Author card */
.author-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-top: 3rem;
}

.author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}

.author-card__name { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.author-card__role { font-size: .8125rem; color: var(--c-primary); font-weight: 600; margin-bottom: .5rem; }
.author-card__bio { font-size: .875rem; color: var(--c-text-muted); line-height: 1.65; }

/* ------------------------------------------------------------------
   16. SIDEBAR / TABLE OF CONTENTS
   ------------------------------------------------------------------ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-card:hover {
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.06);
}

.sidebar-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sidebar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-border-soft);
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.sidebar-card__icon--primary {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text);
}

/* TOC Navigation */
.toc-nav {
  max-height: 320px;
  overflow-y: auto;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item--h3 {
  padding-left: 0.85rem;
}

.toc-link {
  display: block;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  border-radius: 6px;
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: all 0.15s ease;
}

.toc-link:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-left-color: var(--c-primary);
}

.toc-link.active {
  color: var(--c-primary);
  font-weight: 600;
  background: var(--c-primary-soft);
  border-left-color: var(--c-primary);
}

/* Newsletter Card Accent */
.newsletter-card {
  background: linear-gradient(135deg, rgba(205, 84, 20, 0.04) 0%, rgba(205, 84, 20, 0.01) 100%);
  border: 1px solid rgba(205, 84, 20, 0.18);
}

.sidebar-card__text {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(205, 84, 20, 0.12);
}

.sidebar-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.8125rem;
  padding: 0.55rem;
  border-radius: 8px;
}

/* Meta List */
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.35rem;
  font-size: 0.8125rem;
  border-bottom: 1px dashed var(--c-border-soft);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-muted);
}

.meta-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-text);
}

/* ------------------------------------------------------------------
   17. PAGE HERO / PAGE HEADER
   ------------------------------------------------------------------ */
.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, #F7F4EE 0%, #FFF8F2 50%, #F7F4EE 100%);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(205,84,20,.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .75rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   18. CONTACT FORM
   ------------------------------------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: .5rem; }

.form-label {
  font-size: .8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--c-text);
  letter-spacing: .01em;
}

.form-input,
.form-select,
.form-textarea {
  padding: .75rem 1rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-text-subtle);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(205,84,20,.12);
}

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ------------------------------------------------------------------
   19. NEWSLETTER BOX
   ------------------------------------------------------------------ */
.newsletter-box {
  background: linear-gradient(135deg, var(--c-primary) 0%, #A8400D 100%);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.newsletter-box__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  letter-spacing: -0.025em;
}

.newsletter-box__subtitle {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  max-width: 50ch;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  color: #fff;
  outline: none;
  transition: border-color var(--t-fast);
  backdrop-filter: blur(8px);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-input:focus { border-color: rgba(255,255,255,.7); }

.newsletter-submit {
  padding: .75rem 1.5rem;
  background: #fff;
  color: var(--c-primary);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: .9375rem;
  transition: all var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.newsletter-submit:hover { background: var(--c-primary-soft); transform: translateY(-1px); }

/* ------------------------------------------------------------------
   20. FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--c-text);
  color: rgba(247,244,238,.7);
  padding-top: 4rem;
  margin-top: 5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
  padding: .4rem .6rem;
  border-radius: var(--r-sm);
  background: #F7F4EE;
}

.footer-logo .brand-logo-image { height: 46px; }

.footer-tagline {
  font-size: .875rem;
  color: rgba(247,244,238,.5);
  margin-top: .75rem;
  line-height: 1.65;
  max-width: 32ch;
}

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

.footer-col-title {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(247,244,238,.9);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem;
  color: rgba(247,244,238,.5);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: rgba(247,244,238,.9); }

.footer-bottom {
  border-top: 1px solid rgba(247,244,238,.1);
  padding-block: 1.25rem;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p { font-size: .8125rem; color: rgba(247,244,238,.4); }

.social-links { display: flex; gap: .75rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  color: rgba(247,244,238,.4);
  border: 1px solid rgba(247,244,238,.1);
  transition: all var(--t-fast);
}
.social-links a:hover { color: rgba(247,244,238,.9); border-color: rgba(247,244,238,.3); background: rgba(247,244,238,.05); }

/* ------------------------------------------------------------------
   21. UTILITIES / HELPERS
   ------------------------------------------------------------------ */
.divider { height: 1px; background: var(--c-border); margin-block: 2.5rem; }
.divider--dashed { border: none; border-top: 1.5px dashed var(--c-border); }

.skeleton {
  background: linear-gradient(90deg, var(--c-border-soft) 25%, var(--c-border) 50%, var(--c-border-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fade-in {
  animation: fadeIn var(--t-slow) ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------
   22. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-menu { display: block; }

  .card-featured { grid-template-columns: 1fr; }
  .card-featured__image { min-height: 220px; }
  .card-featured__image { order: -1; }

  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid--2col { grid-template-columns: 1fr; }

  .card-list { grid-template-columns: 1fr; }
  .card-list__image { aspect-ratio: 16/9; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .newsletter-form { flex-direction: column; }
  .newsletter-submit { width: 100%; }

  .article-byline { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .share-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .page-hero { text-align: center; }
  .page-hero__subtitle { margin-inline: auto; }
}


/* ==================================================================
   REVISTA DIGITAL — EDITION STYLES
   Paleta: terracota + sepia, coherente con blog.css
   ================================================================== */

/* ------------------------------------------------------------------
   EDITION ARCHIVE — Grid de portadas
   ------------------------------------------------------------------ */
.edition-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.edition-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.edition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border);
}

.edition-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-border-soft);
}

.edition-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.edition-card:hover .edition-card__cover-img { transform: scale(1.04); }

.edition-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-subtle);
  background: var(--c-border-soft);
}

.edition-card__number {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: var(--r-sm);
}

.edition-card__logo {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  max-height: 56px;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

.edition-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.edition-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  letter-spacing: -0.015em;
}

.edition-card__date {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--c-text-subtle);
}

.edition-card__cta {
  display: block;
  margin-top: auto;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: .01em;
  transition: gap var(--t-fast);
}
.edition-card:hover .edition-card__cta { text-decoration: underline; }


/* ------------------------------------------------------------------
   EDITION HERO — Pantalla completa
   ------------------------------------------------------------------ */
.edition-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background-color: #1a1410;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.edition-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,10,6,.75) 0%,
    rgba(15,10,6,.55) 50%,
    rgba(15,10,6,.8) 100%
  );
  z-index: 1;
}

.edition-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 7rem 5rem;
  max-width: 820px;
}

.edition-hero__logo-wrap {
  margin-bottom: 2rem;
}

.edition-hero__logo {
  max-height: 72px;
  max-width: 440px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
  opacity: .9;
}

.edition-hero__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(205,84,20,.15);
  border: 1px solid rgba(205,84,20,.3);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.edition-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.edition-hero__excerpt {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin-bottom: 2rem;
}

.edition-hero__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .5rem;
}

.edition-hero__anchor-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.edition-hero__anchor-btn:hover {
  background: rgba(205,84,20,.25);
  border-color: var(--c-primary);
  color: #fff;
}

.edition-hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.5);
  animation: bounceDown 2s ease-in-out infinite;
  transition: color var(--t-fast);
}
.edition-hero__scroll-hint:hover { color: rgba(255,255,255,.9); }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* ------------------------------------------------------------------
   EDITION SECTION DIVIDER
   ------------------------------------------------------------------ */
.edition-section-divider {
  padding-block: 3rem 1.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.edition-section-divider__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.edition-section-divider__inner::before,
.edition-section-divider__inner::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--c-border), transparent);
}

.edition-section-divider__label {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-primary);
  white-space: nowrap;
  background: var(--c-primary-soft);
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(205,84,20,.2);
  flex-shrink: 0;
}


/* ------------------------------------------------------------------
   EDITION NOTE — Nota editorial
   ------------------------------------------------------------------ */
.edition-note {
  padding-block: 2.5rem 3.5rem;
  border-bottom: 1px solid var(--c-border-soft);
}
.edition-note:last-of-type { border-bottom: none; }

.edition-note__figure {
  margin-bottom: 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.edition-note__hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.edition-note__figcaption {
  padding: .65rem 1rem;
  font-size: .75rem;
  color: var(--c-text-subtle);
  font-style: italic;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border-soft);
  text-align: center;
}

.edition-note__header {
  margin-bottom: 1.5rem;
}

.edition-note__badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.edition-note__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: .85rem;
  text-wrap: balance;
}

.edition-note__excerpt {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--c-text-muted);
  font-style: italic;
  border-left: 3px solid var(--c-primary);
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.edition-note__body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--c-text);
}

.edition-note__body p {
  margin-bottom: 1.2rem;
}
.edition-note__body p:last-child { margin-bottom: 0; }


/* Fotografías adicionales */
.edition-note__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.edition-note__photo-item {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.edition-note__photo-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.edition-note__photo-item:hover .edition-note__photo-img { transform: scale(1.03); }

.edition-note__photo-caption {
  padding: .5rem .75rem;
  font-size: .7rem;
  color: var(--c-text-subtle);
  font-style: italic;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border-soft);
}


/* Videos */
.edition-note__videos {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.edition-note__video-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-text);
  margin-bottom: .65rem;
}

.edition-note__video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.edition-note__video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.edition-note__video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: 600;
  background: var(--c-primary);
  transition: opacity var(--t-fast);
}
.edition-note__video-fallback:hover { opacity: .85; }

.edition-note__video-caption {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--c-text-subtle);
  font-style: italic;
}


/* ------------------------------------------------------------------
   EDITION GALLERY — Galería fotográfica
   ------------------------------------------------------------------ */
.edition-gallery {
  margin-top: 2.5rem;
}

.edition-gallery__title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.edition-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .65rem;
}

.edition-gallery__item {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  background: var(--c-border-soft);
}

.edition-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow), filter var(--t-base);
}
.edition-gallery__item:hover .edition-gallery__img {
  transform: scale(1.06);
  filter: brightness(1.05);
}
.edition-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--t-fast);
}
.edition-gallery__item:hover::after { background: rgba(0,0,0,.08); }


/* ------------------------------------------------------------------
   EDITION AD — Bloque publicitario
   ------------------------------------------------------------------ */
.edition-ad {
  padding-block: 1.5rem;
}

.edition-ad__link { display: block; }

.edition-ad__img {
  width: 100%;
  border-radius: var(--r-md);
  display: block;
  box-shadow: var(--shadow-sm);
  transition: opacity var(--t-fast);
}
.edition-ad__link:hover .edition-ad__img { opacity: .92; }


/* ------------------------------------------------------------------
   LIGHTBOX
   ------------------------------------------------------------------ */
.edition-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.edition-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.edition-lightbox__backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.edition-lightbox__backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.edition-lightbox__content {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}

.edition-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.edition-lightbox__caption {
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-align: center;
  font-style: italic;
}

.edition-lightbox__close,
.edition-lightbox__prev,
.edition-lightbox__next {
  position: fixed;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
}
.edition-lightbox__close:hover,
.edition-lightbox__prev:hover,
.edition-lightbox__next:hover { background: rgba(255,255,255,.22); }

.edition-lightbox__close { top: 1.25rem; right: 1.25rem; }
.edition-lightbox__prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.edition-lightbox__next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }


/* ------------------------------------------------------------------
   RESPONSIVE — Revista
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .edition-archive-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
  .edition-hero { min-height: 85vh; }
  .edition-hero__inner { padding-block: 5rem 4rem; }
  .edition-note__hero-img { max-height: 340px; }
  .edition-note__photos { grid-template-columns: 1fr 1fr; }
  .edition-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .edition-lightbox__prev { left: .5rem; }
  .edition-lightbox__next { right: .5rem; }
}

@media (max-width: 480px) {
  .edition-archive-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .edition-hero__title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .edition-hero__anchors { gap: .4rem; }
  .edition-note__photos { grid-template-columns: 1fr; }
  .edition-gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .edition-lightbox__prev,
  .edition-lightbox__next { display: none; }
}


/* ==================================================================
   AWWWARDS EDITORIAL MAGAZINE SYSTEM
   ================================================================== */

/* --- Drop Cap (Letra Capitular) --- */
.mag-body > p:first-of-type::first-letter,
.mag-drop-cap > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 3.8em;
  line-height: .8;
  padding-top: .1em;
  padding-right: .15em;
  padding-left: .05em;
  color: var(--c-primary);
  font-weight: 800;
}

/* --- Pull Quotes (Citas Periodísticas) --- */
.mag-body blockquote,
.mag-pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-text);
  border-left: 4px solid var(--c-primary);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(to right, rgba(205,84,20,.05), transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: normal;
}
.mag-section--dark .mag-body blockquote,
.mag-section--dark .mag-pull-quote {
  color: #fff;
  background: linear-gradient(to right, rgba(205,84,20,.15), transparent);
}

/* --- Section Alternating Themes --- */
.mag-section {
  padding-block: 4rem;
  transition: background var(--t-base);
}

.mag-section--sepia {
  background-color: var(--c-bg);
  color: var(--c-text);
}

.mag-section--dark {
  background-color: #120e0a;
  color: rgba(255,255,255,.9);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mag-section--dark .mag-section-header__title { color: #fff; }
.mag-section--dark .mag-card {
  background: #1c1611;
  border-color: rgba(255,255,255,.1);
}
.mag-section--dark .mag-card__title { color: #fff; }
.mag-section--dark .mag-card__excerpt { color: rgba(255,255,255,.7); }
.mag-section--dark .mag-note__title { color: #fff; }
.mag-section--dark .mag-note__body { color: rgba(255,255,255,.85); }

/* --- Section Header (Con Número Gigante) --- */
.mag-section-header {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-h, 60px) + 2rem);
}

.mag-section-header__top {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.mag-section-header__num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: .85;
  color: var(--c-primary);
  opacity: .85;
  letter-spacing: -0.05em;
}

.mag-section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin: 0;
}

.mag-section-header__line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--c-primary), var(--c-border-soft), transparent);
}

/* --- Cover Story Layout (Primera nota de la sección) --- */
.mag-cover-story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.mag-cover-story__media {
  grid-column: span 7;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  background: var(--c-border-soft);
}

.mag-cover-story__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.mag-cover-story__media:hover img {
  transform: scale(1.03);
}

.mag-cover-story__content {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .mag-cover-story__media { grid-column: span 12; }
  .mag-cover-story__content { grid-column: span 12; }
}

/* --- Secondary Notes Grid (3 Columnas) --- */
.mag-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .mag-card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 580px) {
  .mag-card-grid { grid-template-columns: 1fr; }
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.mag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
}

.mag-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-border-soft);
}

.mag-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.mag-card:hover .mag-card__media img { transform: scale(1.05); }

.mag-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.mag-card__badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  width: fit-content;
}

.mag-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.mag-card__excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Sponsored Ad Container --- */
.mag-sponsored-ad {
  margin-block: 3.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(205,84,20,.03);
  border: 1px solid rgba(205,84,20,.15);
  border-radius: var(--r-xl);
  position: relative;
}

.mag-sponsored-ad__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
}

.mag-sponsored-ad__label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(205,84,20,.12);
  padding: .2rem .6rem;
  border-radius: 999px;
}

.mag-sponsored-ad__inner {
  max-width: 920px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.mag-sponsored-ad img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--t-fast);
}
.mag-sponsored-ad a:hover img { opacity: .92; }


/* ==================================================================
   READYMAG 100VW FULL-BLEED EDITORIAL SYSTEM (IBM PLEX ARCHITECTURAL)
   ================================================================== */

.rm-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  box-sizing: border-box;
}

/* --- READYMAG HERO --- */
.rm-hero {
  position: relative;
  min-height: 100svh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #090807;
  overflow: hidden;
}

.rm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 10s ease-out;
  filter: brightness(.72);
}
.rm-hero__bg.is-loaded { transform: scale(1); }

.rm-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9,8,7,.98) 0%, rgba(9,8,7,.5) 45%, transparent 80%),
    linear-gradient(to right, rgba(9,8,7,.7) 0%, transparent 60%);
}

.rm-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(2rem, 8vw, 10rem) clamp(3rem, 8vh, 7rem);
  max-width: 1400px;
}

.rm-hero__kicker {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(.7rem, 1.2vw, .9rem);
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.rm-hero__kicker::before {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--c-primary);
}

.rm-hero__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.rm-hero__excerpt {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  max-width: 780px;
  margin-bottom: 3rem;
}

/* --- READYMAG SECTION HEADERS (Giant 100vw Spreads) --- */
.rm-section-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 6rem clamp(2rem, 8vw, 10rem) 3rem;
  background: inherit;
  border-top: 1px solid rgba(205,84,20,.2);
  scroll-margin-top: calc(var(--header-h, 60px) + 2rem);
}

.rm-section-header__num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 800;
  line-height: .75;
  color: var(--c-primary);
  opacity: .22;
  letter-spacing: -0.06em;
  display: block;
  margin-bottom: -1.5rem;
}

.rm-section-header__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}

/* --- READYMAG SPLIT SPREAD (50vw STICKY MEDIA / 50vw TEXT) --- */
.rm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  margin-bottom: 5rem;
}

.rm-split__media-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #090807;
}

.rm-split__media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-out;
  filter: brightness(.92);
}
.rm-split__media-col:hover img {
  transform: scale(1.05);
}

.rm-split__content-col {
  padding: clamp(3rem, 6vh, 6rem) clamp(2rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 960px) {
  .rm-split {
    grid-template-columns: 1fr;
  }
  .rm-split__media-col {
    position: relative;
    height: 60vh;
  }
  .rm-split__content-col {
    padding: 3rem 1.5rem;
  }
}

/* --- READYMAG TYPOGRAPHY --- */
.rm-dropcap > p:first-of-type::first-letter {
  font-family: 'IBM Plex Sans', sans-serif;
  float: left;
  font-size: 4.8rem;
  line-height: .75;
  padding-top: .1em;
  padding-right: .15em;
  color: var(--c-primary);
  font-weight: 800;
}

.rm-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.025rem, 1.5vw, 1.18rem);
  line-height: 1.8;
  font-weight: 400;
}
.rm-body p { margin-bottom: 1.5rem; }

.rm-pullquote {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-primary);
  border-left: 5px solid var(--c-primary);
  padding: 1.25rem 0 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: linear-gradient(to right, rgba(205,84,20,.08), transparent);
  letter-spacing: -0.02em;
}

/* --- READYMAG HORIZONTAL SLIDER GALLERY (100vw) --- */
.rm-gallery-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem clamp(1.5rem, 5vw, 6rem);
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-primary) transparent;
}

.rm-gallery-item {
  scroll-snap-align: center;
  flex: 0 0 clamp(280px, 40vw, 550px);
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.rm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}
.rm-gallery-item:hover img { transform: scale(1.08); }

/* --- READYMAG SPONSORED AD SPREAD (100vw Full-Bleed) --- */
.rm-ad-spread {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #090807;
  padding: 3rem clamp(1.5rem, 5vw, 6rem);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-block: 4rem;
}

.rm-ad-spread__label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(205,84,20,.15);
  padding: .3rem .8rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.rm-ad-spread__inner {
  max-width: 1200px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.rm-ad-spread img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .2s;
}
.rm-ad-spread a:hover img { opacity: .92; }


.hidden { display: none !important; }

/* ==================================================================
   EXACT MOCKUP EDITORIAL SYSTEM (REVISTA CONSTRUCTIVA SPEC)
   ================================================================== */


/* --- Reading Progress Bar --- */
#read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #0055ff;
  z-index: 1000;
  width: 0%;
  transition: width .1s ease-out;
}

/* --- Color & Typography tokens --- */
.mk-page {
  background-color: #f8f7f4;
  color: #1a1918;
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
}

.mk-title-serif {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.mk-sans {
  font-family: 'IBM Plex Sans', sans-serif;
}

/* --- Sticky Sub-Navigation (Tabs de Secciones) --- */
.mk-sticky-nav {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 90;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e2db;
  padding-block: .75rem;
}

.mk-sticky-nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.mk-sticky-nav__inner::-webkit-scrollbar { display: none; }

.mk-sticky-nav__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8c857b;
  flex-shrink: 0;
}

.mk-sticky-nav__tab {
  font-size: .85rem;
  font-weight: 600;
  color: #5c564d;
  text-decoration: none;
  padding: .4rem .75rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.mk-sticky-nav__tab.active,
.mk-sticky-nav__tab:hover {
  color: #0055ff;
  border-bottom-color: #0055ff;
}

.mk-sticky-nav__tab-num {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  opacity: .7;
}

/* --- Giant Section Headers (01, 02, 03) --- */
.mk-sec-header {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-top: 3.5rem;
  scroll-margin-top: calc(var(--header-h, 60px) + 4rem);
}

.mk-sec-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: .75;
  color: #d6ccc2;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.mk-sec-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: #1a1918;
  margin: 0;
  flex-shrink: 0;
}

.mk-sec-line {
  flex: 1;
  height: 1px;
  background: #e2ded5;
  margin-bottom: .4rem;
}

/* --- Feature Spread Layout (Main note of section) --- */
.mk-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  background: #ffffff;
  border: 1px solid #e8e5de;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.03);
}

.mk-feature__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.mk-feature__content {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.mk-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8c857b;
}
.mk-meta-pill .badge-cat {
  color: #0055ff;
}

.mk-feature__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: #1a1918;
}

.mk-feature__excerpt {
  font-size: .95rem;
  line-height: 1.65;
  color: #5c564d;
}

.mk-read-link {
  color: #0055ff;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.mk-read-link:hover {
  gap: .65rem;
}

@media (max-width: 900px) {
  .mk-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- 3-Column Secondary Cards Grid --- */
.mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .mk-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 580px) {
  .mk-grid-3 { grid-template-columns: 1fr; }
}

.mk-card {
  background: #ffffff;
  border: 1px solid #e8e5de;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.mk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  border-color: #d6ccc2;
}

.mk-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.mk-card__body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}

.mk-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1918;
}

.mk-card__excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: #5c564d;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .5rem;
}

/* --- Full Bleed Advertisement Banner --- */
.mk-ad-banner {
  margin-block: 3.5rem;
  text-align: center;
}

.mk-ad-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a39c91;
  margin-bottom: .6rem;
  display: block;
}

.mk-ad-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.mk-ad-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Lector Modal (Article Reader Modal) --- */
.mk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(18, 16, 14, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mk-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mk-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(20px);
}
.mk-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mk-modal__dialog {
  background: #f8f7f4;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  position: relative;
  padding: clamp(2rem, 6vw, 4rem);
}

.mk-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e5de;
  color: #1a1918;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.mk-modal__close:hover { background: #d6ccc2; }

.mk-modal__body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c2a29;
}
.mk-modal__body p { margin-bottom: 1.4rem; }



