/* =========================================================
   EMUNÁ · Terapias energéticas
   Paleta extraída de la pintura del logotipo
   ========================================================= */

:root {
  --paper: #F5EDE6;
  --cream: #FBF6F1;
  --blush: #EFDFD4;
  --nude: #D9B8A3;
  --sand: #E8A976;
  --orange: #CF7D46;
  --clay: #C2794F;
  --terracotta: #B16048;
  --rust: #A0533C;
  --teal: #1A5A65;
  --teal-deep: #134F58;
  --ink: #1F3436;
  --night: #0D1C1F;

  --line: rgba(31, 52, 54, .16);
  --line-light: rgba(251, 246, 241, .16);

  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --r-sheet: clamp(22px, 3.6vw, 52px);
  --ease: cubic-bezier(.22, .8, .16, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-loading { overflow: hidden; }

img, svg, canvas { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--sand); color: var(--ink); }

:focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px;
  background: var(--ink); color: var(--cream); border-radius: 8px; transition: top .3s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--pad); }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.5;
}

.label { display: inline-flex; align-items: center; gap: .6em; opacity: .72; }
.arr { display: inline-block; font-family: var(--f-sans); transform: translateY(-1px); }

.split .line-mask, .split-line-mask { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Botones ---------- */
.btn-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  white-space: nowrap;
}
.btn-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .45s var(--ease); }
.btn-pill::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--rust), var(--orange) 55%, var(--sand));
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn-pill:hover { color: var(--cream); border-color: transparent; }
.btn-pill:hover::before { transform: translateY(0); }
.btn-pill:hover svg { transform: translate(2px, -2px); }
.btn-pill--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-pill--glow {
  color: var(--cream); border-color: rgba(232, 169, 118, .55);
  background: rgba(207, 125, 70, .12);
  box-shadow: 0 0 30px rgba(207, 125, 70, .25), inset 0 0 18px rgba(232, 169, 118, .15);
}

.btn-glass {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px; letter-spacing: .01em;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .35));
  border: 1px solid rgba(160, 83, 60, .35);
  box-shadow: 0 10px 40px -10px rgba(160, 83, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -10px 24px rgba(232, 169, 118, .25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-glass:hover { box-shadow: 0 16px 50px -10px rgba(160, 83, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -14px 30px rgba(232, 169, 118, .4); }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; opacity: .78; padding: 6px 2px;
  border-bottom: 1px solid currentColor;
  transition: opacity .3s;
}
.btn-quiet:hover { opacity: 1; }
.btn-quiet svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Ecualizador */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.18); }
.eq--static i { animation: eqIdle 1.2s ease-in-out infinite; }
.eq--static i:nth-child(2) { animation-delay: -.3s; }
.eq--static i:nth-child(3) { animation-delay: -.7s; }
.eq--static i:nth-child(4) { animation-delay: -.15s; }
.eq--static i:nth-child(5) { animation-delay: -.5s; }
@keyframes eqIdle { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* =========================================================
   PRELOADER
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 120; color: var(--ink); background: var(--paper); }
/* Hasta que arranca el script, el velo tapa la portada y no se ve nada a medio colocar */
.loader:not(.is-js) > * { visibility: hidden; }
.loader.is-js { background: transparent; }
.loader-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.veil-rect { fill: var(--paper); }
.veil-rings circle { fill: none; stroke: var(--rust); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loader-inner { position: absolute; inset: 0; pointer-events: none; }
.loader-wm {
  position: absolute; left: 50%; top: 50%;
  width: var(--lw, 300px); height: calc(var(--lw, 300px) * 852 / 2785);
  transform: translate(-50%, -50%);
  color: var(--ink);
}
.loader-tag {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--lr, 90px) + 30px);
  text-align: center; opacity: .72;
}
.loader-enter {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--lr, 90px) + 92px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  pointer-events: auto; visibility: hidden; opacity: 0;
}
.loader-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 26px;
  display: flex; align-items: center; gap: 14px;
}
.loader-pct { color: var(--rust); margin-right: auto; font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: 0; right: 0; top: -14px; height: 1px; background: rgba(31, 52, 54, .12); }
.loader-bar b { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad);
  color: var(--ink);
  transition: color .6s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 237, 230, .72);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; transition: opacity .6s var(--ease), background-color .6s;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav > * { pointer-events: auto; }
body[data-theme='dark'] .nav { color: var(--cream); }
body[data-theme='dark'] .nav::before { background: rgba(13, 28, 31, .58); }
body.menu-open .nav::before { opacity: 0; }
.nav-logo { display: block; }
.nav-logo svg { width: 98px; height: 30px; fill: currentColor; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a {
  position: relative; padding: 6px 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.sound { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; }
.sound .eq { height: 15px; }
.sound .eq i { width: 2px; }
.sound-label b { font-weight: 400; opacity: .6; }
.nav-cta { padding: 11px 16px 11px 18px; }
.burger { display: none; align-items: center; gap: 10px; padding: 10px 4px; }
.burger i { position: relative; width: 22px; height: 8px; }
.burger i::before, .burger i::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease);
}
.burger i::before { top: 0; }
.burger i::after { bottom: 0; }
.burger[aria-expanded='true'] i::before { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded='true'] i::after { transform: translateY(-3.5px) rotate(-45deg); }
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: .35; transform-origin: 0 50%; transform: scaleX(0);
}

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 30px) var(--pad) 28px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  visibility: hidden;
}
.menu-links { display: grid; gap: 4px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.05;
  border-bottom: 1px solid var(--line-light); padding: 6px 0;
}
.menu-links a .mono { opacity: .55; }
.menu-foot { opacity: .6; }
body.menu-open .nav { color: var(--cream); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; }
.hero-stage { position: relative; height: 100%; overflow: hidden; background: #EDD6C6; }
.h-layer { position: absolute; top: -40px; left: -60px; width: calc(100% + 120px); height: calc(100% + 80px); will-change: transform; }
svg.h-layer { overflow: visible; }
.h-sky { background: linear-gradient(180deg, #E9CFBF 0%, #F1DDD0 30%, #F5E3D5 58%, #F4D2B9 100%); }
.h-glow {
  position: absolute; left: 50%; top: 36%;
  width: 120vmax; height: 120vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 232, .95) 0%, rgba(255, 238, 220, .6) 16%, rgba(255, 232, 214, .18) 34%, rgba(255, 232, 214, 0) 52%);
}
.h-sun { pointer-events: none; }

/* Dos círculos (logotipo) reutilizable */
.duo { position: relative; aspect-ratio: 2367.6 / 1533; }
.duo-c {
  position: absolute; top: 0; width: 64.57%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}
.duo-l { left: 0; }
.duo-r { left: 35.43%; top: .29%; }
.duo-c img {
  position: absolute; max-width: none; width: 156.99%; height: auto;
  will-change: transform;
}
.duo-l img { left: -1.06%; top: -1.03%; transform-origin: 32.525% 49.85%; }
.duo-r img { left: -55.94%; top: -1.31%; transform-origin: 67.48% 50.12%; }

.hero {
  --sun-top: 13vh; --sun-w: min(40vw, 68vh);
  --word-w: min(80vw, 136vh); --word-bottom: 24vh;
}
.duo--hero {
  position: absolute; left: 50%; top: calc(var(--sun-top) + 40px);
  width: var(--sun-w);
  margin-left: calc(var(--sun-w) / -2);
}

.h-word { pointer-events: none; }
.hero-title {
  position: absolute; left: 50%; bottom: calc(var(--word-bottom, 26vh) + 40px);
  width: var(--word-w, min(84vw, 150vh));
  transform: translateX(-50%);
  line-height: 0;
}
.wm-hero { width: 100%; height: auto; overflow: visible; fill: var(--ink); }

.h-dust { pointer-events: none; left: 0; top: 0; width: 100%; height: 100%; }
.h-shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }

