/* ==========================================================================
   NUESTRA HISTORIA — Un lugar donde los recuerdos siguen vivos
   Identidad Visual Cálida, Editorial, Atemporal y Emocional
   ========================================================================== */

:root {
  --bg-linen: #faf6f0;
  --bg-cream: #fffdf9;
  --bg-sand: #f2ebe1;
  --bg-warm-card: #ffffff;
  --ink-espresso: #231b16;
  --ink-warm: #4c3d34;
  --ink-muted: #78665a;
  --accent-terracotta: #9c4221;
  --accent-terracotta-hover: #7c3115;
  --accent-amber: #b45309;
  --accent-gold-soft: #f6e8d5;
  --accent-sage: #2e6b4e;
  --accent-sage-bg: #e7f3ec;
  --border-warm: #e6dccf;
  --border-subtle: #efe7dc;
  --shadow-soft: 0 12px 32px rgba(35, 27, 22, 0.06);
  --shadow-hover: 0 18px 42px rgba(35, 27, 22, 0.12);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-linen);
  color: var(--ink-espresso);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   CABECERA EDITORIAL
   ========================================================================== */
.nh-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-warm);
}

.nh-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.nh-brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9c4221, #c76d3a);
  color: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(156, 66, 33, 0.25);
}

.nh-brand-text {
  display: flex;
  flex-direction: column;
}

.nh-brand-title {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--ink-espresso);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.nh-brand-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
}

.nh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-cream);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
}

.nh-nav-link {
  background: transparent;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-warm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nh-nav-link:hover {
  color: var(--ink-espresso);
  background: var(--bg-sand);
}

.nh-nav-link.active {
  background: var(--ink-espresso);
  color: #fffdf9;
  font-weight: 600;
}

.nh-pill-count {
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(156, 66, 33, 0.14);
  color: var(--accent-terracotta);
}

.nh-nav-link.active .nh-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nh-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
}

.nh-search-input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--ink-espresso);
  width: 215px;
  outline: none;
}

.nh-search-btn {
  background: var(--bg-sand);
  border: none;
  color: var(--ink-espresso);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
}

.nh-search-btn:hover {
  background: var(--border-warm);
}

.nh-btn-surprise {
  background: var(--accent-gold-soft);
  color: var(--accent-terracotta);
  border: 1px solid #e5c9a8;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nh-btn-surprise:hover {
  background: #eed8bc;
  transform: translateY(-1px);
}

.nh-btn-senior {
  background: var(--accent-sage);
  color: #ffffff;
  border: none;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(46, 107, 78, 0.22);
}

.nh-btn-senior:hover {
  background: #23553d;
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y VISTAS
   ========================================================================== */
.nh-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 28px 72px;
  min-height: calc(100vh - 150px);
}

.nh-view {
  display: none;
  animation: nhFadeIn 0.32s ease;
}

.nh-view.active {
  display: block;
}

@keyframes nhFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   PORTADA DINÁMICA (HERO PROTAGONISTA)
   ========================================================================== */
.nh-hero-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--bg-cream);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  min-height: 490px;
  margin-bottom: 34px;
}

.nh-hero-media {
  position: relative;
  background: #1b1512;
  overflow: hidden;
  cursor: pointer;
  min-height: 420px;
}

.nh-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.nh-hero-media:hover img {
  transform: scale(1.025);
}

.nh-hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(27, 21, 18, 0.76);
  backdrop-filter: blur(8px);
  color: #fffdf9;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nh-hero-content {
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-hero-welcome {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-terracotta);
  font-weight: 700;
  margin-bottom: 10px;
}

.nh-hero-headline {
  font-family: var(--font-serif);
  font-size: 2.55rem;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink-espresso);
}

.nh-hero-Lead {
  font-size: 1.06rem;
  color: var(--ink-warm);
  margin: 0 0 24px;
  line-height: 1.65;
}

.nh-hero-featured-box {
  background: var(--bg-linen);
  border-left: 3px solid var(--accent-terracotta);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 26px;
}

.nh-hero-featured-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-espresso);
  margin: 0 0 4px;
}

.nh-hero-featured-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.nh-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nh-btn-primary {
  background: var(--accent-terracotta);
  color: #fffdf9;
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nh-btn-primary:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-1px);
}

