/* =========================================================
   Marta Marina — MusicMind
   One-pager · Soft Blue palette
   ========================================================= */

/* ---------- Fonts ----------
   Cormorant (SIL Open Font License) — self-hosted WOFF2 variable, subconjunto latin.
   Serif display de trazo muy fino y alto contraste, en la línea refinada y
   elegante de Canela, con licencia libre para uso comercial.
   Fichero variable: un solo woff2 por estilo cubre el eje de peso 300–700. */
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-latin-italic.woff2') format('woff2');
  font-weight: 300 700; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pure-light: #F5F7F8;
  --pale-sky:   #DCE6EA;
  --dusty-blue: #A3BCC7;
  --steel-blue: #5E7A87;   /* acento (eyebrows, itálicas, iconos) — AA en texto grande */
  --deep-ocean: #2F4A55;
  --sand:       #CCC2B8;
  --ink-dark:   #2A363B;

  /* Warm neutral base (como los slides editoriales) + azul de acento */
  --bg:      #F1EAE1;
  --surface: #FBF7F1;
  --ink:     var(--deep-ocean);
  --muted:   #4C6672;      /* texto de cuerpo — contraste AA (≈4.8:1 sobre --bg) */
  --line:    rgba(58, 61, 64, 0.13);

  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--steel-blue); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.06; letter-spacing: -0.01em; font-optical-sizing: auto; }
.serif-italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--steel-blue);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; }

/* ---------- Small utilities (replace inline styles) ---------- */
.eyebrow--spaced { display: inline-block; margin-bottom: 20px; }
.hl { color: var(--ink); font-weight: 500; }
.dark .hl { color: #fff; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.dim { opacity: .4; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }

/* ---------- Buttons ---------- */
.btn {
  --bc: var(--deep-ocean);       /* base colour */
  --fill: var(--steel-blue);     /* hover fill that rises from the bottom */
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: #fff;
  /* fill is a background-image (paints BELOW the text) instead of an overlay on top of it */
  background-color: var(--bc);
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), background-size .5s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn:hover { background-size: 100% 100%; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --bc: transparent; --fill: var(--deep-ocean);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { color: #fff; }

.btn--light { --bc: #fff; --fill: var(--pale-sky); color: var(--deep-ocean); }
.btn--light:hover { color: var(--deep-ocean); }

.link-underline {
  position: relative; display: inline-block; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.header.scrolled {
  background: rgba(241, 234, 225, 0.75);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.hidden { transform: translateY(-110%); }
/* While the mobile menu is open the header must NOT create a containing block for
   its fixed .nav__links overlay — otherwise the menu is sized/positioned against the
   header box (~84px tall) instead of the viewport and the page bleeds through.
   transform (hide-on-scroll) AND backdrop-filter (scrolled state) both trigger this,
   so neutralise both; kill the transition to avoid a transient broken frame. */
body.menu-open .header {
  transform: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}
.nav {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(14px, 2vw, 22px) var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: auto; height: clamp(56px, 6.5vw, 78px); transition: opacity .3s; }
.nav__brand:hover .nav__logo { opacity: .78; }

.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); }
.nav__links a, .nav__links button {
  font-size: .9rem; color: var(--ink); position: relative;
}
.nav__links .navlink {
  font-size: 1.02rem; font-weight: 300; letter-spacing: .02em;
}
.nav__social { display: none; }
.nav__links .navlink::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links .navlink:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 30px; height: 18px; position: relative; }
.nav__toggle span { position: absolute; left: 0; height: 1.6px; width: 100%; background: var(--ink); transition: .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 8px; }
.nav__toggle span:nth-child(3) { top: 16px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg);
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path .6s var(--slow);
    pointer-events: none;
  }
  body.menu-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
  .nav__links a, .nav__links button { font-size: 1.6rem; font-family: var(--serif); font-weight: 300; }
  .nav__links .navlink { font-size: 1.9rem; }
  .nav__links .btn { font-family: var(--sans); font-size: 1rem; }
  .nav__social { display: flex; gap: 26px; margin-top: 14px; }
  .nav__social a { color: var(--steel-blue); transition: color .3s var(--ease), transform .3s var(--ease); }
  .nav__social a:hover { color: var(--deep-ocean); transform: translateY(-3px); }
  .nav__social svg { width: 26px; height: 26px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 120px; padding-bottom: 60px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* soft gradient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; background: #E7DBCB; top: -12vw; right: -8vw; opacity: .6; }
.blob--2 { width: 38vw; height: 38vw; background: var(--dusty-blue); bottom: -14vw; left: -10vw; opacity: .32; }
.blob--3 { width: 24vw; height: 24vw; background: var(--sand); top: 28%; left: 36%; opacity: .3; }

.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 5vw, 70px); align-items: center; }

.hero__eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; }
.hero h1 em { font-style: italic; color: var(--steel-blue); }
.hero__sub { max-width: 46ch; margin-bottom: 14px; }
.hero__note { font-size: .85rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 36px; }
.hero__note b { color: var(--deep-ocean); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__symbol { display: flex; justify-content: center; }
.hero__symbol svg { width: min(320px, 70%); height: auto; }

/* hero symbol entrance */
.sym-dot { transform-origin: center; }
.sym-left, .sym-right { transform-origin: 50% 100%; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--steel-blue), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content:''; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--deep-ocean); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{top:-50%} 60%,100%{top:100%} }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__symbol { order: -1; margin-bottom: 8px; }
  .hero__symbol svg { width: 150px; }
  .scroll-cue { display: none; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 26px; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: inline-flex; gap: 56px; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--steel-blue); display:inline-flex; align-items:center; gap:56px; }
