/* ─────────────────────────────────────────────────────────────
   GED 2026 · Híbrido — estilos de las secciones N (página nueva)
   y piezas interactivas reconstruidas (nav, lightbox).
   Paleta y tipografías tomadas del sitio original.
   ───────────────────────────────────────────────────────────── */
:root {
  --ged-ink: #0C1209;
  --ged-forest: #111B0D;
  --ged-deep: #091A0D;
  --ged-cream: #F0EAD6;
  --ged-sand: #F7F3EC;
  --ged-sand-2: #F0EDE3;
  --ged-orange: #C96B35;
  --ged-orange-2: #E8A067;
  --ged-olive: #7A9A4A;
  --ged-lime: #8FC74A;
  --ged-green: #3D7A35;
  --ged-gold: #FFD447;
  --ged-text-dark: #1c2a17;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ged-ink); }
section[id], footer { scroll-margin-top: 0; }

.hx-wrap { max-width: 80rem; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Pills / eyebrows */
.hx-pill {
  display: inline-block; padding: 6px 20px; border-radius: 999px;
  font-family: 'Space Mono', ui-monospace, monospace; font-weight: 700;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.hx-pill--gold   { color: var(--ged-gold);   background: rgba(255,212,71,.10); border: 1px solid rgba(255,212,71,.40); }
.hx-pill--green  { color: #2A5E24;           background: rgba(61,122,53,.08);  border: 1px solid rgba(61,122,53,.25); }
.hx-pill--orange { color: var(--ged-orange-2); background: rgba(201,107,53,.10); border: 1px solid rgba(201,107,53,.35); }

.hx-grad { color: transparent; background: linear-gradient(90deg, var(--ged-orange), var(--ged-olive)); -webkit-background-clip: text; background-clip: text; }
.hx-h2 {
  font-family: 'Orbitron', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.1; color: #fff; margin: 24px 0 0;
}
.hx-h2--dark { color: var(--ged-text-dark); }
.hx-sub { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,234,214,.55); margin-top: 18px; }
.hx-p { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: rgba(240,234,214,.8); margin: 24px 0 0; }
.hx-p strong { color: var(--ged-cream); font-weight: 600; }
.hx-head { text-align: center; max-width: 60rem; margin: 0 auto 64px; }
.hx-head--left { text-align: left; margin: 0; }

/* Reveal on scroll */
.hx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hx-reveal { opacity: 1; transform: none; transition: none; } }

/* ── N1 ─────────────────────────────── */
.hx-n1 { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: var(--ged-ink); }
.hx-n1__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-n1__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(17,27,13,1) 0%, rgba(12,18,9,.55) 22%, rgba(12,18,9,.55) 70%, rgba(12,18,9,1) 100%),
  linear-gradient(90deg, rgba(12,18,9,.85) 0%, rgba(12,18,9,.2) 75%); }
.hx-n1__inner { padding-top: 120px; padding-bottom: 120px; width: 100%; box-sizing: border-box; }
.hx-n1__title { font-family: 'Orbitron', sans-serif; font-weight: 900; text-transform: uppercase; color: #fff;
  font-size: clamp(34px, 6vw, 84px); line-height: 1.02; max-width: 15ch; margin: 28px 0 0; }
.hx-n1__lead { font-family: 'Inter', sans-serif; font-weight: 300; color: rgba(240,234,214,.88);
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 40rem; margin: 28px 0 0; }
.hx-coords { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 48px 0 0;
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .08em; color: var(--ged-orange-2); }
.hx-coords__line { flex: 0 1 140px; height: 1px; min-width: 40px; background: linear-gradient(90deg, var(--ged-orange), var(--ged-lime)); position: relative; }
.hx-coords__line::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ged-lime); box-shadow: 0 0 10px var(--ged-lime); }
.hx-coords__labels { display: flex; gap: 156px; margin: 8px 0 0; font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(240,234,214,.5); }
@media (max-width: 640px) { .hx-coords__labels { display: none; } }