.nh-btn-secondary {
  background: var(--bg-sand);
  color: var(--ink-espresso);
  border: 1px solid var(--border-warm);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nh-btn-secondary:hover {
  background: #e6ddd0;
}

/* ==========================================================================
   PUERTAS DE ACCESO RÁPIDO EN PORTADA
   ========================================================================== */
.nh-quick-doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.nh-door-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(35, 27, 22, 0.03);
}

.nh-door-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #d0bea8;
}

.nh-door-kicker {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-terracotta);
  font-weight: 700;
  margin-bottom: 6px;
}

.nh-door-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--ink-espresso);
}

.nh-door-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   BLOQUES DE SECCIÓN Y TIRAS DE RECUERDOS
   ========================================================================== */
.nh-section-block {
  margin-bottom: 54px;
}

.nh-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.nh-section-kicker {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  font-weight: 700;
  margin-bottom: 4px;
}

.nh-section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0;
  color: var(--ink-espresso);
  line-height: 1.2;
}

.nh-section-desc {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
  max-width: 780px;
}

.nh-text-action {
  background: none;
  border: none;
  color: var(--accent-terracotta);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.nh-text-action:hover {
  text-decoration: underline;
}

.nh-discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nh-discovery-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all 0.26s ease;
  display: flex;
  flex-direction: column;
}

.nh-discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.nh-discovery-img-wrap {
  aspect-ratio: 4 / 3;
  background: #231b16;
  overflow: hidden;
  position: relative;
}

.nh-discovery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.nh-discovery-card:hover .nh-discovery-img-wrap img {
  transform: scale(1.04);
}

.nh-discovery-body {
  padding: 18px 20px 22px;
}

.nh-discovery-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta);
}

.nh-discovery-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  margin: 6px 0 8px;
  color: var(--ink-espresso);
}

.nh-discovery-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ==========================================================================
   TARJETAS DE FOTOGRAFÍAS GRANDES Y PROTAGONISTAS
   ========================================================================== */
.nh-photo-strip,
.nh-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 22px;
}

.nh-memory-card {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all 0.24s ease;
  display: flex;
  flex-direction: column;
}

.nh-memory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.nh-memory-media {
  aspect-ratio: 4 / 3;
  background: #1f1916;
  position: relative;
  overflow: hidden;
}

.nh-memory-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nh-memory-card:hover .nh-memory-media img {
  transform: scale(1.035);
}

.nh-video-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(24, 18, 15, 0.85);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nh-dup-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(24, 18, 15, 0.78);
  color: #fde68a;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
}

.nh-memory-caption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nh-memory-title {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink-espresso);
  margin: 0;
  line-height: 1.3;
}

.nh-memory-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nh-date-pill {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.nh-date-pill.verified {
  background: #e7f3ec;
  color: #1f5c3d;
}

.nh-date-pill.estimated {
  background: #fef3c7;
  color: #92400e;
}

.nh-date-pill.unknown {
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   ENCABEZADOS DE PÁGINA INTERNA
   ========================================================================== */
.nh-page-intro {
  max-width: 820px;
  margin-bottom: 32px;
}

.nh-page-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin: 4px 0 12px;
  color: var(--ink-espresso);
  line-height: 1.15;
}

.nh-page-subtitle {
  font-size: 1.05rem;
  color: var(--ink-warm);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   VIAJAR EN EL TIEMPO (CRÓNICA POR DÉCADAS Y AÑOS)
   ========================================================================== */
.nh-timeline-controls {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nh-decade-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nh-decade-btn {
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-warm);
  cursor: pointer;
}

.nh-decade-btn.active {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: #fff;
}

.nh-year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nh-year-pill {
  background: transparent;
  border: 1px solid var(--border-warm);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-warm);
  cursor: pointer;
}

.nh-year-pill:hover,
.nh-year-pill.active {
  background: var(--ink-espresso);
  color: #fff;
  border-color: var(--ink-espresso);
}

.nh-year-chapter {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-soft);
}

.nh-chapter-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nh-chapter-year {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink-espresso);
  margin: 0;
}

.nh-chapter-summary {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   LAS PERSONAS DE NUESTRA HISTORIA
   ========================================================================== */
.nh-people-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.nh-people-search-wrap {
  min-width: 260px;
  flex: 0 1 320px;
}

.nh-person-cat-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.nh-person-cat-badge.cat-familiares {
  background: #f6e8d5;
  color: #9c4221;
}

.nh-person-cat-badge.cat-amigos {
  background: #e7f3ec;
  color: #2e6b4e;
}

.nh-person-cat-badge.cat-otros {
  background: #ebe6f4;
  color: #5b3e85;
}

.nh-admin-person-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nh-admin-person-row {
  display: grid;
  grid-template-columns: 52px 1.3fr 0.9fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
}

@media (max-width: 900px) {
  .nh-admin-person-row {
    grid-template-columns: 1fr;
  }
}

.nh-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 42px;
}

