/* ==========================================================================
   JORDI SANZ — ATRÉVETE A MOSTRARTE — CINEMATIC EXPERIENCE 2.1
   Plugin WordPress «Jordi Sanz — Cinematic Landing» 1.0.0
   Grupo Marketing Digital JCM
   --------------------------------------------------------------------------
   Mismo diseño que la versión 2.1 final. Cambios respecto al CSS de la demo:
   · Todo selector empieza por #jcm-jl-root: las reglas de la landing ganan
     a las del tema (Divi incluido) sin usar !important y sin tocar nada fuera.
   · Tipografías alojadas dentro del plugin (sin Google Fonts).
   · Al final, una capa de compatibilidad WordPress/Divi que SOLO actúa en la
     página que contiene la landing (body.jcm-jl-page y contenedores que
     incluyen #jcm-jl-root).
   ========================================================================== */

/* ---------- Tipografías locales (SIL Open Font License, ver assets/fonts) ---------- */
@font-face {
  font-family: "jcm-jl-fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "jcm-jl-inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "jcm-jl-inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "jcm-jl-inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

#jcm-jl-root.jcm-jl {
  --jcm-jl-black: #0B0D12;
  --jcm-jl-night: #141C2B;
  --jcm-jl-gold: #D9AA67;
  --jcm-jl-gold-soft: rgba(217, 170, 103, .16);
  --jcm-jl-white: #F7F4EF;
  --jcm-jl-grey: #A6ABB4;
  --jcm-jl-ink: #1A1712;

  --jcm-jl-serif: "jcm-jl-fraunces", "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --jcm-jl-sans: "jcm-jl-inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --jcm-jl-pad: clamp(1.25rem, 5vw, 3rem);
  --jcm-jl-max: 1180px;
  --jcm-jl-ease: cubic-bezier(.2, .7, .1, 1);
  --jcm-jl-header-h: 64px;

  /* Valores que actualiza el JS */
  --jcm-jl-hero-p: 0;   /* 0..1 avance de salida del hero */
  --jcm-jl-path-p: 0;   /* 0..1 avance del Acto III */

  position: relative;
  background: var(--jcm-jl-black);
  color: var(--jcm-jl-white);
  font-family: var(--jcm-jl-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* Reset acotado al contenedor (no afecta a Divi) */
/* :where() deja estos resets con especificidad mínima: las clases jcm-jl-* siempre ganan */
/* Blindaje frente al tema: cualquier estilo genérico del tema (p, h1-h3, ul, a,
   button, blockquote…) vuelve al valor por defecto del navegador, que es el
   punto de partida de la demo 2.1. Las reglas jcm-jl-* que vienen después mandan. */
#jcm-jl-root.jcm-jl :where(div, span, p, a, h1, h2, h3, ol, ul, li, figure, figcaption, blockquote, cite, strong, em, small, br, header, footer, main, section, article, nav, picture, img, button) {
  margin: revert; padding: revert; border: revert; border-radius: revert;
  background: revert; box-shadow: revert; text-shadow: revert; outline: revert;
  color: revert; font-family: revert; font-size: revert; font-weight: revert; font-style: revert;
  line-height: revert; letter-spacing: revert; word-spacing: revert; text-transform: revert;
  text-decoration: revert; text-indent: revert; text-align: revert; list-style: revert;
  float: revert; clear: revert; vertical-align: revert; transition: revert; quotes: revert;
  min-height: revert; min-width: revert; opacity: revert; visibility: revert; filter: revert;
}
#jcm-jl-root.jcm-jl *, #jcm-jl-root.jcm-jl *::before, #jcm-jl-root.jcm-jl *::after { box-sizing: border-box; }
#jcm-jl-root.jcm-jl :where(h1, #jcm-jl-root h2, #jcm-jl-root h3, #jcm-jl-root p, #jcm-jl-root ol, #jcm-jl-root ul, #jcm-jl-root li, #jcm-jl-root figure, #jcm-jl-root figcaption, #jcm-jl-root blockquote, #jcm-jl-root cite) { margin: 0; padding: 0; border: 0; }
#jcm-jl-root.jcm-jl :where(ol, #jcm-jl-root ul) { list-style: none; }
#jcm-jl-root.jcm-jl :where(img, #jcm-jl-root svg) { display: block; max-width: 100%; height: auto; }
#jcm-jl-root.jcm-jl :where(a) { color: inherit; text-decoration: none; }
#jcm-jl-root.jcm-jl :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
#jcm-jl-root.jcm-jl :where(em) { font-style: italic; }
#jcm-jl-root.jcm-jl :focus-visible { outline: 2px solid var(--jcm-jl-gold); outline-offset: 4px; border-radius: 4px; }

#jcm-jl-root .jcm-jl-skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--jcm-jl-white); color: var(--jcm-jl-black);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
#jcm-jl-root .jcm-jl-skip:focus { top: 1rem; }

#jcm-jl-root .jcm-jl-wrap { width: 100%; max-width: var(--jcm-jl-max); margin: 0 auto; padding: 0 var(--jcm-jl-pad); position: relative; }
#jcm-jl-root .jcm-jl-center { text-align: center; }

/* ---------- Tipografía ---------- */
#jcm-jl-root .jcm-jl-eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--jcm-jl-grey); font-weight: 500;
}
#jcm-jl-root .jcm-jl-kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--jcm-jl-gold); font-weight: 600; margin-bottom: 1.25rem;
}
#jcm-jl-root .jcm-jl-kicker span {
  color: var(--jcm-jl-grey); font-weight: 500;
  padding-right: .75rem; border-right: 1px solid rgba(166,171,180,.35);
}
#jcm-jl-root .jcm-jl-kicker--dark { color: #5e4219; }
#jcm-jl-root .jcm-jl-kicker--dark span { color: #3f3a33; border-color: rgba(26,23,18,.3); }

#jcm-jl-root .jcm-jl-h2 {
  font-family: var(--jcm-jl-serif); font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em;
  max-width: 20ch; text-wrap: balance;
}
#jcm-jl-root .jcm-jl-lead {
  margin-top: 1.25rem; font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: rgba(247,244,239,.78); max-width: 60ch;
}
#jcm-jl-root .jcm-jl-note { font-size: .82rem; color: var(--jcm-jl-grey); margin-top: 1rem; }
#jcm-jl-root .jcm-jl-micro { font-size: .85rem; color: var(--jcm-jl-grey); margin-top: 1rem; }
#jcm-jl-root .jcm-jl-micro--dark { color: #6b665e; }
#jcm-jl-root .jcm-jl-gold { color: var(--jcm-jl-gold); }

