/* =============================================================
   EL MAGO GELOOS — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue: #004AAD;
  --blue-2: #003C8F;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --gray: #A6A6A6;
  --gray-2: #737373;
  --gray-3: #EFEFEC;
  --gray-4: #D9D9D6;

  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --condensed: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nav-h: 72px;
  --notice-h: 0px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;

  --frame-h: clamp(440px, 118vw, 560px);
  --title-fs: 18.5vw;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--notice-h));
}
body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

html.menu-open { overflow: hidden; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--white);
  font-size: 13px;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.t-light { font-family: var(--condensed); }
.t-bold  { font-family: var(--display); }

.sec-num, .sec-meta, .sheet-kicker, .ticket-row, .hero-top {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* =============================================================
   5. Componentes
   ============================================================= */

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
  /* Seguridad: se oculta sola a los 4.5s aunque falle el JS */
  animation: splashSafety .01s 4.5s forwards;
}
html:not(.js) .splash { display: none; }
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-inner { display: grid; justify-items: center; gap: .6rem; }
.splash-word {
  display: flex;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(84px, 20vw, 240px);
  line-height: 1.02;
  text-transform: uppercase;
  padding-top: .04em;
}
.splash-word span {
  display: inline-block;
  transform: translateY(105%);
  animation: splashIn .9s var(--ease-out) forwards;
}
.splash-word span:nth-child(2) { animation-delay: .06s; }
.splash-word span:nth-child(3) { animation-delay: .12s; }
.splash-word span:nth-child(4) { animation-delay: .18s; }
.splash-word span:nth-child(5) { animation-delay: .24s; }
.splash-word span:nth-child(6) { animation-delay: .30s; }
@keyframes splashIn { to { transform: translateY(0); } }
.splash-sub {
  font-family: var(--mono); font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  opacity: 0; animation: fadeIn .6s .5s forwards;
}
@keyframes fadeIn { to { opacity: .85; } }
.splash.is-out .splash-word span {
  transition: transform .7s var(--ease-in), filter .7s, opacity .7s;
  transform: translateY(-40%);
  filter: blur(8px);
  opacity: 0;
}

/* ---- Aviso destacado (se activa desde el panel) ---- */
html.has-notice { --notice-h: 40px; }
.notice {
  position: fixed; inset: 0 0 auto; z-index: 61;
  height: var(--notice-h);
  display: flex; align-items: center;
  background: var(--blue); color: var(--white);
  border-bottom: 2px solid var(--ink);
}
.notice[hidden] { display: none; }
.proj [hidden] { display: none; }
.notice-link {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: .7em;
  padding: 0 48px 0 var(--gutter);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.notice-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-star { flex: none; opacity: .75; }
.notice-arrow { flex: none; transition: transform .35s var(--ease-out); }
.notice-link:not([href]) .notice-arrow { display: none; }
.notice-link[href]:hover .notice-arrow { transform: translateX(4px); }
.notice-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 100%;
  font-size: 13px; color: var(--white); opacity: .75; transition: opacity .25s;
}
.notice-close:hover { opacity: 1; }

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  top: var(--notice-h);
  height: var(--nav-h);
  background: var(--white);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: 0 2px 0 var(--ink); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--display);
  font-size: 34px; line-height: 1;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: .005em;
  transition: color .3s;
}
.nav-links { display: none; align-items: center; gap: 2.4rem; }