.hero-ui {
  position: absolute; inset: 0; z-index: 5;
  padding: calc(var(--nav-h) + 8px) var(--pad) 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.hero-ui::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 52, 54, 0), rgba(31, 52, 54, .42));
}
.hero-ui a { pointer-events: auto; }
.hero-kicker { display: flex; flex-direction: column; opacity: .7; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--cream); }
.hero-lead { max-width: min(400px, 44vw); }
.hero-lead-big { font-family: var(--f-serif); font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -.01em; }
.hero-lead-big em { color: var(--sand); }
.hero-lead-small { margin-top: 10px; font-size: 14px; line-height: 1.5; opacity: .82; max-width: 360px; }
.hero-meta { display: grid; justify-items: end; gap: 8px; text-align: right; }
.now { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.now-label { opacity: .7; }
.moon-ico { width: 14px; height: 14px; }
.moon-ico circle { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .6; }
.moon-ico path { fill: currentColor; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; }
.hero-scroll i { position: relative; width: 44px; height: 1px; background: rgba(251, 246, 241, .35); overflow: hidden; }
.hero-scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--cream);
  transform: translateX(-100%); animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* =========================================================
   SECCIONES "HOJA" (capas que se superponen)
   ========================================================= */
.sheet { border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; z-index: 20; border-radius: inherit; }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifesto {
  position: relative; z-index: 2;
  margin-top: 50vh;
  background: var(--paper);
  padding: clamp(96px, 12vw, 190px) 0 calc(clamp(70px, 8vw, 130px) + var(--r-sheet));
  box-shadow: 0 -40px 90px -30px rgba(31, 52, 54, .35);
}
.m-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.m-side { grid-column: 1 / span 3; display: grid; align-content: start; gap: 28px; }
.m-def { display: grid; gap: 10px; max-width: 250px; font-size: 14px; line-height: 1.5; }
.m-def em { font-family: var(--f-serif); font-size: 20px; }
.m-he { font-family: var(--f-serif); font-size: 44px; line-height: 1; color: var(--rust); }
.m-text {
  grid-column: 4 / span 9;
  font-family: var(--f-serif); font-size: clamp(34px, 4.3vw, 76px); line-height: 1.04; letter-spacing: -.012em;
  text-indent: 14%;
}
.m-text .word { text-indent: 0; }

.m-floats { position: relative; height: clamp(300px, 36vw, 560px); margin: clamp(30px, 5vw, 80px) 0 0; pointer-events: none; }
.float { position: absolute; overflow: hidden; background: var(--nude) url('../assets/img/emuna-pintura.webp') center / cover; }
.float img { width: 100%; height: 100%; object-fit: cover; }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; }
.pebble { border-radius: 50%; }
.f1 { width: clamp(140px, 17vw, 280px); aspect-ratio: 3 / 4; left: 12%; top: 4%; }
.f2 { width: clamp(110px, 13vw, 220px); aspect-ratio: 1; left: 44%; top: 30%; }
.f3 { width: clamp(130px, 15vw, 250px); aspect-ratio: 3 / 4; right: 9%; top: 0; }
.f4 { right: 33%; top: 26%; width: clamp(60px, 7vw, 110px); aspect-ratio: 1.55; background: none; }
.dot-duo::before, .dot-duo::after {
  content: ''; position: absolute; top: 0; width: 64.5%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--rust);
}
.dot-duo::before { left: 0; }
.dot-duo::after { right: 0; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 90px); }
.stat { border-top: 1px solid var(--line); padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font-family: var(--f-serif); font-size: clamp(76px, 11vw, 190px); line-height: .86; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { margin-top: 14px; opacity: .72; max-width: 220px; }

/* =========================================================
   TERAPIAS · ANILLO 3D
   ========================================================= */
.therapies {
  position: relative; z-index: 3;
  margin-top: calc(var(--r-sheet) * -1);
  color: var(--cream);
}
.t-pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(120% 80% at 50% 110%, #2A2A26 0%, #14282B 38%, var(--night) 70%);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t-glow {
  position: absolute; left: 50%; bottom: -26vh; width: 130vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(207, 125, 70, .34), rgba(160, 83, 60, .12) 55%, transparent);
  pointer-events: none;
}
.t-head {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-top: calc(var(--nav-h) + 22px);
}
.t-title { font-family: var(--f-serif); font-size: clamp(40px, 5vw, 88px); line-height: .92; letter-spacing: -.02em; margin-top: 12px; }
.t-title em { color: var(--sand); }
.t-view { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-light); }
.t-view button { padding: 9px 16px; border-radius: 999px; transition: background .4s, color .4s; }
.t-view button.is-on { background: var(--cream); color: var(--ink); }

.ring-stage {
  position: relative; z-index: 2;
  perspective: 2200px; perspective-origin: 50% 42%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.ring-stage.is-drag { cursor: grabbing; }
.ring-cam { position: absolute; left: 50%; top: 48%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-6deg); }
.ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.r-card {
  position: absolute;
  left: calc(var(--cw) / -2); top: calc(var(--ch) / -2);
  width: var(--cw); height: var(--ch);
  transform: rotateY(var(--a)) translateZ(var(--R));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px;
  outline: none;
  -webkit-box-reflect: below 12px linear-gradient(transparent 58%, rgba(255, 255, 255, .16));
}
.r-card-in {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: #22393C url('../assets/img/emuna-pintura.webp') center / 300% auto;
  box-shadow: 0 0 0 1px rgba(251, 246, 241, .16);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.r-card:nth-child(9n+1) .r-card-in { background-position: 10% 20%; }
.r-card:nth-child(9n+2) .r-card-in { background-position: 30% 60%; }
.r-card:nth-child(9n+3) .r-card-in { background-position: 60% 30%; }
.r-card:nth-child(9n+4) .r-card-in { background-position: 90% 10%; }
.r-card:nth-child(9n+5) .r-card-in { background-position: 20% 90%; }
.r-card:nth-child(9n+6) .r-card-in { background-position: 75% 85%; }
.r-card:nth-child(9n+7) .r-card-in { background-position: 45% 45%; }
.r-card:nth-child(9n+8) .r-card-in { background-position: 85% 50%; }
.r-card:nth-child(9n+9) .r-card-in { background-position: 5% 70%; }
.r-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.r-card-in::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 28, 31, 0) 45%, rgba(13, 28, 31, .78) 100%);
}
.r-meta {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  display: grid; gap: 2px; text-align: left; color: var(--cream);
}
.r-name { font-family: var(--f-serif); font-size: clamp(17px, 1.5vw, 24px); line-height: 1.05; }
.r-shade { position: absolute; inset: 0; z-index: 3; background: var(--night); opacity: 0; pointer-events: none; will-change: opacity; border-radius: inherit; }
.r-card.is-front .r-card-in {
  box-shadow: 0 0 0 1px rgba(232, 169, 118, .85), 0 0 46px rgba(207, 125, 70, .55), 0 0 120px rgba(207, 125, 70, .25);
}
.r-card:hover .r-card-in { transform: translateY(-8px); }
.r-card:hover img { transform: scale(1.06); }
.r-card:focus-visible .r-card-in { box-shadow: 0 0 0 2px var(--sand); }