/* ---------- Botones ---------- */
#jcm-jl-root .jcm-jl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .35s var(--jcm-jl-ease), box-shadow .35s var(--jcm-jl-ease), background-color .35s, color .35s;
  -webkit-tap-highlight-color: transparent;
}
#jcm-jl-root .jcm-jl-btn::after { content: "→"; font-size: 1.1em; transition: transform .35s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-btn:hover::after { transform: translateX(4px); }
#jcm-jl-root .jcm-jl-btn--gold {
  background: var(--jcm-jl-gold); color: var(--jcm-jl-black);
  box-shadow: 0 10px 40px -12px rgba(217,170,103,.6);
}
#jcm-jl-root .jcm-jl-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(217,170,103,.75); }
#jcm-jl-root .jcm-jl-btn--ghost {
  border: 1px solid rgba(247,244,239,.28); min-height: 44px; padding: .55rem 1.1rem; font-size: .75rem;
}
#jcm-jl-root .jcm-jl-btn--ghost::after { display: none; }
#jcm-jl-root .jcm-jl-btn--ghost:hover { border-color: var(--jcm-jl-gold); color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-btn--dark { background: var(--jcm-jl-ink); color: var(--jcm-jl-white); box-shadow: 0 18px 50px -18px rgba(26,23,18,.7); }
#jcm-jl-root .jcm-jl-btn--dark:hover { transform: translateY(-2px); background: #000; }
#jcm-jl-root .jcm-jl-btn--xl { min-height: 60px; padding: 1.1rem 2.2rem; font-size: 1rem; }

#jcm-jl-root .jcm-jl-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-size: .9rem; font-weight: 500; color: var(--jcm-jl-white);
  border-bottom: 1px solid rgba(247,244,239,.25); padding-bottom: 2px; align-self: center;
  transition: color .3s, border-color .3s;
}
#jcm-jl-root .jcm-jl-link:hover { color: var(--jcm-jl-gold); border-color: var(--jcm-jl-gold); }

/* ---------- Cabecera ---------- */
#jcm-jl-root .jcm-jl-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--jcm-jl-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--jcm-jl-pad);
  transition: background-color .4s, backdrop-filter .4s, color .4s;
}
#jcm-jl-root.jcm-jl.is-scrolled .jcm-jl-header { background: rgba(11,13,18,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#jcm-jl-root.jcm-jl.is-light .jcm-jl-header { background: rgba(247,244,239,.82); color: var(--jcm-jl-ink); }
#jcm-jl-root.jcm-jl.is-light .jcm-jl-brand__tag { color: #8a6531; }
#jcm-jl-root.jcm-jl.is-light .jcm-jl-header .jcm-jl-btn--ghost { border-color: rgba(26,23,18,.3); }
#jcm-jl-root .jcm-jl-brand { display: flex; flex-direction: column; line-height: 1.1; }
#jcm-jl-root .jcm-jl-brand__name { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
#jcm-jl-root .jcm-jl-brand__tag { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-header__cta { display: none; }

/* ---------- Progreso ---------- */
#jcm-jl-root .jcm-jl-progressbar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: transparent; pointer-events: none; }
#jcm-jl-root .jcm-jl-progressbar__fill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(217,170,103,.4), var(--jcm-jl-gold)); }

#jcm-jl-root .jcm-jl-rail { display: none; }

/* ---------- Revelado ---------- */
#jcm-jl-root.jcm-jl-js .jcm-jl-reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--jcm-jl-ease), transform 1.1s var(--jcm-jl-ease); transition-delay: var(--jcm-jl-delay, 0s); }
#jcm-jl-root.jcm-jl-js .jcm-jl-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Secciones ---------- */
#jcm-jl-root .jcm-jl-act { position: relative; }
#jcm-jl-root .jcm-jl-act__head { margin-bottom: clamp(2.5rem, 7vw, 4.5rem); }
#jcm-jl-root .jcm-jl-act__head--center { text-align: center; }
#jcm-jl-root .jcm-jl-act__head--center .jcm-jl-h2 { margin: 0 auto; }

#jcm-jl-root .jcm-jl-hero__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#jcm-jl-root .jcm-jl-hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

#jcm-jl-root .jcm-jl-hero__content { position: relative; padding: 0 var(--jcm-jl-pad); max-width: var(--jcm-jl-max); margin: 0 auto; width: 100%; }
#jcm-jl-root .jcm-jl-hero__content .jcm-jl-eyebrow { margin-bottom: 1rem; display: none; }
#jcm-jl-root .jcm-jl-hero__title {
  font-family: var(--jcm-jl-serif); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 7.4vw, 5rem); line-height: 1.02; letter-spacing: -.015em;
  max-width: 17ch; text-wrap: balance;
}
#jcm-jl-root .jcm-jl-hero__title em { font-style: italic; font-weight: 500; color: var(--jcm-jl-gold); text-transform: none; display: inline; }
#jcm-jl-root .jcm-jl-only-desk { display: none; }
#jcm-jl-root .jcm-jl-hero__lead { margin-top: 1.25rem; max-width: 54ch; font-size: clamp(1rem, 2.5vw, 1.15rem); color: rgba(247,244,239,.8); }
#jcm-jl-root .jcm-jl-hero__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; align-items: stretch; }
#jcm-jl-root .jcm-jl-hero__actions .jcm-jl-link { align-self: center; }

#jcm-jl-root .jcm-jl-scrollhint { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
#jcm-jl-root .jcm-jl-scrollhint span { width: 1px; height: 28px; background: linear-gradient(var(--jcm-jl-gold), transparent); animation: jcm-jl-drop 2.4s var(--jcm-jl-ease) infinite; transform-origin: top; }
@keyframes jcm-jl-drop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* =================== ACTO II · LO QUE NO SE VE =================== */
#jcm-jl-root .jcm-jl-unseen {
  padding: clamp(5rem, 14vw, 9rem) 0;
  background: linear-gradient(180deg, var(--jcm-jl-black) 0%, var(--jcm-jl-night) 100%);
}
#jcm-jl-root .jcm-jl-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
#jcm-jl-root .jcm-jl-card { perspective: 900px; }
#jcm-jl-root .jcm-jl-card__inner {
  position: relative; height: 100%;
  padding: 1.6rem 1.5rem 1.4rem; border-radius: 18px;
  background:
    radial-gradient(120% 80% at var(--jcm-jl-mx, 50%) var(--jcm-jl-my, 0%), rgba(217,170,103,.10), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid rgba(247,244,239,.08);
  transform: rotateX(var(--jcm-jl-rx, 0deg)) rotateY(var(--jcm-jl-ry, 0deg));
  transition: transform .5s var(--jcm-jl-ease), border-color .5s, background-color .5s, box-shadow .5s;
  overflow: hidden;
}
#jcm-jl-root .jcm-jl-card__inner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--jcm-jl-gold), transparent);
  transform: scaleY(0); transform-origin: top; transition: transform .8s var(--jcm-jl-ease);
}
#jcm-jl-root .jcm-jl-card.is-focus .jcm-jl-card__inner, #jcm-jl-root .jcm-jl-card:hover .jcm-jl-card__inner { border-color: rgba(217,170,103,.32); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
#jcm-jl-root .jcm-jl-card.is-focus .jcm-jl-card__inner::before, #jcm-jl-root .jcm-jl-card:hover .jcm-jl-card__inner::before { transform: scaleY(1); }
#jcm-jl-root .jcm-jl-card__num { font-family: var(--jcm-jl-serif); font-size: .95rem; color: var(--jcm-jl-gold); letter-spacing: .1em; }
#jcm-jl-root .jcm-jl-card__title { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: clamp(1.4rem, 4.6vw, 1.7rem); line-height: 1.15; margin: .5rem 0 .6rem; }
#jcm-jl-root .jcm-jl-card__text { color: rgba(247,244,239,.72); font-size: 1rem; }
#jcm-jl-root .jcm-jl-card__toggle {
  margin-top: 1.1rem; min-height: 44px; display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jcm-jl-grey); font-weight: 600; text-align: left;
}
#jcm-jl-root .jcm-jl-card__toggle::before {
  content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(166,171,180,.4); font-size: .95rem; transition: transform .4s var(--jcm-jl-ease), border-color .3s, color .3s;
}
#jcm-jl-root .jcm-jl-card__toggle[aria-expanded="true"] { color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-card__toggle[aria-expanded="true"]::before { transform: rotate(45deg); border-color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-card__behind {
  font-family: var(--jcm-jl-serif); font-style: italic; font-size: 1.08rem; line-height: 1.45;
  color: var(--jcm-jl-white); padding-top: .4rem;
  animation: jcm-jl-fade .6s var(--jcm-jl-ease);
}
@keyframes jcm-jl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#jcm-jl-root .jcm-jl-aside { margin: clamp(3rem, 9vw, 5.5rem) auto 0; max-width: 46rem; text-align: center; color: rgba(247,244,239,.78); font-size: 1.05rem; }
#jcm-jl-root .jcm-jl-aside__big { font-family: var(--jcm-jl-serif); font-size: clamp(1.6rem, 5vw, 2.4rem); font-style: italic; color: var(--jcm-jl-white); margin-bottom: 1rem; }