/* ---- Selector de idioma en la barra ---- */
.lang {
  --w: 2.4em; --sep: 1.1em; --pad: 0px;
  position: relative;
  display: inline-flex; align-items: center;
  margin-left: auto; margin-right: 1.25rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
}
.lang button {
  width: var(--w); padding: .55rem 0;
  font: inherit; letter-spacing: inherit; text-align: center;
  color: var(--gray-2);
  transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.lang button:not([aria-pressed="true"]):hover { color: var(--blue); }
.lang-sep { width: var(--sep); text-align: center; color: var(--gray-4); }
.lang::after {                                   /* línea azul que se desliza al idioma activo */
  content: ""; position: absolute; left: calc(var(--pad) + .55em); bottom: .2rem;
  width: calc(var(--w) - 1.1em); height: 2px;
  background: var(--blue);
  transition: transform .45s var(--ease-out);
}
.lang[data-active="ca"]::after { transform: translateX(calc(var(--w) + var(--sep))); }
html.menu-open .lang button { color: rgba(255,255,255,.6); }
html.menu-open .lang button[aria-pressed="true"] { color: var(--white); }
html.menu-open .lang-sep { color: rgba(255,255,255,.4); }
html.menu-open .lang::after { background: var(--white); }
.nav-links a {
  position: relative;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem 0;
  transition: color .25s;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active, .nav-links a:not(.nav-cta):hover { color: var(--blue); }
.nav-links .nav-cta {
  background: var(--ink); color: var(--white);
  padding: .75rem 1.2rem;
  transition: background .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav-links .nav-cta:hover {
  background: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: .5rem 0;
  transition: color .3s;
}
.nav-toggle-icon { display: grid; gap: 6px; width: 26px; }
.nav-toggle-icon i { display: block; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
html.menu-open .nav { background: transparent; box-shadow: none; }
html.menu-open .logo, html.menu-open .nav-toggle { color: var(--white); }
html.menu-open .nav-toggle-icon i:first-child { transform: translateY(4px) rotate(45deg); }
html.menu-open .nav-toggle-icon i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---- Menú móvil ---- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--blue); color: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  display: flex; align-items: flex-end;
  padding-bottom: 2.5rem;
}
.menu.is-open, .menu:target { clip-path: inset(0 0 0 0); }
.menu-inner { display: grid; }
.menu a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display);
  font-size: clamp(44px, 12.5vw, 96px);
  line-height: 1.05;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding: .1em 0;
}
.menu a span { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; opacity: .7; }
.menu-foot { margin-top: 1.5rem; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.05rem 1.6rem;
  border: 2px solid currentColor;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, color .25s, border-color .25s;
}
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--blue); border-color: var(--blue); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--blue); }
.btn-white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.btn-white span { transition: transform .35s var(--ease-out); }
.btn-white:hover span { transform: translateX(4px); }

/* ---- Cabecera de sección ---- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "num meta" "title title";
  align-items: end;
  gap: .4rem 1rem;
  border-top: 2px solid currentColor;
  padding-top: 1rem;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec-num { grid-area: num; }
.sec-meta { grid-area: meta; text-align: right; color: var(--gray-2); }
.sec-title {
  grid-area: title;
  font-family: var(--display);
  font-size: clamp(60px, 12.4vw, 176px);
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: -.005em;
  margin-top: .32em;
}

/* =============================================================
   6. Secciones
   ============================================================= */