/* N1 · KPIs a la derecha */
.hx-n1__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hx-n1__grid .hx-n1__title { font-size: clamp(34px, 5vw, 72px); }
.hx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hx-kpi { background: rgba(12,18,9,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(240,234,214,.12); border-radius: 18px; padding: 24px 22px; }
.hx-kpi--main { grid-column: 1 / -1; padding: 32px 26px; border-color: rgba(232,160,103,.35);
  background: linear-gradient(135deg, rgba(201,107,53,.22), rgba(12,18,9,.6) 60%); }
.hx-kpi--wide { grid-column: 1 / -1; }
.hx-kpi__num { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(30px, 3vw, 44px); line-height: 1; margin: 0; color: var(--ged-cream); font-variant-numeric: tabular-nums; }
.hx-kpi--main .hx-kpi__num { font-size: clamp(52px, 6vw, 88px); color: transparent; background: linear-gradient(90deg, var(--ged-orange-2), var(--ged-lime)); -webkit-background-clip: text; background-clip: text; }
.hx-kpi__lbl { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(240,234,214,.65); margin: 12px 0 0; }
@media (max-width: 960px) { .hx-n1__grid { grid-template-columns: 1fr; } }

/* ── Destacado · Libro de memorias ─────── */
.hx-book { background: var(--ged-sand); padding: clamp(96px, 11vw, 160px) 0; position: relative; overflow: hidden; }
.hx-book::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 40%, rgba(201,107,53,.10), transparent 45%), radial-gradient(circle at 85% 80%, rgba(61,122,53,.08), transparent 45%); }
.hx-book__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hx-book__mock { display: grid; place-items: center; perspective: 1600px; }
.hx-book__cover { position: relative; width: min(100%, 380px); aspect-ratio: 3 / 4; border-radius: 4px 14px 14px 4px; overflow: hidden;
  transform: rotateY(-14deg) rotateX(2deg); transform-origin: left center; transition: transform .6s ease;
  box-shadow: -2px 0 0 #2a1a10 inset, 24px 32px 60px -20px rgba(28,42,23,.55), 6px 8px 0 -2px #e9e2d2, 12px 14px 0 -4px #ddd4c0; }
.hx-book__cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; z-index: 3;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.08) 60%, transparent); }
.hx-book__mock:hover .hx-book__cover { transform: rotateY(-6deg); }
.hx-book__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-book__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,9,.25), rgba(12,18,9,.92) 72%); }
.hx-book__text { position: absolute; inset: auto 0 0 0; padding: 0 30px 34px 36px; z-index: 2; }
.hx-book__logo { width: 56px; height: 56px; margin-bottom: 18px; }
.hx-book__k { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ged-orange-2); margin: 0; }
.hx-book__t { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 42px; color: #fff; margin: 4px 0 0; line-height: 1; }
.hx-book__s { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ged-cream); margin: 12px 0 0; }
.hx-book__r { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(240,234,214,.65); margin: 6px 0 0; }
.hx-p--dark { color: #3f4c39; }
.hx-p--dark strong { color: var(--ged-text-dark); }
.hx-book__motto { font-family: 'Orbitron', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--ged-green); margin: 22px 0 0; }
.hx-book__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.hx-book__actions .hx-btn { margin-top: 0; }
.hx-btn.hx-btn--book { display: inline-flex; align-items: center; gap: 12px; }
.hx-book__meta { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6b7864; }
@media (max-width: 860px) { .hx-book__grid { grid-template-columns: 1fr; } .hx-book__cover { width: min(78%, 300px); } }

/* ── Destacado · Video oficial ─────────── */
.hx-official { background: var(--ged-ink); padding: clamp(96px, 11vw, 160px) 0; position: relative; overflow: hidden; }
.hx-official::before { content: ""; position: absolute; left: 50%; top: 55%; width: 1100px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(201,107,53,.18), transparent 65%); pointer-events: none; }
.hx-official .hx-video { max-width: 76rem; }