.ring-floor { position: absolute; left: 50%; top: 48%; width: 0; height: 0; pointer-events: none; }
.ring-disc {
  position: absolute;
  width: calc(var(--R) * 2.3); height: calc(var(--R) * 2.3);
  left: calc(var(--R) * -1.15); top: calc(var(--R) * -1.15);
  border-radius: 50%;
  transform: translateY(calc(var(--ch) / 2 + 4px)) translateZ(calc(var(--R) * -1)) rotateX(90deg);
  background: radial-gradient(circle, rgba(207, 125, 70, .22) 0%, rgba(207, 125, 70, .1) 38%, transparent 68%);
}
.ring-disc::after {
  content: ''; position: absolute; inset: 6.5%; border-radius: 50%;
  border: 1px solid rgba(232, 169, 118, .6);
  box-shadow: 0 0 22px rgba(207, 125, 70, .7), inset 0 0 22px rgba(207, 125, 70, .45);
}

.t-list {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: calc(var(--nav-h) + clamp(120px, 17vh, 170px)); padding-bottom: 24px;
  visibility: hidden; pointer-events: none;
}
/* la lista solo recoge clics en sus filas: su zona vacía no debe tapar los botones Círculo / Lista */
.t-list.is-on { visibility: visible; }
.t-list.is-on .tl-row { pointer-events: auto; }
.tl-row {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.1fr) 30px; align-items: baseline; gap: 20px;
  width: 100%; padding: clamp(4px, .9vh, 10px) 0; text-align: left;
  border-bottom: 1px solid var(--line-light);
  transition: padding .5s var(--ease), color .4s;
}
.tl-row:first-child { border-top: 1px solid var(--line-light); }
.tl-name { font-family: var(--f-serif); font-size: clamp(22px, min(3vw, 4.4vh), 46px); line-height: 1.05; }
.tl-short { opacity: .6; font-size: 14px; }
.tl-arrow { justify-self: end; transition: transform .5s var(--ease); }
.tl-row:hover { padding-left: 14px; color: var(--sand); }
.tl-row:hover .tl-arrow { transform: translateX(6px); }
.t-follow {
  position: fixed; left: 0; top: 0; z-index: 70; width: clamp(160px, 17vw, 260px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 16px 16px; pointer-events: none; opacity: 0;
  background: var(--clay) center / cover no-repeat;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.t-foot {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px;
  padding-bottom: 26px;
}
.t-count { opacity: .75; }
.t-count b { font-weight: 400; color: var(--sand); }
.t-name { font-family: var(--f-serif); font-size: clamp(34px, 3.6vw, 60px); line-height: 1; margin-top: 6px; }
.t-short { opacity: .72; margin-top: 6px; max-width: 420px; font-size: 15px; }
.ticks { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; opacity: .85; }
.ticks-bar { display: flex; align-items: center; gap: 7px; height: 16px; }
.ticks-bar i { display: block; width: 1px; height: 10px; background: currentColor; opacity: .3; transition: height .5s var(--ease), opacity .5s; }
.ticks-bar i.on { height: 16px; opacity: 1; background: var(--sand); }

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
.about { position: relative; z-index: 4; margin-top: calc(var(--r-sheet) * -1); background: var(--paper); }
.a-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; border-radius: inherit; }
.a-label { position: absolute; top: calc(var(--nav-h) + 22px); left: var(--pad); }
.a-stage { position: relative; width: min(58vw, 88vh); aspect-ratio: 2367.6 / 1533; margin-top: -6vh; }
.a-c { position: absolute; top: 0; width: 64.57%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
.a-left { left: 0; }
.a-right { left: 35.43%; top: .29%; }
.a-c img { position: absolute; max-width: none; width: 156.99%; }
.a-left img { left: -1.06%; top: -1.03%; transform-origin: 32.525% 49.85%; }
.a-right img { left: -55.94%; top: -1.31%; transform-origin: 67.48% 50.12%; }
.a-lens {
  --lens-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 902.5 1671.9' preserveAspectRatio='none'><path d='M451.25 0A1000 1000 0 0 1 451.25 1671.9A1000 1000 0 0 1 451.25 0Z'/></svg>");
  position: absolute; left: 35.43%; top: 8.2%; width: 29.14%; height: 83.6%;
  display: grid; place-items: center; pointer-events: none; opacity: 0;
}
.a-lens::before {
  content: ''; position: absolute; inset: 0;
  -webkit-mask: var(--lens-mask) center / 100% 100% no-repeat; mask: var(--lens-mask) center / 100% 100% no-repeat;
  background: radial-gradient(closest-side, rgba(255, 248, 238, .95), rgba(255, 236, 214, .55) 55%, rgba(255, 236, 214, .15));
  mix-blend-mode: screen;
}
.a-lens span { position: relative; font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 2.2vw, 36px); color: var(--rust); }
.a-title {
  position: absolute; left: 0; right: 0; bottom: 7vh;
  text-align: center; font-family: var(--f-serif); font-size: clamp(44px, 6.6vw, 118px); line-height: .92; letter-spacing: -.02em;
  display: grid; justify-items: center;
}
.a-title em { color: var(--rust); }
.a-title span, .a-title em { display: block; }
.a-body { padding-top: clamp(40px, 6vw, 90px); padding-bottom: calc(clamp(90px, 10vw, 150px) + var(--r-sheet)); }
.a-lead { font-family: var(--f-serif); font-size: clamp(32px, 3.8vw, 64px); line-height: 1.04; letter-spacing: -.01em; max-width: 1100px; }
.a-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(30px, 6vw, 110px); margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.a-copy { font-size: 17px; line-height: 1.65; max-width: 460px; opacity: .88; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.person-img { aspect-ratio: 4 / 5; background: var(--nude); }
.person-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person-img img { transform: scale(1.05); }
.person figcaption { display: grid; gap: 4px; margin-top: 14px; }
.person figcaption .mono { opacity: .6; }
.person figcaption strong { font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.person--pending .person-img img { width: 280%; max-width: none; height: 100%; object-position: 30% 40%; }
.person--pending figcaption strong { opacity: .45; }

/* =========================================================
   EL CAMINO
   ========================================================= */
.process { position: relative; z-index: 5; margin-top: calc(var(--r-sheet) * -1); }
.p-pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--blush);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.p-head { display: flex; flex-direction: column; gap: 10px; padding-top: calc(var(--nav-h) + 22px); }
.p-title { font-family: var(--f-serif); font-size: clamp(40px, 5vw, 88px); line-height: .92; letter-spacing: -.02em; }
.p-title em { color: var(--rust); }
.p-cards { position: relative; }
.p-card {
  position: absolute; left: 50%; top: 50%;
  width: min(1240px, calc(100vw - 2 * var(--pad)));
  height: min(60vh, 560px);
  background: var(--bg); color: var(--fg);
  border-radius: 26px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) clamp(170px, 21vw, 320px); align-items: end; gap: clamp(20px, 4vw, 70px);
  padding: clamp(24px, 3.6vw, 56px);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(31, 52, 54, .55);
  background-image: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .14), transparent 55%);
  will-change: transform;
}
.p-img {
  grid-column: 3; grid-row: 1; align-self: stretch; margin: 0; overflow: hidden;
  background: var(--clay) url('../assets/img/emuna-pintura.webp') center / cover;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .5);
}
.p-card:nth-child(2) .p-img { background-position: 80% 20%; }
.p-card:nth-child(3) .p-img { background-position: 10% 90%; }
.p-card:nth-child(4) .p-img { background-position: 60% 60%; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-num { font-family: var(--f-serif); font-size: clamp(110px, 19vw, 300px); line-height: .78; letter-spacing: -.03em; }
.p-body { display: grid; gap: 12px; max-width: 460px; }
.p-kicker { opacity: .7; }
.p-body h3 { font-family: var(--f-serif); font-size: clamp(34px, 4vw, 66px); line-height: .98; letter-spacing: -.01em; }
.p-body p:not(.p-kicker) { font-size: 16px; line-height: 1.6; opacity: .88; }
.p-art { position: absolute; left: clamp(24px, 3.6vw, 56px); top: clamp(24px, 3.6vw, 56px); width: clamp(56px, 6vw, 96px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .9; }
.p-num { grid-column: 1; grid-row: 1; }
.p-body { grid-column: 2; grid-row: 1; }
.p-card .p-dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }

/* =========================================================
   FRASE
   ========================================================= */
.quote {
  position: relative; z-index: 6; margin-top: calc(var(--r-sheet) * -1);
  height: 125vh; overflow: hidden; color: var(--cream);
  display: grid; place-items: center;
  background: radial-gradient(90% 60% at 50% 100%, #6B3A2A 0%, #2A2522 35%, var(--night) 75%);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.q-bg { position: absolute; inset: -12% 0; }
.q-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.q-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 28, 31, .55), rgba(13, 28, 31, .1) 40%, rgba(13, 28, 31, .65)); }
.q-moon { position: absolute; left: 50%; top: 14%; width: clamp(120px, 14vw, 220px); transform: translateX(-50%); opacity: .95; }
.q-text {
  position: relative; text-align: center;
  font-family: var(--f-serif); font-size: clamp(46px, 8.4vw, 150px); line-height: .95; letter-spacing: -.02em;
  padding: 0 var(--pad);
}
.q-text em { color: var(--sand); }
.q-text .char { display: inline-block; }