/* ---- Hero ---- */
.hero { padding-top: calc(var(--nav-h) + var(--notice-h) + 8px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero-top {
  height: calc(var(--frame-h) * .2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem;
  padding-bottom: 14px;
  color: var(--gray-2);
  max-width: 52%;
}
.hero-stage { position: relative; height: var(--frame-h); }
.hero-frame {
  position: absolute; inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(65% 85% at 12% 100%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(55% 70% at 78% 30%, rgba(255,255,255,.07), transparent 70%),
    linear-gradient(180deg, #AAAAAA 0%, #A7A7A7 55%, #ADADAD 100%);
}
/* Letras de fondo: enormes, pegadas y apenas más oscuras que el gris */
.hero-rows {
  position: absolute; inset: -20% 0 auto;
  display: grid; align-content: start;
  pointer-events: none;
  filter: blur(.6px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,.45) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,.45) 100%);
}
.hero-row {
  width: max-content;
  font-family: var(--display);
  font-size: calc(var(--frame-h) * .54);
  line-height: .92;
  letter-spacing: -.015em;
  word-spacing: -.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(0, 0, 0, .075);
}
.hero-row:nth-child(2) { margin-left: -1.15em; }
.hero-row:nth-child(3) { margin-left: -.4em; }
.hero-row:nth-child(4) { margin-left: -1.7em; }

/* Textura sutil: grano + motas de polvo, por encima de las letras */
.hero-texture { position: absolute; inset: 0; pointer-events: none; }
.hero-texture::before,
.hero-texture::after { content: ""; position: absolute; inset: 0; }
.hero-texture::before {
  background: url("assets/img/grain.svg") 0 0 / 240px 240px repeat;
  mix-blend-mode: overlay;
  opacity: .32;
}
.hero-texture::after {
  background: url("assets/img/dust.svg") center / cover no-repeat;
  opacity: .7;
}
@keyframes rowMove { to { transform: translateX(-50%); } }

.hero-title-wrap {
  position: absolute; z-index: 4;
  left: 0; bottom: 7%;
}
.hero-name {
  font-family: var(--display);
  font-size: calc(var(--title-fs) * .26);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
  text-align: right;
  padding-right: .5em;
  margin-bottom: .3em;
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 16px rgba(0,0,0,.45);
}
.hero-title {
  display: flex; flex-direction: column;
  background: var(--blue); color: var(--white);
  font-size: var(--title-fs);
  line-height: .9;
  text-transform: uppercase;
  padding: .14em .3em .06em .22em;
  white-space: nowrap;
}
.hero-title .t-light { font-size: .9em; letter-spacing: .01em; }

/* ---- Retrato recortado: la cabeza sale del marco ---- */
.hero-photo-clip {
  position: absolute; z-index: 3;
  top: calc(var(--frame-h) * -.3); right: 0; bottom: 0; left: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo {
  /* --ext: ancho que se añadió al completar el hombro (90 px de 2196 de alto) */
  --ph: calc(var(--frame-h) * 1.16);
  --ext: calc(var(--ph) * .041);
  position: absolute; right: calc(-14% - var(--ext)); bottom: calc(var(--frame-h) * -.05);
  height: var(--ph);
}
.hero-photo-move, .hero-photo img { height: 100%; }
.hero-photo img { position: relative; z-index: 1; width: auto; max-width: none; }
.hero-photo-move { position: relative; }


.hero-top span { visibility: hidden; }



.hero-bar {
  position: relative; z-index: 5;
  background: var(--ink); color: var(--white);
  height: 48px; overflow: hidden;
  display: flex; align-items: center;
}
.bar-track {
  display: flex; align-items: center; width: max-content;
  font-size: 13px; letter-spacing: .34em; text-transform: uppercase;
  animation: rowMove 42s linear infinite;
}
.bar-track span { padding: 0 1.6rem; white-space: nowrap; }
.bar-track i { font-style: normal; color: var(--blue); filter: brightness(1.6); font-size: 11px; }

/* ---- Manifiesto ---- */
.manifesto { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.sheet {
  position: relative;
  max-width: 1180px; margin-inline: auto;
  padding: clamp(56px, 9vw, 128px) clamp(20px, 6vw, 96px) clamp(48px, 7vw, 96px);
  background: #F3F1EC url("assets/img/paper.svg") center / cover no-repeat;
  text-align: center;
  rotate: -.5deg;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(0,0,0,.35);
}
.tape {
  position: absolute; top: -14px; width: 120px; height: 34px;
  background: rgba(225, 222, 210, .78);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.tape-l { left: 6%; rotate: -6deg; }
.tape-r { right: 6%; rotate: 5deg; }
.sheet-kicker { color: var(--gray-2); margin-bottom: clamp(20px, 3vw, 36px); }
.quote p {
  font-family: var(--condensed);
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: .94;
  text-transform: uppercase;
}
.q-line { display: block; text-wrap: balance; }
.nw { white-space: nowrap; }
.quote b { font-family: var(--display); font-weight: 400; }
.q-strike, .q-mark { position: relative; display: inline-block; }
.q-strike { transition: color .6s .5s; }
.q-strike::after {
  content: ""; position: absolute; left: -5%; right: -5%; top: 50%;
  height: .1em; background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-out) .4s;
}
.q-mark { z-index: 0; padding: 0 .08em; transition: color .4s 1.15s; }
.q-mark::before {
  content: ""; position: absolute; z-index: -1;
  inset: .02em -.02em -.04em;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-out) 1s;
}
.quote.is-on .q-strike { color: var(--gray); }
.quote.is-on .q-strike::after { transform: scaleX(1); }
.quote.is-on .q-mark { color: var(--white); }
.quote.is-on .q-mark::before { transform: scaleX(1); }
.sheet-sign {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2);
}

/* ---- Secciones genéricas ---- */
.section { padding: clamp(80px, 11vw, 150px) 0; }

/* ---- 01 Biografía ---- */
.bio-grid { display: grid; gap: clamp(48px, 7vw, 110px); align-items: center; }
.pcard-stage { display: grid; justify-items: center; gap: 1.2rem; perspective: 1600px; }
.pcard {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.pcard-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-out);
}
.pcard.is-flipped .pcard-inner { transform: rotateY(180deg); }
.pcard-face {
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 2px solid var(--ink);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 10px 10px 0 var(--ink);
}
.pcard-front { background: var(--white); }
.pcard-idx {
  position: absolute; z-index: 2;
  display: grid; justify-items: center;
  font-family: var(--display);
  font-size: 34px; line-height: .9;
  color: var(--blue);
}
.pcard-idx i { font-style: normal; font-size: 22px; line-height: 1; margin-top: 2px; }
.pcard-idx-tl { top: 12px; left: 12px; }
.pcard-idx-br { bottom: 12px; right: 12px; rotate: 180deg; }
.pcard-figure { position: absolute; inset: 7.8% 14%; width: 72%; height: 84.4%; max-width: none; }
.pcard-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 12px),
    var(--blue);
  padding: 14px;
}
.pcard-back-frame {
  position: absolute; inset: 14px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 8px;
  display: grid; place-items: center;
}
.pcard-back-logo {
  font-family: var(--display);
  font-size: 54px; line-height: 1;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--white);
  padding: .12em .28em .04em;
  rotate: -90deg;
}
.pcard-hint {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-2);
}

