/* ==========================================================================
   Johnny Pujols · Sitio oficial
   Paleta tomada del rebranding del PLD ("Coming Soon · 4/11/26")
   ========================================================================== */

:root {
  /* Morados del rebranding */
  --violet-950: #1c0230;
  --violet-900: #2a0545;
  --violet-800: #3d0763;
  --violet-700: #520575;
  --violet-600: #691992;
  --violet-500: #8a1fc0;
  --violet-400: #b51de2;
  --violet-300: #cb49dd;
  --violet-100: #f1e3f8;
  --violet-50:  #f8f1fc;

  /* Amarillo de la franja de fecha */
  --gold: #f9a01b;
  --gold-600: #e38a00;
  --gold-100: #fff1d9;

  /* Bandera (uso discreto) */
  --flag-red: #ce1126;
  --flag-blue: #002d62;

  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --ink: #140816;
  --ink-2: #4b3f52;
  --line: rgba(42, 5, 69, .12);

  --grad-violet: linear-gradient(100deg, var(--violet-900) 0%, var(--violet-700) 28%, var(--violet-400) 52%, var(--violet-700) 74%, var(--violet-900) 100%);
  --grad-violet-soft: linear-gradient(140deg, var(--violet-800), var(--violet-600) 55%, var(--violet-400));

  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --fs-hero: clamp(4.2rem, 2.2rem + 10vw, 11rem);
  --fs-h2: clamp(2.6rem, 1.6rem + 4vw, 5.2rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-lead: clamp(1.05rem, .98rem + .4vw, 1.3rem);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(42, 5, 69, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--violet-700); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--violet-300); }

.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .005em; line-height: .92;
}
.h2 { font-size: var(--fs-h2); margin: 14px 0 22px; }
.grad-text {
  background: var(--grad-violet); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; }
.on-dark .lead { color: rgba(255,255,255,.78); }

/* Brocha amarilla (como la fecha del afiche) */
.brush {
  position: relative; display: inline-block; isolation: isolate;
  padding: .15em .7em .2em; color: var(--ink); font-weight: 800;
}
.brush::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: -1;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 22 L40 10 L120 14 L210 6 L300 12 L372 4 L394 18 L386 30 L398 44 L384 56 L392 70 L300 74 L200 78 L110 72 L30 76 L2 64 L14 52 L0 40 L12 30 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 22 L40 10 L120 14 L210 6 L300 12 L372 4 L394 18 L386 30 L398 44 L384 56 L392 70 L300 74 L200 78 L110 72 L30 76 L2 64 L14 52 L0 40 L12 30 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
}

/* Botones */
.btn {
  --bg: var(--violet-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 700; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 30px -12px rgba(82, 5, 117, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(82, 5, 117, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); box-shadow: 0 10px 30px -12px rgba(249, 160, 27, .9); }
.btn--ghost { --bg: transparent; --fg: var(--violet-700); box-shadow: inset 0 0 0 2px var(--violet-700); }
.btn--ghost:hover { --bg: var(--violet-700); --fg: #fff; }
.on-dark .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Estrella reutilizable */
.star { color: var(--gold); }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.header.is-scrolled {
  background: rgba(251, 250, 247, .86);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; position: relative;
  background: var(--grad-violet-soft); color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .02em;
}
.brand__mark svg { position: absolute; width: 18px; height: 18px; right: -6px; top: -6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--violet-800); letter-spacing: .02em; }
.brand__role { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--violet-600); background: var(--violet-50); }
.nav a.is-active { color: var(--violet-700); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.nav .nav__cta {
  margin-left: 8px; background: var(--violet-700); color: #fff; padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav .nav__cta:hover { background: var(--violet-600); color: #fff; }
.nav .nav__cta svg { width: 16px; height: 16px; color: var(--gold); }

.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--violet-700); color: #fff; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__flag { position: absolute; pointer-events: none; filter: blur(60px); opacity: .32; border-radius: 50%; }
.hero__flag--red { width: 520px; height: 260px; background: var(--flag-red); top: -120px; left: -160px; transform: rotate(-18deg); }
.hero__flag--blue { width: 420px; height: 220px; background: var(--flag-blue); top: -80px; right: -140px; transform: rotate(22deg); opacity: .22; }
.hero__flag--violet { width: 700px; height: 500px; background: var(--violet-300); bottom: -260px; right: -200px; opacity: .25; }

.hero__grid {
  flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 70px);
  position: relative; z-index: 1;
}
.hero__title { font-size: var(--fs-hero); margin: 18px 0 8px; position: relative; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

.sparks { position: absolute; top: 50%; width: 56px; height: 120px; transform: translateY(-50%); color: var(--violet-600); }
.sparks--l { left: -70px; } .sparks--r { right: -70px; transform: translateY(-50%) scaleX(-1); }

.hero__tag { font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem); margin: 6px 0 26px; opacity: 0; animation: fadeUp .9s .5s var(--ease) forwards; }
.hero__copy { opacity: 0; animation: fadeUp .9s .7s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; opacity: 0; animation: fadeUp .9s .85s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); opacity: 0; animation: fadeUp 1.1s .3s var(--ease) forwards; }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--grad-violet-soft); box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 20%; mix-blend-mode: normal; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.arch:hover img { transform: scale(1.08); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42,5,69,.55)); }
.arch-outline { position: absolute; inset: -16px -16px auto auto; width: 100%; aspect-ratio: 4/5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); border: 2px solid var(--gold); z-index: -1; }