/* =========================================================
   CARTA DEL DÍA
   ========================================================= */
.oracle {
  position: relative; z-index: 7; margin-top: calc(var(--r-sheet) * -1);
  background: var(--paper);
  padding: clamp(110px, 12vw, 170px) 0 calc(clamp(60px, 7vw, 100px) + var(--r-sheet));
  overflow: hidden;
}
.o-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); align-items: end; gap: 24px; }
.o-title { font-family: var(--f-serif); font-size: clamp(44px, 6vw, 104px); line-height: .92; letter-spacing: -.02em; margin-top: 12px; }
.o-title em { color: var(--rust); }
.o-intro { font-size: 16px; line-height: 1.6; opacity: .82; }
.o-table { position: relative; height: clamp(520px, 70vh, 700px); margin-top: clamp(10px, 2vw, 30px); }
/* --ocw: ancho de la carta elegida (en el abanico se ve reducida) */
.deck { position: absolute; inset: 0; --ocw: clamp(196px, 16vw, 250px); }
.o-card {
  position: absolute; left: 50%; top: 43%;
  width: var(--ocw); height: calc(var(--ocw) * 1.62);
  margin-left: calc(var(--ocw) / -2); margin-top: calc(var(--ocw) * -.81);
  perspective: 1400px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.o-card:disabled { cursor: default; }
.o-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.o-face {
  position: absolute; inset: 0; border-radius: calc(var(--ocw) * .06); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* Reverso: el logotipo de Emuná */
.o-back {
  background:
    radial-gradient(62% 42% at 50% 50%, rgba(232, 169, 118, .22), transparent 72%),
    linear-gradient(165deg, #26423F 0%, var(--ink) 46%, #11262A 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 169, 118, .55), 0 18px 40px -18px rgba(13, 28, 31, .7);
  transition: box-shadow .5s var(--ease);
}
.o-back::before {
  content: ''; position: absolute; inset: calc(var(--ocw) * .045); border-radius: calc(var(--ocw) * .03);
  border: 1px solid rgba(232, 169, 118, .38);
}
.o-card.is-hover .o-back { box-shadow: inset 0 0 0 1px rgba(232, 169, 118, .9), 0 0 0 1px rgba(232, 169, 118, .25), 0 26px 50px -16px rgba(160, 83, 60, .65); }
.o-back-art { position: absolute; left: 50%; top: 50%; width: 90%; transform: translate(-50%, -50%); overflow: visible; fill: none; stroke: var(--sand); stroke-width: .55; }
.o-back-art .d { stroke-dasharray: .3 2.1; stroke-linecap: round; stroke-width: .9; }
.o-back-art .f { fill: var(--sand); stroke: none; }
.o-back-c { stroke: rgba(251, 246, 241, .55); stroke-width: .45; }
.o-back-lens { fill: rgba(251, 246, 241, .16); stroke: none; }
.o-back-art .o-back-mw .f { fill: var(--cream); }
/* Anverso: ventana en arco con el cielo pintado y la ilustración en línea de luz */
.o-front {
  transform: rotateY(180deg);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(160, 83, 60, .3), 0 24px 50px -20px rgba(31, 52, 54, .5);
  color: var(--ink);
}
.o-front[data-tono="noche"] { --estrellas: .95; --tono: linear-gradient(180deg, rgba(9, 22, 25, .93) 0%, rgba(14, 38, 42, .86) 48%, rgba(26, 64, 70, .7) 76%, rgba(160, 83, 60, .5) 100%); }
.o-front[data-tono="atardecer"] { --estrellas: .5; --tono: linear-gradient(180deg, rgba(20, 38, 41, .84) 0%, rgba(92, 45, 36, .66) 42%, rgba(160, 83, 60, .44) 72%, rgba(207, 125, 70, .3) 100%); }
.o-front[data-tono="amanecer"] { --estrellas: .3; --tono: linear-gradient(180deg, rgba(19, 79, 88, .76) 0%, rgba(80, 88, 88, .52) 38%, rgba(184, 112, 74, .36) 70%, rgba(232, 169, 118, .28) 100%); }
.o-sky {
  position: absolute; left: 6%; right: 6%; top: 4.5%; bottom: 21%;
  border-radius: 50% 50% calc(var(--ocw) * .022) calc(var(--ocw) * .022) / calc(var(--ocw) * .44) calc(var(--ocw) * .44) calc(var(--ocw) * .022) calc(var(--ocw) * .022);
  overflow: hidden;
  background-color: var(--ink);
  background-image: var(--tono), url(../assets/img/emuna-pintura.webp);
  background-size: 100% 100%, auto 330%;
  background-position: 0 0, var(--bgx) var(--bgy);
  box-shadow: inset 0 0 0 1px rgba(160, 83, 60, .4);
}
/* círculo de luz detrás del dibujo */
.o-sky::before {
  content: ''; position: absolute; left: 50%; top: 47%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 220, .4), rgba(255, 226, 190, .15) 48%, rgba(255, 220, 180, 0) 100%);
}
.o-sky::after {
  content: ''; position: absolute; inset: 0; opacity: var(--estrellas, .5);
  background-image:
    radial-gradient(1.2px 1.2px at 14% 30%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 24% 14%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1.4px 1.4px at 38% 8%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 62% 6%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 77% 16%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 88% 34%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 9% 52%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 92% 58%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 18% 72%, #FFF3E3 60%, transparent 100%),
    radial-gradient(1px 1px at 84% 80%, #FFF3E3 60%, transparent 100%);
}
.o-ill {
  position: absolute; left: 8%; top: 15.8%; width: 84%; height: auto; overflow: visible;
  fill: none; stroke: #FFF3E3; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 calc(var(--ocw) * .012) rgba(255, 214, 170, .8));
}
.o-ill .f { fill: #FFF3E3; stroke: none; }
.o-ill .s { fill: rgba(255, 238, 215, .2); }
.o-ill .o { fill: rgba(9, 22, 25, .62); }
.o-ill .d { stroke-dasharray: 1.4 3; }
.o-cnum {
  position: absolute; left: 0; right: 0; bottom: 12.6%;
  font-family: var(--f-serif); font-size: calc(var(--ocw) * .075); letter-spacing: .14em; line-height: 1; text-align: center; color: var(--rust);
}
.o-fname {
  position: absolute; left: 3%; right: 3%; bottom: 4.6%;
  font-family: var(--f-serif); font-size: calc(var(--ocw) * .112); line-height: 1; text-align: center; white-space: nowrap;
  color: var(--ink);
}
.o-card.is-picked .o-front { box-shadow: inset 0 0 0 1px rgba(160, 83, 60, .3), 0 30px 70px -24px rgba(31, 52, 54, .55), 0 0 70px -10px rgba(232, 169, 118, .55); }
.o-reading {
  position: absolute; left: calc(50% - 1.5vw); top: 43%; transform: translateY(-50%);
  width: min(420px, 32vw);
  visibility: hidden; opacity: 0;
}
.o-num { color: var(--rust); }
.o-num-r { font-family: var(--f-serif); font-size: 1.6em; letter-spacing: .08em; text-transform: none; vertical-align: -.08em; margin-left: .2em; }
.o-name { font-family: var(--f-serif); font-size: clamp(40px, 4.4vw, 76px); line-height: .95; margin-top: 8px; }
.o-msg { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; margin-top: 16px; opacity: .9; }
.o-again { margin-top: 26px; }
.o-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; opacity: .55; pointer-events: none; display: none; }
.o-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 6px; }
.o-note { opacity: .55; text-align: center; }

/* Galería con los 22 arcanos */
.mazo { position: fixed; inset: 0; z-index: 90; visibility: hidden; color: var(--cream); }
.mazo.is-open { visibility: visible; }
.mazo-bg {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, #1D454B 0%, #102629 50%, var(--night) 100%);
  clip-path: inset(100% 0 0 0);
}
.mazo-inner { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--nav-h) + 20px) 0 80px; }
.mazo-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.mazo-title { font-family: var(--f-serif); font-size: clamp(44px, 6vw, 96px); line-height: .92; letter-spacing: -.02em; margin-top: 12px; }
.mazo-title em { color: var(--sand); }
.mazo-intro { max-width: 520px; font-size: 16px; line-height: 1.6; opacity: .78; margin-top: 18px; }
.mazo-close {
  position: fixed; top: 20px; right: var(--pad); z-index: 2;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(251, 246, 241, .3);
  background: rgba(13, 28, 31, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s;
}
.mazo-close:hover { border-color: var(--sand); }
.mazo-grid {
  --ocw: clamp(150px, 13vw, 200px);
  display: grid; grid-template-columns: repeat(auto-fill, var(--ocw)); justify-content: center;
  gap: clamp(30px, 3.4vw, 54px) clamp(18px, 2.4vw, 40px);
  margin-top: clamp(40px, 5vw, 70px); list-style: none;
}
.mz-item { display: grid; gap: 14px; align-content: start; }
.mz-card { position: relative; width: var(--ocw); height: calc(var(--ocw) * 1.62); perspective: 1000px; }
.mz-card .o-front { transform: none; transition: transform .7s var(--ease), box-shadow .7s var(--ease); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .7); }
.mz-card:hover .o-front { transform: translateY(-8px); box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .8), 0 0 50px -12px rgba(232, 169, 118, .5); }
.mz-msg { font-family: var(--f-serif); font-style: italic; font-size: 17px; line-height: 1.3; opacity: .82; }

