/* Sabiduría Hermética — Diego Luchetta
   Concepto: la Tabla Esmeralda ("como es arriba, es abajo").
   Esmeralda profundo + oro viejo + papel verdoso. */
:root {
  --night: #0F2A23;
  --night-2: #15362E;
  --ink: #0A1D18;
  --gold: #D4B26A;
  --gold-soft: #E6CF97;
  --gold-text: #7C5F22;
  --paper: #EEF1EA;
  --paper-2: #E1E8DE;
  --text: #16231F;
  --muted: #4B5A54;
  --line: #C9D3C7;
  --serif: "Cormorant Garamond", "GFS Baskerville", Georgia, serif;
  --sans: "Work Sans", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .level-num, .steps li::before, .temet-card dd { font-variant-numeric: lining-nums; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 4px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: rgba(212,178,106,.6); color: var(--paper); }
.btn-line:hover { background: rgba(212,178,106,.12); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Deadline bar */
.deadline { background: var(--gold); color: var(--ink); font-size: .9rem; }
.deadline-inner { display: flex; justify-content: space-between; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.deadline p { margin: 0; }
.countdown { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(10,29,24,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212,178,106,.18); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font: 600 1.45rem/1 var(--serif); color: var(--paper); text-decoration: none; margin-right: auto; }
.top-nav { display: flex; gap: 24px; }
.top-nav a { color: #C5D1CA; text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--gold); }

/* Hero */
.hero { background: radial-gradient(900px 520px at 78% 30%, #1B4438 0%, transparent 70%), var(--night); color: var(--paper); padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.h1-main { display: block; font-size: clamp(3.1rem, 7.4vw, 6rem); line-height: .95; letter-spacing: -.015em; }
.h1-sub { display: block; margin-top: 18px; font: 500 clamp(1.02rem, 1.6vw, 1.2rem)/1.4 var(--sans); color: var(--gold-soft); max-width: 30ch; }
.hero-lead { font-size: 1.16rem; color: #D4DED8; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 12px; }
.hero-note { font-size: .92rem; color: #A9BAB2; margin: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(212,178,106,.25); }
.hero-facts dt { font-size: .82rem; color: var(--gold); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-size: .95rem; color: #E3EAE5; line-height: 1.45; }
.hero-art { justify-self: center; text-align: center; }
.motto { margin: 14px 0 0; font: italic 500 1.25rem var(--serif); color: var(--gold-soft); }

/* Tree of Life */
.tree { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.tree .path { stroke: var(--gold); stroke-width: 1.1; stroke-opacity: .7; stroke-dasharray: 200; stroke-dashoffset: 0; }
.tree .sef circle { fill: var(--night); stroke: var(--gold); stroke-width: 1.3; }
.tree .sef .core { fill: var(--gold); stroke: none; }
.tree text { font: 500 7.2px var(--sans); fill: var(--gold-soft); text-anchor: middle; letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .hero .tree .path { stroke-dashoffset: 200; animation: draw 1.4s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i) * 55ms + 200ms); }
  .hero .tree .sef { opacity: 0; animation: appear .6s ease forwards; animation-delay: calc(var(--n) * 90ms + 900ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections */
.block { padding: 96px 0; }
.why p { font-size: 1.12rem; }
.why em { font-family: var(--serif); font-size: 1.2em; color: var(--gold-text); }

.outcomes { background: var(--paper-2); }
.outcome-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.outcome-list li { position: relative; padding: 18px 0 18px 30px; border-top: 1px solid var(--line); font-size: 1.04rem; }
.outcome-list li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--gold-text); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.path-card { border-top: 2px solid var(--gold); padding-top: 24px; }
.path-card p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* Program */
.program { background: var(--night); color: var(--paper); }
.program-head { max-width: 640px; margin-bottom: 44px; }
.program-head p { color: #B9C7C0; }
.levels { list-style: none; margin: 0; padding: 0; position: relative; }
.level { display: grid; grid-template-columns: 72px 1fr; gap: 24px; position: relative; padding-bottom: 34px; }
.level:not(:last-child)::before { content: ""; position: absolute; left: 35px; top: 72px; bottom: 0; width: 1px; background: rgba(212,178,106,.35); }
.level-num { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font: 600 2.1rem/1 var(--serif); color: var(--gold); background: var(--night); }
.level-body { border-bottom: 1px solid rgba(212,178,106,.18); padding-bottom: 26px; }
.level h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 10px 0 .25em; color: var(--paper); }
.level-lead { color: #C9D5CF; margin-bottom: 12px; }
.level-topics summary { cursor: pointer; list-style: none; color: var(--gold); font-weight: 600; font-size: .95rem; display: inline-flex; gap: 14px; align-items: center; }
.level-topics summary::-webkit-details-marker { display: none; }
.level-topics summary::before { content: "+"; font-size: 1.2rem; line-height: 1; width: 1ch; }
.level-topics[open] summary::before { content: "−"; }
.level-meta { color: #93A69D; font-weight: 400; }
.level-topics ul { margin: 14px 0 0; padding-left: 20px; color: #D4DED8; columns: 2; column-gap: 36px; }
.level-topics li { margin-bottom: 6px; break-inside: avoid; }

/* TEMET */
.temet-grid { align-items: center; }
.ticks, .crosses { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li, .crosses li { position: relative; padding: 8px 0 8px 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 3px; top: 19px; width: 13px; height: 2px; background: #8A4B3C; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.temet-card { margin: 0; background: var(--night); color: var(--paper); border-radius: 6px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(10,29,24,.6); }
.temet-name { font: 600 2rem/1 var(--serif); color: var(--gold); margin-bottom: 20px; }
.temet-name span { display: block; margin-top: 6px; font: italic 500 1.05rem var(--serif); color: var(--gold-soft); }
.temet-card dl { margin: 0; }
.temet-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(212,178,106,.2); }
.temet-card dt { color: #C9D5CF; }
.temet-card dd { margin: 0; color: var(--gold-soft); font-family: var(--serif); font-size: 1.15rem; }

/* Fit */
.fit { background: var(--paper-2); }
.fit h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }

/* Teacher */
.teacher-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.teacher-photo { width: 100%; height: auto; aspect-ratio: 42 / 52; object-fit: cover; border-radius: 4px; box-shadow: 14px 14px 0 var(--gold); background: var(--paper-2); }
.teacher p { font-size: 1.06rem; color: var(--muted); }
.text-link { color: var(--gold-text); font-weight: 600; }

/* Enroll */
.enroll { background: var(--night); color: var(--paper); }
.steps { list-style: none; margin: 34px 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid rgba(212,178,106,.4); padding-top: 22px; }
.steps li::before { content: counter(s); display: block; font: 600 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 10px; }
.steps h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: .2em; }
.steps p { color: #C9D5CF; margin: 0; }
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.enroll-cta .hero-note { margin-top: 12px; }
.tz { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tz caption { text-align: left; font-weight: 600; color: var(--gold); padding-bottom: 10px; }
.tz th, .tz td { padding: 9px 0; border-bottom: 1px solid rgba(212,178,106,.18); text-align: left; font-weight: 400; color: #D4DED8; }
.tz td { text-align: right; font-variant-numeric: tabular-nums; color: var(--paper); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font: 600 1.32rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.6rem var(--sans); color: var(--gold-text); }
.faq[open] summary::after { content: "−"; }
.faq-answer { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 64ch; }
.faq-block h2 { margin-bottom: 28px; }

/* Final */
.final { background: var(--ink); color: var(--paper); padding: 80px 0; }
.final-inner { display: grid; grid-template-columns: 140px 1fr; gap: 48px; align-items: center; max-width: 860px; }
.tree-small { max-width: 140px; }
.final p { color: #B9C7C0; }

.foot { background: var(--ink); color: #8FA299; border-top: 1px solid rgba(212,178,106,.15); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot p { margin: 0; }
.foot strong { color: var(--paper); font-weight: 600; }
.foot a { color: var(--gold-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.sticky-cta { display: none; }

/* Responsive */
@media (max-width: 920px) {
  .top-nav { display: none; }
  .hero { padding: 48px 0 60px; }
  .hero { position: relative; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-art { position: absolute; right: -40px; top: 18px; opacity: .3; pointer-events: none; }
  .hero .tree { max-width: 210px; }
  .hero .tree text { display: none; }
  .motto { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .outcome-list, .two, .enroll-grid { grid-template-columns: 1fr; }
  .two { gap: 36px; }
  .teacher-grid { grid-template-columns: 1fr; gap: 36px; }
  .teacher-photo { max-width: 300px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .block { padding: 68px 0; }
  .level-topics ul { columns: 1; }
  body { padding-bottom: 76px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,29,24,.96); border-top: 1px solid rgba(212,178,106,.3); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  .hero-cta .btn { width: 100%; }
  .level { grid-template-columns: 52px 1fr; gap: 16px; }
  .level-num { width: 52px; height: 52px; font-size: 1.6rem; }
  .level:not(:last-child)::before { left: 25px; top: 52px; }
  .final-inner { grid-template-columns: 1fr; gap: 24px; }
  .tree-small { max-width: 90px; }
  .deadline-inner { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.level-topics summary { flex-wrap: wrap; row-gap: 2px; }
.level-topics summary span { white-space: nowrap; }