/* =================== ACTO III · EL CAMINO =================== */
#jcm-jl-root .jcm-jl-path {
  padding: clamp(5rem, 14vw, 9rem) 0;
  background: linear-gradient(180deg, var(--jcm-jl-night) 0%, #1d2331 45%, #3a342c 85%, #6b5a43 100%);
  overflow: hidden;
}
#jcm-jl-root .jcm-jl-path__dawn {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 100%, rgba(247,226,190,.55), rgba(217,170,103,.18) 45%, transparent 75%);
  opacity: calc(var(--jcm-jl-path-p) * 1);
}
#jcm-jl-root .jcm-jl-steps { position: relative; display: grid; gap: clamp(3rem, 10vw, 5rem); padding-left: 2.25rem; }
#jcm-jl-root .jcm-jl-steps__line { position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; background: rgba(247,244,239,.10); border-radius: 2px; }
#jcm-jl-root .jcm-jl-steps__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--jcm-jl-line-p, 0)); background: linear-gradient(180deg, rgba(217,170,103,.25), var(--jcm-jl-gold) 70%, #fff3dc); border-radius: 2px; }
#jcm-jl-root .jcm-jl-steps__spark {
  position: absolute; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  top: calc(var(--jcm-jl-line-p, 0) * 100%);
  background: #fff3dc; box-shadow: 0 0 0 5px rgba(217,170,103,.25), 0 0 26px 6px rgba(247,226,190,.7);
}
#jcm-jl-root .jcm-jl-step { position: relative; display: grid; gap: 1.25rem; opacity: .35; transform: translateY(24px); transition: opacity .9s var(--jcm-jl-ease), transform .9s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-step::before {
  content: ""; position: absolute; left: calc(-2.25rem - 6px); top: .55rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--jcm-jl-night); border: 2px solid rgba(247,244,239,.25); transition: background-color .6s, border-color .6s, box-shadow .6s;
}
#jcm-jl-root .jcm-jl-step.is-lit { opacity: 1; transform: none; }
#jcm-jl-root .jcm-jl-step.is-lit::before { background: var(--jcm-jl-gold); border-color: #fff3dc; box-shadow: 0 0 18px rgba(217,170,103,.8); }
#jcm-jl-root .jcm-jl-step__icon { width: 92px; height: 92px; }
#jcm-jl-root .jcm-jl-step__icon svg { width: 100%; height: 100%; overflow: visible; }
#jcm-jl-root .jcm-jl-step__num { font-family: var(--jcm-jl-serif); color: var(--jcm-jl-gold); letter-spacing: .12em; font-size: .9rem; }
#jcm-jl-root .jcm-jl-step__title { font-family: var(--jcm-jl-serif); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1; margin: .35rem 0 .6rem; }
#jcm-jl-root .jcm-jl-step__short { font-size: 1.15rem; font-weight: 600; color: var(--jcm-jl-white); }
#jcm-jl-root .jcm-jl-step__text { margin-top: .5rem; color: rgba(247,244,239,.75); max-width: 52ch; }
#jcm-jl-root .jcm-jl-path .jcm-jl-center { margin-top: clamp(3.5rem, 10vw, 5.5rem); }

/* Iconos animados */
#jcm-jl-root .jcm-jl-step svg * { fill: none; stroke: var(--jcm-jl-gold); stroke-width: 1.6; stroke-linecap: round; }
#jcm-jl-root .jcm-jl-i1-ring { stroke-dasharray: 280; stroke-dashoffset: 280; transition: stroke-dashoffset 1.6s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-i1-ring--b { stroke-dasharray: 180; stroke-dashoffset: 180; transition-delay: .25s; opacity: .6; }
#jcm-jl-root .jcm-jl-i1-cross { opacity: 0; transition: opacity .8s .9s; }
#jcm-jl-root .jcm-jl-i1-dot { fill: var(--jcm-jl-gold) !important; transform-origin: 60px 60px; transform: scale(0); transition: transform .8s 1s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i1-ring { stroke-dashoffset: 0; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i1-cross { opacity: .7; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i1-dot { transform: scale(1); }

#jcm-jl-root .jcm-jl-i2-core { fill: var(--jcm-jl-gold) !important; }
#jcm-jl-root .jcm-jl-i2-wave { transform-origin: 60px 60px; opacity: 0; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i2-wave { animation: jcm-jl-ripple 3.6s var(--jcm-jl-ease) infinite; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i2-wave--b { animation-delay: 1.2s; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i2-wave--c { animation-delay: 2.4s; }
@keyframes jcm-jl-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.6); opacity: 0; } }

#jcm-jl-root .jcm-jl-i3-path { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.8s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-i3-base { opacity: .4; }
#jcm-jl-root .jcm-jl-i3-sun { fill: #fff3dc !important; stroke: none !important; opacity: 0; transition: opacity .8s 1.4s; filter: drop-shadow(0 0 6px rgba(247,226,190,.9)); }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i3-path { stroke-dashoffset: 0; }
#jcm-jl-root .jcm-jl-step.is-lit .jcm-jl-i3-sun { opacity: 1; }

/* =================== ACTO IV · CONOCE A JORDI =================== */
#jcm-jl-root .jcm-jl-jordi {
  padding: clamp(5rem, 14vw, 9rem) 0;
  background:
    radial-gradient(70% 40% at 80% 0%, rgba(217,170,103,.10), transparent 70%),
    linear-gradient(180deg, #6b5a43 0%, #2a2520 12%, #15140f 40%, #121317 100%);
}
#jcm-jl-root .jcm-jl-jordi__intro { display: grid; gap: 2.5rem; align-items: center; }
#jcm-jl-root .jcm-jl-photo { position: relative; overflow: hidden; border-radius: 4px; background: rgba(247,244,239,.03); }
#jcm-jl-root .jcm-jl-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
#jcm-jl-root .jcm-jl-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(247,244,239,.08); pointer-events: none; }
#jcm-jl-root .jcm-jl-photo--portrait { aspect-ratio: 4 / 5; max-width: 520px; width: 100%; }
#jcm-jl-root .jcm-jl-photo--wide { aspect-ratio: 16 / 10; }