/* =========================================================
   RESPIRA
   ========================================================= */
.breathe {
  position: relative; z-index: 8; margin-top: calc(var(--r-sheet) * -1);
  color: var(--cream);
  background: radial-gradient(70% 70% at 72% 50%, #1D454B 0%, #102629 45%, var(--night) 80%);
  padding: clamp(110px, 12vw, 170px) 0 calc(clamp(80px, 8vw, 120px) + var(--r-sheet));
  overflow: hidden;
}
.b-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(30px, 5vw, 80px); }
.b-grid > .b-chat { padding-top: clamp(0px, 4vw, 60px); }
.b-grid > .b-mono { align-self: center; }
.b-chat { display: grid; gap: 22px; justify-items: start; }
.b-title { font-family: var(--f-serif); font-size: clamp(44px, 6vw, 104px); line-height: .92; letter-spacing: -.02em; }
.b-title em { color: var(--sand); }
.b-bubble {
  max-width: 540px;
  padding: 18px 20px;
  border-radius: 22px 22px 22px 6px;
  background: rgba(251, 246, 241, .07);
  border: 1px solid rgba(251, 246, 241, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .6);
}
.b-text { font-size: 16px; line-height: 1.6; min-height: 3.2em; }
.b-text .caret { display: inline-block; width: 1px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.b-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.b-links:empty { display: none; }
.b-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 13px;
  transition: transform .4s var(--ease), background .4s;
}
.b-link:hover { background: var(--sand); transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: 999px; font-size: 14px; line-height: 1.2;
  border: 1px solid rgba(251, 246, 241, .24);
  background: rgba(251, 246, 241, .04);
  transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.chip:hover { border-color: var(--sand); transform: translateY(-2px); }
.chip.is-on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.b-start { color: var(--ink); }
.b-start-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 0 rgba(160, 83, 60, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(160, 83, 60, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(160, 83, 60, 0); } }
/* Monograma que respira: las dos M sobre los dos círculos */
.b-mono {
  position: relative; width: min(86%, 600px); justify-self: center;
  display: grid; justify-items: center; gap: clamp(18px, 3vw, 34px);
  padding-block: clamp(10px, 3vw, 40px);
  perspective: 1600px; cursor: pointer;
}
.b-mono-glow {
  position: absolute; left: 50%; top: 42%; width: 130%; aspect-ratio: 1.55; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 169, 118, .34), rgba(207, 125, 70, .12) 55%, transparent 76%);
  pointer-events: none; opacity: .6;
}
.b-mono-tilt { position: relative; width: 100%; transform-style: preserve-3d; will-change: transform; }
.duo--mono { width: 100%; transform-style: preserve-3d; }
.duo--mono .duo-c { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.b-lens { transform: translateZ(26px); }
.mono-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  fill: var(--cream); pointer-events: none;
  transform: translateZ(70px);
  filter: drop-shadow(0 14px 26px rgba(13, 28, 31, .35));
}
.b-cue { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; min-height: 96px; pointer-events: none; }
.b-word { font-family: var(--f-serif); font-size: clamp(32px, 3.6vw, 56px); line-height: 1; min-height: 1em; color: var(--cream); }
.b-bar { position: relative; width: min(240px, 60vw); height: 1px; background: rgba(251, 246, 241, .18); overflow: hidden; }
.b-bar i { position: absolute; inset: 0; background: var(--sand); transform-origin: 0 50%; transform: scaleX(0); }
.b-sec { opacity: .7; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  position: relative; z-index: 9; margin-top: calc(var(--r-sheet) * -1);
  background: var(--paper);
  padding: clamp(110px, 12vw, 170px) 0 calc(clamp(90px, 10vw, 150px) + var(--r-sheet));
}
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 130px); align-items: start; }
.c-title { font-family: var(--f-serif); font-size: clamp(66px, 10.4vw, 190px); line-height: .86; letter-spacing: -.025em; margin-top: 14px; }
.c-title em { color: var(--rust); }
.c-lead { font-size: 17px; line-height: 1.65; max-width: 420px; margin-top: 26px; opacity: .88; }
.badge { position: relative; display: grid; place-items: center; width: 156px; height: 156px; margin-top: 44px; }
.badge-txt { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.badge-txt text { font-family: var(--f-mono); font-size: 12.4px; letter-spacing: .2em; text-transform: uppercase; }
.badge-core {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rust); color: var(--cream); transition: transform .6s var(--ease), background .4s;
}
.badge-core svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.badge:hover .badge-core { transform: scale(1.12); background: var(--teal); }

