/* ═════════════════════════════════════════════════════════════════════
   KAO CACAO OS · Editorial Subpages Stylesheet
   Luxury Editorial Design System — 0 Cards, 0 Pills, 100% Cacao
   Exact Navbar and Morphing Dropdown from Index
   ═════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@1,6..72,300;1,6..72,400&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink:   #0b1013;
  --panel: rgba(14, 19, 23, 0.84);
  --line:  rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --hover: rgba(255, 255, 255, 0.065);
  --text:  #ffffff;
  --soft:  rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.60);
  --accent: #C4622D;
  --accent-glow: rgba(196, 98, 45, 0.25);
  --ok:     #7fd1a3;
  --warn:   #e8b86b;
  --danger: #ef8a7e;
  --morph: 0.5s;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  --ease-out-ios: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--ink);
  color: var(--text);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse 90% 480px at 50% -60px, rgba(196, 98, 45, 0.16), transparent 75%), var(--ink);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Exact Header Bar from Index (Absolute, not sticky) ─── */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(to bottom,
    rgba(4, 8, 10, 0.72) 0%,
    rgba(4, 8, 10, 0.30) 70%,
    rgba(4, 8, 10, 0.00) 100%);
}

.bar {
  height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.4vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  height: 56px;
  width: auto;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trigger,
.plain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.trigger:hover,
.trigger[aria-expanded="true"],
.plain-link:hover,
.plain-link.is-active {
  color: #fff;
}

.chevron {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.actions {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cta {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #0b0f12;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  background: #e9eef0;
  transform: translateY(-1px);
}

.cta-lg {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-ghost.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.menu-btn {
  position: relative;
  display: none;
  width: 44px;
  height: 38px;
  border-radius: 999px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.3), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 10px 25px -8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.25s cubic-bezier(.16, 1, .3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn:hover {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.42), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.04);
}

.menu-btn:active {
  transform: scale(0.95);
}

/* ─── Exact Morphing Dropdown from Index ─── */
.dd {
  --x: 0px;
  --w: 400px;
  --h: 300px;
  --s: 0.97;
  position: absolute;
  top: 64px;
  left: 0;
  width: var(--w);
  height: var(--h);
  transform: translateX(var(--x)) scale(var(--s));
  transform-origin: 50% 0;
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  transition: transform var(--morph) var(--ease), width var(--morph) var(--ease), height var(--morph) var(--ease), opacity 0.3s ease;
  z-index: 200;
}

.dd.open {
  --s: 1;
  opacity: 1;
  pointer-events: auto;
}

.dd.instant {
  transition: opacity 0.3s ease, transform var(--morph) var(--ease);
}

.dd.instant.snap {
  transition: none;
}

.panel {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  transform: translateX(0);
  transition: opacity 0.26s ease, transform var(--morph) var(--ease), filter 0.4s ease, visibility 0s linear var(--morph);
}

.panel[data-state="exit-left"]  { transform: translateX(-56px); }
.panel[data-state="exit-right"] { transform: translateX(56px); }

.panel[data-state="active"] {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translateX(0);
  transition: opacity 0.36s ease 0.06s, transform var(--morph) var(--ease), filter 0.45s ease 0.04s, visibility 0s;
}

.panel.snap { transition: none !important; }

/* Panel A: DISCOVER (MÓDULOS) */
#p-discover {
  width: 664px;
  height: 358px;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.d-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}

.d-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.d-item.is-active { background: var(--hover); }

.d-item strong {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #fff;
}

.d-item span {
  font-size: 13px;
  line-height: 1.42;
  color: var(--muted);
}

.d-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 15px 15px 0;
}

.d-media::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 70px;
  background: linear-gradient(to right, rgba(14, 19, 23, 0.55), rgba(14, 19, 23, 0));
  z-index: 2;
  pointer-events: none;
}

.d-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px);
  transition: opacity 0.6s ease, transform 0.9s var(--ease), filter 0.6s ease;
}

.d-media img.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 1;
}

/* Panel B: JOURNEYS (LA RUTA) */
#p-journeys {
  width: 446px;
  height: 308px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  isolation: isolate;
  text-decoration: none;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 11, 13, 0.88) 0%, rgba(8, 11, 13, 0.35) 38%, rgba(8, 11, 13, 0) 60%);
  pointer-events: none;
}

.card strong { font-size: 15.5px; font-weight: 500; margin-bottom: 5px; color: #fff; }
.card span   { font-size: 13px; line-height: 1.42; color: var(--muted); }

/* Panel C: REGIONS (ORÍGENES) */
#p-regions {
  width: 232px;
  height: 218px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.r-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease;
}