.badge-star {
  position: absolute; left: -22px; bottom: 56px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.badge-star__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-700); display: grid; place-items: center; }
.badge-star__icon svg { width: 24px; height: 24px; color: var(--gold); }
.badge-star strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--violet-700); }
.badge-star small { font-size: .74rem; font-weight: 600; color: var(--ink-2); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

.marquee { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 70px); background: var(--violet-800); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin-inline: -20px; }
.marquee__track { display: flex; width: max-content; gap: 40px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee svg { width: 22px; height: 22px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cifras ---------- */
.stats { background: var(--violet-950); color: #fff; padding: clamp(60px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(181,29,226,.35), transparent 65%); top: -300px; left: 30%; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.stat { background: var(--violet-950); padding: clamp(24px, 3vw, 40px); }
.stat__num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.4rem); line-height: 1; color: #fff; display: flex; align-items: baseline; gap: 4px; }
.stat__num em { font-style: normal; color: var(--gold); font-size: .6em; }
.stat__label { margin-top: 10px; color: rgba(255,255,255,.7); font-size: .95rem; max-width: 24ch; }
.stats__note { margin-top: 18px; font-size: .78rem; color: rgba(255,255,255,.45); position: relative; }

/* ---------- Biografía ---------- */
.bio__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.bio__media { position: relative; }
.bio__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.bio__photo-2 { position: absolute; width: 46%; right: -6%; bottom: -10%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 1; }
.bio__photo-2 img { width: 100%; height: 100%; object-fit: cover; }
.bio__media figcaption { margin-top: 14px; font-size: .82rem; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.fact { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fact dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-600); }
.fact dd { margin: 6px 0 0; font-weight: 600; line-height: 1.35; }

/* ---------- Pensamiento ---------- */
.thought { background: var(--paper-2); overflow: hidden; }
.thought__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius-lg); background: #fff; overflow: hidden;
  border: 1px solid var(--line); transition: transform .45s var(--ease), color .45s, box-shadow .45s;
  isolation: isolate; min-height: 300px; display: flex; flex-direction: column;
}
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-violet-soft); transform: translateY(101%); transition: transform .55s var(--ease); }
.pillar:hover { transform: translateY(-6px); color: #fff; box-shadow: var(--shadow); }
.pillar:hover::before { transform: none; }
.pillar__num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--violet-100); transition: color .45s; }
.pillar:hover .pillar__num { color: var(--gold); }
.pillar h3 { font-size: var(--fs-h3); margin: 14px 0 12px; font-weight: 800; letter-spacing: -.01em; }
.pillar p { color: var(--ink-2); font-size: .95rem; margin: 0; transition: color .45s; }
.pillar:hover p { color: rgba(255,255,255,.85); }