.c-form { position: relative; display: grid; gap: 22px; padding-top: 8px; }
.field { position: relative; padding-top: 20px; border-bottom: 1px solid var(--line); }
.field input, .field textarea {
  width: 100%; border: 0; background: transparent; outline: none; resize: vertical;
  font: inherit; font-size: 18px; color: var(--ink); padding: 8px 0 12px; border-radius: 0;
}
.field textarea { min-height: 96px; }
.field label {
  position: absolute; left: 0; top: 28px; font-size: 18px; color: rgba(31, 52, 54, .5);
  pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .45s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px) scale(.68); color: var(--rust);
}
.field i { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.field input:focus ~ i, .field textarea:focus ~ i { transform: scaleX(1); }
.field.is-error { border-color: #B3412E; }
.field.is-error label { color: #B3412E; }
.field-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-chips legend { padding: 0; margin-bottom: 12px; opacity: .65; }
.chips--form .chip { border-color: var(--line); background: transparent; color: var(--ink); font-size: 13px; padding: 9px 14px; }
.chips--form .chip:hover { border-color: var(--rust); }
.chips--form .chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; opacity: .85; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--ink); position: relative; margin-top: 1px; transition: background .3s; }
.check-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--cream); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check-box { background: var(--ink); }
.check input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check-box { outline: 1px dashed var(--ink); outline-offset: 3px; }
.check.is-error .check-box { border-color: #B3412E; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { color: #B3412E; }
.form-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  background: var(--paper); visibility: hidden; opacity: 0;
}
.duo--done { width: 140px; }
.form-done-title { font-family: var(--f-serif); font-size: clamp(48px, 5vw, 80px); line-height: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; z-index: 10; margin-top: calc(var(--r-sheet) * -1);
  background: var(--teal); color: var(--cream);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  overflow: hidden;
}
.marquee { overflow: hidden; border-bottom: 1px solid var(--line-light); padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 34px); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(38px, 5.4vw, 92px); line-height: 1;
  white-space: nowrap; padding-right: .5em;
}
.marquee-track span b { font-style: normal; font-weight: 400; color: var(--sand); padding-left: .5em; font-size: .6em; vertical-align: .25em; }
.f-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 32px; padding-top: 60px; padding-bottom: 40px; }
.f-h { opacity: .5; margin-bottom: 14px; }
.f-col a { display: block; width: fit-content; margin: 6px 0; opacity: .86; transition: opacity .3s, transform .4s var(--ease); }
.f-col a:hover { opacity: 1; transform: translateX(4px); }
.f-therapies { font-family: var(--f-serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; opacity: .9; }
.f-now { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-variant-numeric: tabular-nums; opacity: .86; }
.f-wm { padding: 0 var(--pad); overflow: hidden; }
.f-wm svg { width: 100%; height: auto; aspect-ratio: 2785 / 852; fill: var(--cream); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 14px; margin-top: 24px; border-top: 1px solid var(--line-light); }
.f-bottom a:hover, .to-top:hover { color: var(--sand); }
.f-disclaimer { font-size: 12px; line-height: 1.5; opacity: .5; padding-bottom: 28px; }

/* =========================================================
   MODAL · DETALLE DE TERAPIA
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-bg { position: absolute; inset: 0; background: var(--paper); }
.modal-inner {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px);
  padding: calc(var(--nav-h) + 20px) var(--pad) 60px;
}
.modal-close {
  position: fixed; top: 22px; right: var(--pad); z-index: 3;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--paper);
}
.modal-media { position: relative; }
.modal-media .arch { position: sticky; top: calc(var(--nav-h) + 10px); aspect-ratio: 4 / 5; max-height: calc(100vh - var(--nav-h) - 60px); background: var(--clay) url('../assets/img/emuna-pintura.webp') center / cover; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media-num { position: absolute; left: 18px; bottom: 14px; font-family: var(--f-serif); font-size: clamp(60px, 8vw, 130px); line-height: 1; color: var(--cream); mix-blend-mode: overlay; }
.modal-content { display: grid; align-content: start; gap: 22px; padding-top: clamp(0px, 4vh, 40px); max-width: 640px; }
.modal-num { color: var(--rust); }
.modal-title { font-family: var(--f-serif); font-size: clamp(48px, 6.6vw, 118px); line-height: .9; letter-spacing: -.02em; }
.modal-short { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; color: var(--rust); }
.modal-lead { font-size: 17px; line-height: 1.7; opacity: .9; }
.modal-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.modal-h { opacity: .6; margin-bottom: 10px; }
.modal-cols li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.modal-cols li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--rust); }
.modal-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.modal-note { opacity: .5; }

/* =========================================================
   CURSOR + GRANO
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; color: var(--ink); opacity: 0; transition: opacity .4s, color .4s; }
body[data-theme='dark'] .cursor { color: var(--cream); }
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: fixed; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s;
}
.cursor-dot { position: fixed; left: 0; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: currentColor; transition: opacity .3s; }
.cursor-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--rust); }
.cursor.is-hover .cursor-dot, .cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(251, 246, 241, .92); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(13, 28, 31, .45); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-down .cursor-ring { transform: scale(.86); }

.grain {
  position: fixed; inset: -6%; z-index: 350; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -3%); }
  50% { transform: translate(-2%, 3%); } 67% { transform: translate(3%, -1%); } 83% { transform: translate(-1%, -2%); } 100% { transform: translate(0, 0); }
}

/* Estados antes de entrar */
body.is-loading .nav { opacity: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Rincón de otoño: dos butacas bajo un árbol (contacto) */
.c-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.c-grid { grid-template-areas: "text scene" "form ."; row-gap: 0; align-items: center; column-gap: clamp(32px, 5vw, 110px); }
.c-right { display: contents; }
.c-scene { grid-area: scene; margin: 0; align-self: center; }
.c-left { grid-area: text; }
.c-right .c-form { grid-area: form; }
.scene-svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-scene-cap { margin-top: 14px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.c-right .c-form { margin-top: clamp(56px, 6vw, 90px); }

.sc-sky { fill: var(--blush); }
.sc-sun { fill: var(--sand); opacity: .55; }
.sc-floor { fill: #E2C3AC; }
.sc-trunk { fill: #6E3A2A; }
.sc-crown .c1 { fill: var(--orange); }
.sc-crown .c2 { fill: var(--rust); }
.sc-crown .c3 { fill: var(--sand); }
.sc-crown .c4 { fill: var(--clay); }
.sc-crown .c5 { fill: var(--terracotta); }
.sc-crown circle { opacity: .94; }


.sc-carpet use, .sc-fall use { fill: var(--orange); }
.sc-carpet use.l2, .sc-fall use.l2 { fill: var(--rust); }
.sc-carpet use.l3, .sc-fall use.l3 { fill: var(--sand); }
.sc-carpet use.l4, .sc-fall use.l4 { fill: var(--terracotta); }
.sc-carpet use.l5, .sc-fall use.l5 { fill: #D9A14E; }

@media (max-width: 760px) {
  .c-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "scene" "form"; }
  .c-scene { width: min(100%, 560px); margin: 48px auto 0; }
  .c-right .c-form { margin-top: 56px; }
}

@media (max-width: 1100px) {
  .hero { --sun-w: min(54vw, 58vh); --word-w: 86vw; --word-bottom: 25vh; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .m-side { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px; }
  .m-text { grid-column: 1 / -1; text-indent: 0; }
  .a-cols { grid-template-columns: minmax(0, 1fr); }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-grid { grid-template-columns: minmax(0, 1fr); }
  .b-mono { width: min(80%, 460px); order: -1; }
  .o-reading { left: 50%; width: min(360px, 38vw); }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .hero { --sun-top: 15vh; --sun-w: 84vw; --word-w: 90vw; --word-bottom: 26vh; }
  .hero-ui::before { height: 46%; background: linear-gradient(180deg, rgba(31, 52, 54, 0), rgba(31, 52, 54, .62) 60%); }
  .nav-logo svg { width: 84px; height: 26px; }
  .nav-cta { display: none; }
  .sound { padding: 8px 6px; }
  .sound-label { display: none; }
  .hero-kicker { font-size: 10px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-lead { max-width: 100%; }
  .hero-lead-big { font-size: clamp(28px, 8.4vw, 36px); }
  .hero-lead-small { font-size: 13px; max-width: 300px; }
  .hero-meta { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; gap: 16px; }
  .hero-meta .now:first-child .now-label { display: none; }
  .hero-scroll { display: none; }
  .manifesto { margin-top: 36vh; }
  .m-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .m-text { font-size: clamp(28px, 8.2vw, 40px); }
  .f1 { left: 2%; }
  .f2 { left: 50%; top: 42%; }
  .f3 { right: 2%; }
  .f4 { right: 40%; top: 2%; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; padding: 18px 0; }
  .stat-n { font-size: 76px; }
  .stat-l { margin: 0 0 8px; }
  .t-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .t-title { font-size: clamp(36px, 10vw, 48px); }
  .t-foot { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
  .t-open { justify-self: start; }
  .t-name { font-size: 34px; }
  .t-short { font-size: 14px; }
  .tl-row { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; }
  .tl-short { display: none; }
  .tl-name { font-size: clamp(21px, min(6.6vw, 4vh), 30px); }
  .t-list { padding-top: calc(var(--nav-h) + 150px); padding-bottom: 20px; }
  .a-stage { width: 86vw; margin-top: -10vh; }
  .a-title { bottom: 9vh; font-size: clamp(40px, 11vw, 60px); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-card { grid-template-columns: minmax(0, 1fr) 38%; grid-template-rows: auto minmax(0, 1fr) auto; align-items: start; height: min(66vh, 560px); gap: 12px; }
  .p-num { grid-column: 1; grid-row: 1; font-size: clamp(96px, 30vw, 140px); }
  .p-img { grid-column: 2; grid-row: 1 / span 2; align-self: start; aspect-ratio: 3 / 4; height: auto; }
  .p-art { display: none; }
  .p-body { grid-column: 1 / -1; grid-row: 3; align-self: end; }
  .p-body h3 { font-size: clamp(32px, 9vw, 42px); }
  .p-body p:not(.p-kicker) { font-size: 15px; }
  .o-head { grid-template-columns: minmax(0, 1fr); }
  /* en el móvil la mesa empieza compacta y crece al elegir carta para dejar sitio al mensaje */
  .o-table { height: 350px; }
  .deck { --ocw: clamp(140px, 38vw, 160px); touch-action: pan-y; }
  .o-card { top: 145px; }
  .o-reading { left: var(--pad); right: var(--pad); top: auto; bottom: 0; transform: none; width: auto; text-align: center; }
  .o-hint { display: block; top: 312px; bottom: auto; }
  .o-foot { flex-direction: column; gap: 12px; margin-top: 18px; }
  .mazo-head { grid-template-columns: minmax(0, 1fr); }
  .mazo-close { top: 12px; }
  .mazo-grid { --ocw: min(200px, calc((100vw - 2 * var(--pad) - 16px) / 2)); gap: 30px 16px; }
  .mz-msg { font-size: 15px; }
  .o-name { font-size: 42px; }
  .o-msg { font-size: 21px; }
  .b-title { font-size: clamp(44px, 12vw, 64px); }
  .c-title { font-size: clamp(64px, 19vw, 110px); }
  .badge { width: 128px; height: 128px; margin-top: 32px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 44px; }
  .modal-inner { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + 16px); }
  .modal-media .arch { position: relative; top: 0; max-height: 58vh; width: 100%; }
  .modal-cols { grid-template-columns: minmax(0, 1fr); }
  .modal-close { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .eq--static i, .hero-scroll i::after, .b-start-dot { animation: none; }
}

/* ===== Datos de contacto, aviso del formulario y WhatsApp flotante ===== */
.c-lead strong { font-weight: 500; }
.c-info { list-style: none; margin: 28px 0 0; padding: 0; max-width: 420px; border-top: 1px solid var(--line); }
.c-info li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.c-info li .mono { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.c-info a { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; overflow-wrap: anywhere; transition: color .3s; }
.c-info a:hover { color: var(--terracotta); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check a, .form-legal a, .form-msg a { text-decoration: underline; text-underline-offset: 3px; }
.form-legal { font-size: 12px; line-height: 1.55; opacity: .6; margin: 0; }
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--cream); box-shadow: 0 14px 34px -14px rgba(13, 28, 31, .6);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s;
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--teal-deep); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 760px) {
  .wa-float { width: 44px; height: 44px; }
  .wa-float svg { width: 22px; height: 22px; }
  .c-info li { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Hasta hoy: contadores de personas y empresas ===== */
.impact {
  position: relative; z-index: 5; margin-top: calc(var(--r-sheet) * -1);
  background: var(--paper); padding: clamp(90px, 10vw, 150px) 0 calc(clamp(80px, 9vw, 130px) + var(--r-sheet));
}
.i-head { display: grid; gap: 14px; }
.i-title { font-family: var(--f-serif); font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -.02em; text-wrap: balance; }
.i-title em { color: var(--rust); }
.i-stats { align-items: stretch; }
.i-biz { display: grid; align-content: space-between; gap: 22px; }
.i-biz-t { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; max-width: 22ch; }
.i-biz-t em { color: var(--teal); }
.i-biz-cta { justify-self: start; }
.i-note { margin-top: 26px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.i-note[hidden] { display: none; }
@media (max-width: 760px) {
  .i-biz { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
}

/* ===== Respira: modo foco sobre las dos M ===== */
.b-chat { transition: opacity .9s var(--ease), filter .9s var(--ease); }
.breathe.is-focus .b-chat { opacity: .12; filter: blur(3px); pointer-events: none; }
.b-stop {
  justify-self: center; margin-top: 4px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-light); color: var(--cream); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s;
}
.breathe.is-focus .b-stop { opacity: .85; pointer-events: auto; transform: none; }
.b-stop:hover { background: rgba(251, 246, 241, .1); opacity: 1; }
.b-stop:focus-visible { outline: 1px dashed var(--cream); outline-offset: 3px; }
/* En modo foco el logo se ajusta a la altura visible para que nunca quede cortado */
.b-mono { transition: width .8s var(--ease); }
.breathe.is-focus .b-mono { width: min(86%, 600px, calc((100svh - var(--nav-h) - 230px) * 1.38)); }

body.is-breathing .wa-float { opacity: 0; pointer-events: none; }

/* ===== Bios bajo las fotos ===== */
.person figcaption .mono { line-height: 1.5; }
.person-bio { margin: 10px 0 0; font-size: 15px; line-height: 1.65; opacity: .85; max-width: 46ch; }

/* ===== Retiros y cursos ===== */
.formats {
  position: relative; z-index: 5; margin-top: calc(var(--r-sheet) * -1);
  background: var(--blush); padding: clamp(90px, 10vw, 150px) 0 calc(clamp(80px, 9vw, 130px) + var(--r-sheet));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.fm-head { display: grid; gap: 14px; }
.fm-title { font-family: var(--f-serif); font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -.02em; }
.fm-title em { color: var(--teal); }
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 70px); }
.fm-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -36px rgba(31, 52, 54, .45); }
.fm-img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--clay) url('../assets/img/emuna-pintura.webp') center / cover; }
.fm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fm-card:hover .fm-img img { transform: scale(1.04); }
.fm-body { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 36px); min-width: 0; }
.fm-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.fm-body h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; text-wrap: balance; }
.fm-body p:not(.fm-kicker) { font-size: 16px; line-height: 1.65; opacity: .85; max-width: 52ch; }
.fm-body .btn-pill { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Estrella polar sobre el cielo de la frase ===== */
.q-polar {
  position: absolute; z-index: 1; left: 72%; top: 24%;
  width: clamp(34px, 3.4vw, 54px); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none;
}
.q-polar::before {
  content: ''; position: absolute; inset: -160%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 228, .38), rgba(232, 169, 118, .14) 45%, rgba(232, 169, 118, 0));
  animation: polar-glow 5s ease-in-out infinite;
}
.q-polar svg { position: relative; width: 100%; height: 100%; fill: #FFF6EA; filter: drop-shadow(0 0 6px rgba(255, 240, 220, .9)) drop-shadow(0 0 18px rgba(232, 169, 118, .55)); animation: polar-twinkle 5s ease-in-out infinite; }
.q-polar-x { opacity: .55; }
@keyframes polar-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.82) rotate(8deg); opacity: .85; } }
@keyframes polar-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.9); } }
@media (max-width: 760px) { .q-polar { left: 78%; top: 20%; } }
@media (prefers-reduced-motion: reduce) { .q-polar::before, .q-polar svg { animation: none; } }