#jcm-jl-root .jcm-jl-quote { margin-top: 2rem; padding-left: 1.25rem; border-left: 2px solid var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-quote p { font-family: var(--jcm-jl-serif); font-style: italic; font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.3; }
#jcm-jl-root .jcm-jl-quote cite { display: block; margin-top: .6rem; font-style: normal; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--jcm-jl-grey); }

#jcm-jl-root .jcm-jl-chapters { margin-top: clamp(4rem, 11vw, 7rem); display: grid; gap: 0; align-items: start; border-top: 1px solid rgba(247,244,239,.1); }
#jcm-jl-root .jcm-jl-chapter { display: grid; gap: 1rem; padding: 2.25rem 0; border-bottom: 1px solid rgba(247,244,239,.1); }
#jcm-jl-root .jcm-jl-chapter__mark { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: clamp(3rem, 12vw, 4.75rem); line-height: .95; color: var(--jcm-jl-gold); display: flex; flex-direction: column; }
#jcm-jl-root .jcm-jl-chapter__mark small { font-family: var(--jcm-jl-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--jcm-jl-grey); font-weight: 500; margin-top: .6rem; }
#jcm-jl-root .jcm-jl-chapter__mark--icon svg { width: 64px; height: 64px; fill: none; stroke: var(--jcm-jl-gold); stroke-width: 1.6; stroke-linecap: round; }
#jcm-jl-root .jcm-jl-chapter__title { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: clamp(1.4rem, 4.4vw, 1.9rem); line-height: 1.15; margin-bottom: .6rem; }
#jcm-jl-root .jcm-jl-chapter p:not(.jcm-jl-chapter__mark) { color: rgba(247,244,239,.75); max-width: 58ch; }
#jcm-jl-root .jcm-jl-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
#jcm-jl-root .jcm-jl-stats li { display: flex; flex-direction: column; }
#jcm-jl-root .jcm-jl-stats strong { font-family: var(--jcm-jl-serif); font-size: 2rem; font-weight: 600; color: var(--jcm-jl-white); line-height: 1.1; }
#jcm-jl-root .jcm-jl-stats li > span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jcm-jl-grey); }

#jcm-jl-root .jcm-jl-philosophy { margin: clamp(5rem, 14vw, 8rem) auto; text-align: center; max-width: 60rem; }
#jcm-jl-root .jcm-jl-philosophy__text { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: clamp(2.2rem, 8vw, 5rem); line-height: 1.04; letter-spacing: -.02em; text-transform: uppercase; margin-top: 1.25rem; text-wrap: balance; }
#jcm-jl-root .jcm-jl-philosophy__text span { display: block; }
#jcm-jl-root .jcm-jl-philosophy__text .jcm-jl-gold { font-style: italic; text-transform: none; font-weight: 500; }

#jcm-jl-root .jcm-jl-videos { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
#jcm-jl-root .jcm-jl-video__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: radial-gradient(60% 80% at 50% 40%, rgba(217,170,103,.22), transparent 70%), linear-gradient(160deg, #1b2436, #0B0D12); }
#jcm-jl-root .jcm-jl-video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .4s, transform .8s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-video__btn:hover img { opacity: .95; transform: scale(1.03); }
#jcm-jl-root .jcm-jl-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(11,13,18,.55); border: 1px solid rgba(247,244,239,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s, transform .4s var(--jcm-jl-ease); }
#jcm-jl-root .jcm-jl-video__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--jcm-jl-white); }
#jcm-jl-root .jcm-jl-video__btn:hover .jcm-jl-video__play { background: var(--jcm-jl-gold); transform: scale(1.06); }
#jcm-jl-root .jcm-jl-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
#jcm-jl-root .jcm-jl-video figcaption { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-family: var(--jcm-jl-serif); font-size: 1.15rem; }

/* =================== ACTO V · SIGUIENTE PASO =================== */
#jcm-jl-root .jcm-jl-final {
  color: var(--jcm-jl-ink); overflow: hidden;
  padding: clamp(6rem, 16vw, 10rem) 0 0;
  background: linear-gradient(180deg, #121317 0%, #5c4c38 14%, #d9c3a0 34%, var(--jcm-jl-white) 58%);
}
#jcm-jl-root .jcm-jl-final__sun { position: absolute; left: 50%; top: 22%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,246,230,.95), rgba(247,226,190,.45) 30%, transparent 70%); pointer-events: none; }
#jcm-jl-root .jcm-jl-final__inner { text-align: center; padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 6rem); }
#jcm-jl-root .jcm-jl-final__title { font-family: var(--jcm-jl-serif); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 7.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
#jcm-jl-root .jcm-jl-final__lead { font-family: var(--jcm-jl-serif); font-style: italic; font-size: clamp(1.2rem, 3.6vw, 1.6rem); line-height: 1.4; max-width: 36ch; margin: 1.5rem auto 0; color: #3b352c; }
#jcm-jl-root .jcm-jl-expect { display: grid; gap: 1rem; max-width: 46rem; margin: clamp(2.5rem, 7vw, 4rem) auto; text-align: left; }
#jcm-jl-root .jcm-jl-expect li { position: relative; padding: 1.1rem 1.25rem 1.1rem 3.1rem; background: rgba(255,255,255,.55); border: 1px solid rgba(26,23,18,.08); border-radius: 14px; color: #3b352c; }
#jcm-jl-root .jcm-jl-expect li::before { content: ""; position: absolute; left: 1.2rem; top: 1.45rem; width: 14px; height: 8px; border-left: 2px solid #8a6531; border-bottom: 2px solid #8a6531; transform: rotate(-45deg); }
#jcm-jl-root .jcm-jl-expect strong { color: var(--jcm-jl-ink); }
#jcm-jl-root .jcm-jl-final .jcm-jl-btn--xl { width: 100%; max-width: 420px; }
#jcm-jl-root .jcm-jl-signoff { margin-top: clamp(3rem, 8vw, 4.5rem); font-family: var(--jcm-jl-serif); font-style: italic; font-size: 1.15rem; color: #6b665e; }
#jcm-jl-root .jcm-jl-signoff span { font-size: 2rem; color: var(--jcm-jl-ink); }

#jcm-jl-root .jcm-jl-footer { position: relative; border-top: 1px solid rgba(26,23,18,.1); padding: 1.75rem var(--jcm-jl-pad) calc(6rem + env(safe-area-inset-bottom)); text-align: center; font-size: .82rem; color: #6b665e; }
#jcm-jl-root .jcm-jl-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }
#jcm-jl-root .jcm-jl-footer a { display: inline-block; padding: .5rem 0; }
#jcm-jl-root .jcm-jl-footer a:hover { color: var(--jcm-jl-ink); }