.nh-person-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.24s ease;
}

.nh-person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.nh-person-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-gold-soft);
  margin-bottom: 14px;
  background: var(--bg-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-terracotta);
}

.nh-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nh-person-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 4px;
  color: var(--ink-espresso);
}

.nh-person-role {
  font-size: 0.86rem;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-bottom: 6px;
}

.nh-person-gen {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.nh-person-counts {
  font-size: 0.84rem;
  background: var(--bg-linen);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-warm);
}

.nh-person-detail {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-soft);
}

.nh-faces-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.nh-face-confirm-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nh-face-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nh-face-crop-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-terracotta);
  flex-shrink: 0;
  cursor: pointer;
}

.nh-face-card-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nh-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-warm);
  background: var(--bg-linen);
  color: var(--ink-espresso);
  font-size: 0.88rem;
}

.nh-face-btn-row {
  display: flex;
  gap: 8px;
}

.nh-btn-small-confirm {
  flex: 1;
  background: var(--accent-sage);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.nh-btn-small-ignore {
  background: var(--bg-sand);
  color: var(--ink-muted);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ==========================================================================
   ÁLBUMES Y ACONTECIMIENTOS
   ========================================================================== */
.nh-category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.nh-cat-chip {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-warm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nh-cat-chip.active {
  background: var(--ink-espresso);
  color: #fff;
  border-color: var(--ink-espresso);
}

.nh-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}

.nh-album-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.nh-album-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.nh-album-cover {
  aspect-ratio: 16 / 10;
  background: #231b16;
  position: relative;
  overflow: hidden;
}

.nh-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nh-album-card:hover .nh-album-cover img {
  transform: scale(1.04);
}

.nh-album-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(27, 21, 18, 0.78);
  color: #fffdf9;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.nh-album-body {
  padding: 20px 22px 24px;
}

.nh-album-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  margin: 0 0 8px;
  color: var(--ink-espresso);
}

.nh-album-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.nh-album-counts {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-terracotta);
}

/* ==========================================================================
   GALERÍA DE VIDEOS HISTÓRICOS
   ========================================================================== */
.nh-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

.nh-video-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.nh-video-player-wrap {
  aspect-ratio: 16 / 9;
  background: #0f0c0a;
  position: relative;
}

.nh-video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nh-video-card-body {
  padding: 18px 20px;
}

/* ==========================================================================
   SORPRENDEME CON UN RECUERDO
   ========================================================================== */
.nh-surprise-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.nh-surprise-media {
  background: #181310;
  border-radius: 18px;
  overflow: hidden;
  max-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nh-surprise-media img,
.nh-surprise-media video {
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   VISUALIZADOR PROTAGONISTA (LIGHTBOX)
   ========================================================================== */
.nh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 15, 12, 0.96);
  color: #FAF6F0;
  display: flex;
  flex-direction: column;
}

.nh-lightbox[hidden] {
  display: none !important;
}

.nh-lightbox-topbar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nh-lb-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nh-lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nh-lb-btn-accent {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
}

.nh-lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.nh-lightbox-stage {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 76px;
  position: relative;
}

.nh-lb-media-box {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}

.nh-lb-media-box img,
.nh-lb-media-box video {
  max-width: 86vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.nh-lb-face-box {
  position: absolute;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  cursor: pointer;
}

.nh-lb-face-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20, 15, 12, 0.9);
  color: #fde68a;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.nh-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nh-lb-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nh-lb-prev {
  left: 18px;
}

.nh-lb-next {
  right: 18px;
}

.nh-lightbox-drawer {
  width: 400px;
  height: 100%;
  background: var(--bg-cream);
  color: var(--ink-espresso);
  border-left: 1px solid var(--border-warm);
  padding: 24px;
  overflow-y: auto;
  z-index: 15;
}