.quotes { margin-top: clamp(60px, 8vw, 100px); position: relative; text-align: center; }
.quotes__mark { font-family: var(--font-serif); font-size: 9rem; line-height: .6; color: var(--gold); height: 60px; }
.quotes__stage { position: relative; min-height: 220px; display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); line-height: 1.2; max-width: 22ch; margin: 0 auto 20px; color: var(--violet-900); }
.quote cite { font-style: normal; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.quotes__dots button { width: 34px; height: 34px; border: 0; background: transparent; display: grid; place-items: center; }
.quotes__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet-100); transition: background .3s, width .3s; }
.quotes__dots button[aria-current="true"]::before { background: var(--violet-600); width: 26px; border-radius: 6px; }

/* ---------- Trayectoria ---------- */
.timeline { position: relative; margin-top: 60px; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline__progress { position: absolute; inset: 0 0 auto; height: 0; background: linear-gradient(var(--violet-400), var(--gold)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 44px; }
.tl-item__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; position: relative; transition: box-shadow .35s; }
.tl-item__card:hover { box-shadow: var(--shadow); }
.tl-item:nth-child(odd) .tl-item__card { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) .tl-item__card { grid-column: 2; }
.tl-item__dot { position: absolute; left: 50%; top: 26px; width: 22px; height: 22px; transform: translateX(-50%); border-radius: 50%; background: var(--paper); border: 3px solid var(--violet-600); z-index: 1; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.tl-item.is-visible .tl-item__dot { background: var(--gold); border-color: var(--violet-700); transform: translateX(-50%) scale(1.15); }
.tl-item__year { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--violet-600); }
.tl-item h3 { font-size: 1.12rem; margin: 8px 0 6px; font-weight: 800; }
.tl-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tl-item--highlight .tl-item__card { background: var(--grad-violet-soft); color: #fff; border: 0; }
.tl-item--highlight .tl-item__year { color: var(--gold); }
.tl-item--highlight p { color: rgba(255,255,255,.85); }

/* ---------- Gestión ---------- */
.mgmt { background: var(--violet-900); color: #fff; overflow: hidden; }
.mgmt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(203,73,221,.35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(249,160,27,.14), transparent 60%); }
.mgmt .container { position: relative; }
.mgmt__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 50px; }
.mcard { grid-column: span 4; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px); transition: background .4s, transform .4s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.mcard:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.mcard--wide { grid-column: span 8; }
.mcard__icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(249,160,27,.14); display: grid; place-items: center; color: var(--gold); }
.mcard__icon svg { width: 26px; height: 26px; }
.mcard h3 { font-size: 1.35rem; font-weight: 800; }
.mcard p { color: rgba(255,255,255,.75); margin: 0; font-size: .97rem; }
.mcard__big { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: 1; color: var(--gold); }
.mcard--doors { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--violet-600), var(--violet-400)); border: 0; min-height: 300px; justify-content: flex-end; }
.mcard--doors:hover { background: linear-gradient(135deg, var(--violet-600), var(--violet-400)); }
.mcard--doors .btn { align-self: flex-start; margin-top: 8px; }
.mcard--doors .mini-doors { position: absolute; right: 26px; top: 26px; width: 130px; height: 160px; display: flex; perspective: 500px; }
.mini-door { flex: 1; background: var(--violet-800); border: 3px solid rgba(255,255,255,.25); position: relative; transition: transform .9s var(--ease); overflow: hidden; }
.mini-door--l { transform-origin: left; border-radius: 70px 0 0 0; border-right-width: 1px; }
.mini-door--r { transform-origin: right; border-radius: 0 70px 0 0; border-left-width: 1px; }
.mini-door svg { position: absolute; top: 50%; width: 48px; height: 48px; color: var(--gold); transform: translateY(-50%); }
.mini-door--l svg { right: -24px; } .mini-door--r svg { left: -24px; }
.mcard--doors:hover .mini-door--l { transform: rotateY(-55deg); }
.mcard--doors:hover .mini-door--r { transform: rotateY(55deg); }