/* ===== Voces: testimonios en anillo 3D ===== */
.voices {
  position: relative; z-index: 8; margin-top: calc(var(--r-sheet) * -1);
  color: var(--cream); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 42%, #7E4330 0%, #452A23 42%, #1C1A19 88%);
  padding: clamp(90px, 9vw, 130px) 0 calc(clamp(60px, 6vw, 90px) + var(--r-sheet));
}
.v-head { display: grid; gap: 14px; justify-items: center; text-align: center; }
.v-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: .92; letter-spacing: -.02em; text-wrap: balance; }
.v-title em { color: var(--sand); }

.v-stage {
  position: relative; height: clamp(360px, 40vw, 470px); margin-top: clamp(10px, 2vw, 26px);
  perspective: 1900px; perspective-origin: 50% 38%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
}
.v-stage.is-drag { cursor: grabbing; }
.v-stage:focus-visible { outline: 1px dashed rgba(251, 246, 241, .5); outline-offset: -8px; border-radius: 20px; }
.v-cam { position: absolute; left: 50%; top: 47%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-5deg); }
.v-ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }

.v-head { position: relative; }
.v-head > :not(.v-wm) { position: relative; z-index: 1; }
.v-wm {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); z-index: 0; margin: 0;
  font-family: var(--f-sans); font-weight: 300; font-size: min(27vw, 330px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
  color: var(--cream); opacity: .08; filter: blur(1.5px); pointer-events: none; user-select: none;
}
.v-people { margin-top: 14px; opacity: .45; }