.bio-lead {
  font-family: var(--condensed);
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.bio-lead b { font-family: var(--display); font-weight: 400; }
.bio-lead .blue { color: var(--blue); }
.bio-text p { max-width: 58ch; }
.bio-text p + p { margin-top: 1.1em; }
.facts { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); }
.facts div {
  display: grid; grid-template-columns: minmax(8rem, 34%) 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--ink);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.facts dt { color: var(--gray-2); }
.facts dd { font-weight: 700; }

/* ---- 02 Proyectos ---- */
.projects { background: var(--ink); color: var(--white); }
.projects .sec-meta { color: var(--gray); }
.proj-list { border-top: 2px solid var(--white); }
.proj a {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  grid-template-areas: "num title arrow" ". desc desc" ". tags tags";
  gap: .6rem 1rem;
  align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  overflow: hidden;
}
.proj a::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--blue);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.proj a:hover::before, .proj a:focus-visible::before { transform: scaleY(1); }
.proj-num { grid-area: num; font-size: 13px; letter-spacing: .14em; color: var(--gray); transition: color .3s; }
.proj-title {
  grid-area: title;
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .9;
  text-transform: uppercase;
  transition: transform .6s var(--ease-out);
}
.proj-desc { grid-area: desc; max-width: 52ch; color: rgba(255,255,255,.78); transition: color .3s; }
.proj-tags { grid-area: tags; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); transition: color .3s; }
.proj-arrow {
  grid-area: arrow; align-self: center;
  font-size: clamp(24px, 3vw, 40px);
  transition: transform .5s var(--ease-out);
}
.proj a:hover .proj-title { transform: translateX(.18em); }
.proj a:hover .proj-arrow { transform: rotate(-45deg); }
.proj a:hover .proj-num, .proj a:hover .proj-tags, .proj a:hover .proj-desc { color: var(--white); }

/* ---- 03 Próximamente ---- */
.soon { background: var(--gray-3); overflow: hidden; }
.soon .sec-head { margin-bottom: 0; }
.soon-marquee { margin: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.soon-track {
  display: flex; width: max-content;
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 210px);
  line-height: 1;
  text-transform: uppercase;
  animation: rowMove 38s linear infinite;
}
.soon-track span {
  padding-right: .35em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.soon-track span.fill { color: var(--blue); -webkit-text-stroke: 0; }

.ticket-wrap { position: relative; isolation: isolate; max-width: 1040px; margin-inline: auto; }
/* Sombra sólida como capa propia (un filter: drop-shadow parpadeaba al repintar) */
.ticket-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translate(10px, 10px); pointer-events: none;
}
.ticket { display: grid; }
.ticket-main { background: var(--white); padding: clamp(24px, 4vw, 52px); }
.ticket-row {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--gray-2);
  padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}
.ticket-title {
  font-size: clamp(64px, 10vw, 150px);
  line-height: .86;
  text-transform: uppercase;
  margin: clamp(20px, 3vw, 32px) 0 1rem;
}
.ticket-title .t-bold { color: var(--blue); }
.ticket-text { max-width: 46ch; }
.ticket-data {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--ink);
}
.ticket-data div { padding: .9rem .8rem .2rem 0; }
.ticket-data div + div { border-left: 1px solid var(--ink); padding-left: .8rem; }
.ticket-data dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-2); }
.ticket-data dd { font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase; line-height: 1.2; }