/* =================== CTA PERSISTENTE =================== */
#jcm-jl-root .jcm-jl-sticky {
  position: fixed; z-index: 55;
  left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); opacity: 0;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px;
  background: rgba(20,28,43,.82); color: var(--jcm-jl-white);
  border: 1px solid rgba(217,170,103,.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
  transition: transform .6s var(--jcm-jl-ease), opacity .6s, background-color .3s;
}
#jcm-jl-root .jcm-jl-sticky.is-on { transform: translate(-50%, 0); opacity: 1; }
#jcm-jl-root .jcm-jl-sticky:hover { background: var(--jcm-jl-gold); color: var(--jcm-jl-black); }
#jcm-jl-root .jcm-jl-sticky__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jcm-jl-gold); box-shadow: 0 0 0 0 rgba(217,170,103,.6); animation: jcm-jl-pulse 2.4s infinite; }
#jcm-jl-root .jcm-jl-sticky:hover .jcm-jl-sticky__dot { background: var(--jcm-jl-black); }
@keyframes jcm-jl-pulse { 0% { box-shadow: 0 0 0 0 rgba(217,170,103,.6); } 70% { box-shadow: 0 0 0 10px rgba(217,170,103,0); } 100% { box-shadow: 0 0 0 0 rgba(217,170,103,0); } }

/* =================== TABLET (≥ 640px) =================== */
@media (min-width: 640px) {
  #jcm-jl-root .jcm-jl-only-desk { display: inline; }
  #jcm-jl-root .jcm-jl-hero__content .jcm-jl-eyebrow { display: block; }
  #jcm-jl-root .jcm-jl-only-mob { display: none; }
  #jcm-jl-root .jcm-jl-hero__actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  #jcm-jl-root .jcm-jl-cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  #jcm-jl-root .jcm-jl-card:last-child { grid-column: 1 / -1; }
  #jcm-jl-root .jcm-jl-videos { grid-template-columns: repeat(2, 1fr); }
    #jcm-jl-root .jcm-jl-chapter { grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
  #jcm-jl-root .jcm-jl-header__cta { display: inline-flex; }
}

/* =================== ESCRITORIO (≥ 1024px) =================== */
@media (min-width: 1024px) {
  #jcm-jl-root.jcm-jl { --jcm-jl-header-h: 76px; }
  #jcm-jl-root .jcm-jl-progressbar { display: none; }

  #jcm-jl-root .jcm-jl-rail { display: block; position: fixed; right: 1.75rem; top: 50%; transform: translateY(-50%); z-index: 40; }
  #jcm-jl-root .jcm-jl-rail ol { display: flex; flex-direction: column; gap: .35rem; }
  #jcm-jl-root .jcm-jl-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 34px; color: var(--jcm-jl-grey); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
  #jcm-jl-root .jcm-jl-rail__label { position: absolute; right: 100%; margin-right: .6rem; opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s var(--jcm-jl-ease); white-space: nowrap; }
  #jcm-jl-root .jcm-jl-rail__num { font-family: var(--jcm-jl-serif); width: 30px; text-align: center; position: relative; transition: color .4s; }
  #jcm-jl-root .jcm-jl-rail__num::after { content: ""; position: absolute; right: -4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: .5; }
  #jcm-jl-root .jcm-jl-rail a:hover .jcm-jl-rail__label, #jcm-jl-root .jcm-jl-rail a:focus-visible .jcm-jl-rail__label { opacity: 1; transform: none; }
  #jcm-jl-root .jcm-jl-rail a.is-active { color: var(--jcm-jl-gold); }
  #jcm-jl-root.jcm-jl.is-light .jcm-jl-rail a { color: #6b665e; }
  #jcm-jl-root.jcm-jl.is-light .jcm-jl-rail a.is-active { color: #8a6531; }

  
  
  
  
  
  #jcm-jl-root .jcm-jl-hero__title { font-size: clamp(3rem, 5vw, 5rem); }

  #jcm-jl-root .jcm-jl-cards { grid-template-columns: repeat(6, 1fr); }
  #jcm-jl-root .jcm-jl-card { grid-column: span 2; }
  #jcm-jl-root .jcm-jl-card:nth-child(4) { grid-column: 2 / span 2; }
  #jcm-jl-root .jcm-jl-card:last-child { grid-column: span 2; }

  #jcm-jl-root .jcm-jl-card:nth-child(4), #jcm-jl-root .jcm-jl-card:nth-child(5) { margin-top: 1.25rem; }

  #jcm-jl-root .jcm-jl-steps { padding-left: 0; gap: 7rem; }
  #jcm-jl-root .jcm-jl-steps__line { left: 50%; margin-left: -1px; }
  #jcm-jl-root .jcm-jl-step { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  #jcm-jl-root .jcm-jl-step::before { left: 50%; margin-left: -7px; top: 50%; margin-top: -7px; }
  #jcm-jl-root .jcm-jl-step__icon { justify-self: end; width: 140px; height: 140px; }
  #jcm-jl-root .jcm-jl-step:nth-of-type(even) .jcm-jl-step__icon { order: 2; justify-self: start; }
  #jcm-jl-root .jcm-jl-step:nth-of-type(even) .jcm-jl-step__body { text-align: right; }
  #jcm-jl-root .jcm-jl-step:nth-of-type(even) .jcm-jl-step__text { margin-left: auto; }

  #jcm-jl-root .jcm-jl-jordi__intro { grid-template-columns: 5fr 6fr; gap: 5rem; }
  #jcm-jl-root .jcm-jl-chapters { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  #jcm-jl-root .jcm-jl-chapter { grid-template-columns: 1fr; }
      
  #jcm-jl-root .jcm-jl-sticky { left: auto; right: 1.75rem; bottom: 1.75rem; transform: translateY(140%); }
  #jcm-jl-root .jcm-jl-sticky.is-on { transform: none; }
}

@media (min-width: 1600px) {
  #jcm-jl-root .jcm-jl-rail a.is-active .jcm-jl-rail__label { opacity: 1; transform: none; }
}

/* =================== MOVIMIENTO REDUCIDO =================== */
@media (prefers-reduced-motion: reduce) {
  #jcm-jl-root.jcm-jl *, #jcm-jl-root.jcm-jl *::before, #jcm-jl-root.jcm-jl *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  #jcm-jl-root.jcm-jl-js .jcm-jl-reveal { opacity: 1; transform: none; }
  #jcm-jl-root .jcm-jl-step { opacity: 1; transform: none; }
  #jcm-jl-root .jcm-jl-hero__particles { display: none; }
  #jcm-jl-root .jcm-jl-i1-ring, #jcm-jl-root .jcm-jl-i3-path { stroke-dashoffset: 0; }
  #jcm-jl-root .jcm-jl-i1-cross { opacity: .7; } #jcm-jl-root .jcm-jl-i1-dot { transform: none; } #jcm-jl-root .jcm-jl-i3-sun { opacity: 1; }
  #jcm-jl-root .jcm-jl-i2-wave { opacity: .4; }
  #jcm-jl-root .jcm-jl-i2-wave--b { transform: scale(2); opacity: .25; }
  #jcm-jl-root .jcm-jl-i2-wave--c { transform: scale(3); opacity: .12; }
  #jcm-jl-root .jcm-jl-card__inner { transform: none !important; }
}