.r-link:hover,
.r-link:focus-visible { background: var(--hover); }

/* Mobile & Sheet */
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none !important; }
  .menu-btn { display: flex; }
  #btn-header-login,
  #header-user-badge { display: none !important; }
}

@media (min-width: 861px) {
  .sheet, .sheet-backdrop { display: none !important; }
}

/* Velo oscuro con desenfoque para el menú móvil idéntico al modal de login */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-ios), visibility 0s linear 0.4s;
}
.sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s var(--ease-out-ios), visibility 0s;
}

.sheet {
  position: absolute;
  top: 70px;
  left: 12px;
  right: 12px;
  padding: 24px 20px 26px;
  border-radius: 36px;
  color: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(36px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(36px) saturate(190%) brightness(1.05);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.08),
    0 40px 80px -24px rgba(0, 0, 0, 0.8),
    0 8px 24px -8px rgba(0, 0, 0, 0.6);
  max-height: calc(100svh - 90px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 48px, 0) scale(0.92);
  filter: blur(12px);
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    filter 0.3s ease,
    visibility 0s linear 0.45s;
  z-index: 50;
  display: block;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.65), transparent 32%, transparent 66%, rgba(255, 255, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.sheet.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  filter: blur(0);
  transition:
    transform 0.95s var(--spring),
    opacity 0.45s var(--ease-out-ios) 0.04s,
    filter 0.4s ease,
    visibility 0s;
}

/* Animación en cascada idéntica al modal de login (lgItem) */
@keyframes sheetItem {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
.sheet.open > * {
  animation: sheetItem 0.85s var(--ease-out-ios) backwards;
}
.sheet.open > *:nth-child(1) { animation-delay: 0.1s; }
.sheet.open > *:nth-child(2) { animation-delay: 0.18s; }
.sheet.open > *:nth-child(3) { animation-delay: 0.26s; }
.sheet.open > *:nth-child(4) { animation-delay: 0.34s; }
.sheet.open > *:nth-child(5) { animation-delay: 0.40s; }

.sheet-group {
  margin-bottom: 14px;
}
.sheet-group:last-of-type {
  margin-bottom: 6px;
}
.sheet-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px 6px;
}
.sheet-group-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sheet a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(245, 246, 250, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.sheet a:hover,
.sheet a:active,
.sheet a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateX(3px);
}

.sheet .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  background: linear-gradient(180deg, #3b82f6, #0a84ff 52%, #0066cc) !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 40, 120, 0.35), 0 12px 24px -8px rgba(10, 132, 255, 0.7);
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.16, 1, .3, 1), filter 0.2s ease;
  text-decoration: none;
}
.sheet .cta:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}
.sheet .cta:active {
  transform: scale(0.97);
}

/* ─── Editorial Layout & Content System ─── */
.editorial-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(100px, 14vw, 150px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 100px);
  width: 100%;
}

.editorial-header {
  margin-bottom: clamp(48px, 6vw, 84px);
}

.meta-category {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-category::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.editorial-title {
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
  max-width: 920px;
}

.editorial-subtitle {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 780px;
  margin: 0;
  font-weight: 400;
}

/* Hero Media Display (4K Cacao Photography) */
.media-showcase {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: clamp(60px, 8vw, 100px);
  background: #000;
}

.media-showcase img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

.media-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 14, 0.95) 100%);
  pointer-events: none;
}

.media-caption {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.media-headline {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

/* Editorial Diptych / Split Section (Zero cards) */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.diptych.reverse {
  direction: rtl;
}
.diptych.reverse > * {
  direction: ltr;
}

@media (max-width: 880px) {
  .diptych {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.diptych-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.diptych-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
}

.diptych-content h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
}

.diptych-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Stat Matrix (Zero cards, clean typographic tabular counters) */
.stat-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin: clamp(60px, 8vw, 100px) 0;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .stat-matrix {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 0 0 8px;
}

.stat-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Typographic Feature Column / Clean Narrative List (Zero cards) */
.features-narrative {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(80px, 10vw, 140px);
}

@media (max-width: 900px) {
  .features-narrative {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.narrative-col {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.narrative-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.narrative-col h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 12px;
}

.narrative-col p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Editorial CTA Banner */
.editorial-cta {
  text-align: center;
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.editorial-cta h3 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 24px;
}

.editorial-cta-buttons {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.subpage-footer {
  background: #040708;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px) 36px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-nav-col h5 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px;
}

.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* El envoltorio <picture> (fuentes avif/webp) no altera el layout */
picture { display: contents; }
