/* ===== Reconstruccion Lumbar — recreation ===== */
:root {
  --bg: #000000;
  --surface: #0c0c0d;
  --surface-2: #161618;
  --surface-3: #202023;
  --text: #ffffff;
  --muted: #9a9a9f;
  --muted-2: #6e6e74;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #f4b41a;                       /* brand amber — the crane/spine */
  --accent-press: #d99a05;
  --accent-soft: rgba(244, 180, 26, 0.14);
  --accent-ink: #14110a;                    /* readable text on amber */
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Layout ===== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 11vw, 140px) 0; }
.section-sm { padding: clamp(40px, 7vw, 80px) 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand .brand-logo {
  height: 46px; width: auto; flex: none; display: block;
}
.site-footer .brand .brand-logo { height: 58px; }
/* logo lockup already contains the wordmark — keep the text for SEO/a11y only */
.brand .wordmark {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link {
  padding: 9px 14px; font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap;
  border-radius: 9px; transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a.link:hover { color: var(--text); background: var(--surface-2); }
.nav a.link.active { color: var(--text); }
.nav .divider { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }

.menu-btn {
  display: none; background: none; border: 0; color: var(--text);
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 26px; height: 26px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.01em; line-height: 1;
  padding: 16px 26px; min-height: 52px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform .12s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e9e9e9; }
.btn-block { width: 100%; }
.btn-lg { min-height: 60px; padding: 19px 34px; font-size: 1.08rem; }
.btn-sm { min-height: 42px; padding: 11px 18px; font-size: 0.86rem; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 18%, transparent 0%, rgba(0,0,0,0.55) 70%, #000 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55) 45%, #000 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: clamp(560px, 86vh, 880px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 80px;
}
.hero-logo { width: clamp(150px, 26vw, 230px); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.55)); }
.hero-inner .sub { font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: #fff; font-weight: 500; margin-top: 22px; max-width: 22ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* placeholder image fill */
.ph {
  background:
    repeating-linear-gradient(135deg, #131315 0 14px, #0e0e10 14px 28px);
  color: var(--muted-2); display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; letter-spacing: 0.04em;
}

/* ===== Pillars / cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 44px; background: var(--surface); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-footer a { color: var(--muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .dot { color: var(--muted-2); }
.site-footer .fine { color: var(--muted-2); font-size: 0.84rem; margin-top: 26px; }

/* ===== Misc content ===== */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { color: var(--muted); font-size: 1.12rem; }
.prose p + p { margin-top: 1.2em; }
.prose strong { color: var(--text); }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--text); font-weight: 500; }

/* fade-in on load — content is visible by DEFAULT; entrance is layered on top
   so paused clocks (hidden tabs, print, PDF export, reduced-motion) still show it */
[data-reveal] { opacity: 1; }
@keyframes lba-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .revealed [data-reveal] { animation: lba-reveal .7s var(--ease) both; }
  .revealed [data-reveal][data-d="1"] { animation-delay: .08s; }
  .revealed [data-reveal][data-d="2"] { animation-delay: .16s; }
  .revealed [data-reveal][data-d="3"] { animation-delay: .24s; }
  .revealed [data-reveal][data-d="4"] { animation-delay: .32s; }
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.97);
  backdrop-filter: blur(8px); display: none; flex-direction: column; padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; height: 46px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em;
  padding: 14px 4px; border-bottom: 1px solid var(--border); text-transform: uppercase;
}
.mobile-menu .mm-cta { margin-top: auto; display: grid; gap: 12px; padding-top: 24px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Exercise library ===== */
.phase-block { margin-bottom: 64px; }
.phase-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--border);
}
.phase-head .phase-n { color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.phase-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 6px; }
.phase-head p { max-width: 46ch; margin: 0; font-size: 0.98rem; }

.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ex-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.ex-card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.ex-card.locked { opacity: 0.62; }
.ex-card.locked:hover { transform: none; }
.ex-thumb { position: relative; aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.ex-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.ex-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; z-index: 1;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .2s var(--ease);
}
.ex-card:hover .ex-play { transform: scale(1.08); }
.ex-card.locked .ex-play { background: var(--surface-3); color: var(--muted); }
.ex-mins {
  position: absolute; bottom: 10px; right: 12px; z-index: 1; font-size: 0.78rem; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(4px);
}
.ex-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ex-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ex-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.ex-badge.done { background: var(--accent-soft); color: var(--accent); }
.ex-badge.now { background: var(--accent); color: #fff; }
.ex-badge.lock { background: var(--surface-3); color: var(--muted); }
.ex-level { font-size: 0.8rem; color: var(--muted-2); }
.ex-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ex-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; flex: 1; }
.ex-meta { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); font-weight: 600; padding-top: 14px; border-top: 1px solid var(--border); }
.ex-dot { color: var(--muted-2); }

@media (max-width: 980px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ex-grid { grid-template-columns: 1fr; } }

/* ===== Exercise detail ===== */
.ex-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .ex-detail { grid-template-columns: 1fr; gap: 28px; } }
.ex-video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: #000; aspect-ratio: 16/9;
}
.ex-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.ex-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.ex-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.ex-stat .l { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.info-card + .info-card { margin-top: 18px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.cue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cue-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.cue-list .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ===== Language switcher ===== */
.header-right { display: flex; align-items: center; gap: 6px; }
.lang-switch { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  padding: 8px 11px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.84rem; line-height: 1;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.lang-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.lang-btn .lang-globe { width: 17px; height: 17px; color: var(--muted); flex: none; }
.lang-btn .lang-cur { letter-spacing: 0.06em; }
.lang-btn .lang-chev { width: 13px; height: 13px; color: var(--muted-2); flex: none; transition: transform .2s var(--ease); }
.lang-switch.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 188px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 13px;
  padding: 6px; box-shadow: 0 18px 48px rgba(0,0,0,.55);
  display: none; flex-direction: column; gap: 2px; z-index: 90;
}
.lang-switch.open .lang-menu { display: flex; }
.lang-opt {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 0; color: var(--muted);
  font-family: inherit; font-size: 0.94rem; font-weight: 600; text-align: left;
  padding: 11px 12px; border-radius: 9px; cursor: pointer; width: 100%;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-opt .lang-name { flex: 1; }
.lang-opt .lang-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-2); }
.lang-opt .lang-check { width: 16px; height: 16px; color: var(--accent); opacity: 0; flex: none; }
.lang-opt:hover { background: var(--surface-2); color: var(--text); }
.lang-opt[aria-selected="true"] { color: var(--text); }
.lang-opt[aria-selected="true"] .lang-check { opacity: 1; }

/* ===== Per-language video note ===== */
.video-note {
  margin-top: 14px; font-size: 0.88rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; line-height: 1.4;
}
.video-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