.marquee span::after { content:'·'; color: var(--sand); font-style: normal; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* =========================================================
   GENERIC SECTION HEADERS
   ========================================================= */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { display: inline-block; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
.sec-head h2 em { font-style: italic; color: var(--steel-blue); }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 56ch; }

/* =========================================================
   MUSICMIND — split intro
   ========================================================= */
.intro { background: var(--surface); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.intro__big { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; }
.intro__big em { font-style: italic; color: var(--steel-blue); }
.intro__col p { color: var(--muted); margin-bottom: 18px; }
.intro__col p:last-of-type { margin-bottom: 28px; }
@media (max-width: 820px){ .intro__grid { grid-template-columns: 1fr; } }

/* =========================================================
   CARDS (pillars / programs)
   ========================================================= */
.cards { display: grid; gap: 18px; }
.cards--5 { grid-template-columns: repeat(6, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* nivel tag on pillar cards */
.card__level {
  position: absolute; top: 26px; right: 22px;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--steel-blue); background: var(--pale-sky);
  padding: 4px 10px; border-radius: 100px;
}

.card {
  position: relative; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px; min-height: 230px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
  overflow: hidden; cursor: pointer;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--steel-blue); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(47,74,85,.45); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--sand); font-weight: 400; }
.card__index { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--pale-sky); transition: color .5s var(--ease); }
.card:hover .card__index { color: var(--dusty-blue); }
.card h3 { font-size: 1.45rem; }
.card p { font-size: .92rem; color: var(--muted); flex: 1; }
.card__more { font-size: .8rem; font-weight: 500; color: var(--steel-blue); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.card__more .arrow { transition: transform .4s var(--ease); }
.card:hover .card__more .arrow { transform: translateX(4px); }

.cards--5 .card { grid-column: span 2; }
.cards--5 .card:nth-child(4) { grid-column: 2 / span 2; }
.cards--5 .card:nth-child(5) { grid-column: 4 / span 2; }

@media (max-width: 980px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr; }
  .cards--5 { grid-template-columns: 1fr 1fr; }
  .cards--5 .card,
  .cards--5 .card:nth-child(4),
  .cards--5 .card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 540px) { .cards--5, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* audiences (MusicMind) — 3-col editorial block */
.audiences {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(44px, 6vw, 72px);
}
.aud { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.aud__k { font-family: var(--serif); font-size: 1.1rem; color: var(--sand); display: block; margin-bottom: 12px; }
.aud h3 { font-size: 1.5rem; margin-bottom: 12px; }
.aud p { font-size: .92rem; color: var(--muted); }
.aud::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 46px; height: 2px;
  background: var(--steel-blue); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.aud:hover::before { transform: scaleX(1); }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; gap: 26px; } }

/* levels — interactive pills (3 niveles de comunicación) */
.levels { margin-top: clamp(40px, 5vw, 64px); }
.levels__pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.lvpill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; line-height: 1.2;
  padding: 12px 22px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.lvpill b { font-weight: 600; font-size: .82rem; letter-spacing: .01em; }
.lvpill span { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); transition: color .4s var(--ease); }
.lvpill:hover { border-color: var(--steel-blue); }
.lvpill:focus-visible { outline: 2px solid var(--steel-blue); outline-offset: 2px; }
.lvpill.is-on { background: var(--deep-ocean); border-color: var(--deep-ocean); color: #fff; }
.lvpill.is-on span { color: var(--dusty-blue); }

.levels__stage { position: relative; }
.lvpanel {
  border-top: 1px solid var(--line); padding-top: 34px; padding-bottom: 44px;
  display: flex; align-items: flex-start; gap: clamp(20px, 5vw, 64px);
}
.lvpanel[hidden] { display: none; }
.lvpanel__head { flex: 0 0 40%; max-width: 40%; }
.lvpanel__k { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-blue); margin-bottom: 14px; }
.lvpanel h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lvpanel h3 em { font-style: italic; color: var(--steel-blue); }
.lvpanel p { flex: 1 1 auto; margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
/* entrance */
.lvpanel.is-on { animation: lvin .55s var(--ease); }
@keyframes lvin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .lvpanel { flex-direction: column; gap: 12px; }
  .lvpanel__head { flex: 1 1 auto; max-width: none; }
  .lvpill { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .lvpanel.is-on { animation: none; } }

/* Programs cards variant */
.prog { background: var(--surface); }
.prog .card { background: var(--surface); min-height: 260px; }
.prog .card__tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-blue); }
.prog .card__price { font-family: var(--serif); font-size: 1.1rem; color: var(--deep-ocean); margin-top: auto; }