/* ── N3 ─────────────────────────────── */
.hx-n3 { background: var(--ged-ink); padding: clamp(96px, 12vw, 176px) 0; position: relative; border-top: 1px solid rgba(255,255,255,.05); }
.hx-video { position: relative; aspect-ratio: 16 / 9; max-width: 68rem; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -30px rgba(201,107,53,.45); background: #000; cursor: pointer; }
.hx-video img, .hx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hx-video img { filter: brightness(.7); transition: filter .4s ease, transform .8s ease; }
.hx-video:hover img { filter: brightness(.85); transform: scale(1.02); }
.hx-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: var(--ged-orange); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(201,107,53,.25), 0 0 40px rgba(201,107,53,.6); transition: transform .3s ease; }
.hx-video__play svg { margin-left: 4px; }
.hx-video:hover .hx-video__play { transform: translate(-50%,-50%) scale(1.08); }
.hx-video__fallback { text-align: center; margin: 20px 0 0; font-family: 'Inter', sans-serif; font-size: 14px; color: rgba(240,234,214,.55); }
.hx-video__fallback a { color: var(--ged-orange-2); text-decoration: none; }
.hx-video__fallback a:hover { text-decoration: underline; }

/* N3 · Galería de videos */
.hx-vg { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hx-vg .hx-video { max-width: none; margin: 0; box-shadow: 0 30px 70px -35px rgba(201,107,53,.5); }
.hx-vg__now { margin-top: 18px; }
.hx-vg__title { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); color: #fff; margin: 12px 0 0; line-height: 1.3; }
.hx-vg__date { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,234,214,.5); margin: 8px 0 0; }
.hx-vg__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hx-vg__item { width: 100%; display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; text-align: left; cursor: pointer;
  padding: 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit;
  transition: background .25s ease, border-color .25s ease; }
