/* ==========================================================================
   Oracle Gypsies — Nordic Academy
   HOME v2 — full rebuild (og-nh-* namespace, scoped to page 15 only).
   Replaces the previous og-home-*/og-formacion*/og-mosaic* component layer.
   Presentation only — no campus logic. Design tokens come from style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Elementor structural adapter (same three facts as before, restated for
   the new namespace):
   1. A "boxed" container inserts .e-con-inner between the class and its
      real children — display:contents keeps our layout rules effective.
   2. .elementor-widget-html is position:relative and width defaults via
      Elementor's --width custom property (1140px) — every og-nh-* section
      is meant to run full width, so both are reset per section.
   3. Absolutely positioned children inside a widget anchor to the widget
      (position:relative), not the section, unless the widget is forced
      position:static.
   -------------------------------------------------------------------------- */
.og-theme .og-nh-hero > .e-con-inner,
.og-theme .og-nh-values > .e-con-inner,
.og-theme .og-nh-formaciones > .e-con-inner,
.og-theme .og-nh-viaje > .e-con-inner,
.og-theme .og-nh-comunidad > .e-con-inner,
.og-theme .og-nh-quote > .e-con-inner,
.og-theme .og-nh-cta > .e-con-inner,
.og-theme .og-nh-footer > .e-con-inner { display: contents !important; }

.og-theme .og-nh-hero .elementor-widget-html,
.og-theme .og-nh-values .elementor-widget-html,
.og-theme .og-nh-formaciones > .elementor-element > .elementor-widget-html,
.og-theme .og-nh-viaje .elementor-widget-html,
.og-theme .og-nh-comunidad .elementor-widget-html,
.og-theme .og-nh-quote .elementor-widget-html,
.og-theme .og-nh-cta .elementor-widget-html,
.og-theme .og-nh-footer .elementor-widget-html {
  position: static;
  width: 100% !important;
  max-width: none !important;
}
/* The 3 formation cards now live as plain markup inside ONE html widget
   (see build note in build.js) — .og-nh-formaciones-grid is a normal <div>,
   never touched by Elementor's .e-con/.e-con-inner system, so it needs no
   cascade fight at all. */