/* Programs — 3 blocks (artistas / managers y equipos / empresas) */
.prog__block-label {
  display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--steel-blue); margin-bottom: 22px;
}
.prog__block:not(:first-child) {
  margin-top: clamp(46px, 6vw, 72px);
  padding-top: clamp(46px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

/* =========================================================
   DARK SECTION (Marta)
   ========================================================= */
.dark { background: var(--deep-ocean); color: var(--pale-sky); }
.dark .eyebrow { color: var(--dusty-blue); }
.dark .sec-head h2, .dark h2, .dark h3 { color: #fff; }
.marta__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.marta__portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--steel-blue), var(--deep-ocean));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
}
.marta__portrait img { width: 100%; height: 100%; }
.marta__big { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.2; color:#fff; margin-bottom: 24px; }
.marta__big em { font-style: italic; color: var(--dusty-blue); }
.marta__col p { color: rgba(220,230,234,.78); margin-bottom: 16px; }
.marta__stats { display: flex; gap: 40px; margin: 30px 0; flex-wrap: wrap; }
.marta__stats .st b { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: #fff; display: block; }
.marta__stats .st span { font-size: .78rem; color: var(--dusty-blue); letter-spacing: .04em; }
.marta__creds { list-style: none; margin: 4px 0 30px; display: grid; gap: 10px; }
.marta__creds li { position: relative; padding-left: 22px; font-size: .86rem; color: rgba(220,230,234,.82); }
.marta__creds li::before { content: '—'; position: absolute; left: 0; color: var(--dusty-blue); }
@media (max-width: 820px){ .marta__grid { grid-template-columns: 1fr; } .marta__portrait{ max-width: 380px; } }

/* =========================================================
   MEDIA · duotono universal
   Cualquier <img> dentro de .media se pasa a escala de grises
   y se tiñe con la paleta (steel/ocean) mediante mix-blend-mode.
   → Suelta una foto real (jpg/png/webp) en el src y se armoniza sola.
   ========================================================= */
.media {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--steel-blue), var(--deep-ocean));
}
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.03) brightness(1.02);
  transition: transform 1.2s var(--slow), filter .6s var(--ease);
}
/* capa de color: monotono elegante hacia el azul de marca */
.media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, var(--steel-blue), var(--deep-ocean));
  mix-blend-mode: color; opacity: .9;
}
/* capa de profundidad: viñeta cálida sutil */
.media::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(204,194,184,.16), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(42,54,59,.32));
  mix-blend-mode: multiply;
}
.media:hover img { transform: scale(1.045); }
/* etiqueta de placeholder — bórrala al poner la foto real */
.media__note {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px;
  text-align: center; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,247,248,.72); pointer-events: none;
}

/* =========================================================
   EDITORIAL BAND · imagen a todo ancho con cita
   ========================================================= */