.hx-vg__item:hover { background: rgba(255,255,255,.07); }
.hx-vg__item.is-active { border-color: rgba(201,107,53,.6); background: rgba(201,107,53,.12); }
.hx-vg__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #1a2414; }
.hx-vg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-vg__thumb .hx-tag { position: absolute; left: 6px; bottom: 6px; }
.hx-vg__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-vg__ititle { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ged-cream); }
.hx-vg__idate { font-family: 'Space Mono', monospace; font-size: 11px; color: rgba(240,234,214,.45); }
.hx-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(12,18,9,.85); border: 1px solid rgba(255,255,255,.15); }
.hx-tag--live { background: #C62828; border-color: #C62828; }
.hx-tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.hx-tag--recap { background: var(--ged-green); border-color: var(--ged-green); }
.hx-tag--teaser { background: var(--ged-orange); border-color: var(--ged-orange); }
.hx-vg__more { text-align: center; margin: 48px 0 0; }
.hx-btn.hx-btn--ghost { background: transparent; border: 1px solid var(--ged-olive); color: var(--ged-lime); box-shadow: none; margin-top: 0; }
.hx-btn.hx-btn--ghost:hover { background: rgba(122,154,74,.15); color: var(--ged-lime); box-shadow: none; }
@media (max-width: 960px) { .hx-vg { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hx-vg__item { grid-template-columns: 116px 1fr; } }

/* ── N6 ─────────────────────────────── */
.hx-n6 { background: var(--ged-sand-2); padding: clamp(96px, 12vw, 176px) 0; position: relative; }
.hx-n6__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.hx-n6__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hx-n6__num { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: .9; margin: 0; color: var(--ged-orange); font-variant-numeric: tabular-nums; }
.hx-n6__nums > div + div .hx-n6__num { color: var(--ged-green); }
.hx-n6__lbl { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #4b5a44; margin: 12px 0 0; }
.hx-n6__top { margin-bottom: 28px; }
.hx-n6__intro { font-family: 'Inter', sans-serif; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: #3f4c39; max-width: 52rem; margin: 0 0 48px; }
.hx-press { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hx-press__card { display: flex; flex-direction: column; padding: 30px 30px 26px; border-radius: 18px; background: #fff;
  border: 1px solid rgba(61,122,53,.15); color: var(--ged-text-dark); box-sizing: border-box; box-shadow: 0 20px 40px -32px rgba(28,42,23,.45);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.hx-press__card:hover { border-color: rgba(201,107,53,.55); transform: translateY(-3px); box-shadow: 0 24px 44px -26px rgba(201,107,53,.45); }
.hx-press__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px;
  padding-bottom: 18px; border-bottom: 1px solid rgba(28,42,23,.08); }
.hx-press__logo { height: 32px; width: auto; max-width: 200px; object-fit: contain; }
.hx-press__brand { display: inline-flex; align-items: center; gap: 12px; }
.hx-press__fav { width: 28px; height: 28px; border-radius: 6px; }
.hx-press__name { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: #111; }
.hx-press__type { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ged-green); background: rgba(61,122,53,.08); border: 1px solid rgba(61,122,53,.2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hx-press__title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: var(--ged-text-dark); margin: 20px 0 0; }
.hx-press__resena { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.65; color: #5b6a54; margin: 12px 0 0; }
.hx-press__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 24px; }
.hx-press__date { font-family: 'Space Mono', monospace; font-size: 12px; color: #7a8672; }
.hx-press__btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 2px; background: var(--ged-orange); color: var(--ged-cream);
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .25s ease, color .25s ease; }
.hx-press__btn:hover { background: var(--ged-orange-2); color: var(--ged-forest); }
.hx-press__btn--off { background: transparent; color: #7a8672; border: 1px dashed rgba(28,42,23,.25); cursor: default; }
.hx-press__btn--off:hover { background: transparent; color: #7a8672; }
@media (max-width: 960px) { .hx-n6__top { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hx-press { grid-template-columns: 1fr; } .hx-press__card { padding: 24px 22px; } }

/* ── Visor de la memoria (Drive) ─────── */
.hx-viewer { margin-top: clamp(56px, 7vw, 96px); border-radius: 18px; overflow: hidden; background: var(--ged-forest);
  border: 1px solid rgba(28,42,23,.25); box-shadow: 0 40px 80px -40px rgba(28,42,23,.6); }
.hx-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; background: var(--ged-deep); border-bottom: 1px solid rgba(240,234,214,.08); }
.hx-viewer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ged-lime); box-shadow: 0 0 10px var(--ged-lime); }
.hx-viewer__title { margin: 0; flex: 1; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ged-cream); }
.hx-viewer__title span { color: rgba(240,234,214,.45); font-weight: 400; }
.hx-viewer__fs { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: rgba(240,234,214,.06); border: 1px solid rgba(240,234,214,.15); color: var(--ged-cream); font-family: 'Inter', sans-serif; font-size: 13px; }
.hx-viewer__fs:hover { background: rgba(240,234,214,.12); }
.hx-viewer__frame { position: relative; height: min(82vh, 860px); background: #2b2b2b; }
.hx-viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hx-viewer__shield { position: absolute; top: 0; right: 0; width: 72px; height: 64px; z-index: 2; }
.hx-viewer:fullscreen { margin: 0; border-radius: 0; display: flex; flex-direction: column; }
.hx-viewer:fullscreen .hx-viewer__frame { flex: 1; height: auto; }
@media (max-width: 640px) { .hx-viewer__frame { height: 70vh; } .hx-viewer__fs span, .hx-viewer__title span { display: none; } }

/* ── N8 ─────────────────────────────── */
.hx-n8 { background: #000C09; padding: clamp(96px, 12vw, 176px) 0; position: relative; overflow: hidden; }
.hx-n8__glow { position: absolute; width: 720px; height: 720px; left: -180px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(201,107,53,.22), transparent 65%); pointer-events: none; }
.hx-n8::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 15%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent),
  radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,.6), transparent); }
.hx-n8__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hx-n8__art { display: grid; place-items: center; }
.hx-n8__art img { width: min(100%, 380px); height: auto; filter: drop-shadow(0 0 60px rgba(201,107,53,.35)); }
.hx-quote { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ged-orange); }
.hx-quote p { font-family: 'Inter', sans-serif; font-size: clamp(18px, 1.8vw, 22px); font-style: italic; color: #fff; margin: 0; line-height: 1.5; }
.hx-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ged-orange-2); }
.hx-btn { display: inline-block; margin-top: 40px; padding: 16px 32px; background: var(--ged-orange); color: var(--ged-cream); border-radius: 2px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; font-size: 15px;
  box-shadow: 0 0 20px rgba(201,107,53,.4); transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.hx-btn:hover { background: var(--ged-orange-2); color: var(--ged-forest); box-shadow: 0 0 30px rgba(232,160,103,.5); }
@media (max-width: 860px) { .hx-n8__grid { grid-template-columns: 1fr; } .hx-n8__art img { width: 220px; } }

/* ── Hero slideshow (V1) ─────────────── */
.hx-hero-bg { transition: opacity 1s ease; }
.hx-hero-bg.is-hidden { opacity: 0; }

/* ── Nav lateral ─────────────────────── */
.hx-nav-panel { transition: width .45s cubic-bezier(.4,0,.2,1), opacity .35s ease, margin .45s cubic-bezier(.4,0,.2,1); }
.hx-nav.is-collapsed .hx-nav-panel { width: 0 !important; opacity: 0; margin-right: 0 !important; }
.hx-nav.is-collapsed .hx-nav-toggle svg { transform: rotate(180deg); }
.hx-nav a.is-active { background: rgba(201,107,53,.25); color: #fff; }
@media (max-width: 1100px) { .hx-nav { display: none !important; } }

/* ── Lightbox galería (V10) ──────────── */
.hx-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,8,4,.92); display: grid; place-items: center; padding: 24px; }
.hx-lightbox[hidden] { display: none; }
.hx-lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.hx-lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ── Libro interactivo (StPageFlip) ──── */
.hx-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(240,234,214,.06); border: 1px solid rgba(240,234,214,.12); }
.hx-tabs[hidden] { display: none; }
.hx-tab { border: 0; background: transparent; color: rgba(240,234,214,.6); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 7px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.hx-tab:hover { color: var(--ged-cream); }
.hx-tab.is-active { background: var(--ged-orange); color: #fff; }
.hx-viewer__frame[hidden], .hx-flip[hidden] { display: none; }
.hx-flip { position: relative; padding: clamp(28px, 4vw, 56px) clamp(12px, 3vw, 40px) 28px;
  background: radial-gradient(ellipse at 50% 40%, #233417 0%, var(--ged-forest) 55%, #0a1207 100%);
  -webkit-user-select: none; user-select: none; }
.hx-flip__stage { max-width: 1180px; margin: 0 auto; }
.hx-flip__book { margin: 0 auto; }
.hx-flip__book:not(.is-ready) .hx-page:not(:first-child) { display: none; }   /* antes de iniciar: solo portada */
.hx-flip__book:not(.is-ready) { max-width: 460px; }
.hx-page { background: #fff; overflow: hidden; }
.hx-page img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.stf__parent { margin: 0 auto; }
.hx-flip__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.hx-flip__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(240,234,214,.08); border: 1px solid rgba(240,234,214,.18); color: var(--ged-cream); transition: background .2s ease, border-color .2s ease; }
.hx-flip__btn:hover:not(:disabled) { background: var(--ged-orange); border-color: var(--ged-orange); }
.hx-flip__btn:disabled { opacity: .35; cursor: default; }
.hx-flip__count { margin: 0; min-width: 92px; text-align: center; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px; color: var(--ged-cream); letter-spacing: .06em; }
.hx-flip__hint { margin: 12px 0 0; text-align: center; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(240,234,214,.45); }
.hx-viewer:fullscreen .hx-flip { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hx-viewer:fullscreen .hx-flip[hidden] { display: none; }
@media (max-width: 640px) { .hx-tab { padding: 6px 10px; } .hx-viewer__title { font-size: 11px; } }
/* estado de carga del libro (modo PDF) */
.hx-flip__stage { position: relative; min-height: 380px; }
.hx-flip__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .06em; color: rgba(240,234,214,.75); pointer-events: none; }
.hx-flip.is-loaded .hx-flip__loading { display: none; }
.hx-flip__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(240,234,214,.15); border-top-color: var(--ged-orange); animation: hx-spin 0.9s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-flip:not(.is-loaded) .hx-flip__controls, .hx-flip:not(.is-loaded) .hx-flip__hint { visibility: hidden; }
.hx-page { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='%23e0d9c8' stroke-width='3'/%3E%3C/svg%3E") center / 40px no-repeat; }
.hx-page img:not([src]) { visibility: hidden; }

/* ── Página del lector: memoria.html ─── */
body.hx-rp { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 0%, #1b2a12 0%, var(--ged-ink) 60%); color: var(--ged-cream); }
.hx-rp__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px clamp(16px, 3vw, 40px); border-bottom: 1px solid rgba(240,234,214,.08); }
.hx-rp__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ged-cream); text-decoration: none; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.hx-rp__brand img { width: 40px; height: 40px; border-radius: 50%; }
.hx-rp__heading { text-align: center; }
.hx-rp__kicker { margin: 0; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ged-gold); }
.hx-rp__title { margin: 4px 0 0; font-family: 'Orbitron', sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 30px); color: #fff; }
.hx-rp__back { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(240,234,214,.2); color: var(--ged-cream); font-family: 'Inter', sans-serif; font-size: 13px; transition: background .2s ease, border-color .2s ease; }
.hx-rp__back:hover { background: var(--ged-orange); border-color: var(--ged-orange); }
.hx-rp__main { flex: 1; padding: clamp(16px, 2.5vw, 32px) 0; }
.hx-rp .hx-wrap { max-width: 1600px; }
.hx-rp .hx-viewer { margin-top: 0; border-color: rgba(240,234,214,.1); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.hx-rp__foot { padding: 18px 24px 26px; text-align: center; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(240,234,214,.4); }
.hx-rp__foot p { margin: 0; }
.hx-rp__foot a { color: rgba(240,234,214,.65); }
a.hx-book__mock { text-decoration: none; cursor: pointer; }
@media (max-width: 720px) {
  .hx-rp__top { grid-template-columns: auto 1fr auto; }
  .hx-rp__brand span, .hx-rp__back span, .hx-rp__kicker { display: none; }
  .hx-rp__back { padding: 9px; }
}
.hx-rp .hx-flip { padding-top: 22px; padding-bottom: 16px; }
.hx-rp .hx-flip__controls { margin-top: 16px; }
.hx-rp__main { padding-top: 16px; padding-bottom: 8px; }
.hx-rp .hx-viewer__frame { height: calc(100vh - 190px); min-height: 420px; }
.hx-rp .hx-viewer__title { visibility: hidden; }

/* ── Galería "Memoria y legado" 2024 | 2026 ── */
.hx-gal { position: relative; overflow: hidden; padding: clamp(96px, 11vw, 168px) 0 clamp(80px, 9vw, 140px); background: var(--ged-ink); isolation: isolate; }
.hx-gal__bg { position: absolute; inset: 0; z-index: -1; }
.hx-gal__half { position: absolute; inset: 0; }
.hx-gal__half--2024 { clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
  background: radial-gradient(ellipse at 20% 30%, rgba(143,199,74,.16), transparent 55%), linear-gradient(160deg, #13200e 0%, #0b1408 100%); }
.hx-gal__half--2026 { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%);
  background: radial-gradient(ellipse at 80% 30%, rgba(201,107,53,.20), transparent 55%), linear-gradient(200deg, #22140b 0%, #0f0a06 100%); }
.hx-gal__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-gal__line line { stroke: rgba(240,234,214,.22); stroke-width: 1.5; }
.hx-gal__wrap { max-width: 80rem; }
.hx-gal__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(72px, 14vw, 240px); align-items: start; }
.hx-gal__head { margin-bottom: 26px; }
.hx-gal__col--2026 .hx-gal__head { text-align: right; }
.hx-gal__label { margin: 0; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(240,234,214,.7); }
.hx-gal__year { margin: 6px 0 0; font-family: 'Orbitron', sans-serif; font-weight: 900; line-height: .9; font-size: clamp(64px, 8vw, 128px);
  color: transparent; -webkit-background-clip: text; background-clip: text; }
.hx-gal__col--2024 .hx-gal__year { background-image: linear-gradient(90deg, #8FC74A, #5E8A3A); }
.hx-gal__col--2026 .hx-gal__year { background-image: linear-gradient(90deg, #E8A067, #C96B35); }
.hx-gal__place { margin: 10px 0 0; font-family: 'Inter', sans-serif; font-size: 14px; color: rgba(240,234,214,.6); }
.hx-gal__grid { columns: 3; column-gap: 12px; }
.hx-gal__item { display: block; margin: 0 0 12px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06); cursor: zoom-in; }
.hx-gal__item img { display: block; width: 100%; height: auto; transition: transform .6s ease, filter .4s ease; }
.hx-gal__item:hover img, .hx-gal__item:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.hx-gal__col--2024 .hx-gal__item:hover { border-color: rgba(143,199,74,.6); }
.hx-gal__col--2026 .hx-gal__item:hover { border-color: rgba(232,160,103,.6); }
.hx-gal__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 20px; border-radius: 2px; cursor: pointer;
  background: transparent; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: background .25s ease, color .25s ease; }
.hx-gal__col--2024 .hx-gal__more { border: 1px solid #7A9A4A; color: #8FC74A; }
.hx-gal__col--2024 .hx-gal__more:hover { background: rgba(122,154,74,.18); }
.hx-gal__col--2026 { text-align: right; }
.hx-gal__col--2026 .hx-gal__grid { text-align: left; }
.hx-gal__col--2026 .hx-gal__more { border: 1px solid #C96B35; color: #E8A067; }
.hx-gal__col--2026 .hx-gal__more:hover { background: rgba(201,107,53,.18); }
@media (max-width: 1024px) {
  /* celular y tablet: 2026 arriba, 2024 abajo, separados por un corte inclinado */
  .hx-gal__half--2024, .hx-gal__line { display: none; }
  .hx-gal__half--2026 { clip-path: none; }
  .hx-gal__cols { grid-template-columns: 1fr; row-gap: 140px; }
  .hx-gal__col--2026 { order: -1; }
  .hx-gal__col--2024 { position: relative; }
  .hx-gal__col--2024::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: -110px; bottom: -400px; left: 50%; width: 100vw; margin-left: -50vw;
    clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%);
    background: radial-gradient(ellipse at 20% 12%, rgba(143,199,74,.18), transparent 50%), linear-gradient(160deg, #13200e 0%, #0b1408 100%); }
  .hx-gal__col--2024::after { content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: -110px; height: 64px; left: 50%; width: 100vw; margin-left: -50vw;
    background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(240,234,214,.25) 50%, transparent calc(50% + 1px)); }
  .hx-gal__grid { columns: 3; }
}
@media (max-width: 640px) {
  .hx-gal__grid { columns: 2; column-gap: 10px; }
  .hx-gal__item { margin-bottom: 10px; }
  .hx-gal__cols { row-gap: 110px; }
  .hx-gal__col--2024::before, .hx-gal__col--2024::after { top: -88px; }
  .hx-gal__col--2024::before { clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); }
  .hx-gal__col--2024::after { height: 48px; }
}
}

/* lightbox con navegación */
.hx-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.hx-lightbox__cap { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .08em; color: rgba(240,234,214,.75); white-space: pre; }
.hx-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; transition: background .2s ease; z-index: 2; }
.hx-lightbox__nav:hover { background: var(--ged-orange); border-color: var(--ged-orange); }
.hx-lightbox__nav--prev { left: 18px; }
.hx-lightbox__nav--next { right: 18px; }
.hx-lightbox img { max-height: 82vh; }
@media (max-width: 640px) { .hx-lightbox__nav { width: 42px; height: 42px; top: auto; bottom: 18px; transform: none; } .hx-lightbox__nav--prev { left: calc(50% - 56px); } .hx-lightbox__nav--next { right: calc(50% - 56px); } .hx-lightbox img { max-height: 72vh; } }
.hx-devnote { margin: 0; padding: 12px 18px; background: #3b2a06; color: #ffe3a3; border-bottom: 1px solid rgba(255,212,71,.35); font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; }
.hx-devnote code { background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 4px; }