.nh-lightbox-captionbar {
  padding: 14px 28px;
  background: rgba(15, 11, 9, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODO RECUERDOS — FAMILIARES MAYORES (ALTA LEGIBILIDAD Y SIMPLICIDAD)
   ========================================================================== */
.nh-senior-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #211914;
  color: #fffdf9;
  display: flex;
  flex-direction: column;
}

.nh-senior-overlay[hidden] {
  display: none !important;
}

.nh-senior-topbar {
  padding: 18px 32px;
  background: #2c211b;
  border-bottom: 2px solid #4a392f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nh-senior-badge {
  background: var(--accent-sage);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.nh-senior-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin: 4px 0 0;
}

.nh-senior-album-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nh-senior-topic-btn {
  background: #3d2f27;
  color: #fffdf9;
  border: 2px solid #634d40;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.nh-senior-topic-btn.active {
  background: #d97706;
  border-color: #fbbf24;
  color: #1c130e;
}

.nh-senior-exit-btn {
  background: #574438;
  color: #fff;
  border: 2px solid #856a58;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.nh-senior-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  padding: 28px 36px;
  align-items: center;
  min-height: 0;
  overflow-y: auto;
}

.nh-senior-photo-frame {
  background: #120d0a;
  border-radius: 20px;
  border: 2px solid #4a392f;
  height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nh-senior-photo-frame img,
.nh-senior-photo-frame video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nh-senior-story-panel {
  background: #2c211b;
  border: 2px solid #4a392f;
  border-radius: 20px;
  padding: 32px;
}

.nh-senior-memory-year {
  font-size: 1.35rem;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 8px;
}

.nh-senior-memory-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.nh-senior-memory-context {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #efe5dc;
}

.nh-senior-controls {
  padding: 20px 36px;
  background: #2c211b;
  border-top: 2px solid #4a392f;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nh-senior-ctrl-btn {
  background: #47362d;
  color: #fffdf9;
  border: 2px solid #755b4c;
  padding: 18px 34px;
  border-radius: 18px;
  font-size: 1.32rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 240px;
}

.nh-senior-play-btn {
  background: var(--accent-sage);
  border-color: #52a77c;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.nh-footer {
  border-top: 1px solid var(--border-warm);
  background: var(--bg-cream);
  padding: 24px 28px;
}

.nh-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.nh-footer-link {
  background: none;
  border: none;
  color: var(--accent-terracotta);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.nh-footer-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODO DEMOSTRACIÓN FAMILIAR, REVISIÓN DE ROSTROS Y CONTENIDO SENSIBLE
   ========================================================================== */
.nh-btn-demo-guard {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #a8dab5;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nh-btn-demo-guard:not(.active) {
  background: var(--bg-sand);
  color: var(--ink-warm);
  border-color: var(--border-warm);
}

.nh-btn-demo-guard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(19, 115, 51, 0.12);
}

.nh-btn-review-faces {
  margin-top: 10px;
  width: 100%;
  background: var(--bg-linen);
  color: var(--ink-espresso);
  border: 1px solid var(--border-warm);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nh-btn-review-faces:hover {
  background: var(--accent-terracotta);
  color: #fff;
  border-color: var(--accent-terracotta);
}

.nh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(24, 18, 15, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.nh-modal-backdrop[hidden] {
  display: none !important;
}

.nh-modal-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nh-face-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.nh-face-review-item {
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nh-face-review-visuals {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.nh-face-review-crop {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-terracotta);
  background: #231b16;
}

.nh-face-review-fullphoto {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border-warm);
  background: #231b16;
}

.nh-private-review-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.nh-private-preview-box {
  background: #1f1916;
  border-radius: 12px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #f5ebe1;
  position: relative;
  overflow: hidden;
}

.nh-private-preview-box img,
.nh-private-preview-box video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================================================================
   RESPONSIVE (TABLET Y CELULAR)
   ========================================================================== */
@media (max-width: 1080px) {
  .nh-hero-card,
  .nh-surprise-card,
  .nh-senior-stage {
    grid-template-columns: 1fr;
  }

  .nh-quick-doors,
  .nh-discovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nh-header-inner {
    padding: 12px 16px;
  }

  .nh-main {
    padding: 18px 16px 56px;
  }

  .nh-quick-doors,
  .nh-discovery-grid {
    grid-template-columns: 1fr;
  }

  .nh-hero-content {
    padding: 26px 22px;
  }

  .nh-hero-headline {
    font-size: 1.9rem;
  }

  .nh-lightbox-stage {
    padding: 12px;
  }

  .nh-lightbox-drawer {
    position: absolute;
    inset: 0;
    width: 100%;
  }
}