.band { position: relative; overflow: hidden; }
.band__media { position: absolute; inset: 0; border-radius: 0; }
.band__media::after {
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(47,74,85,.15), transparent 55%),
    linear-gradient(90deg, rgba(42,54,59,.72) 0%, rgba(42,54,59,.4) 55%, rgba(42,54,59,.15) 100%);
}
.band .wrap { position: relative; z-index: 3; }
.band__inner {
  padding-block: clamp(90px, 16vw, 200px);
  max-width: 640px;
}
.band__inner .eyebrow { color: var(--dusty-blue); display: inline-block; margin-bottom: 22px; }
.band__quote {
  font-family: var(--serif); font-weight: 300; color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.16; letter-spacing: -0.01em;
}
.band__quote em { font-style: italic; color: var(--dusty-blue); }
.band__cite { margin-top: 22px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(220,230,234,.7); }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.news { position: relative; overflow: hidden; }
.news__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(34px, 6vw, 70px); text-align: center;
  position: relative; overflow: hidden;
}
.news__card .blob--1 { position:absolute; width: 360px; height: 360px; top: -160px; right: -120px; opacity:.4; }
.news__card .eyebrow { display: inline-block; margin-bottom: 18px; position: relative; }
.news h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 16px; position: relative; }
.news h2 em { font-style: italic; color: var(--steel-blue); }
.news p { color: var(--muted); max-width: 48ch; margin: 0 auto 32px; position: relative; }
.news__form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; position: relative; flex-wrap: wrap; justify-content: center; }
.news__form input {
  flex: 1; min-width: 240px; padding: 1em 1.2em; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.news__form input:focus { outline: none; border-color: var(--steel-blue); box-shadow: 0 0 0 4px rgba(110,138,150,.15); }
.news__form .btn { white-space: nowrap; }
.news__msg { margin-top: 18px; font-size: .9rem; min-height: 1.2em; position: relative; transition: opacity .3s; }
.news__msg.ok { color: var(--steel-blue); }
.news__msg.err { color: #b4533f; }
.news__consent { font-size: .72rem; color: var(--muted); margin-top: 18px; position: relative; }

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */
.footer { background: var(--deep-ocean); color: var(--pale-sky); padding-top: clamp(64px, 9vw, 110px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: end; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__cta h2 { font-size: clamp(2rem, 5vw, 4rem); color: #fff; margin-bottom: 20px; }
.footer__cta h2 em { font-style: italic; color: var(--dusty-blue); }
.footer__lead { color: rgba(220,230,234,.8); max-width: 42ch; margin: -6px 0 22px; }
.footer__cta .email { font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: #fff; }
.footer__free { font-size: .78rem; color: var(--dusty-blue); letter-spacing: .02em; margin-top: 14px; }
.footer__social { display: flex; flex-direction: column; gap: 16px; max-width: 340px; margin-left: auto; }

/* Instagram preview card */
.ig-card { display: block; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }
.ig-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.ig-card__head { display: flex; align-items: center; gap: 12px; }
.ig-card__avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--dusty-blue), var(--ink-dark)); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.ig-card__avatar img { width: 66%; height: 66%; object-fit: contain; }
.ig-card__meta { display: flex; flex-direction: column; line-height: 1.22; margin-right: auto; }
.ig-card__meta b { color: #fff; font-size: .95rem; font-weight: 600; }
.ig-card__meta small { color: var(--dusty-blue); font-size: .76rem; }
.ig-card__glyph { flex: 0 0 auto; width: 22px; height: 22px; color: var(--pale-sky); }
.ig-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; border-radius: 12px; overflow: hidden; }
.ig-card__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ig-card:hover .ig-card__grid img { transform: scale(1.06); }
.ig-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .78rem; color: var(--dusty-blue); }
.ig-card__foot svg { flex: 0 0 auto; width: 16px; height: 16px; }

.btn--ig { --bc: transparent; --fill: #fff; color: #fff; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--ig:hover { color: var(--deep-ocean); }
.btn--ig svg { width: 18px; height: 18px; }
.footer__brand { display:flex; align-items:center; gap:14px; }
.footer__logo { height: clamp(84px, 9vw, 108px); width: auto; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; font-size: .78rem; color: rgba(220,230,234,.6); flex-wrap: wrap; }
.footer__bottom a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal button { font-size: .78rem; color: rgba(220,230,234,.6); transition: color .3s var(--ease); }
.footer__legal button:hover { color: #fff; }
@media (max-width: 740px){
  .footer__top { grid-template-columns: 1fr; justify-items: center; align-items: start; gap: 36px; text-align: center; }
  .footer__cta { display: flex; flex-direction: column; align-items: center; }
  .footer__social { margin-inline: auto; width: 100%; }
  .footer__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 18px; }
  .footer__brand { justify-content: center; }
  .footer__legal { justify-content: center; }
}

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; z-index: 90;
  left: var(--pad); right: var(--pad); bottom: clamp(16px, 3vw, 28px);
  max-width: 640px; margin-inline: auto;
  display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20, 34, 40, 0.18);
  transform: translateY(140%); opacity: 0;
  transition: transform .6s var(--slow), opacity .5s var(--ease);
}
.cookie.show { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 240px; font-size: .84rem; color: var(--muted); margin: 0; }
.cookie__link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie__actions .btn { padding: 0.7em 1.3em; font-size: .82rem; }
@media (max-width: 520px){ .cookie__actions { width: 100%; } .cookie__actions .btn { flex: 1; justify-content: center; } }

/* ---------- Newsletter pop-up ---------- */
.nlpop {
  position: fixed; z-index: 88;
  right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  width: min(360px, calc(100vw - 2 * var(--pad)));
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(20, 34, 40, 0.22);
  transform: translateY(150%); opacity: 0;
  transition: transform .7s var(--slow), opacity .5s var(--ease);
}
.nlpop.show { transform: none; opacity: 1; }
.nlpop[hidden] { display: none; }
.nlpop__close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nlpop__close:hover { background: var(--line); color: var(--ink); }
.nlpop .eyebrow { color: var(--steel-blue); }
.nlpop__title { font-size: 1.5rem; line-height: 1.15; margin: 2px 0 0; }
.nlpop__title em { font-style: italic; color: var(--dusty-blue); }
.nlpop__text { font-size: .86rem; color: var(--muted); margin: 0; }
.nlpop__form { display: flex; flex-direction: column; gap: 10px; }
.nlpop__form input {
  width: 100%; padding: .9em 1.1em; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.nlpop__form input:focus { outline: none; border-color: var(--steel-blue); box-shadow: 0 0 0 4px rgba(110,138,150,.15); }
.nlpop__form .btn { width: 100%; justify-content: center; }
.nlpop__check { display: flex; gap: 8px; font-size: .72rem; color: var(--muted); line-height: 1.4; cursor: pointer; }
.nlpop__check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--steel-blue); }
.nlpop__msg { font-size: .8rem; min-height: 1em; transition: opacity .3s; }
.nlpop__msg.ok { color: var(--steel-blue); }
.nlpop__msg.err { color: #b4533f; }
@media (max-width: 520px){ .nlpop { left: var(--pad); right: var(--pad); width: auto; } }

/* =========================================================
   DRAWER (full-height, editorial) + WIZARD navigation
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 34, 40, 0.44);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility .55s;
}
.overlay.open { opacity: 1; visibility: visible; }

.modal-wrap {
  position: fixed; inset: 0; z-index: 101;
  display: flex; justify-content: flex-end; align-items: stretch;
  pointer-events: none;
}
.modal {
  --panel-accent: var(--steel-blue);
  pointer-events: auto; position: relative;
  width: min(560px, 100%); height: 100%;
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  box-shadow: -60px 0 120px -50px rgba(20,34,40,.55);
  transform: translateX(100%);
  transition: transform .72s var(--slow);
}
.modal.open { transform: none; }

/* -------- entry side (desktop): break the all-from-the-right monotony -------- */
/* RIGHT is the base above. LEFT — mirror it. */
.modal-wrap[data-side="left"] { justify-content: flex-start; }
.modal-wrap[data-side="left"] .modal {
  border-left: none; border-right: 1px solid var(--line);
  box-shadow: 60px 0 120px -50px rgba(20,34,40,.55);
  transform: translateX(-100%);
}
/* BOTTOM — full-width sheet rising from below */
.modal-wrap[data-side="bottom"] { align-items: flex-end; }
.modal-wrap[data-side="bottom"] .modal {
  width: 100%; height: min(90vh, 760px);
  border-left: none; border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -60px 120px -50px rgba(20,34,40,.55);
  transform: translateY(100%);
}
/* TOP — full-width sheet dropping from above */
.modal-wrap[data-side="top"] { align-items: flex-start; }
.modal-wrap[data-side="top"] .modal {
  width: 100%; height: min(82vh, 680px);
  border-left: none; border-bottom: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 60px 120px -50px rgba(20,34,40,.55);
  transform: translateY(-100%);
}
/* wide sheets: keep text at a comfortable measure instead of stretching edge-to-edge */
.modal-wrap[data-side="bottom"] .modal__aside,
.modal-wrap[data-side="bottom"] .modal__body,
.modal-wrap[data-side="bottom"] .modal__foot,
.modal-wrap[data-side="top"] .modal__aside,
.modal-wrap[data-side="top"] .modal__body,
.modal-wrap[data-side="top"] .modal__foot {
  width: 100%; max-width: 960px; margin-inline: auto;
}
/* open state must out-specify the per-side closed transform above */
.modal-wrap[data-side] .modal.open { transform: none; }
/* slim accent line at the very top — the only chrome, signals each panel's colour */
.modal::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--panel-accent); z-index: 7;
}

