/* Ching Tao Kenpo — estética dojo / kenpo */
:root {
  --bg: #050505;
  --bg-elev: #0c0c0e;
  --bg-tatami: #0a0a0c;
  --gold: #d4af37;
  --gold-soft: #f0d78c;
  --gold-dim: rgba(212, 175, 55, 0.16);
  --red: #8b1515;
  --red-hot: #c41e1e;
  --text: #f4f0e8;
  --muted: #b4aa9a;
  --border: rgba(212, 175, 55, 0.3);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --header-h: 4.6rem;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 0.75rem);
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

.dojo-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(139, 21, 21, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(212, 175, 55, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(212, 175, 55, 0.05), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(255, 255, 255, 0.012) 47px,
      rgba(255, 255, 255, 0.012) 48px
    );
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border), 0 0 28px rgba(212, 175, 55, 0.28);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-principal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.95rem;
  justify-content: flex-end;
}

.nav-principal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-principal a:hover,
.nav-principal a.is-active { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(5, 5, 5, 0.92)),
    radial-gradient(circle at 70% 40%, rgba(212, 175, 55, 0.12), transparent 42%);
}

.hero-kanji {
  position: absolute;
  right: -2%;
  top: 12%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 1;
  color: rgba(212, 175, 55, 0.04);
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
}

.hero-belt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, #111 0%, #111 18%, var(--gold) 18%, var(--gold) 22%, #111 22%, #111 100%);
  box-shadow: 0 -20px 60px rgba(212, 175, 55, 0.12);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.master-copy h2,
.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  background: linear-gradient(180deg, #fff 10%, var(--gold-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  color: var(--gold-soft);
  margin: 0 0 1.2rem;
  max-width: 28ch;
}

.hero-text {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, #f0d78c, var(--gold) 42%, #a8841f);
  color: #1a1408;
  border: none;
}
.btn-gold:hover { color: #000; filter: brightness(1.05); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.02);
}

.motto-line {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
  font-family: var(--font-display);
}

.seal {
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0.9rem;
  background:
    conic-gradient(from 200deg, transparent, rgba(212, 175, 55, 0.55), transparent 35%, rgba(139, 21, 21, 0.45), transparent 65%, rgba(212, 175, 55, 0.4));
  box-shadow: var(--shadow), 0 0 90px rgba(212, 175, 55, 0.18);
  animation: seal-spin 32s linear infinite;
  position: relative;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  background: #050505;
}

.seal img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  animation: seal-spin-reverse 32s linear infinite;
}

@keyframes seal-spin { to { transform: rotate(360deg); } }
@keyframes seal-spin-reverse { to { transform: rotate(-360deg); } }

/* Sections */
.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section-tatami {
  background:
    linear-gradient(180deg, rgba(139, 21, 21, 0.08), transparent 25%),
    linear-gradient(0deg, rgba(212, 175, 55, 0.04), transparent 30%),
    var(--bg-tatami);
  border-block: 1px solid rgba(212, 175, 55, 0.12);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 44rem;
}

.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-lead { color: var(--muted); margin: 0.4rem 0 0; }

.subhead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.subhead.center { text-align: center; margin-top: 2.5rem; margin-bottom: 1.5rem; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 2rem;
}

.split.reverse { grid-template-columns: 0.9fr 1.1fr; }

.prose p { color: var(--muted); margin: 0 0 1rem; }

.quote-inline {
  margin: 1.5rem 0 0;
  padding: 1rem 0 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.quote-inline cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.emblem-panel {
  margin: 0;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.12), transparent 50%),
    #000;
  box-shadow: var(--shadow);
}

.emblem-panel img {
  width: 100%;
  border-radius: 14px;
  object-fit: contain;
}

.emblem-panel-soft img { padding: 0.5rem; }

/* Sistema — layout simétrico */
.section-sistema {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--bg);
}

.sistema-wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.sistema-head {
  margin-bottom: 1.75rem;
}