.og-theme .og-nh-hero.og-nh-hero.og-nh-hero,
.og-theme .og-nh-values.og-nh-values.og-nh-values,
.og-theme .og-nh-formaciones.og-nh-formaciones.og-nh-formaciones,
.og-theme .og-nh-viaje.og-nh-viaje.og-nh-viaje,
.og-theme .og-nh-comunidad.og-nh-comunidad.og-nh-comunidad,
.og-theme .og-nh-quote.og-nh-quote.og-nh-quote,
.og-theme .og-nh-cta.og-nh-cta.og-nh-cta,
.og-theme .og-nh-footer.og-nh-footer.og-nh-footer {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
.og-nh-kicker {
  margin: 0 0 12px;
  color: var(--og-gold);
  font-family: var(--og-font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.og-nh-eyebrow {
  margin: 0 0 16px;
  color: var(--og-gold-soft);
  font-family: var(--og-font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
}
.og-nh-section-title {
  margin: 0 0 12px;
  color: var(--og-ivory);
  font-family: var(--og-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.05;
}
.og-nh-section-title--sm { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.og-nh-section-lead { margin: 0 0 22px; max-width: 56ch; color: var(--og-muted); font-family: var(--og-font-body); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.7; }
.og-nh-section-head { max-width: var(--og-max); margin: 0 auto 44px; padding: 0 var(--og-gutter); text-align: center; }
.og-nh-section-head .og-nh-section-lead { margin-inline: auto; }

.og-nh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--og-border);
  border-radius: 8px;
  background: rgba(8,7,15,.7);
  color: var(--og-ivory);
  font-family: var(--og-font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.og-nh-btn:hover { transform: translateY(-2px); }
.og-nh-btn--gold { border-color: transparent; background: linear-gradient(135deg,#e4c58b,#c99b50); color: #16100b; box-shadow: 0 12px 30px rgba(216,182,120,.18); }
.og-nh-btn--gold:hover { box-shadow: 0 16px 38px rgba(216,182,120,.28); }
.og-nh-btn--ghost { background: rgba(255,255,255,.02); }
.og-nh-btn--ghost:hover { border-color: rgba(216,182,120,.6); background: rgba(255,255,255,.05); }
.og-nh-btn--purple { border-color: rgba(185,124,201,.45); background: linear-gradient(135deg,#4a245f,#271332); }
.og-nh-btn--purple:hover { box-shadow: 0 14px 34px rgba(99,52,119,.32); }
.og-nh-btn--sm { min-height: 42px; padding: 10px 18px; font-size: .66rem; }

body.og-nh-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.og-nh-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  width: 100%;
  min-height: 82px;
  padding: 0 clamp(20px, 3.5vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(5,5,10,.7);
  backdrop-filter: blur(16px);
  transition: background .25s ease, border-color .25s ease;
}
.og-nh-nav.is-scrolled { background: rgba(5,5,10,.94); border-bottom-color: rgba(216,182,120,.18); }
.og-nh-nav__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: max-content; }
.og-nh-nav__brand img { width: 48px; height: 48px; object-fit: contain; }
.og-nh-nav__brandtext strong { display: block; color: var(--og-ivory); font-family: var(--og-font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: .15em; }
.og-nh-nav__brandtext small { display: block; margin-top: 2px; color: var(--og-muted); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }
.og-nh-nav__links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); margin: 0 0 0 auto; padding: 0; list-style: none; }
.og-nh-nav__links a { color: #d6cfd6; font-size: .66rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.og-nh-nav__links a.is-active { color: var(--og-gold); }
.og-nh-nav__links a:hover { color: var(--og-gold-soft); }
/* On desktop .og-nh-nav__links already claims the free space with its own
   margin-left:auto, so the CTA just needs a fixed gap after it. On
   tablet/mobile the links list is removed from flow (it becomes the
   drawer), so the CTA must claim margin-left:auto itself there — done in
   the media query below, not here, so desktop keeps a single flexible gap
   instead of splitting it between two auto margins. */
.og-nh-nav__cta { display: inline-flex; align-items: center; gap: 8px; margin-left: 22px; padding: 11px 20px; border: 1px solid rgba(185,124,201,.42); border-radius: 8px; background: linear-gradient(135deg,#4a245f,#271332); color: var(--og-ivory); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
.og-nh-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99,52,119,.34); }
.og-nh-nav__toggle { display: none; width: 42px; height: 42px; margin-left: 14px; padding: 0; border: 0; background: transparent; cursor: pointer; flex: none; }
.og-nh-nav__toggle span { display: block; width: 22px; height: 1.5px; margin: 5px auto; background: var(--og-ivory); }
/* Drawer-only CTA copy — hidden everywhere except the mobile drawer
   (<560px, see below), where the header-level CTA is hidden instead. */
.og-nh-nav__links-cta { display: none; }

@media (max-width: 1180px) {
  .og-nh-nav__toggle { display: block; }
  /* .og-nh-nav__links (the only other margin-left:auto in this row) is
     removed from flow here — display:none below — so the CTA must take
     over pushing itself (and the toggle right after it) to the far right. */
  .og-nh-nav__cta { margin-left: auto; padding: 10px 16px; font-size: .6rem; }
  .og-nh-nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: flex-start; gap: 16px;
    margin: 0; padding: 22px clamp(20px, 4vw, 56px) 26px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(7,7,13,.98);
    box-shadow: var(--og-shadow);
    max-height: calc(100svh - 82px);
    overflow-y: auto;
  }
  .og-nh-nav__links.is-open { display: flex; }
  .og-nh-nav__links a { font-size: .8rem; }
}
@media (max-width: 560px) {
  .og-nh-nav__brandtext small { display: none; }
  .og-nh-nav__brand img { width: 40px; height: 40px; }
  .og-nh-nav__brandtext strong { font-size: 1rem; }
  /* The big pill button doesn't belong in a compact mobile header — only
     the drawer copy (.og-nh-nav__links-cta, a separate element nested
     inside the links list) is shown here instead. */
  nav.og-nh-nav > .og-nh-nav__cta { display: none; }
  /* With the header CTA gone, nothing else carries margin-left:auto — the
     toggle has to claim it itself here or it collapses back against the
     brand instead of sitting at the far right. */
  .og-nh-nav__toggle { margin-left: auto; }
  .og-nh-nav__links-cta { display: block; width: 100%; margin-top: 6px; }
  .og-nh-nav__links-cta .og-nh-nav__cta { display: flex; width: 100%; justify-content: center; margin-left: 0; padding: 13px 18px; font-size: .66rem; }
}

/* --------------------------------------------------------------------------
   Hero — one immersive scene, not two columns
   -------------------------------------------------------------------------- */
.og-nh-hero-scene { position: relative; width: 100%; min-height: min(760px, 92svh); overflow: hidden; }
.og-nh-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 42%; filter: saturate(.82) contrast(1.08) brightness(.92); }
.og-nh-hero-photo--mobile { display: none; }
.og-nh-hero-grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, #06070c 0%, rgba(6,7,12,.9) 20%, rgba(9,7,16,.52) 42%, rgba(12,8,20,.18) 58%, transparent 74%),
    linear-gradient(180deg, rgba(6,6,11,.55) 0%, transparent 22%, rgba(10,7,16,.5) 100%),
    radial-gradient(ellipse at 30% 100%, rgba(74,36,95,.28), transparent 55%);
}
.og-nh-runic-rail {
  position: absolute; left: clamp(10px, 1.4vw, 24px); top: 14%; z-index: 3;
  display: grid; gap: 14px;
  color: rgba(185,124,201,.5);
  font-family: "Noto Sans Runic", "Segoe UI Symbol", serif;
  font-size: 1.3rem;
  pointer-events: none;
}
.og-nh-hero-sidelabel {
  position: absolute; right: clamp(18px, 2.2vw, 40px); bottom: clamp(30px, 5vh, 60px); z-index: 3;
  color: rgba(216,182,120,.85);
  font-family: var(--og-font-body);
  font-size: .6rem; font-weight: 600; letter-spacing: .26em; line-height: 2;
  text-align: right; text-transform: uppercase;
}
.og-nh-hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  max-width: 620px;
  padding: clamp(90px, 14vh, 150px) clamp(20px, 4vw, 30px) clamp(60px, 8vh, 100px) max(var(--og-gutter), calc((100vw - var(--og-max)) / 2));
}
.og-nh-eyebrow { color: rgba(216,182,120,.85); font-size: .7rem; }
.og-nh-hero-title { margin: 6px 0 0; color: var(--og-ivory); font-family: var(--og-font-display); font-weight: 500; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: .98; }
.og-nh-hero-title span { color: var(--og-gold); }
.og-nh-hero-lead { margin: 20px 0 0; max-width: 46ch; color: var(--og-muted); font-family: var(--og-font-body); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.7; }
.og-nh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

@media (max-width: 980px) {
  .og-nh-hero-scene { min-height: 0; padding-top: 62vh; }
  .og-nh-hero-photo--desktop { display: none; }
  .og-nh-hero-photo--mobile { display: block; object-position: 60% 30%; }
  .og-nh-hero-grade { background: linear-gradient(180deg, rgba(6,7,12,.15) 0%, transparent 34%, rgba(6,7,12,.86) 66%, #06070c 100%); }
  .og-nh-runic-rail { top: auto; bottom: calc(100% - 60vh + 14px); left: 14px; grid-auto-flow: column; gap: 12px; }
  .og-nh-hero-sidelabel { display: none; }
  .og-nh-hero-content { max-width: none; padding: 0 var(--og-gutter) clamp(40px, 6vh, 64px); text-align: left; }
}
@media (max-width: 560px) {
  .og-nh-hero-scene { padding-top: 56vh; }
  .og-nh-hero-actions { flex-direction: column; align-items: stretch; }
  .og-nh-btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Values strip — its own band, clearly separate from the hero
   -------------------------------------------------------------------------- */
.og-nh-values { background: #07070d; border-bottom: 1px solid rgba(255,255,255,.06); }
.og-nh-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--og-max); margin: 0 auto; }
.og-nh-value { display: flex; align-items: center; gap: 14px; padding: 22px clamp(14px, 1.6vw, 26px); border-right: 1px solid rgba(255,255,255,.07); }
.og-nh-value:last-child { border-right: 0; }
.og-nh-value__rune { flex: none; font-family: "Noto Sans Runic", "Segoe UI Symbol", serif; font-size: 1.7rem; line-height: 1; }
.og-nh-value--gold .og-nh-value__rune { color: var(--og-gold); }
.og-nh-value--purple .og-nh-value__rune { color: var(--og-purple-soft); }
.og-nh-value strong { display: block; color: var(--og-ivory); font-family: var(--og-font-body); font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.og-nh-value--gold strong { color: var(--og-gold-soft); }
.og-nh-value--purple strong { color: var(--og-purple-soft); }
.og-nh-value small { display: block; margin-top: 2px; color: var(--og-muted); font-size: .74rem; }

@media (max-width: 900px) {
  .og-nh-values-grid { grid-template-columns: 1fr 1fr; }
  .og-nh-value:nth-child(2) { border-right: 0; }
  .og-nh-value:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
}
@media (max-width: 480px) {
  .og-nh-value small { display: none; }
  .og-nh-value__rune { font-size: 1.4rem; }
}

/* --------------------------------------------------------------------------
   Formaciones
   -------------------------------------------------------------------------- */
.og-nh-formaciones { padding: clamp(70px, 8vw, 120px) 0; background: radial-gradient(circle at 85% 90%, rgba(79,32,97,.16), transparent 32%), #05050a; }
.og-nh-formaciones-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(18px, 1.8vw, 28px);
  max-width: var(--og-max);
  margin: 0 auto;
  padding: 0 var(--og-gutter);
}
.og-nh-formacion { display: flex; flex-direction: column; flex: 1 1 calc(33.333% - 19px); min-width: 280px; }
.og-nh-formacion__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--og-radius) var(--og-radius) 0 0; border: 1px solid rgba(216,182,120,.18); border-bottom: 0; }
.og-nh-formacion__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06); }
.og-nh-formacion__badge { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border: 1px solid rgba(216,182,120,.5); border-radius: 999px; background: rgba(8,7,15,.82); backdrop-filter: blur(6px); color: var(--og-gold-soft); font-family: var(--og-font-body); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.og-nh-formacion__body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 22px 22px; border: 1px solid rgba(216,182,120,.18); border-top: 0; border-radius: 0 0 var(--og-radius) var(--og-radius); background: #0e0b13; box-shadow: var(--og-shadow); text-align: center; }
.og-nh-formacion__nivel { color: var(--og-gold); font-family: var(--og-font-body); font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.og-nh-formacion__titulo { margin: 2px 0 0; color: var(--og-ivory); font-family: var(--og-font-display); font-weight: 500; font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1.08; }
.og-nh-formacion__desc { margin: 6px 0 4px; color: #d3ccd5; font-family: var(--og-font-display); font-size: .98rem; line-height: 1.5; }
.og-nh-formacion__caption { margin: 12px 0 0; color: var(--og-purple-soft); font-family: var(--og-font-body); font-size: .62rem; font-weight: 600; font-style: italic; letter-spacing: .16em; text-align: center; text-transform: uppercase; }

@media (max-width: 900px) {
  .og-nh-formaciones-grid { max-width: 520px; }
  .og-nh-formacion { flex-basis: 100%; }
}

/* --------------------------------------------------------------------------
   Viaje Nórdico
   -------------------------------------------------------------------------- */
.og-nh-viaje { padding: clamp(64px, 7vw, 100px) 0; background: linear-gradient(135deg, #0c0714 0%, #07070d 60%); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.og-nh-viaje-inner { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.5fr) minmax(0,.5fr); align-items: center; gap: clamp(20px, 2.6vw, 40px); max-width: var(--og-max); margin: 0 auto; padding: 0 var(--og-gutter); }
.og-nh-viaje-copy .og-nh-btn { margin-top: 8px; }
.og-nh-viaje-media { position: relative; aspect-ratio: 16/11; overflow: hidden; border-radius: var(--og-radius); border: 1px solid rgba(216,182,120,.18); box-shadow: var(--og-shadow); }
.og-nh-viaje-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.og-nh-viaje-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.og-nh-viaje-side__rune { color: var(--og-gold); font-family: "Noto Sans Runic", "Segoe UI Symbol", serif; font-size: 1.6rem; }
.og-nh-viaje-side__words { margin: 0; color: var(--og-muted); font-family: var(--og-font-body); font-size: .68rem; font-weight: 600; letter-spacing: .16em; line-height: 1.9; text-transform: uppercase; }
.og-nh-viaje-side__quote { margin: 6px 0 0; color: var(--og-gold-soft); font-family: var(--og-font-display); font-size: .92rem; font-style: italic; line-height: 1.4; }

@media (max-width: 1100px) {
  .og-nh-viaje-inner { grid-template-columns: 1fr; }
  .og-nh-viaje-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .og-nh-viaje-side__words { line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   Comunidad
   -------------------------------------------------------------------------- */
.og-nh-comunidad { padding: clamp(64px, 7vw, 100px) 0; background: #07070e; }
.og-nh-comunidad-inner { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr); align-items: center; gap: clamp(24px, 3vw, 48px); max-width: var(--og-max); margin: 0 auto; padding: 0 var(--og-gutter); }
.og-nh-comunidad-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.og-nh-comunidad-gallery img { display: block; width: 100%; height: 190px; object-fit: cover; border: 1px solid rgba(216,182,120,.16); border-radius: 14px; filter: saturate(.85) contrast(1.05); }

@media (max-width: 1000px) {
  .og-nh-comunidad-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .og-nh-comunidad-gallery { grid-template-columns: 1fr 1fr; }
  .og-nh-comunidad-gallery img:first-child { grid-column: span 2; height: 220px; }
}

/* --------------------------------------------------------------------------
   Quote transition
   -------------------------------------------------------------------------- */
.og-nh-quote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: clamp(50px, 6vw, 84px) var(--og-gutter);
  background: radial-gradient(ellipse at 50% 0%, rgba(74,36,95,.22), transparent 60%),
              linear-gradient(180deg, #090712 0%, #0b0e1c 55%, #090712 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.og-nh-quote__rune { color: var(--og-gold); font-family: "Noto Sans Runic", "Segoe UI Symbol", serif; font-size: 1.6rem; opacity: .8; }
.og-nh-quote__text { margin: 0; color: var(--og-ivory); font-family: var(--og-font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.og-nh-cta { padding: clamp(60px, 7vw, 100px) var(--og-gutter); background: radial-gradient(circle at 12% 90%, rgba(216,182,120,.1), transparent 30%), radial-gradient(circle at 88% 15%, rgba(99,52,119,.24), transparent 32%), #06060c; text-align: center; }
.og-nh-cta-inner { max-width: 760px; margin: 0 auto; }
.og-nh-cta-title { margin: 0 0 10px; color: var(--og-ivory); font-family: var(--og-font-display); font-weight: 500; font-size: clamp(1.9rem, 3vw, 3rem); }
.og-nh-cta-lead { margin: 0 0 26px; color: var(--og-muted); font-family: var(--og-font-body); }
.og-nh-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 560px) { .og-nh-cta-actions { flex-direction: column; align-items: stretch; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.og-nh-footer { padding: clamp(40px, 5vw, 60px) var(--og-gutter) 26px; background: #05050a; }
.og-nh-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--og-max); margin: 0 auto clamp(20px, 2.6vw, 34px); padding-bottom: clamp(20px, 2.6vw, 34px); border-bottom: 1px solid rgba(255,255,255,.06); }
.og-nh-footer-brand { display: flex; align-items: center; gap: 12px; }
.og-nh-footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.og-nh-footer-brand strong { display: block; color: var(--og-ivory); font-family: var(--og-font-display); font-size: 1rem; letter-spacing: .14em; }
.og-nh-footer-brand small { display: block; margin-top: 1px; color: var(--og-muted); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.og-nh-footer-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 26px); }
.og-nh-footer-nav a { color: var(--og-muted); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.og-nh-footer-nav a:hover { color: var(--og-gold-soft); }
.og-nh-footer-social a { color: var(--og-gold-soft); font-size: .78rem; text-decoration: none; }
.og-nh-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: var(--og-max); margin: 0 auto; color: var(--og-muted); font-size: .78rem; text-align: center; }
.og-nh-footer-legal a { color: var(--og-muted); text-decoration: none; }
.og-nh-footer-legal a:hover { color: var(--og-gold-soft); }
.og-nh-footer-legal span { opacity: .5; }
.og-nh-footer-bottom { max-width: var(--og-max); margin: 18px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); color: rgba(184,175,186,.7); font-size: .72rem; letter-spacing: .08em; text-align: center; line-height: 1.8; }

@media (max-width: 760px) {
  .og-nh-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Formation cards (RUNAS / CHAMANISMO / HERBOLARIA) — native Elementor
   Image widgets. Elementor's own per-page stylesheet (post-15.css) bakes a
   hardcoded rule straight from each widget's saved settings, e.g.:
     .elementor-15 .elementor-element.elementor-element-3d43694 img
       { width:100%; height:240px; ... }
   That's 3 classes deep and loads AFTER home.css, so a same-specificity rule
   here loses on source order alone — hence the stretched portrait photos
   (1086x1448 source forced into a 240px-tall box with no object-fit set,
   which defaults to "fill"). !important is required to win regardless of
   Elementor regenerating that per-element CSS again later. Scoped to
   .og-portada-card — the only 3 elements holding that class (the 3
   formation cards) — because the generic .og-portada-element utility class
   is reused on ~70 other elements across the page (logo, comunidad mosaic,
   headings, buttons), and .og-portada-container is reused for several
   unrelated wrapper levels, so neither can be targeted bare.
   ========================================================================== */
.og-portada-card .og-portada-element.elementor-widget-image {
  position: relative !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  border-radius: var(--og-radius) var(--og-radius) 0 0 !important;
}
.og-portada-card .og-portada-element.elementor-widget-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(.82) contrast(1.06);
}

/* Tablet: 3 equal-thirds cards were rendering ~200px wide — too small to
   read. Collapse the row to 2 columns (3rd wraps below) instead of shrinking
   further. The row is selected via :has() to reach specifically the flex
   container that is the direct parent of the 3 cards, since a bare
   .og-portada-container selector would also match unrelated wrapper levels
   reusing the same class elsewhere in this section. */
@media (max-width: 900px) {
  .og-portada-container:has(> .og-portada-card) { flex-wrap: wrap !important; }
  /* 50% minus only the visible gap still overshot and forced each card onto
     its own row — the parent has its own horizontal padding eating into the
     width calc(50%) resolves against, so this leaves more slack than the
     gap alone would suggest. */
  .og-portada-card { width: calc(50% - 24px) !important; flex: 0 0 auto !important; }
}
@media (max-width: 560px) {
  .og-portada-card { width: 100% !important; }
}


/* =====================================================================
   Fase 1 — navegación canónica y drawer responsive (2026-09-05)
   ===================================================================== */
#formaciones,
#viaje-nordico,
#comunidad,
#contacto { scroll-margin-top: 96px; }

.og-portada-header .elementor-nav-menu--main a[href*="/acceso/"] { display: none !important; }
#contacto .elementor-nav-menu a[href*="/acceso/"] { display: none !important; }

@media (max-width: 1024px) {
  .og-portada-header { position: relative !important; z-index: 9999 !important; overflow: visible !important; }
  .og-portada-header > .og-portada-container:first-child { width: auto !important; min-width: 0 !important; flex: 1 1 auto !important; order: 1; }
  .og-portada-header > .elementor-element-4566210 { position: static !important; width: auto !important; flex: 0 0 auto !important; order: 3; }
  .og-portada-header .elementor-widget-nav-menu { position: static !important; }
  .og-portada-header .elementor-nav-menu--dropdown {
    position: absolute !important; inset: 100% 0 auto 0 !important;
    width: 100% !important; max-width: none !important;
    max-height: calc(100dvh - 88px) !important; overflow-y: auto !important;
    overscroll-behavior: contain; z-index: 10000 !important;
    border-top: 1px solid rgba(216,182,120,.2); border-bottom: 1px solid rgba(216,182,120,.2);
    background: rgba(7,7,13,.985) !important; box-shadow: 0 22px 54px rgba(0,0,0,.48);
  }
  body.admin-bar .og-portada-header .elementor-nav-menu--dropdown { max-height: calc(100dvh - 134px) !important; }
  .og-portada-header .elementor-nav-menu--dropdown .elementor-nav-menu { width: 100% !important; padding: 10px 18px 18px; }
  .og-portada-header .elementor-nav-menu--dropdown .elementor-item { width: 100% !important; min-height: 46px; padding: 13px 12px !important; white-space: normal !important; }
  .og-portada-header .elementor-nav-menu--dropdown a[href*="/acceso/"] {
    display: flex !important; justify-content: center; margin-top: 10px;
    border: 1px solid rgba(185,124,201,.52); border-radius: 6px;
    background: linear-gradient(135deg,#4a245f,#271332); color: #f5efe4 !important; text-align: center;
  }
}

@media (min-width: 561px) and (max-width: 1024px) {
  .og-portada-header > .elementor-element-e77d5f5 { display: flex !important; width: auto !important; flex: 0 0 auto !important; order: 2; }
  .og-portada-header > .elementor-element-e77d5f5 .elementor-button { min-height: 40px; padding: 10px 13px; font-size: 9px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .og-portada-header > .elementor-element-e77d5f5 { display: none !important; }
}