/* per-panel width — subtle variety */
.modal[data-variant="wide"]    { width: min(680px, 100%); }
.modal[data-variant="contact"] { width: min(600px, 100%); }

/* minimal header: small mark + accent eyebrow (no heavy popup band) */
.modal__aside {
  flex-shrink: 0; display: flex; align-items: center; gap: 13px;
  padding: clamp(28px, 4vw, 42px) clamp(28px, 4vw, 48px) 2px;
  color: var(--ink); background: transparent;
}
.modal__aside .rings { display: none; }
.modal__aside .a-figure { display: contents; }
.modal__aside .a-num,
.modal__aside .a-foot { display: none; }
.modal__aside .a-symbol { width: 32px; flex-shrink: 0; margin: 0; filter: none; }
.modal__aside .a-eyebrow { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--panel-accent); font-weight: 500; }

.modal__main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 8;
  width: 42px; height: 42px; border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center;
  transition: background .3s, transform .5s var(--ease), color .3s;
}
.modal__close:hover { background: var(--panel-accent); color: #fff; transform: rotate(90deg); }

.modal__body {
  padding: clamp(14px, 2.4vw, 24px) clamp(28px, 4vw, 48px) clamp(24px, 4vw, 40px);
  overflow-y: auto; flex: 1; position: relative;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.modal__body.swapping { opacity: 0; transform: translateX(26px); }
.modal__body > * { position: relative; z-index: 1; }
.modal__body .d-num { display: none; }
/* giant watermark number — only on pillar panels, sits behind the text */
.modal[data-variant="pillar"] .modal__body .d-num {
  display: block; position: absolute; z-index: 0; top: -.16em; right: -.02em;
  font-family: var(--serif); font-weight: 300; line-height: .7;
  font-size: clamp(12rem, 32vw, 20rem); color: var(--panel-accent);
  opacity: .08; pointer-events: none;
}
.modal__body .d-media {
  aspect-ratio: 3 / 4; width: 260px; max-width: 42%;
  float: left; margin: 4px 28px 14px 0; border-radius: 14px;
  shape-outside: inset(0 round 14px);
}
@media (max-width: 520px) {
  .modal__body .d-media { float: none; width: 100%; max-width: none; aspect-ratio: 4 / 3; margin: 6px 0 22px; }
}
.modal__body h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 10px; }
.modal__body h2 em { font-style: italic; color: var(--panel-accent); }
.modal__body .d-sub { color: var(--panel-accent); font-style: italic; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 30px; }
.modal__body p { color: var(--muted); margin-bottom: 18px; }
.modal__body h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--panel-accent); margin: 30px 0 14px; }
.modal__body ul { list-style: none; display: grid; gap: 12px; margin-bottom: 10px; }
.modal__body li { position: relative; padding-left: 26px; color: var(--muted); }
.modal__body li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--panel-accent); }

/* editorial link list — noticias / casos de Marta */
.d-links { display: grid; gap: 10px; margin: 4px 0 10px; }
.d-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease); }
.d-link:hover { border-color: var(--panel-accent); background: rgba(0,0,0,.02); transform: translateX(4px); }
.d-link__txt { display: flex; flex-direction: column; gap: 2px; margin-right: auto; line-height: 1.3; }
.d-link__txt b { color: var(--ink); font-weight: 500; font-size: .98rem; }
.d-link__txt small { color: var(--panel-accent); font-size: .8rem; }
.d-link svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--panel-accent); transition: transform .35s var(--ease); }
.d-link:hover svg { transform: translate(2px, -2px); }

