/* ══════════════════════════════════════════════
   NUESTRA HISTORIA — v2
   Depende de: theme.css, home.css (gold-divider, btn-gold)
══════════════════════════════════════════════ */

/* ── Fondo global ──────────────────────────── */
.nh-fondo-global {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.nh-fondo-global::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}

/* ── Base ──────────────────────────────────── */
.nh-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nh-section {
  padding: 80px 0;
  position: relative;
}

.nh-section__header {
  text-align: center;
  margin-bottom: 52px;
}

.nh-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #fff;
  margin: 10px 0 0;
  font-weight: 700;
}

.nh-eyebrow {
  font-family: var(--font-tech, 'Orbitron', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
  display: block;
}

/* ── HERO ──────────────────────────────────── */
.nh-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.nh-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  margin: 1rem 0;
}

.nh-hero__royal {
  display: block;
  color: #fff;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

.nh-hero__history {
  display: block;
  background: linear-gradient(135deg, #c9a84c 0%, #f0d080 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nh-hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin: 0;
}

.nh-hero__est {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-tech, 'Orbitron', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold, #c9a84c);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 5px 20px;
  border-radius: 100px;
}

.nh-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 1.4rem;
  animation: nhBounce 2s infinite;
}

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

/* ── ORIGEN ────────────────────────────────── */
.nh-origen {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

.nh-origen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.nh-origen__bloque p {
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}

.nh-highlight {
  color: var(--gold, #c9a84c) !important;
  font-style: italic;
  font-weight: 500;
}

/* ── LEMA ──────────────────────────────────── */
.nh-lema {
  padding: 100px 0;
  text-align: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.nh-lema__line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0.35rem 0;
  opacity: 0;
  min-height: 1.4em;
  letter-spacing: 0.03em;
}

.nh-lema__line span { color: var(--gold, #c9a84c); }

.nh-lema__final {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem) !important;
  color: var(--gold, #c9a84c) !important;
  font-weight: 900 !important;
  text-shadow: 0 0 40px rgba(201,168,76,0.35);
  margin-top: 0.75rem !important;
}

/* ── TIMELINE ──────────────────────────────── */
.nh-timeline { background: rgba(0,0,0,0.35); }

.nh-timeline__track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nh-timeline__track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.5), transparent);
  transform: translateX(-50%);
}

.nh-tl-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.nh-tl-item__año {
  text-align: right;
  padding-right: 2rem;
  font-family: var(--font-tech, 'Orbitron', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
}

.nh-tl-item__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--gold, #c9a84c);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.nh-tl-item__dot--active {
  background: var(--gold, #c9a84c);
  box-shadow: 0 0 16px rgba(201,168,76,0.6);
}

.nh-tl-item__card {
  padding-left: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-left: 1.5rem;
  transition: border-color 0.3s;
}

.nh-tl-item__card:hover {
  border-color: rgba(201,168,76,0.35);
}

.nh-tl-item__card--active {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.04);
}

.nh-tl-item__card h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.nh-tl-item__card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.nh-tl-item__card em { color: var(--gold, #c9a84c); font-style: italic; }
.nh-tl-item__card strong { color: #fff; }

/* Items alternos — año a la derecha */
.nh-tl-item--alt .nh-tl-item__año {
  order: 3;
  text-align: left;
  padding-right: 0;
  padding-left: 2rem;
}

.nh-tl-item--alt .nh-tl-item__dot { order: 2; }

.nh-tl-item--alt .nh-tl-item__card {
  order: 1;
  margin-left: 0;
  margin-right: 1.5rem;
}

/* ── STATS ─────────────────────────────────── */
.nh-stats {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

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

.nh-stat {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 2rem 1rem;
  transition: border-color 0.3s, transform 0.3s;
}

.nh-stat:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}

.nh-stat__icon { font-size: 2rem; margin-bottom: 0.75rem; }

.nh-stat__num {
  font-family: var(--font-tech, 'Orbitron', sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.nh-stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── VALORES ───────────────────────────────── */
.nh-valores { background: rgba(0,0,0,0.35); }

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

.nh-valor {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.nh-valor:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
}

.nh-valor__icon { font-size: 2.2rem; display: block; margin-bottom: 0.75rem; }

.nh-valor h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.nh-valor p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* ── LOGROS ────────────────────────────────── */
.nh-logros { background: rgba(0,0,0,0.5); }

.nh-logros__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.nh-logro {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.nh-logro:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-3px);
}

.nh-logro img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.nh-logro__icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(201,168,76,0.04);
}

.nh-logro__body { padding: 1.1rem; }

.nh-logro__fecha {
  font-family: var(--font-tech, 'Orbitron');
  font-size: 0.6rem;
  color: var(--gold, #c9a84c);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nh-logro__body h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0.4rem 0 0.3rem;
}

.nh-logro__body p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

.nh-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255,255,255,0.3);
}
.nh-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── EQUIPO ────────────────────────────────── */
.nh-equipo { background: rgba(0,0,0,0.4); }

.nh-equipo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.nh-miembro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 14px;
  padding: 1.75rem 1rem;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

.nh-miembro:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
  background: rgba(201,168,76,0.04);
}

.nh-miembro__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,0.2);
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.nh-miembro:hover .nh-miembro__avatar { border-color: var(--gold, #c9a84c); }

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

.nh-miembro__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold, #c9a84c);
  background: rgba(201,168,76,0.08);
}

.nh-miembro h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.nh-miembro__rol {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.nh-rol--5 { background: rgba(201,168,76,0.15); color: #c9a84c; border: 1px solid rgba(201,168,76,0.4); }
.nh-rol--4 { background: rgba(192,192,192,0.12); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.3); }
.nh-rol--3 { background: rgba(100,180,255,0.12); color: #64b4ff; border: 1px solid rgba(100,180,255,0.3); }
.nh-rol--2 { background: rgba(100,220,150,0.12); color: #64dc96; border: 1px solid rgba(100,220,150,0.3); }

.nh-miembro__pais {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-top: 0.2rem;
}

/* ── CIERRE ────────────────────────────────── */
.nh-cierre {
  padding: 100px 0;
  text-align: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}

.nh-cierre__frase {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.nh-cierre__nombre {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #c9a84c, #f0d080, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 0.08em;
}

.nh-cierre__sub {
  font-family: var(--font-tech, 'Orbitron');
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .nh-stats__grid    { grid-template-columns: repeat(2, 1fr); }
  .nh-valores__grid  { grid-template-columns: repeat(2, 1fr); }
  .nh-origen__grid   { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nh-timeline__track::before { left: 16px; }

  .nh-tl-item,
  .nh-tl-item--alt {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
  }

  .nh-tl-item__año,
  .nh-tl-item--alt .nh-tl-item__año {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0.4rem 1rem;
    order: unset;
  }

  .nh-tl-item__dot,
  .nh-tl-item--alt .nh-tl-item__dot {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 0.3rem;
    order: unset;
  }

  .nh-tl-item__card,
  .nh-tl-item--alt .nh-tl-item__card {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 0 1rem;
    order: unset;
  }
}

@media (max-width: 480px) {
  .nh-stats__grid   { grid-template-columns: repeat(2, 1fr); }
  .nh-valores__grid { grid-template-columns: 1fr 1fr; }
  .nh-equipo__grid  { grid-template-columns: repeat(2, 1fr); }
}