.sistema-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.sistema-head .section-lead {
  margin: 0 auto;
  max-width: 28rem;
}

.sistema-seal {
  margin: 0 auto 1.75rem;
  width: min(100%, 260px);
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.12), transparent 60%),
    #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sistema-seal img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.sistema-intro {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.sistema-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sistema-pillars article {
  padding: 1.35rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.sistema-pillars strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.sistema-pillars span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.sistema-traits {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.sistema-traits li {
  padding: 0.75rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.sistema-quote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(90deg, rgba(139, 21, 21, 0.2), rgba(212, 175, 55, 0.08));
}

.sistema-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 760px) {
  .sistema-pillars,
  .sistema-traits {
    grid-template-columns: 1fr;
  }

  .sistema-seal {
    width: min(100%, 220px);
  }
}

/* Visual clear sections (otras secciones) */
.visual-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  margin-bottom: 2rem;
}

.visual-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.visual-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.visual-copy p { margin: 0; color: var(--muted); }

.lead-clear {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--text) !important;
  letter-spacing: 0.02em;
}

.trait-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.trait-cards article {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.trait-cards strong {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  min-width: 1.8rem;
}

.trait-cards span {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.camino-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.camino-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow);
}

.camino-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.camino-panel {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.camino-panel > p { margin: 0; color: var(--muted); }
.camino-panel .quote-panel { margin-top: auto; }

.formation-num {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}

.section-path {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  overflow: hidden;
}

.path-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.path-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.85);
}

.path-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.88)),
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12), transparent 60%);
}

.path-content { position: relative; z-index: 1; }

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.path-steps article {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.55);
}

.path-steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
}

.path-steps span { color: var(--text); font-weight: 600; }

.path-emphasis-line {
  font-family: var(--font-display);
  color: var(--gold-soft) !important;
  font-size: 1.1rem;
  margin: 0.75rem 0 1rem !important;
}

.conducta-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.conducta-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow);
}

.conducta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 420px;
}

.code-list-visual {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.code-list-visual li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.14);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.code-list-visual li span {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.commit-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 6px rgba(212, 175, 55, 0.15);
  background: radial-gradient(circle at center, var(--gold), transparent 55%);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.value-tile {
  grid-column: span 2;
  padding: 1.4rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.1), transparent 50%),
    var(--bg-elev);
  min-height: 100%;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.value-tile:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.value-tile-wide { grid-column: span 2; }

.value-mark {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.value-mark svg { width: 100%; height: 100%; }

.value-tile h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
}

.value-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.camino-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.chip-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 21, 21, 0.25);
  border: 1px solid rgba(196, 30, 30, 0.35);
  color: #f3d0d0;
  font-size: 0.82rem;
  font-weight: 600;
}

.quote-panel {
  margin: 0;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(139, 21, 21, 0.35), rgba(212, 175, 55, 0.08));
  display: grid;
  place-items: center;
  text-align: center;
}

.quote-panel p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
  color: var(--text);
}

/* Organigrama visual */
.org-block {
  margin: 2.75rem 0 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(ellipse at top, rgba(139, 21, 21, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 35%),
    rgba(0, 0, 0, 0.45);
  box-shadow: var(--shadow);
}

.org-block-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.org-block-head h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.org-block-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.org-pyramid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-pyramid > .org-node,
.org-tier {
  width: 100%;
  position: relative;
}

.org-pyramid > .org-node:not(:last-child)::after,
.org-pyramid > .org-node.org-node--regional::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 2px;
  height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.15));
  z-index: 1;
}

.org-node-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.org-node:hover .org-node-inner {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.org-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.org-badge svg {
  width: 26px;
  height: 26px;
}

.org-rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1408;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold) 55%, #a8841f);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.org-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  margin-bottom: 0.2rem;
}

.org-node em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.org-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.org-node--apex {
  max-width: 560px;
  margin-bottom: 14px;
}