.v-card {
  position: absolute; left: calc(var(--cw) / -2); top: calc(var(--ch) / -2);
  width: var(--cw); height: var(--ch);
  transform: rotateY(var(--a)) translateZ(var(--R));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px; outline: none; text-align: left; color: var(--ink);
  -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(255, 255, 255, .12));
}
.v-card-in {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  padding: clamp(18px, 1.8vw, 26px);
  background: linear-gradient(170deg, #FBF6F1 0%, #F2E6DC 100%);
  box-shadow: 0 0 0 1px rgba(251, 246, 241, .2), 0 30px 60px -30px rgba(0, 0, 0, .6);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.v-card-in::before {
  content: ''; position: absolute; right: -30%; top: -30%; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: url('../assets/img/emuna-pintura.webp') center / 300% auto; opacity: .22; pointer-events: none;
}
.v-card:nth-child(4n+2) .v-card-in::before { background-position: 70% 30%; }
.v-card:nth-child(4n+3) .v-card-in::before { background-position: 20% 80%; }
.v-card:nth-child(4n) .v-card-in::before { background-position: 90% 70%; }
.v-c-kick { position: relative; opacity: .6; font-size: 10px; padding-right: 30px; }
.v-c-q { position: relative; align-self: center; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.65vw, 24px); line-height: 1.22; text-wrap: balance; }
.v-c-q::before { content: '“'; display: block; font-style: normal; font-size: 2.6em; line-height: .6; color: var(--clay); margin-bottom: 4px; }
.v-c-who { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--f-serif); font-size: 22px; line-height: 1; }
.v-c-who svg { width: 28px; height: 17px; fill: none; stroke: var(--clay); stroke-width: 1.3; }
.v-shade { position: absolute; inset: 0; z-index: 3; background: #1C1A19; opacity: 0; pointer-events: none; border-radius: inherit; }
.v-card.is-front .v-card-in { box-shadow: 0 0 0 1px rgba(232, 169, 118, .9), 0 0 44px rgba(207, 125, 70, .5), 0 0 110px rgba(207, 125, 70, .22); }
.v-card:focus-visible .v-card-in { box-shadow: 0 0 0 2px var(--sand); }

.v-floor {
  position: absolute; width: calc(var(--R) * 2.4); height: calc(var(--R) * 2.4);
  left: calc(var(--R) * -1.2); top: calc(var(--R) * -1.2); border-radius: 50%;
  transform: translateY(calc(var(--ch) / 2 + 4px)) rotateX(90deg);
  background: radial-gradient(circle, rgba(232, 169, 118, .2) 0%, rgba(207, 125, 70, .08) 40%, transparent 68%);
  pointer-events: none;
}
.v-floor::after {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid rgba(232, 169, 118, .5); box-shadow: 0 0 22px rgba(207, 125, 70, .55), inset 0 0 22px rgba(207, 125, 70, .35);
}

.v-panel {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 720px);
  justify-content: center; gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(4px, 1.5vw, 20px);
}
.v-side { display: grid; gap: 10px; align-content: start; }
.v-kick { opacity: .62; }
.v-name { font-family: var(--f-serif); font-size: clamp(40px, 4.4vw, 64px); line-height: .95; color: var(--sand); }
.v-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.v-count { opacity: .72; font-variant-numeric: tabular-nums; }
.v-count b { font-weight: 500; }
.v-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(251, 246, 241, .3); transition: background .35s var(--ease), border-color .35s;
}
.v-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.v-btn:hover { background: rgba(251, 246, 241, .12); border-color: rgba(251, 246, 241, .6); }
.v-read { display: grid; gap: .75em; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.v-read.is-out { opacity: 0; transform: translateY(8px); }
.v-read p { font-size: 16px; line-height: 1.7; opacity: .88; }
.v-read em { font-family: var(--f-serif); font-size: 1.28em; line-height: 1.3; color: var(--sand); opacity: 1; }

@media (max-width: 760px) {
  .v-stage { height: 380px; }
  .v-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v-side { grid-template-columns: 1fr auto; align-items: end; }
  .v-kick { grid-column: 1 / -1; }
  .v-ctrl { margin: 0; }
  .v-name { font-size: 42px; }
  .v-wm { font-size: 33vw; }
  .v-people { grid-column: 1 / -1; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .v-read { transition: none; } }

/* Formación para empresas (dentro de Retiros y cursos) */
.fm-biz {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
}
.fm-biz-t { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; max-width: 46ch; }
.fm-biz-t em { color: var(--teal); }