/* =================== MÓVILES BAJOS (iPhone SE y similares) =================== */
@media (max-width: 639px) and (max-height: 620px) {
  
  #jcm-jl-root .jcm-jl-hero__title { font-size: 1.55rem; }
  #jcm-jl-root .jcm-jl-hero__lead { margin-top: .9rem; font-size: .98rem; }
  #jcm-jl-root .jcm-jl-hero__actions { margin-top: 1.25rem; }
}

/* ==========================================================================
   2.0 — FOTOGRAFÍA REAL, ESCENAS Y TRANSICIONES
   ========================================================================== */

/* Variable de progreso por escena (la actualiza el JS; sin JS o con
   movimiento reducido se queda en 1 = estado final visible). */
#jcm-jl-root.jcm-jl [data-jcm-jl-progress] { --jcm-jl-in: 1; }

/* ---------- CTA secundario ---------- */
#jcm-jl-root .jcm-jl-btn--outline {
  border: 1px solid rgba(217,170,103,.6); color: var(--jcm-jl-white); background: transparent;
}
#jcm-jl-root .jcm-jl-btn--outline:hover { background: var(--jcm-jl-gold-soft); border-color: var(--jcm-jl-gold); transform: translateY(-2px); }

/* ---------- Revelado de fotografías con máscara ---------- */
#jcm-jl-root .jcm-jl-photo img { filter: contrast(1.04); }
#jcm-jl-root .jcm-jl-mask > picture { display: block; width: 100%; height: 100%; }
#jcm-jl-root.jcm-jl-js .jcm-jl-mask > picture { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--jcm-jl-ease); }
#jcm-jl-root.jcm-jl-js .jcm-jl-mask.is-in > picture { clip-path: inset(0 0 0 0); }
#jcm-jl-root.jcm-jl-js .jcm-jl-mask img { transform: scale(1.15); transition: transform 2.2s var(--jcm-jl-ease); }
#jcm-jl-root.jcm-jl-js .jcm-jl-mask.is-in img { transform: scale(1); }
#jcm-jl-root .jcm-jl-photo__light { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(11,13,18,.55) 100%), radial-gradient(80% 50% at 85% 0%, rgba(217,170,103,.18), transparent 70%); }

#jcm-jl-root .jcm-jl-jordi__intro { margin-top: clamp(1rem, 4vw, 3rem); }
#jcm-jl-root .jcm-jl-jordi__text .jcm-jl-eyebrow { margin-bottom: 1rem; }

/* ---------- Antes / Hoy ---------- */

/* ---------- Franja cinematográfica (conferencia) ---------- */

#jcm-jl-root .jcm-jl-chapters--single { margin-top: clamp(3rem, 9vw, 5rem); }

/* ---------- Libro editorial ---------- */
#jcm-jl-root .jcm-jl-bookfeature { margin-top: clamp(4rem, 12vw, 7rem); display: grid; gap: clamp(3.5rem, 10vw, 4rem); align-items: center; }
#jcm-jl-root .jcm-jl-bookfeature__visual { position: relative; margin-right: 8%; }
#jcm-jl-root .jcm-jl-bookfeature__photo { aspect-ratio: 1 / 1; border-radius: 6px; }
#jcm-jl-root .jcm-jl-bookfeature__photo img { object-position: 60% 40%; }
#jcm-jl-root .jcm-jl-bookfeature__mock {
  position: absolute; right: -10%; bottom: -12%; width: 44%;
  filter: drop-shadow(-14px 24px 30px rgba(0,0,0,.65));
  transition: filter .5s;
}
#jcm-jl-root .jcm-jl-bookfeature__mock:hover { filter: drop-shadow(-14px 30px 40px rgba(0,0,0,.75)) brightness(1.04); }
#jcm-jl-root .jcm-jl-bookfeature__mock img { width: 100%; height: auto; }
#jcm-jl-root .jcm-jl-bookfeature__title { font-family: var(--jcm-jl-serif); font-weight: 600; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.05; letter-spacing: -.015em; text-transform: uppercase; margin-bottom: 1rem; }
#jcm-jl-root .jcm-jl-bookfeature__title em { display: block; text-transform: none; font-weight: 500; color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-bookfeature__text p { color: rgba(247,244,239,.78); max-width: 46ch; }
#jcm-jl-root .jcm-jl-bookfeature__text .jcm-jl-link { margin-top: 1rem; }

/* ---------- Filosofía ---------- */
#jcm-jl-root .jcm-jl-philosophy__text { transform: scale(calc(.94 + var(--jcm-jl-in) * .06)); }
#jcm-jl-root .jcm-jl-philosophy__sub { margin-top: 1.5rem; font-family: var(--jcm-jl-serif); font-style: italic; font-size: clamp(1.1rem, 3.2vw, 1.55rem); color: var(--jcm-jl-grey); }

/* ---------- Testimonios (presentación neutral) ---------- */
#jcm-jl-root .jcm-jl-video__num { font-family: var(--jcm-jl-sans); font-size: .75rem; letter-spacing: .14em; color: var(--jcm-jl-gold); }
#jcm-jl-root .jcm-jl-testimonials__cta { margin-top: 2rem; }

/* ---------- Firma y lema ---------- */
#jcm-jl-root .jcm-jl-signature { margin-top: clamp(3.5rem, 9vw, 5rem); display: flex; flex-direction: column; align-items: center; }
#jcm-jl-root .jcm-jl-signature__portrait { position: relative; width: 170px; height: 194px; }
#jcm-jl-root .jcm-jl-signature__portrait::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff6e6, #ead2a8 60%, #d9aa67 100%); box-shadow: 0 20px 40px -20px rgba(138,101,49,.6); }
#jcm-jl-root .jcm-jl-signature__portrait img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
#jcm-jl-root .jcm-jl-signature .jcm-jl-signoff { margin-top: 1rem; text-align: center; }
#jcm-jl-root .jcm-jl-motto { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; }
#jcm-jl-root .jcm-jl-motto img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(26,23,18,.08); }
#jcm-jl-root .jcm-jl-motto p { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #6b665e; font-weight: 600; }

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  
  
  
  
  

  
  

  #jcm-jl-root .jcm-jl-chapters--single { grid-template-columns: 1fr; }
  #jcm-jl-root .jcm-jl-chapters--single .jcm-jl-chapter { grid-template-columns: 260px 1fr; gap: 3rem; }

  #jcm-jl-root .jcm-jl-bookfeature { grid-template-columns: 1.05fr 1fr; gap: 7rem; }
  #jcm-jl-root .jcm-jl-bookfeature__mock { width: 46%; right: -18%; bottom: -10%; }
}

@media (prefers-reduced-motion: reduce) {
  #jcm-jl-root.jcm-jl-js .jcm-jl-mask > picture { clip-path: none; }
  #jcm-jl-root.jcm-jl-js .jcm-jl-mask img { transform: none; }
}

/* ---------- Ajustes móviles 2.0 ---------- */

@media (max-width: 420px) {
  #jcm-jl-root .jcm-jl-btn { font-size: .86rem; letter-spacing: .04em; padding-left: 1.2rem; padding-right: 1.2rem; }
  #jcm-jl-root .jcm-jl-btn--xl { font-size: .9rem; }
}