/* footer: wizard stepper + CTA + brand signature */
.modal__foot {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(16px, 2.6vw, 24px) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.modal__foot:empty { display: none; }
.modal__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__cta .btn { --bc: var(--panel-accent); }

.wizard { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wizard__pos { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }
.wizard__pos b { color: var(--panel-accent); font-weight: 500; }
.wizard__dots { display: flex; gap: 8px; }
.wizard__dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .18; transition: opacity .3s, transform .3s, background .3s; }
.wizard__dots button.on { opacity: 1; background: var(--panel-accent); transform: scale(1.3); }
.wizard__nav { display: flex; gap: 8px; }
.wizard__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.wizard__arrow:hover { background: var(--panel-accent); color: #fff; border-color: var(--panel-accent); }
.wizard__arrow:active { transform: scale(.9); }

.p-brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.p-brand__name { font-family: var(--serif); font-size: .92rem; color: var(--muted); }
.p-social { display: flex; gap: 13px; }
.p-social a { color: var(--muted); transition: color .3s var(--ease), transform .3s var(--ease); }
.p-social a:hover { color: var(--panel-accent); transform: translateY(-2px); }
.p-social svg { width: 17px; height: 17px; }

/* contact form inside modal */
.c-form { display: grid; gap: 16px; margin-top: 10px; }
.c-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-form label { font-size: .74rem; letter-spacing: .04em; color: var(--ink); font-weight: 500; display: block; margin-bottom: 7px; }
.c-form input, .c-form textarea {
  width: 100%; padding: .85em 1em; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.c-form textarea { min-height: 120px; resize: vertical; border-radius: 16px; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--steel-blue); box-shadow: 0 0 0 4px rgba(110,138,150,.15); }
.c-form .submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.c-msg { font-size: .88rem; min-height: 1.2em; }
.c-msg.ok { color: var(--steel-blue); }
.c-msg.err { color: #b4533f; }
@media (max-width: 520px) { .c-form .row { grid-template-columns: 1fr; } }

/* ---------- RGPD consent checkbox + data notice (contact + newsletter) ---------- */
.check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; border: 0; }
.check__box {
  margin-top: 1px; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; transition: border-color .25s, background .25s;
}
.check__box::after {
  content: ''; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.check input:checked + .check__box { background: var(--steel-blue); border-color: var(--steel-blue); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(110,138,150,.2); border-color: var(--steel-blue); }
.check__text { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.check__text .link-underline { color: var(--ink); }
.check--news { margin-top: 16px; text-align: left; }

.gdpr { font-size: .78rem; color: var(--muted); }
.gdpr summary { cursor: pointer; color: var(--steel-blue); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.gdpr summary::-webkit-details-marker { display: none; }
.gdpr summary::before { content: '+'; font-size: 1.05em; line-height: 1; width: 1em; text-align: center; }
.gdpr[open] summary::before { content: '–'; }
.gdpr ul { list-style: none; display: grid; gap: 6px; margin: 10px 0 0; padding: 0; }
.gdpr li { position: relative; padding-left: 0; line-height: 1.5; }
.gdpr li::before { content: none; }
.gdpr b { color: var(--ink); font-weight: 500; }

@media (max-width: 680px) {
  /* On phones every drawer becomes the same full-screen sheet — regardless of the
     desktop entry side — because that fills the screen nicely on mobile. */
  .modal-wrap,
  .modal-wrap[data-side="left"],
  .modal-wrap[data-side="bottom"],
  .modal-wrap[data-side="top"] { justify-content: flex-end; align-items: stretch; }

  .modal,
  .modal[data-variant="wide"],
  .modal[data-variant="contact"],
  .modal-wrap[data-side="left"] .modal,
  .modal-wrap[data-side="bottom"] .modal,
  .modal-wrap[data-side="top"] .modal {
    width: 100%; height: 100%;
    border: none; border-radius: 0;
    box-shadow: -60px 0 120px -50px rgba(20,34,40,.55);
    transform: translateX(100%);
  }
  .modal.open { transform: none; }

  /* drop the readable-measure cap so mobile sheets use the full width */
  .modal-wrap[data-side="bottom"] .modal__aside,
  .modal-wrap[data-side="bottom"] .modal__body,
  .modal-wrap[data-side="bottom"] .modal__foot,
  .modal-wrap[data-side="top"] .modal__aside,
  .modal-wrap[data-side="top"] .modal__body,
  .modal-wrap[data-side="top"] .modal__foot { max-width: none; }

  .modal__aside { padding: 24px clamp(20px,5vw,28px) 2px; }
}

/* modal body reveal — staggered content entrance */
.modal .reveal-d { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.modal.open .reveal-d { opacity: 1; transform: none; }
.modal.open .reveal-d:nth-child(1){ transition-delay:.14s; }
.modal.open .reveal-d:nth-child(2){ transition-delay:.2s; }
.modal.open .reveal-d:nth-child(3){ transition-delay:.26s; }
.modal.open .reveal-d:nth-child(4){ transition-delay:.32s; }
.modal.open .reveal-d:nth-child(5){ transition-delay:.38s; }
.modal.open .reveal-d:nth-child(6){ transition-delay:.44s; }
.modal.open .reveal-d:nth-child(7){ transition-delay:.5s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PILLARS ACCORDION — full-screen "old map" fold-out
   ========================================================= */
.pill-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 34, 40, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.pill-overlay.open { opacity: 1; visibility: visible; }

.pill-stage {
  --acc: var(--steel-blue);
  position: absolute; inset: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: scale(.985); opacity: 0;
  transition: transform .6s var(--slow), opacity .5s var(--ease);
}
.pill-overlay.open .pill-stage { transform: none; opacity: 1; }

.pill-track { flex: 1; display: flex; min-height: 0; }

/* each pilar is a vertical fold */
.pill-panel {
  --spine: clamp(62px, 6.6vw, 106px);
  position: relative; flex: 0 0 auto; flex-basis: 0; flex-grow: 0;
  min-height: 0; overflow: hidden; cursor: pointer;
  background: var(--surface);
  border-right: 1px solid var(--line);
  /* folded-paper depth on the seams */
  box-shadow: inset 16px 0 30px -22px rgba(20,34,40,.5), inset -16px 0 30px -22px rgba(20,34,40,.5);
  transition: flex-grow .74s var(--slow), flex-basis .74s var(--slow);
}
.pill-panel:last-child { border-right: none; }
.pill-panel.active { flex-grow: 1; cursor: default; }
/* unfolded layout only while open — gives the "map opening" entrance */
.pill-overlay.open .pill-panel:not(.active) { flex-basis: var(--spine); }
/* cascade the unfold left→right on open, then drop the delay so switching is snappy */
.pill-overlay.intro .pill-panel { transition-delay: calc(var(--i, 0) * .06s); }

.pill-panel::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--acc); opacity: 0; transition: opacity .5s; z-index: 6;
}
.pill-panel.active::after { opacity: 1; }

/* spine (collapsed state) */
.pill-spine {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 26px 0;
  transition: opacity .35s var(--ease);
}
.pill-panel.active .pill-spine { opacity: 0; pointer-events: none; }
.pill-spine__num { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--acc); }
.pill-spine__title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--serif); font-style: italic; white-space: nowrap;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem); color: var(--ink);
  transition: color .3s var(--ease);
}
.pill-spine__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); opacity: .5; }
.pill-panel:hover:not(.active) .pill-spine__title { color: var(--acc); }
@media (hover: hover) {
  .pill-overlay.open .pill-panel:not(.active):hover { flex-basis: calc(var(--spine) + 16px); }
}