/* Lista de shows (se rellena desde data/shows.json) */
.shows { margin-top: clamp(24px, 3vw, 36px); }
.shows-head, .shows-list { display: none; }
.shows.has-shows .shows-empty { display: none; }
.shows.has-shows .shows-list { display: block; list-style: none; border-top: 2px solid var(--ink); }
.shows-head span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-2); }
.show {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); grid-template-areas: "date place" "cta cta";
  align-items: center; gap: .9rem 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--ink);
}
.show-date { grid-area: date; display: grid; justify-items: start; line-height: 1; }
.show-day { font-family: var(--display); font-size: clamp(42px, 5vw, 64px); line-height: .9; color: var(--blue); }
.show-month, .show-year { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-2); white-space: nowrap; }
.show-month { margin-top: .4rem; }
.show-place { grid-area: place; display: grid; gap: .25rem; min-width: 0; }
.show-city {
  font-family: var(--display); font-size: clamp(26px, 3.2vw, 42px); line-height: 1; text-transform: uppercase;
  overflow-wrap: anywhere; transition: color .3s;
}
.show:hover .show-city { color: var(--blue); }
.show-venue { font-size: 12px; letter-spacing: .08em; color: var(--gray-2); overflow-wrap: anywhere; }
.show-cta { grid-area: cta; }
.show-btn { width: 100%; padding: .85rem 1.2rem; font-size: 12px; }
.show-btn span { transition: transform .35s var(--ease-out); }
.show-btn:hover span { transform: translateX(4px); }
.show-tag {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem 1.1rem; border: 2px dashed var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-2);
}
.show-tag.is-soldout { border-style: solid; color: var(--ink); }
.ticket-stub {
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px clamp(24px, 4vw, 52px);
  border-top: 2px dashed rgba(255,255,255,.7);
}
.stub-logo { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; }
.stub-code {
  flex: 1; height: 38px; max-width: 220px;
  background: repeating-linear-gradient(90deg,
    #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px,
    #fff 9px 12px, transparent 12px 14px, #fff 14px 15px, transparent 15px 19px);
  opacity: .9;
}
.stub-num { font-size: 12px; letter-spacing: .2em; }

.soon-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  max-width: 1040px; margin: clamp(56px, 7vw, 88px) auto 0;
  padding-top: 1.4rem; border-top: 2px solid var(--ink);
}
.soon-cta p { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1; }
.soon-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- 04 Contacto ---- */
.contact { background: var(--blue); color: var(--white); padding: clamp(80px, 11vw, 150px) 0; }
.contact-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.contact-head .sec-num { display: block; padding-top: 1rem; border-top: 2px solid var(--white); }
.contact-title {
  font-size: clamp(64px, 10vw, 150px);
  line-height: .88;
  text-transform: uppercase;
  margin: clamp(20px, 3vw, 32px) 0 clamp(20px, 3vw, 28px);
}
.contact-title .t-light { display: block; }
.contact-text { max-width: 40ch; opacity: .9; }
.contact-direct { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.4); }
.contact-direct li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.4);
  font-size: 14px;
}
.contact-direct li > span:first-child { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; padding-top: .1em; }
.contact-direct a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); }
.contact-direct a:hover { background-size: 100% 1px; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem;
  align-content: start;
  color-scheme: dark;
}
.field { grid-column: 1 / -1; display: grid; gap: .3rem; }
.field-half { grid-column: span 1; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .78; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 2px solid rgba(255,255,255,.45);
  border-radius: 0;
  padding: .55rem 0 .65rem;
  font-size: 16px;
  color: var(--white);
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") right 4px center no-repeat;
  padding-right: 24px;
}
.field select option { color: var(--ink); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .4rem; }
.form-status { font-size: 13px; max-width: 38ch; }
.form-status.is-ok { font-weight: 700; }
.form-legal { grid-column: 1 / -1; font-size: 11px; line-height: 1.6; opacity: .7; }
.form-legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-legal a:hover { opacity: 1; }
.form-status.is-ok::before { content: "✓ "; }
.form-status.is-error { color: #FFD9D4; }
.contact-form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 110px) 0 1.6rem; overflow: hidden; }
.footer-top {
  display: grid; gap: 2.4rem;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.footer-quote { font-family: var(--condensed); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; text-transform: uppercase; }
.footer-quote b { font-family: var(--display); font-weight: 400; color: var(--white); background: var(--blue); padding: 0 .12em; }
.footer-nav, .footer-contact { display: grid; gap: .5rem; align-content: start; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a, .footer-contact a { width: fit-content; opacity: .8; transition: opacity .25s, color .25s; }
.footer-nav a:hover, .footer-contact a:hover { opacity: 1; color: #6FA2FF; }
.footer-contact a:first-child { text-transform: none; letter-spacing: .04em; }
.footer-contact span { opacity: .5; }
.footer-word {
  display: flex; justify-content: space-between;
  font-family: var(--display);
  font-size: calc(min(100vw - 2 * var(--gutter), var(--maxw)) / 2.92);
  line-height: .8;
  text-transform: uppercase;
  padding-top: .06em;
  border-top: 2px solid var(--white);
}
.footer-word span { display: inline-block; transition: transform .5s var(--ease-bounce), color .3s; padding-top: .08em; }
.footer-word span:hover { transform: translateY(-.08em); color: var(--blue); filter: brightness(1.5); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.25);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6;
}
.footer-links { display: inline-flex; gap: 1.6rem; }
.footer-links a { transition: opacity .25s; }
.footer-links a:hover { opacity: 1; color: var(--white); }
.footer-login { transition: opacity .25s; opacity: .55; }
.footer-login:hover { opacity: 1; }

/* =============================================================
   7. Efectos
   ============================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: elementos con split nunca se quedan invisibles */
.reveal[data-split] { opacity: 1; transform: none; }

.hero-photo-move { will-change: transform; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  :root { --frame-h: clamp(460px, 92vw, 560px); --title-fs: 15vw; }
  .hero-photo { right: calc(-8% - var(--ext)); }
}

@media (min-width: 720px) {
  :root { --frame-h: clamp(440px, 62vw, 560px); --title-fs: 11vw; }
  .hero-top { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-content: flex-end; gap: .2rem 2.4rem; }
  .hero-top span { white-space: nowrap; }
  .hero-top span { visibility: visible; }
  .hero-top { height: calc(var(--frame-h) * .2); }
  .hero-title-wrap { bottom: 10%; }
  .hero-photo { right: calc(1% - var(--ext)); }
  .ticket { grid-template-columns: 1fr 210px; }
  .shows.has-shows .shows-head {
    display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1.5rem; padding-bottom: .6rem;
  }
  .shows-head span:last-child { text-align: right; }
  .show { grid-template-columns: 7.5rem minmax(0, 1fr) auto; grid-template-areas: "date place cta"; gap: 1.5rem; }
  .show-btn, .show-tag { width: auto; min-width: 11.5rem; }
  .ticket-wrap .ticket, .ticket-wrap::before {
    -webkit-mask:
      radial-gradient(circle 16px at calc(100% - 210px) 0, #0000 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle 16px at calc(100% - 210px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
            mask:
      radial-gradient(circle 16px at calc(100% - 210px) 0, #0000 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle 16px at calc(100% - 210px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-stub {
    flex-direction: column; justify-content: space-between;
    border-top: 0; border-left: 2px dashed rgba(255,255,255,.7);
    padding: 34px 24px;
  }
  .stub-logo { writing-mode: vertical-rl; rotate: 180deg; font-size: 64px; }
  .stub-code { flex: none; width: 100%; height: 44px; }
  .proj a {
    grid-template-columns: 4.5rem 1fr auto;
  }
}

@media (min-width: 960px) {
  :root { --frame-h: clamp(440px, 60vh, 620px); --title-fs: clamp(64px, 7.8vw, 132px); }
  .nav-links { display: flex; margin-left: auto; }
  .lang { --pad: 1.4rem; margin-left: 1.6rem; margin-right: 0; padding-left: var(--pad); border-left: 1px solid var(--gray-4); }
  .nav-toggle { display: none; }
  .menu { display: none; }
  .hero-top { max-width: 56%; }
  .hero-title-wrap { left: 4.5%; bottom: auto; top: 50%; translate: 0 -46%; }
  .hero-title { flex-direction: row; align-items: baseline; gap: .2em; padding: .16em .32em .04em; }
  .hero-name { font-size: calc(var(--title-fs) * .3); margin-bottom: .2em; text-shadow: none; }
  .hero-photo-clip { left: 38%; }
  .hero-photo { --ph: calc(var(--frame-h) * 1.24); right: calc(3% - var(--ext)); bottom: calc(var(--frame-h) * -.06); }
  .bio-grid { grid-template-columns: 5fr 7fr; }
  .proj a {
    grid-template-columns: 5rem minmax(0, 1.25fr) minmax(0, 1fr) 3rem;
    grid-template-areas: "num title desc arrow" "num title tags arrow";
    align-items: center;
    gap: .4rem 2rem;
  }
  .proj-desc { align-self: end; font-size: 14px; }
  .proj-tags { align-self: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-form { padding-top: 3.4rem; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .hero-photo-clip { left: 42%; }
  .hero-photo { right: calc(14% - var(--ext)); }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-word span { animation-duration: .01s; }
}