/* ==========================================================================
   2.1 — ACTO I: LUZ CÁLIDA Y REVELADO PROGRESIVO DE JORDI
   (sustituye la puerta y la figura SVG de versiones anteriores)
   ========================================================================== */
#jcm-jl-root .jcm-jl-hero {
  /* Móvil: franja superior para la fotografía, texto debajo */
  --jcm-jl-hero-zone: min(30svh, 240px);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--jcm-jl-header-h) + var(--jcm-jl-hero-zone) - .75rem) 0 4.5rem;
  isolation: isolate; overflow: hidden;
  background: var(--jcm-jl-black);
}
#jcm-jl-root .jcm-jl-hero__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#jcm-jl-root.jcm-jl-js .jcm-jl-hero__scene { animation: jcm-jl-fadein 1.4s var(--jcm-jl-ease) both; }

#jcm-jl-root .jcm-jl-hero__portrait {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--jcm-jl-header-h) + var(--jcm-jl-hero-zone) + 2.5rem);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, #000 30%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, #000 30%, #000 62%, transparent 100%);
  will-change: transform;
}
#jcm-jl-root .jcm-jl-hero__portrait picture { display: block; width: 100%; height: 100%; }
#jcm-jl-root .jcm-jl-hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 45% 24%;
  filter: saturate(.85) contrast(1.05);
  transform: scale(calc(1.06 - var(--jcm-jl-hero-p) * .06)); transform-origin: 50% 30%;
}
#jcm-jl-root.jcm-jl-js .jcm-jl-hero__portrait picture { animation: jcm-jl-emerge 2.8s .35s var(--jcm-jl-ease) both; }
/* Sombra que se disipa: al entrar solo la luz roza su rostro; al avanzar, Jordi aparece entero */
#jcm-jl-root .jcm-jl-hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 30% 12%, rgba(11,13,18,.15), rgba(11,13,18,.9) 78%);
  opacity: calc(1 - var(--jcm-jl-hero-p) * .8);
}
#jcm-jl-root .jcm-jl-hero__glow {
  position: absolute; left: 22%; top: 0; width: 130vmax; height: 130vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(247,226,190,.42), rgba(217,170,103,.16) 30%, rgba(217,170,103,.04) 55%, transparent 72%);
  opacity: calc(.75 + var(--jcm-jl-hero-p) * .25);
}
#jcm-jl-root .jcm-jl-hero__rays {
  position: absolute; left: 22%; top: 0; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%);
  background: conic-gradient(from 110deg at 50% 50%, transparent 0deg, rgba(247,226,190,.07) 10deg, transparent 22deg, rgba(247,226,190,.05) 34deg, transparent 46deg, rgba(247,226,190,.06) 60deg, transparent 74deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); mask-image: radial-gradient(closest-side, #000 10%, transparent 70%);
  opacity: calc(.45 + var(--jcm-jl-hero-p) * .55);
  mix-blend-mode: screen;
}
#jcm-jl-root .jcm-jl-hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
#jcm-jl-root .jcm-jl-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,18,.55) 0%, transparent 14%, transparent 36%, rgba(11,13,18,.7) 52%, rgba(11,13,18,.92) 100%),
    radial-gradient(130% 90% at 50% 20%, transparent 55%, rgba(0,0,0,.55) 100%);
}
@keyframes jcm-jl-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes jcm-jl-emerge { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  #jcm-jl-root .jcm-jl-hero { justify-content: center; padding: calc(var(--jcm-jl-header-h) + 2rem) 0 4rem; }
  #jcm-jl-root .jcm-jl-hero__portrait {
    left: auto; right: 0; top: 0; bottom: 0; height: auto; width: 54%;
    -webkit-mask-image: radial-gradient(88% 82% at 60% 42%, #000 42%, transparent 78%);
            mask-image: radial-gradient(88% 82% at 60% 42%, #000 42%, transparent 78%);
  }
  #jcm-jl-root .jcm-jl-hero__portrait img { object-position: 35% 30%; }
  #jcm-jl-root .jcm-jl-hero__portrait::after { background: radial-gradient(60% 55% at 26% 14%, rgba(11,13,18,.1), rgba(11,13,18,.9) 80%); }
  #jcm-jl-root .jcm-jl-hero__glow, #jcm-jl-root .jcm-jl-hero__rays { left: 50%; top: 2%; }
  #jcm-jl-root .jcm-jl-hero__veil {
    background:
      linear-gradient(90deg, rgba(11,13,18,.94) 0%, rgba(11,13,18,.72) 36%, rgba(11,13,18,0) 58%),
      linear-gradient(180deg, transparent 72%, var(--jcm-jl-black) 100%);
  }
  #jcm-jl-root .jcm-jl-hero__title { font-size: clamp(2.8rem, 4.4vw, 4.6rem); max-width: 15ch; }
  #jcm-jl-root .jcm-jl-hero__lead { max-width: 46ch; }
}
@media (max-width: 639px) and (max-height: 620px) {
  #jcm-jl-root .jcm-jl-hero { --jcm-jl-hero-zone: 21svh; padding-bottom: 3.5rem; }
}

/* ==========================================================================
   2.1 — ANTES / HOY: UNA ESCENA REAL QUE PASA DE LA OSCURIDAD A LA LUZ
   ========================================================================== */
#jcm-jl-root .jcm-jl-stage { --jcm-jl-lit: 1; --jcm-jl-then: 1; --jcm-jl-now: 1; position: relative; margin-top: clamp(3.5rem, 10vw, 6rem); }
#jcm-jl-root .jcm-jl-stage__kicker { margin-bottom: 1rem; }
#jcm-jl-root .jcm-jl-stage__media {
  position: relative; overflow: hidden; border-radius: 14px; background: #07080b;
  width: 100%; height: min(46svh, 92vw);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(247,244,239,.06);
}
#jcm-jl-root .jcm-jl-stage__media picture { display: block; width: 100%; height: 100%; }
#jcm-jl-root .jcm-jl-stage__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  transform: scale(calc(1.1 - var(--jcm-jl-lit) * .1)); transform-origin: 50% 40%;
}
#jcm-jl-root .jcm-jl-stage__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 42%, rgba(7,8,11,.8), rgba(7,8,11,.97) 72%);
  opacity: calc(1 - var(--jcm-jl-lit) * .92);
}
#jcm-jl-root .jcm-jl-stage__warm {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(55% 60% at 50% 0%, rgba(247,226,190,.28), transparent 70%);
  opacity: var(--jcm-jl-lit);
}
#jcm-jl-root .jcm-jl-stage__copy { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
#jcm-jl-root .jcm-jl-stage__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--jcm-jl-grey); margin-bottom: .5rem; }
#jcm-jl-root .jcm-jl-stage__quote { font-family: var(--jcm-jl-serif); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 5.2vw, 2.4rem); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
#jcm-jl-root .jcm-jl-stage__note { margin-top: .75rem; color: rgba(247,244,239,.72); font-size: .98rem; }