/* ---------- Crecemos (teaser) ---------- */
.grow { text-align: center; overflow: hidden; }
.grow__door-wrap { margin: 50px auto 0; width: min(380px, 86vw); position: relative; }
.grow__glow { position: absolute; inset: 10% -20% -10%; background: radial-gradient(closest-side, rgba(249,160,27,.55), transparent); filter: blur(30px); opacity: .7; animation: pulse 3.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.95); } 50% { opacity: .85; transform: scale(1.05); } }
.door-btn { position: relative; width: 100%; aspect-ratio: 3/4; border: 0; padding: 0; background: transparent; display: flex; perspective: 900px; border-radius: 999px 999px 10px 10px; }
.door-btn .frame { position: absolute; inset: -14px; border-radius: 999px 999px 14px 14px; border: 10px solid var(--violet-900); box-shadow: inset 0 0 0 2px rgba(249,160,27,.5), var(--shadow); pointer-events: none; }
.door-btn .leaf { flex: 1; position: relative; overflow: hidden; background: var(--grad-violet-soft); transition: transform 1s var(--ease); }
.door-btn .leaf--l { border-radius: 999px 0 0 6px; transform-origin: left center; box-shadow: inset -2px 0 0 rgba(0,0,0,.25); }
.door-btn .leaf--r { border-radius: 0 999px 6px 0; transform-origin: right center; }
.leaf .panel { position: absolute; left: 16%; right: 16%; border: 2px solid rgba(255,255,255,.18); border-radius: 8px; }
.leaf .panel--top { top: 22%; height: 26%; }
.leaf--l .panel--top { border-radius: 80px 8px 8px 8px; }
.leaf--r .panel--top { border-radius: 8px 80px 8px 8px; }
.leaf .panel--bot { bottom: 8%; height: 30%; }
.leaf .knob { position: absolute; top: 56%; width: 10px; height: 34px; border-radius: 6px; background: var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.leaf--l .knob { right: 10px; } .leaf--r .knob { left: 10px; }
.leaf .halfstar { position: absolute; top: 43%; width: 110px; height: 110px; color: var(--gold); transform: translateY(-50%); filter: drop-shadow(0 0 16px rgba(249,160,27,.7)); }
.leaf--l .halfstar { right: -55px; } .leaf--r .halfstar { left: -55px; }
.door-btn:hover .leaf--l { transform: rotateY(-18deg); }
.door-btn:hover .leaf--r { transform: rotateY(18deg); }
.door-btn__label { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); white-space: nowrap; }
.grow__hint { margin-top: 58px; font-size: .85rem; color: var(--ink-2); }

/* ---------- Escritos ---------- */
.blog__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink); transition: all .25s; }
.chip:hover { border-color: var(--violet-400); color: var(--violet-600); }
.chip[aria-pressed="true"] { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; cursor: pointer; text-align: left; padding: 0; color: inherit; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16/10; overflow: hidden; background: var(--violet-100); position: relative; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(.9); }
.post:hover .post__img img { transform: scale(1.06); }
.post__tag { position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.post__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.post h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--violet-900); }
.post p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.post__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--violet-600); display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.post__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.post:hover .post__more svg { transform: translateX(4px); }
.post--featured { grid-column: span 3; flex-direction: row; }
.post--featured .post__img { flex: 1.1; aspect-ratio: auto; min-height: 360px; }
.post--featured .post__body { flex: 1; padding: clamp(28px, 4vw, 54px); justify-content: center; }
.post--featured h3 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); }
.blog__empty { padding: 40px; text-align: center; color: var(--ink-2); grid-column: 1 / -1; }