/* full (expanded state) */
.pill-full {
  position: absolute; inset: 0; width: 100%; min-width: min(600px, 88vw);
  padding: clamp(34px, 4.5vw, 66px) clamp(32px, 4.5vw, 74px);
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .4s var(--ease) .2s; overflow-y: auto;
}
.pill-panel.active .pill-full { opacity: 1; }
.pill-full__num {
  position: absolute; top: -.14em; right: .02em; z-index: 0;
  font-family: var(--serif); font-weight: 300; line-height: .7;
  font-size: clamp(12rem, 26vw, 20rem); color: var(--acc); opacity: .08; pointer-events: none;
}
.pill-eyebrow {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); font-weight: 500;
  margin-bottom: 26px;
}
.pill-eyebrow em { font-style: normal; }
.pill-eyebrow svg { width: 30px; height: 30px; flex: 0 0 auto; }
.pill-body { position: relative; z-index: 1; max-width: 60ch; }
.pill-body h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.04; margin-bottom: 10px; }
.pill-body .d-sub { font-family: var(--serif); font-style: italic; color: var(--acc); font-size: clamp(1.2rem, 1.7vw, 1.4rem); margin-bottom: 28px; }
.pill-body p { color: var(--muted); margin-bottom: 16px; line-height: 1.62; }
.pill-body h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 26px 0 14px; }
.pill-body ul { list-style: none; display: grid; gap: 12px; }
.pill-body li { position: relative; padding-left: 26px; color: var(--muted); }
.pill-body li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