/* Con movimiento: la escena se fija mientras la luz entra y los textos se relevan */
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage { height: 165vh; height: 165svh; }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__pin { position: sticky; top: calc(var(--jcm-jl-header-h) + .75rem); }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__copy { grid-template-areas: "s"; }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__state { grid-area: s; }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__state--then { opacity: var(--jcm-jl-then); transform: translateY(calc((1 - var(--jcm-jl-then)) * -12px)); }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__state--now { opacity: var(--jcm-jl-now); transform: translateY(calc((1 - var(--jcm-jl-now)) * 14px)); }

@media (min-width: 1024px) {
  #jcm-jl-root .jcm-jl-stage__media { height: auto; aspect-ratio: 12 / 5; }
  #jcm-jl-root .jcm-jl-stage__media img { object-position: 50% 40%; }
  #jcm-jl-root .jcm-jl-stage__veil { background: radial-gradient(45% 80% at 52% 45%, rgba(7,8,11,.8), rgba(7,8,11,.97) 70%); }
  #jcm-jl-root .jcm-jl-stage__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,8,11,.88) 0%, rgba(7,8,11,.55) 30%, transparent 48%); }
  #jcm-jl-root .jcm-jl-stage__copy { position: absolute; left: 3.5rem; bottom: 2.75rem; width: 34%; margin: 0; z-index: 2; }
  #jcm-jl-root .jcm-jl-stage__quote { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
  #jcm-jl-root .jcm-jl-stage__pin { position: relative; }
  #jcm-jl-root.jcm-jl-motion .jcm-jl-stage { height: 170vh; }
  #jcm-jl-root.jcm-jl-motion .jcm-jl-stage__pin { top: max(calc(var(--jcm-jl-header-h) + 1rem), calc(50vh - 17rem)); }
}

@media (prefers-reduced-motion: reduce) {
  #jcm-jl-root.jcm-jl-js .jcm-jl-hero__scene, #jcm-jl-root.jcm-jl-js .jcm-jl-hero__portrait picture { animation: none; }
}

/* ==========================================================================
   CAPA DE COMPATIBILIDAD WORDPRESS / DIVI 4
   Solo actúa en la página que contiene la landing. No toca ninguna otra página.
   ========================================================================== */

/* 1. El propio contenedor: propiedades que heredaría del tema (Divi pone en
      body font-weight 500, color gris, line-height 1.7em, word-wrap…). */
#jcm-jl-root.jcm-jl {
  --jcm-jl-top: 0px;               /* desplazamiento por la barra de administración */
  display: block; float: none; clear: both;
  width: auto; max-width: none; min-width: 0;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  font-weight: 400; font-style: normal; letter-spacing: normal; word-spacing: normal;
  text-transform: none; text-align: start; text-indent: 0; text-shadow: none;
  overflow-wrap: normal; word-wrap: normal; word-break: normal; hyphens: manual;
  white-space: normal; direction: ltr; visibility: visible; opacity: 1;
  transform: none; filter: none;
}

/* 2. Fondo de la página de la landing (equivale al fondo de la demo). */
body.jcm-jl-page { background-color: #0B0D12; }

/* 3. Ancho completo: los contenedores que ENVUELVEN a la landing (secciones,
      filas, columnas y módulos de Divi, .container, #left-area, entry-content…)
      dejan de limitar el ancho y de recortar. Así la landing ocupa el 100 %
      del ancho y la escena fija (position: sticky) funciona. */
body.jcm-jl-page :has(#jcm-jl-root) {
  float: none; width: auto; max-width: none; min-width: 0;
  margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  overflow: visible; transform: none; filter: none; perspective: none;
  contain: none; clip-path: none; -webkit-mask: none; mask: none; will-change: auto;
}
/* Divi: #page-container lleva overflow-y: hidden (rompe position: sticky). */
body.jcm-jl-page #page-container { overflow: visible; }

/* Rellenos verticales de los contenedores habituales de Divi / del tema que
   envuelven a la landing (evitan bandas blancas arriba y abajo). */
body.jcm-jl-page :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module, .et_pb_text_inner, .et_pb_code_inner, .et_builder_inner_content, .et-l--post, #main-content .container, #content-area, #left-area, .entry-content, article.page, article.post):has(#jcm-jl-root) {
  padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0;
  background-color: transparent; border: 0; box-shadow: none;
}
body.jcm-jl-page #main-content:has(#jcm-jl-root) { background-color: #0B0D12; }
/* Divi pinta una línea vertical para la barra lateral; en la landing sobra. */
body.jcm-jl-page #main-content .container:has(#jcm-jl-root)::before { display: none; }
body.jcm-jl-page :is(.et_pb_row, .et_pb_column):has(#jcm-jl-root) { width: 100%; }
/* Título automático de la página (plantilla por defecto de Divi) */
body.jcm-jl-page #left-area:has(#jcm-jl-root) :is(.main_title, .entry-title) { display: none; }

/* Párrafos o saltos vacíos que el editor (wpautop) pueda dejar junto al shortcode */
body.jcm-jl-page :has(> #jcm-jl-root) > :is(p, br):empty { display: none; }

/* Navegadores sin :has() (pocos): la landing sale de su contenedor a lo ancho. */
@supports not selector(:has(*)) {
  body.jcm-jl-page { overflow-x: hidden; }
  body.jcm-jl-page #page-container { overflow: visible; }
  #jcm-jl-root.jcm-jl { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}

/* 4. Barra de administración de WordPress (solo la ven usuarios conectados). */
body.admin-bar #jcm-jl-root.jcm-jl { --jcm-jl-top: 32px; }
@media (max-width: 782px) { body.admin-bar #jcm-jl-root.jcm-jl { --jcm-jl-top: 46px; } }
@media (max-width: 600px) { body.admin-bar #jcm-jl-root.jcm-jl { --jcm-jl-top: 0px; } }
#jcm-jl-root .jcm-jl-header, #jcm-jl-root .jcm-jl-progressbar { top: var(--jcm-jl-top); }
#jcm-jl-root.jcm-jl-motion .jcm-jl-stage__pin { top: calc(var(--jcm-jl-header-h) + .75rem + var(--jcm-jl-top)); }
@media (min-width: 1024px) {
  #jcm-jl-root.jcm-jl-motion .jcm-jl-stage__pin { top: max(calc(var(--jcm-jl-header-h) + 1rem + var(--jcm-jl-top)), calc(50vh - 17rem)); }
}

/* Enlace «Saltar al contenido»: oculto hasta recibir el foco aunque la landing
   no empiece en lo alto de la página (cabecera o título del tema por encima). */
#jcm-jl-root .jcm-jl-skip { position: fixed; top: -100px; }
#jcm-jl-root .jcm-jl-skip:focus { top: calc(1rem + var(--jcm-jl-top)); }

/* 5. Si la página conserva la cabecera del tema (no se usa «Blank Page»),
      la cabecera propia de la landing deja de ser fija para no solaparse. */
#jcm-jl-root.jcm-jl-in-theme .jcm-jl-header { position: absolute; top: 0; }
#jcm-jl-root.jcm-jl-in-theme .jcm-jl-progressbar { display: none; }

/* 6. Aviso que solo se ve dentro del Visual Builder de Divi. */
.jcm-jl-builder-note {
  padding: 2rem; border: 1px dashed #D9AA67; background: #0B0D12; color: #F7F4EF;
  font: 500 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: center;
}