/* Lector de artículos */
.reader { position: fixed; inset: 0; z-index: 1100; display: none; }
.reader.is-open { display: block; }
.reader__backdrop { position: absolute; inset: 0; background: rgba(28,2,48,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.reader.is-shown .reader__backdrop { opacity: 1; }
.reader__panel { position: absolute; inset: 0 0 0 auto; width: min(780px, 100%); background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: transform .55s var(--ease); overscroll-behavior: contain; }
.reader.is-shown .reader__panel { transform: none; }
.reader__progress { position: sticky; top: 0; height: 4px; background: var(--gold); transform-origin: left; transform: scaleX(0); z-index: 3; }
.reader__close { position: sticky; top: 16px; float: right; margin: 12px 16px 0 0; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--violet-700); color: #fff; display: grid; place-items: center; }
.reader__close svg { width: 20px; height: 20px; }
.reader__hero { aspect-ratio: 16/8; overflow: hidden; margin-top: -62px; }
.reader__hero img { width: 100%; height: 100%; object-fit: cover; }
.reader__content { padding: clamp(28px, 5vw, 60px) clamp(20px, 6vw, 70px) 80px; }
.reader__content h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); line-height: 1.1; color: var(--violet-900); margin: 14px 0 18px; }
.reader__byline { display: flex; align-items: center; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; font-size: .9rem; color: var(--ink-2); }
.reader__byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.reader__byline strong { color: var(--ink); display: block; }
.reader__article { font-size: 1.12rem; line-height: 1.8; }
.reader__article p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--violet-600); }
.reader__article blockquote { margin: 34px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--gold); font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--violet-800); }
.reader__foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .9rem; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--violet-700); transition: all .25s; }
.share a:hover, .share button:hover { background: var(--violet-700); color: #fff; }
.share svg { width: 18px; height: 18px; }

/* ---------- Academia ---------- */
.academia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.pub { display: flex; gap: 22px; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pub__cover { flex: none; width: 92px; height: 124px; border-radius: 6px 12px 12px 6px; background: var(--grad-violet-soft); position: relative; display: grid; place-items: center; color: var(--gold); box-shadow: 6px 8px 0 var(--violet-100); }
.pub__cover svg { width: 36px; height: 36px; }
.pub__type { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-600); }
.pub h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 6px 0 8px; color: var(--violet-900); }
.pub p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--grad-violet-soft); color: #fff; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9a01b' d='M12 1.6l3.2 6.6 7.2 1-5.2 5.1 1.2 7.2L12 18.1l-6.4 3.4 1.2-7.2L1.6 9.2l7.2-1z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .14; transform: rotate(14deg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; position: relative; z-index: 1; }
.socials { display: grid; gap: 12px; margin-top: 30px; }
.social { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.social:hover { background: rgba(255,255,255,.16); transform: translateX(6px); }
.social svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.social strong { display: block; } .social small { color: rgba(255,255,255,.7); }
.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.form h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; color: var(--violet-800); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(181,29,226,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__status { margin: 12px 0 0; font-size: .9rem; color: var(--violet-600); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--violet-950); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: #fff; } .footer .brand__role { color: rgba(255,255,255,.6); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer nav a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .82rem; }

/* ==========================================================================
   PORTAL · Puertas moradas + Mapa de locales
   ========================================================================== */
.portal { position: fixed; inset: 0; z-index: 1200; display: none; background: var(--violet-950); }
.portal.is-open { display: block; }

.portal__doors { position: absolute; inset: 0; z-index: 5; display: flex; perspective: 2200px; pointer-events: none; }
.portal__doors.is-gone { display: none; }
.pdoor { position: relative; flex: 1; overflow: hidden; background: linear-gradient(160deg, var(--violet-700), var(--violet-800) 60%, var(--violet-900)); transition: transform 1.6s cubic-bezier(.7, 0, .2, 1), filter 1.6s; backface-visibility: hidden; }
.pdoor--l { transform-origin: left center; box-shadow: inset -3px 0 0 rgba(0,0,0,.35); }
.pdoor--r { transform-origin: right center; box-shadow: inset 3px 0 0 rgba(255,255,255,.08); }
.pdoor__panel { position: absolute; left: 12%; right: 12%; border: 3px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: inset 0 0 40px rgba(0,0,0,.25); }
.pdoor__panel--a { top: 8%; height: 34%; }
.pdoor__panel--b { bottom: 8%; height: 40%; }
.pdoor__knob { position: absolute; top: 52%; width: 16px; height: 80px; border-radius: 10px; background: linear-gradient(var(--gold), var(--gold-600)); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.pdoor--l .pdoor__knob { right: 28px; } .pdoor--r .pdoor__knob { left: 28px; }
.pdoor__star { position: absolute; top: 50%; width: min(42vmin, 360px); height: min(42vmin, 360px); color: var(--gold); transform: translateY(-50%); filter: drop-shadow(0 0 30px rgba(249,160,27,.65)); }
.pdoor--l .pdoor__star { right: calc(min(42vmin, 360px) / -2); }
.pdoor--r .pdoor__star { left: calc(min(42vmin, 360px) / -2); }
.portal__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: linear-gradient(transparent, #ffd27a, transparent); opacity: 0; z-index: 6; filter: blur(2px); pointer-events: none; }
.portal__title { position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 7; text-align: center; color: #fff; font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 4vw, 5rem); text-transform: uppercase; letter-spacing: .04em; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.portal__title small { display: block; font-family: var(--font-body); font-size: .9rem; letter-spacing: .3em; color: var(--gold); font-weight: 700; }

.portal.stage-1 .pdoor__star { animation: starPulse 1s ease-in-out; }
.portal.stage-1 .portal__title { opacity: 1; transform: none; }
.portal.stage-2 .portal__seam { opacity: 1; transition: opacity .3s; }
.portal.stage-3 .pdoor--l { transform: rotateY(-108deg); filter: brightness(.6); }
.portal.stage-3 .pdoor--r { transform: rotateY(108deg); filter: brightness(.6); }
.portal.stage-3 .portal__title, .portal.stage-3 .portal__seam { opacity: 0; transition: opacity .4s; }
@keyframes starPulse { 0%, 100% { filter: drop-shadow(0 0 30px rgba(249,160,27,.65)); } 50% { filter: drop-shadow(0 0 70px rgba(255,210,120,1)); } }

.portal__light { position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 50%, rgba(255,214,140,.9), rgba(249,160,27,.4) 30%, transparent 65%); opacity: 0; pointer-events: none; transition: opacity 1.2s; }
.portal.stage-2 .portal__light { opacity: .9; }
.portal.stage-4 .portal__light { opacity: 0; }

/* Vista del mapa */
.atlas { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 400px 1fr; background: var(--paper); opacity: 0; transform: scale(1.04); transition: opacity 1s .2s, transform 1.4s var(--ease); }
.portal.stage-3 .atlas { opacity: 1; transform: none; }
.atlas__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); z-index: 2; }
.atlas__head { padding: 22px 24px 18px; background: var(--violet-900); color: #fff; position: relative; overflow: hidden; }
.atlas__head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9a01b' d='M12 1.6l3.2 6.6 7.2 1-5.2 5.1 1.2 7.2L12 18.1l-6.4 3.4 1.2-7.2L1.6 9.2l7.2-1z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .25; }
.atlas__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.atlas__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; text-transform: uppercase; letter-spacing: .02em; }
.atlas__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.atlas__close:hover { background: var(--gold); color: var(--ink); }
.atlas__close svg { width: 20px; height: 20px; }
.atlas__sub { font-size: .88rem; color: rgba(255,255,255,.72); margin: 4px 0 16px; max-width: 32ch; }
.atlas__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; }
.kpi strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.kpi span { font-size: .7rem; color: rgba(255,255,255,.7); line-height: 1.25; display: block; margin-top: 4px; }
.atlas__tools { padding: 16px 20px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-2); }
.search input { width: 100%; font: inherit; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.search input:focus { outline: none; border-color: var(--violet-400); }
.atlas__tools select { font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.atlas__list { list-style: none; margin: 0; padding: 8px 12px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.atlas__group { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-600); padding: 14px 10px 6px; display: flex; justify-content: space-between; }
.atlas__item button { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); transition: background .2s; }
.atlas__item button:hover, .atlas__item button.is-active { background: var(--violet-50); }
.atlas__item svg { width: 20px; height: 20px; flex: none; }
.atlas__item strong { font-size: .95rem; display: block; line-height: 1.25; }
.atlas__item small { font-size: .78rem; color: var(--ink-2); }
.atlas__note { padding: 12px 20px; font-size: .75rem; color: var(--ink-2); background: var(--gold-100); border-top: 1px solid rgba(249,160,27,.4); }
.atlas__map { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #ffffff 0%, #f3eef7 55%, #e6dcef 100%); }
#map::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 400; background-image: radial-gradient(rgba(82,5,117,.08) 1px, transparent 1px); background-size: 18px 18px; mix-blend-mode: multiply; }
.leaflet-interactive { transition: fill .25s; }
.prov-tip { background: var(--violet-900) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 8px 12px !important; font-family: var(--font-body); font-size: .82rem; box-shadow: var(--shadow) !important; }
.prov-tip::before { border-top-color: var(--violet-900) !important; }
.prov-tip strong { color: var(--gold); }.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--ink-2); }