.org-node--apex .org-node-inner {
  border-color: rgba(196, 30, 30, 0.5);
  background:
    linear-gradient(120deg, rgba(139, 21, 21, 0.45), rgba(12, 12, 14, 0.95) 55%);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 16px 40px rgba(139, 21, 21, 0.25);
}

.org-node--apex .org-rank {
  color: #fff;
  background: linear-gradient(145deg, var(--red-hot), var(--red));
  box-shadow: 0 0 0 4px rgba(196, 30, 30, 0.2);
}

.org-node--council {
  max-width: 620px;
  margin-bottom: 14px;
}

.org-node--council .org-node-inner {
  border-color: rgba(160, 82, 45, 0.45);
  background: linear-gradient(120deg, rgba(120, 55, 30, 0.35), rgba(12, 12, 14, 0.95) 60%);
}

.org-node--council .org-rank {
  color: #2a1608;
  background: linear-gradient(145deg, #e8b87a, #a0522d);
}

.org-node--national {
  max-width: 680px;
  margin-bottom: 14px;
}

.org-node--national .org-node-inner {
  border-color: rgba(212, 175, 55, 0.4);
}

.org-node--regional {
  max-width: 720px;
  margin-bottom: 14px;
}

.org-node--regional .org-node-inner {
  border-color: rgba(60, 150, 90, 0.4);
  background: linear-gradient(120deg, rgba(30, 90, 55, 0.28), rgba(12, 12, 14, 0.95) 60%);
}

.org-node--regional .org-rank {
  color: #062214;
  background: linear-gradient(145deg, #8fd9a8, #2f7a45);
}

.org-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.35rem;
  max-width: 820px;
}

.org-node--schools .org-node-inner {
  border-color: rgba(60, 130, 200, 0.4);
  background: linear-gradient(160deg, rgba(30, 70, 120, 0.3), rgba(12, 12, 14, 0.95));
  height: 100%;
}

.org-node--schools .org-rank {
  color: #061828;
  background: linear-gradient(145deg, #8ec5f5, #2a6fb0);
}

.org-node--instructors .org-node-inner {
  border-color: rgba(140, 90, 200, 0.4);
  background: linear-gradient(160deg, rgba(80, 45, 120, 0.3), rgba(12, 12, 14, 0.95));
  height: 100%;
}

.org-node--instructors .org-rank {
  color: #1a0a28;
  background: linear-gradient(145deg, #c9a8f0, #6b3f9b);
}

.org-node--students .org-node-inner {
  border-color: rgba(150, 150, 150, 0.35);
  background: linear-gradient(160deg, rgba(70, 70, 70, 0.35), rgba(12, 12, 14, 0.95));
  height: 100%;
}

.org-node--students .org-rank {
  color: #111;
  background: linear-gradient(145deg, #d8d8d8, #8a8a8a);
}

.pillars-band {
  padding: 1.75rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.35);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.pillars-grid article {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.14);
}

.pillars-grid h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
}

.pillars-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Formación */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.formation-card {
  grid-column: span 2;
  padding: 1.5rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent 40%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}

.formation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.formation-wide { grid-column: span 2; }

.formation-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.05rem;
}

.formation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.center-link {
  text-align: center;
  margin: 2rem 0 0;
}

/* Camino / belts */
.belt-path {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.belt {
  width: clamp(36px, 8vw, 56px);
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.belt-white { background: #f2eee6; }
.belt-yellow { background: #e2c84a; }
.belt-orange { background: #d9782c; }
.belt-green { background: #2f7a45; }
.belt-blue { background: #2a4f9b; }
.belt-brown { background: #6b3f24; }
.belt-black {
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.path-panel {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top, rgba(139, 21, 21, 0.28), transparent 50%),
    var(--bg-elev);
}

.path-panel > p {
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.path-emphasis {
  margin: 1.5rem auto 1rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Código */
.code-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.code-list li {
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 2.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.code-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.commit-grid article {
  padding: 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.commit-grid h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
}

.commit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.quote-banner {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(139, 21, 21, 0.25), rgba(212, 175, 55, 0.08));
  text-align: center;
}

.quote-banner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: #000;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-featured img { aspect-ratio: 4 / 5; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.8);
}

/* Maestro */
.section-master {
  background:
    linear-gradient(120deg, rgba(139, 21, 21, 0.22), transparent 45%),
    linear-gradient(180deg, #08080a, #121216);
  border-block: 1px solid rgba(212, 175, 55, 0.16);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.master-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.master-portrait {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.06), var(--shadow);
  position: relative;
}

.master-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

.master-portrait::after {
  content: "";
  position: absolute;
  inset: auto 12% -8px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.4), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.master-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.master-roles {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.master-roles li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.master-roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.accent-line {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Cierre */
.closing {
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12), transparent 55%);
}

.closing-logo {
  margin: 0 auto 1.25rem;
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 12px 30px rgba(212, 175, 55, 0.28));
}

.closing h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.closing-tag {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--gold-soft);
  margin: 0.5rem 0 1rem;
}

.closing blockquote {
  margin: 1.5rem auto;
  max-width: 36rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.closing-actions { justify-content: center; margin-top: 1.75rem; margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2.5rem 0 2rem;
  background: #030303;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand strong { display: block; font-family: var(--font-display); letter-spacing: 0.05em; }
.footer-brand span { display: block; color: var(--muted); font-size: 0.82rem; }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

.footer-credit {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
}

.footer-credit a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.footer-credit a:hover { color: var(--gold); }

/* SEO links on home */
.seo-index-links {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.9), transparent);
}

.seo-index-links h3 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.seo-index-links p { color: var(--muted); margin: 0 0 1.25rem; }

.seo-index-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.seo-index-grid a {
  font-size: 0.84rem;
  color: #1a1408;
  text-decoration: none;
  background: linear-gradient(135deg, #f0d78c, #d4af37);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s;
}

.seo-index-grid a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #000;
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translateZ(0);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateZ(0) translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.whatsapp-float-icon { width: 30px; height: 30px; }

@media (max-width: 768px) {
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(24px, calc(20px + env(safe-area-inset-bottom, 0px)));
    width: 54px;
    height: 54px;
  }
  .whatsapp-float-icon { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal, .seal img { animation: none !important; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item:hover img,
  .btn:hover,
  .value-tile:hover,
  .whatsapp-float:hover { transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    overflow-x: clip;
    padding-top: clamp(2rem, 6vw, 3.5rem);
  }

  .hero-inner,
  .split,
  .split.reverse,
  .master-grid,
  .camino-grid,
  .camino-visual,
  .conducta-layout,
  .visual-split {
    grid-template-columns: 1fr;
  }

  .hero-emblem { order: -1; }
  .seal { width: min(78vw, 340px); }

  .values-grid,
  .formation-grid { grid-template-columns: 1fr 1fr; }
  .value-tile,
  .value-tile-wide,
  .formation-card,
  .formation-wide { grid-column: span 1; }

  .pillars-grid,
  .commit-grid,
  .path-steps { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid article:last-child,
  .commit-grid article:last-child,
  .path-steps article:last-child { grid-column: 1 / -1; }

  .org-tier { grid-template-columns: 1fr; }
  .org-node--apex,
  .org-node--council,
  .org-node--national,
  .org-node--regional { max-width: 100%; }

  .code-list-visual { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: 1fr; }
  .gallery-item img,
  .gallery-featured img { aspect-ratio: 16 / 11; }

  .camino-photo img,
  .conducta-photo img,
  .visual-photo img {
    min-height: 220px;
  }

  .code-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }

  .nav-principal {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--border);
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }

  .nav-principal.is-open { display: flex; }
  .nav-principal a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .values-grid,
  .formation-grid,
  .pillars-grid,
  .commit-grid { grid-template-columns: 1fr; }

  .pillars-grid article:last-child,
  .commit-grid article:last-child { grid-column: auto; }

  .brand span small { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .path-panel > p,
  .quote-banner p { overflow-wrap: anywhere; }
}