/* content reveal when a panel becomes active */
.pill-body .reveal-d { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.pill-panel.active .pill-body .reveal-d { opacity: 1; transform: none; }
.pill-panel.active .pill-body .reveal-d:nth-child(1) { transition-delay: .28s; }
.pill-panel.active .pill-body .reveal-d:nth-child(2) { transition-delay: .34s; }
.pill-panel.active .pill-body .reveal-d:nth-child(3) { transition-delay: .40s; }
.pill-panel.active .pill-body .reveal-d:nth-child(4) { transition-delay: .46s; }
.pill-panel.active .pill-body .reveal-d:nth-child(5) { transition-delay: .52s; }
.pill-panel.active .pill-body .reveal-d:nth-child(6) { transition-delay: .58s; }

/* control bar */
.pill-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(14px, 2vw, 22px) clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.pill-brand { font-family: var(--serif); font-size: 1rem; color: var(--muted); white-space: nowrap; }
.pill-wiz { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.pill-pos { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }
.pill-pos b { color: var(--acc); font-weight: 500; }
.pill-dots { display: flex; gap: 8px; }
.pill-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .18; transition: opacity .3s, transform .3s, background .3s; }
.pill-dots button.on { opacity: 1; background: var(--acc); transform: scale(1.35); }
.pill-cta { --bc: var(--acc); --fill: var(--deep-ocean); }
.pill-nav { display: flex; gap: 8px; }
.pill-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.pill-arrow:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.pill-arrow:active { transform: scale(.9); }
.pill-arrow:disabled { opacity: .3; cursor: not-allowed; }
.pill-arrow svg { width: 16px; height: 16px; }

.pill-close {
  position: absolute; top: 16px; right: 18px; z-index: 10;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); background: rgba(251, 247, 241, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.pill-close:hover { background: var(--acc); color: #fff; transform: rotate(90deg); }
.pill-close svg { width: 20px; height: 20px; }

/* --- mobile: flip to a vertical accordion so it still fills the screen --- */
@media (max-width: 680px) {
  .pill-track { flex-direction: column; }
  .pill-panel {
    --spine: 66px;
    border-right: none; border-bottom: 1px solid var(--line);
    box-shadow: inset 0 16px 30px -22px rgba(20,34,40,.5), inset 0 -16px 30px -22px rgba(20,34,40,.5);
  }
  .pill-panel:last-child { border-bottom: none; }
  .pill-spine { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0 22px; }
  .pill-spine__title { writing-mode: horizontal-tb; transform: none; font-size: 1.3rem; }
  .pill-spine__dot { margin-left: auto; }
  .pill-full { min-width: 0; padding: 26px 22px 30px; }
  .pill-full__num { font-size: 9rem; }
  .pill-brand, .pill-pos { display: none; }
  .pill-bar { padding: 12px 16px; gap: 10px; }
  .pill-wiz { gap: 12px; width: 100%; justify-content: space-between; }
  .pill-cta { font-size: .82rem; padding: .74em 1.15em; }
  .pill-close { top: 10px; right: 12px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .pill-stage, .pill-panel, .pill-full, .pill-spine, .pill-body .reveal-d { transition: none !important; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
.reveal[data-d="5"]{ transition-delay: .4s; }

/* line-by-line hero reveal */
.hero h1 .ln > span { transform: translateY(110%); transition: transform 1s var(--slow); }
.hero.ready h1 .ln > span { transform: translateY(0); }
.hero.ready h1 .ln:nth-child(1) > span { transition-delay: .15s; }
.hero.ready h1 .ln:nth-child(2) > span { transition-delay: .28s; }
.hero.ready h1 .ln:nth-child(3) > span { transition-delay: .41s; }
.hero__fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.ready .hero__fade { opacity: 1; transform: none; }
.hero.ready .hero__fade[data-d="1"]{ transition-delay:.55s; }
.hero.ready .hero__fade[data-d="2"]{ transition-delay:.66s; }
.hero.ready .hero__fade[data-d="3"]{ transition-delay:.77s; }

/* =========================================================
   GRAIN TEXTURE OVERLAY
   ========================================================= */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; mix-blend-mode: multiply; will-change: transform; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--steel-blue); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s var(--ease), opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--deep-ocean); transition: opacity .3s; }
body.cursor-hover .cursor { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(110,138,150,.12); border-color: transparent; }
body.cursor-hover .cursor-dot { opacity: 0; }
body.cursor-down .cursor { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@media (max-width: 900px), (hover: none) { .cursor, .cursor-dot { display: none; } }

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 60; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--steel-blue), var(--dusty-blue)); }

/* =========================================================
   HERO rings backdrop — anclados al símbolo (centro = logo M)
   ========================================================= */
.hero__symbol { position: relative; }
.hero__rings {
  position: absolute; inset: 0; display: grid; place-items: center;
  z-index: -1; pointer-events: none; color: var(--dusty-blue);
  transform: translateX(10vw); /* recentra el círculo sobre el logo M */
}
/* PC: SVG grande para llenar el fondo del hero, suave y tenue */
.hero__rings svg {
  width: min(135vh, 120vw); height: auto; max-width: none;
  opacity: .26; animation: spin 150s linear infinite;
}
/* Móvil: como antes — anillos ceñidos al símbolo, sin desplazamiento */
@media (max-width: 820px) {
  .hero__rings { transform: none; }
  .hero__rings svg { width: 150%; opacity: .5; }
}

/* =========================================================
   CAROUSEL (editorial · horizontal, scroll-snap)
   ========================================================= */
.carousel {
  background: linear-gradient(180deg, #efe9e2, #e7e0d7);
  color: var(--ink-dark);
  overflow: hidden;
}

.carousel__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.carousel__intro h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.carousel__intro em { font-style: italic; color: var(--steel-blue); }

.carousel__ctrl { display: flex; gap: 12px; flex-shrink: 0; }
.carousel__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(42,54,59,.22);
  display: grid; place-items: center; color: var(--ink-dark);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease), opacity .3s;
}
.carousel__arrow:hover { background: var(--ink-dark); color: #fff; border-color: var(--ink-dark); }
.carousel__arrow:active { transform: scale(.92); }
.carousel__arrow:disabled { opacity: .3; pointer-events: none; }

/* viewport aligned to the content column — the first card starts flush with the title,
   never cut nor faded; cards still dissolve on the right where more are hidden */
.carousel__viewport {
  margin-inline: 0;
}
.carousel__track {
  --fade: clamp(20px, 3vw, 56px);
  --fade-l: 0px;           /* left  fade — JS turns it on only once you scroll away from the start */
  --fade-r: var(--fade);   /* right fade — JS turns it off when you reach the end */
  display: flex; gap: clamp(16px, 2vw, 26px);
  list-style: none; margin: 0;
  padding-inline: 0; padding-block: 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;                 /* Firefox */
  -webkit-overflow-scrolling: touch;
  /* fade only on the side that still has hidden cards — the true first/last card sits flush */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.carousel__track::-webkit-scrollbar { display: none; } /* WebKit */
.carousel__track:focus-visible { outline: 2px solid var(--steel-blue); outline-offset: 4px; border-radius: var(--radius); }

.c-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 34vw, 380px);
  display: flex; flex-direction: column;
  min-height: clamp(320px, 40vw, 420px);
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -28px rgba(42,54,59,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
/* stretched link: whole card is clickable & focusable, keeps <li> list semantics */
.c-card__link {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius);
}
.c-card__link:focus-visible { outline: 2px solid var(--steel-blue); outline-offset: 4px; }
.c-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94,122,135,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(42,54,59,.5);
}
.c-card__media {
  margin: calc(clamp(24px, 2.4vw, 34px) * -1) calc(clamp(24px, 2.4vw, 34px) * -1) 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 10;
}
.c-card__index {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
  color: var(--dusty-blue);
}
.c-card__tag {
  margin-top: 18px;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 500; color: var(--steel-blue);
}
.c-card__title {
  margin-top: 10px;
  font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15;
}
.c-card__text { margin-top: 14px; color: var(--muted); font-size: .98rem; }
.c-card__meta {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 500; color: var(--ink-dark);
}
.c-card__meta .arrow { transition: transform .4s var(--ease); }
.c-card:hover .c-card__meta .arrow { transform: translateX(4px); }

/* thin progress rail reflecting scroll position */
.carousel__progress {
  margin-top: clamp(24px, 3vw, 38px);
  height: 2px; border-radius: 2px;
  background: rgba(42,54,59,.14); overflow: hidden;
}
.carousel__progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--steel-blue), var(--dusty-blue));
  transition: width .15s linear;
}

@media (max-width: 600px) {
  .carousel__head { flex-direction: column; align-items: flex-start; }
  .c-card { flex-basis: 82vw; }
  /* móvil como antes: sin difuminado en los bordes */
  .carousel__track { -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   3D tilt helper
   ========================================================= */
.cards { perspective: 1200px; }
.card { transform-style: preserve-3d; }

/* ---------- Keyboard focus (native cursor is hidden on hover devices) ---------- */
:focus-visible {
  outline: 2px solid var(--steel-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .ln > span, .hero__fade, .reveal-d { transition: none !important; opacity: 1 !important; transform: none !important; }
  .marquee__track, .scroll-cue .line::after, .blob,
  .hero__rings svg, .modal__aside .rings { animation: none !important; }
  .modal { transition: none !important; }
  .cursor, .cursor-dot { display: none !important; }
  body::after { display: none; }
}