/* Marcadores */
.pin { width: 34px; height: 34px; display: grid; place-items: center; transition: transform .25s var(--ease); }
.pin svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(42,5,69,.45)); }
.cluster { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-800); border: 3px solid var(--gold); color: #fff; font: 800 .9rem var(--font-body); box-shadow: 0 4px 12px rgba(42,5,69,.45); transition: transform .25s var(--ease); }
.cluster:hover { transform: scale(1.12); }
.pin:hover, .pin.is-active { transform: scale(1.35); }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--shadow) !important; }
.leaflet-popup-content { margin: 16px 18px !important; font-family: var(--font-body); line-height: 1.45 !important; min-width: 210px; }
.popup__prov { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-600); }
.popup__name { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: var(--violet-900); line-height: 1.05; margin: 2px 0 6px; }
.popup__row { font-size: .84rem; color: var(--ink-2); }
.popup a { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--violet-600) !important; }
.leaflet-container a.leaflet-popup-close-button { top: 8px; right: 8px; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .mcard, .mcard--wide { grid-column: span 6; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post--featured { grid-column: span 2; }
  .atlas { grid-template-columns: 340px 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); padding: 16px var(--gutter) 26px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
    transform: translateY(-120%); transition: transform .45s var(--ease); max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav a.is-active::after { left: auto; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .nav .nav__cta { margin: 10px 0 0; justify-content: center; }
  .header { background: rgba(251,250,247,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-bottom: 10px; }
  .hero__copy .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
  .sparks { display: none; }
  .hero__visual { width: min(80%, 360px); order: -1; }
  .badge-star { left: -10px; bottom: 30px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .bio__grid, .thought__head, .contact__grid, .academia__grid { grid-template-columns: 1fr; }
  .bio__media { max-width: 520px; margin-bottom: 40px; }

  .timeline__line { left: 11px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .tl-item:nth-child(odd) .tl-item__card, .tl-item:nth-child(even) .tl-item__card { grid-column: 1; text-align: left; }
  .tl-item__dot { left: 11px; }

  .atlas { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .atlas__side { display: contents; }
  .atlas__head { grid-row: 1; padding: 16px 18px; }
  .atlas__head h2 { font-size: 2rem; }
  .atlas__sub { display: none; }
  .atlas__map { grid-row: 2; }
  .atlas__drawer {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 800; background: var(--paper);
    border-radius: 22px 22px 0 0; box-shadow: 0 -20px 40px -20px rgba(0,0,0,.35);
    height: 72svh; display: flex; flex-direction: column; transform: translateY(calc(100% - 132px)); transition: transform .45s var(--ease);
  }
  .atlas__drawer.is-expanded { transform: none; }
  .drawer-handle { display: flex !important; }
  .pin svg { width: 26px; height: 26px; }

  /* Las manijas van a los lados de la estrella para no tapar sus puntas */
  .pdoor__knob { top: 50%; height: 64px; transform: translateY(-50%); }
  .pdoor--l .pdoor__knob { right: calc(21vmin + 16px); }
  .pdoor--r .pdoor__knob { left: calc(21vmin + 16px); }
}

@media (min-width: 921px) {
  .atlas__drawer { display: contents; }
  .drawer-handle { display: none !important; }
}

.drawer-handle { display: none; width: 100%; border: 0; background: transparent; padding: 10px 0 2px; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--violet-700); }
.drawer-handle::before { content: ""; width: 44px; height: 5px; border-radius: 4px; background: var(--line); }

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat__label { font-size: .84rem; }
  .facts { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .mcard, .mcard--wide { grid-column: span 12; }
  .mcard--doors { padding-top: 200px; }
  .posts { grid-template-columns: 1fr; }
  .post--featured { grid-column: span 1; flex-direction: column; }
  .post--featured .post__img { min-height: 0; aspect-ratio: 16/10; }
  .form__row { grid-template-columns: 1fr; }
  .pub { flex-direction: column; }
  .bio__photo-2 { right: -2%; }
  .badge-star { padding: 8px 14px 8px 8px; }
  .badge-star strong { font-size: 1.2rem; }
  .atlas__kpis .kpi strong { font-size: 1.5rem; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
