/* =========================================================
   raul.concepts — Portfolio
   Paleta y tipografías según manual de marca (Stylish 3.0)
   ========================================================= */

@font-face {
  font-family: "Thunder";
  src: url("../assets/fonts/Thunder-VF.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Marca — Stylish 3.0 */
  --cream: #F6F5E9;   /* neutro: fondos y composiciones limpias */
  --ink: #000;        /* negro puro en toda la web */
  --blue: #588CDD;    /* identidad */
  --yellow: #F2C94C;  /* acento */
  --ink-2: #000;

  /* Proyectos */
  --wine: #6A1C23;
  --pink: #F2A6B3;
  --sage: #EDEFCB;
  --green: #5F7F45;

  --fg: var(--ink);
  --bg: var(--cream);
  --line: rgba(0, 0, 0, .14);

  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --thunder: "Thunder", "Impact", "Arial Narrow", sans-serif;
  --logo: "Poppins", var(--sans);

  /* Grid de la web (la misma del hero): 8 columnas, margen 20px, gutter 50px */
  --pad: 20px;
  --gutter: 50px;
  --cols: repeat(8, minmax(0, 1fr));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --radius: clamp(14px, 1.4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
picture { display: contents; } /* <picture> no altera la maquetación: manda la <img> de dentro */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--blue); color: var(--cream); }

/* Thunder: uso puntual, siempre en mayúsculas y en black */
.thunder, .line--thunder, .row__name, .case__title, .ts-thunder {
  font-family: var(--thunder); font-weight: 900; text-transform: uppercase; letter-spacing: 0;
}
.mono { font-size: .92rem; letter-spacing: -.01em; }
.mono-s { font-size: .78rem; letter-spacing: .02em; text-transform: lowercase; opacity: .7; }
.eyebrow { font-size: .85rem; letter-spacing: .02em; opacity: .65; margin-bottom: 2rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.lead em { color: var(--blue); font-size: 1.12em; }
strong { font-weight: 600; }

/* ---------- Grid ---------- */
.grid, .hero__grid, .manifesto, .case__intro, .gallery, .personal, .traits, .personal__process,
.swatches, .adlara, .about__grid, .contact__top {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter);
}
/* los hijos de la grid pueden encogerse por debajo de su contenido */
.grid > *, .hero__grid > *, .manifesto > *, .case__intro > *, .gallery > *, .personal > *, .traits > *,
.personal__process > *, .swatches > *, .adlara > *, .about__grid > *, .contact__top > * { min-width: 0; }

/* ---------- Barra de desplazamiento ---------- */
/* Se oculta la nativa (su carril siempre tiene fondo) y se dibuja una propia sobre la página */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sbar { position: fixed; top: 0; right: 0; bottom: 0; width: 14px; z-index: 180; }
.sbar__thumb {
  position: absolute; right: 3px; top: 0; width: 6px; min-height: 40px; border-radius: 6px;
  background: var(--sbar, #000); opacity: .55;
  transition: background-color .35s ease, opacity .3s ease, width .2s ease;
  cursor: grab;
}
.sbar:hover .sbar__thumb, .sbar.is-active .sbar__thumb { opacity: .9; width: 8px; }
.sbar.is-dragging .sbar__thumb { cursor: grabbing; }
@media (hover: none), (pointer: coarse) { .sbar { display: none; } }




/* ---------- Loader (solo en la home) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--cream);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
/* Solo el icono del águila, centrado y grande; se dibuja trazo a trazo */
.loader__eagle { position: relative; z-index: 1; width: min(46vw, 320px); aspect-ratio: 728 / 598; color: var(--ink); overflow: visible; will-change: transform; }
/* capa negra que se abre en círculo desde el centro del águila */
.loader__dot { position: absolute; inset: 0; background: #000; clip-path: circle(0px at 50% 50%); will-change: clip-path; }
.eagle-fill { fill: currentColor; fill-opacity: 0; }
.eagle-line { fill: none; stroke: currentColor; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
/* llegada con View Transition: sin loader ni cortina */
.vt-arrival .loader, .vt-arrival .curtain { display: none !important; }

/* ---------- Cortina de transición entre páginas ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 210; background: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-io);
}
.curtain img { width: min(60vw, 420px); opacity: 0; translate: 0 20px; transition: opacity .4s ease .25s, translate .6s var(--ease) .25s; }
body.is-leaving .curtain { clip-path: inset(0 0 0 0); pointer-events: auto; }
body.is-leaving .curtain img { opacity: 1; translate: 0 0; }
.curtain.is-cover { clip-path: inset(0 0 0 0); transition: none; }
.curtain.is-cover img { opacity: 1; translate: 0 0; transition: none; }
.curtain.is-lifting { clip-path: inset(0 0 100% 0); transition: clip-path .95s var(--ease-io) .1s; }
.curtain.is-lifting img { opacity: 0; translate: 0 -20px; transition: opacity .35s ease, translate .6s var(--ease); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0;
  background: var(--blue);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s;
  will-change: transform;
}
.cursor__label { font-size: .8rem; font-weight: 500; color: var(--cream); opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(88,140,221,.4); }
.cursor.is-visible { opacity: 1; }
.cursor.on-blue { background: var(--yellow); }
.cursor.on-blue .cursor__label { color: var(--ink); }
.cursor.on-blue.is-link { background: rgba(242,201,76,.5); }
/* Solo el punto: se oculta la flecha del sistema en dispositivos con ratón */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header isla ---------- */
.island {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  translate: -50% 0;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: 7px 7px 7px 18px; border-radius: 999px;
  font-family: var(--logo); font-weight: 300; font-size: 15px; letter-spacing: -.01em;
  color: var(--ink);
  background: rgba(246, 245, 233, .72);
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: color .4s ease, background .4s ease, border-color .4s ease, padding .5s var(--ease), gap .5s var(--ease), translate .7s var(--ease), opacity .5s;
  white-space: nowrap;
}
.island.is-inv { color: var(--cream); background: rgba(0, 0, 0, .72); border-color: rgba(246, 245, 233, .14); }
.island.is-compact { gap: clamp(12px, 1.8vw, 28px); padding-top: 5px; padding-bottom: 5px; }
.island.is-hidden { translate: -50% calc(-100% - 24px); }
body.is-loading .island { opacity: 0; }
body.is-landing .island .brand { opacity: 0; }
/* Logotipo completo del manual (águila + raul.concepts + estrella) */
.brand { position: relative; display: block; line-height: 0; }
.logo { display: block; height: 21px; width: auto; transition: opacity .4s ease; }
.logo--w { position: absolute; left: 0; top: 0; opacity: 0; }
.island.is-inv .logo--b { opacity: 0; }
.island.is-inv .logo--w { opacity: 1; }
.island__cta {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .62em 1.15em; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 500; font-size: 14px;
  transition: background .4s, color .4s;
}
.island__cta:hover { background: var(--blue); }
.island.is-inv .island__cta { background: var(--cream); color: var(--ink); }
.island.is-inv .island__cta:hover { background: var(--yellow); }
.island__cta .dot { width: 7px; height: 7px; }

/* ---------- Pie fijo al estilo del manual ---------- */
.frame {
  position: fixed; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad);
  font-family: var(--logo); font-weight: 300; font-size: 15px; letter-spacing: -.01em;
  color: var(--fg-frame, var(--ink));
  transition: color .4s ease;
  pointer-events: none;
}
.frame > * { pointer-events: auto; }
.frame--bottom { bottom: 0; }
.frame__center { text-align: center; }
.frame--bottom .frame__center span { display: inline-block; transition: opacity .3s, transform .3s; }
.frame--bottom .frame__center span.swap { opacity: 0; transform: translateY(6px); }
.frame--bottom .eagle { justify-self: end; }
.frame__star { width: 20px; height: 24px; color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

.eagle { position: relative; display: inline-block; width: 22px; height: 22px; }
.eagle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.eagle--w { opacity: 0; }
.is-inv .eagle--b { opacity: 0; }
.is-inv .eagle--w { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-btn { display: none; width: 36px; height: 36px; position: relative; }
.menu-btn span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--blue); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); gap: .2em;
  font-size: clamp(3rem, 14vw, 6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  clip-path: circle(0% at 100% 0%); transition: clip-path .8s var(--ease-io);
}
.mobile-menu-open .mobile-menu, .menu-open .mobile-menu { clip-path: circle(150% at 100% 0%); }
.mobile-menu a { font-family: var(--thunder); font-weight: 900; text-transform: uppercase; letter-spacing: 0; font-size: 1.5em; line-height: .9; }
.mobile-menu a em { font-family: var(--serif); text-transform: none; color: var(--yellow); }
.mobile-menu__claim { font-weight: 400; font-size: 2rem; letter-spacing: 0; margin-top: 1.5rem; color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.5em; border-radius: 999px; font-weight: 500; letter-spacing: -.01em;
  transition: background .4s, color .4s, transform .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 20px; transition: transform .8s var(--ease); }
.btn:hover svg { transform: rotate(180deg) scale(1.15); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--blue); }
.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue:hover { background: var(--yellow); color: var(--ink); }
.btn--xl { font-size: clamp(1.2rem, 2vw, 1.8rem); padding: 1.1em 1.8em; }
.btn--xl svg { width: 24px; height: 28px; }
/* Centrado exacto de las mayúsculas de Thunder: la caja del texto se recorta a la altura de mayúscula
   (de la línea base al alto de las capitales), así no depende de cómo cada navegador lea las métricas de la fuente */
.btn--xl .thunder { font-size: 1.7em; line-height: 1; padding-block: .12em; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .btn--xl .thunder { line-height: .8; padding-block: .16em 0; }
}

.ulink { position: relative; display: inline-block; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.ulink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- Split / Reveal ---------- */
/* La máscara de cada palabra (overflow: hidden) se agranda por los lados y por abajo con padding
   y se compensa con margen negativo: así no recorta los glifos que sobresalen de su caja
   (última letra con tracking negativo, cursivas, «¿», descendentes) y el espaciado no cambia */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .14em .2em; margin: -.04em -.14em -.2em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-split].is-in .w > span { transform: none; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO (fondo negro puro) ---------- */
.hero {
  position: relative; min-height: 100svh; background: #000; color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 90px; overflow: hidden;
}
/* Meta superior: centrada en vertical con la isla del header (top 14px, ~48px de alto) */
.hero__meta {
  position: absolute; top: 14px; left: var(--pad); right: var(--pad); height: 50px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: clamp(13px, 1vw, 17px); line-height: 1.2; letter-spacing: -.02em; z-index: 3;
  opacity: 0; transition: opacity 1s ease .6s;
}
.is-ready .hero__meta { opacity: 1; }
.hero__loc { opacity: .45; }
/* Tiempo actual en Zaragoza, junto a la ubicación */
.weather { display: inline-flex; align-items: center; gap: .35em; margin-left: .7em; opacity: .75; vertical-align: -.15em; animation: weather-in .8s var(--ease) both; }
.weather[hidden] { display: none; }
.weather__icon { width: 1.15em; height: 1.15em; color: var(--yellow); flex: none; }
.weather__temp { font-variant-numeric: tabular-nums; }
@keyframes weather-in { from { opacity: 0; translate: 0 4px; } }
.hero__meta .status { display: inline-flex; align-items: center; gap: .5em; }

/* Rejilla: columna de texto y foto con el mismo ancho y márgenes simétricos */
.hero__grid {
  align-items: center; width: 100%;
}
/* Texto en las columnas 2–4 y foto en las 5–7 */
/* el texto (y la estrella arrastrable) quedan siempre por encima de la foto */
.hero__text { min-width: 0; grid-column: 2 / 5; will-change: translate; position: relative; z-index: 2; }
.hero__photo { grid-column: 5 / 8; will-change: translate; z-index: 1; }
.hero__claim {
  font-size: clamp(1.6rem, 2.5vw, 3.2rem); line-height: 1; color: var(--yellow);
  margin-bottom: .25em;
  opacity: 0; translate: 0 16px; transition: opacity 1s ease .2s, translate 1.2s var(--ease) .2s;
}
.is-ready .hero__claim { opacity: 1; translate: 0 0; }

.hero__title { font-family: var(--thunder); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: 0; }
.hero__title .line { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.is-ready .hero__title .line > span { transform: none; }
.line--right { text-align: right; }
.hero__title .ch { font-weight: 900; font-variation-settings: 'wght' var(--w, 900); }
.hero__eagle { display: inline-block; height: .74em; width: auto; vertical-align: baseline; margin: 0 .07em -.02em 0; }
.line--serif { overflow: visible !important; line-height: .58; padding-top: 0 !important; margin-top: -.26em !important; }
.line--serif em { font-size: .56em; line-height: 1; text-transform: none; letter-spacing: -.02em; color: var(--cream); }
.hero__star {
  width: .5em; height: .62em; color: var(--yellow);
  vertical-align: baseline; margin-left: -.16em; translate: 0 .06em;
  position: relative; z-index: 5;
  cursor: grab; touch-action: none; user-select: none;
  transition: scale .3s var(--ease), filter .3s;
}
/* La estrella no se mueve sola: el usuario puede arrastrarla */
.hero__star:hover { scale: 1.08; }
.hero__star.is-dragging { cursor: grabbing; scale: 1.15; filter: drop-shadow(0 12px 18px rgba(242,201,76,.35)); }

.hero__scroll {
  /* «SCROLL» y, a la derecha, un carril vertical por el que cae un tramo amarillo; centrado con el titular */
  display: flex; width: fit-content; margin-inline: auto; flex-direction: row; align-items: center; gap: 0; margin-top: clamp(36px, 4vw, 64px);
  font-size: clamp(11px, calc(.95vw - 2px), 14px); font-weight: 300; letter-spacing: .26em; text-transform: uppercase; color: var(--cream);
  opacity: 0; translate: 0 10px; transition: opacity 1s ease 1s, translate 1s var(--ease) 1s;
}
.is-ready .hero__scroll { opacity: .9; translate: 0 0; }
.hero__scroll:hover { opacity: 1; }
.hero__scroll-txt { margin-right: -.26em; } /* compensa el espaciado de la última letra para centrar ópticamente */
.hero__scroll-line { position: relative; flex: none; width: 3px; height: 5.4em; margin-left: 2.6em; border-radius: 2px; background: rgba(246,245,233,.2); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--yellow); animation: fall 2.4s var(--ease-io) infinite; }
@keyframes fall { 0% { translate: 0 0; } 55% { translate: 0 360%; } 56% { translate: 0 360%; opacity: 0; } 57% { translate: 0 0; opacity: 0; } 70%, 100% { translate: 0 0; opacity: 1; } }

.hero__services {
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  margin-top: clamp(10px, 1vw, 20px);
  font-size: clamp(14px, 1.05vw, 20px); letter-spacing: -.03em; color: var(--blue);
  opacity: 0; transition: opacity 1s ease .7s;
}
.is-ready .hero__services { opacity: 1; }
.hero__services li { white-space: nowrap; }

.hero__photo {
  position: relative; overflow: hidden; min-width: 0; aspect-ratio: 670 / 797;
  border-radius: 6.4% / 5.4%;
  clip-path: inset(100% 0 0 0 round 40px); transition: clip-path 1.4s var(--ease-io) .15s;
}
.is-ready .hero__photo { clip-path: inset(0 0 0 0 round 0); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 1.8s var(--ease) .15s; }
.is-ready .hero__photo img { scale: 1.02; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(88,140,221,.6); animation: pulse 2s infinite; }
.island__cta .dot { background: var(--yellow); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(88,140,221,0); } 100% { box-shadow: 0 0 0 0 rgba(88,140,221,0); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(100px, 16vw, 240px) var(--pad); align-items: start; }
.manifesto > .eyebrow { grid-column: 1 / 2; padding-top: 1.2em; }
.manifesto__text { grid-column: 2 / 8; }
.manifesto__foot { grid-column: 2 / 8; }
.manifesto__text {
  font-size: clamp(1.9rem, 4.6vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.04;
}
.manifesto__text em { color: var(--blue); font-size: 1.1em; }
.manifesto__text .wd { opacity: .14; transition: opacity .35s linear; }
.manifesto__text .wd.on { opacity: 1; }
.manifesto__foot { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(40px, 6vw, 90px); flex-wrap: wrap; gap: 1rem; }
.sign-note { font-size: clamp(1.8rem, 3vw, 3rem); color: var(--blue); line-height: 1; }

/* ---------- Trabajos seleccionados: abanico de tarjetas ---------- */
.works { background: var(--ink); color: var(--cream); padding: clamp(100px, 12vw, 180px) var(--pad); position: relative; overflow: hidden; --line: rgba(246,245,233,.16); }
.display { font-size: clamp(2.8rem, 8vw, 9rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; }
.display em { color: var(--blue); font-size: 1.1em; }
.works__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(40px, 5vw, 80px); }
.works__count { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.4rem); color: var(--yellow); }

/* La tarjeta central ocupa 2 columnas de la grid */
.fan { --card: calc((100vw - 2 * var(--pad) - 7 * var(--gutter)) / 8 * 2 + var(--gutter)); position: relative; }
.fan__stage { position: relative; height: calc(var(--card) * 1.22); touch-action: pan-y; cursor: grab; user-select: none; }
.fan__stage.is-grabbing { cursor: grabbing; }
.fan__card {
  position: absolute; left: 50%; top: 4%; width: var(--card); aspect-ratio: 1;
  margin-left: calc(var(--card) / -2);
  border-radius: clamp(16px, 1.6vw, 28px); overflow: hidden;
  background: var(--bg, #000);
  border: 3px solid rgba(246,245,233,.55);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transition: border-color .5s;
  will-change: transform, opacity, filter;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: scale 1s var(--ease); }
/* la imagen "contain" ocupa exactamente su propio rectángulo (sin huecos): así la portada y la cabecera
   del caso tienen la misma forma y la transición entre ambas es un único zoom continuo */
.fan__card--contain img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 2 * var(--inset, 6%)); max-height: calc(100% - 2 * var(--inset, 6%)); object-fit: contain; }
.fan__card.is-center { border-color: rgba(246,245,233,.85); }
.fan__card:hover img { scale: 1.04; }
.fan__card.is-hidden { pointer-events: none; }

.fan__info { display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); align-items: center; margin-top: clamp(10px, 2vw, 30px); }
.fan__meta { grid-column: 3 / 7; text-align: center; transition: opacity .35s ease, translate .35s ease; }
.fan__meta.is-swap { opacity: 0; translate: 0 8px; }
.fan__name { font-family: var(--thunder); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 7vw, 8rem); line-height: .85; padding-top: .06em; margin: .25rem 0 .5rem; }
.fan__tag { font-size: .95rem; opacity: .8; }
.fan__tag em { color: var(--yellow); }
.fan__cta { margin-top: 1.4rem; }
.fan__arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(246,245,233,.3);
  font-size: 1.2rem; display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s;
}
.fan__arrow:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.fan__arrow svg { width: 40%; height: 40%; display: block; }
.fan__prev { grid-column: 2 / 3; justify-self: start; }
.fan__next { grid-column: 7 / 8; justify-self: end; }

/* ---------- Case studies (común) ---------- */
.case { padding: clamp(110px, 12vw, 180px) var(--pad) clamp(80px, 10vw, 160px); position: relative; }
.case__top { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.case__num { font-variant-numeric: tabular-nums; opacity: .7; }
.case__title {
  font-size: clamp(4rem, 30vw, 40rem); line-height: .78;
  margin: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 90px); white-space: nowrap; padding-top: .04em;
}
.case__title--sm { font-family: var(--sans); text-transform: none; font-size: clamp(3rem, 9vw, 10rem); margin: 0 0 1.5rem; font-weight: 600; letter-spacing: -.06em; padding: 0; }
.case__title--script { font-family: var(--serif); text-transform: none; font-style: italic; font-weight: 400; letter-spacing: -.04em; font-size: clamp(5rem, 24vw, 30rem); line-height: .75; }
/* Thunder con interlineado tan cerrado (.78) sobresale por arriba: la máscara de la animación deja más aire arriba */
.case__title[data-split] .w { padding-top: .18em; margin-top: -.18em; }
/* La cursiva de Instrument Serif dibuja fuera de su caja (sobre todo la «A» inicial): un pequeño colchón
   dentro de la palabra hace que el ajuste al ancho (data-fit) lo tenga en cuenta y nada quede cortado */
.case__title--script[data-split] .w > span { padding-inline: .12em .07em; }
.case--valltrez .case__kicker em { color: var(--yellow); }

.case__intro { row-gap: 2rem; margin-bottom: clamp(50px, 8vw, 120px); align-items: start; }
.case__quote { font-size: clamp(1.8rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.case__quote span { display: block; font-size: .85rem; letter-spacing: .02em; opacity: .6; margin-top: 1rem; font-family: var(--sans); }
.case__quote { grid-column: 1 / 3; }
.case__body { grid-column: 3 / 7; }
.case__intro > .case__meta { grid-column: 7 / 9; }
.case__body p + p { margin-top: 1.2rem; opacity: .8; }
.case__meta { display: grid; gap: 1rem; font-size: .9rem; }
.case__meta div { border-top: 1px solid var(--line); padding-top: .7rem; }
.case__meta dt { font-size: .75rem; opacity: .55; text-transform: lowercase; letter-spacing: .03em; margin-bottom: .2rem; }
.case__divider { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: 14px; margin: clamp(60px, 8vw, 120px) 0 clamp(20px, 2vw, 30px); font-size: clamp(1.4rem, 2.6vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; }

/* Galerías: siempre sobre las 8 columnas de la grid */
.gallery { row-gap: var(--gutter); margin-bottom: var(--gutter); align-items: start; }
.g--full { grid-column: 1 / -1; }
.g--half { grid-column: span 4; }
.g--quarter { grid-column: span 2; }
.gallery--4 > .g { grid-column: span 2; }
.gallery--2 > .g { grid-column: span 4; }
.gallery--3 > .g:nth-child(1) { grid-column: 2 / 4; }
.gallery--3 > .g:nth-child(2) { grid-column: 4 / 6; }
.gallery--3 > .g:nth-child(3) { grid-column: 6 / 8; }
.g { position: relative; cursor: zoom-in; }
.g img, .card img { width: 100%; height: auto; border-radius: var(--radius); transition: transform 1.2s var(--ease), filter .6s; }
.g figcaption, .card figcaption { font-size: .78rem; letter-spacing: .02em; opacity: .65; margin-top: .7rem; display: flex; align-items: center; gap: .5em; }
.g figcaption::before, .card figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.g:hover img { transform: scale(.985); }
.g--quarter img { aspect-ratio: 1; object-fit: cover; }
.g--strip { margin: var(--gutter) 0; }

/* ---------- 01 Valltrez ---------- */
.case--valltrez { background: #000; color: var(--cream); --line: rgba(246,245,233,.16); }
.case--valltrez .case__title { color: var(--cream); }
.case--valltrez .case__quote em { color: #E07A4A; }


/* ---------- 02 Togethr ---------- */
.case--togethr { background: var(--wine); color: #FAF0EB; --line: rgba(250,240,235,.2); overflow: hidden; }
.case--togethr .case__title { color: var(--pink); }
.case--togethr .case__quote em { color: var(--pink); }
.case--togethr .gallery--3 img { aspect-ratio: 1819/2551; object-fit: cover; }
.gallery--togethr > .g { grid-column: span 2; }
.gallery--togethr .g:nth-child(1), .gallery--togethr .g:nth-child(2) { margin-top: 12%; }

/* ---------- 03 Personal ---------- */
.case--personal { background: var(--blue); color: var(--cream); --line: rgba(246,245,233,.3); overflow: hidden; }
.case--personal .case__title em { color: var(--yellow); font-size: 1.1em; }
.case--personal .lead strong { color: var(--yellow); font-weight: 600; }
.personal { align-items: center; padding: clamp(50px, 7vw, 110px) 0; }
.personal__mark { grid-column: 1 / 5; position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; justify-self: center; }
.personal__text { grid-column: 5 / 9; }
.personal__circle { position: absolute; inset: 0; border-radius: 50%; background: #4C7FD0; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(246,245,233,.25); }
.personal__circle img { width: 58%; transform: translateX(-3%); filter: drop-shadow(0 30px 40px rgba(20,40,80,.25)); }
.personal__star { position: absolute; right: 2%; top: 4%; width: 18%; height: 22%; color: var(--yellow); animation: spin 16s linear infinite; }
.case__logo { margin: 0 0 clamp(24px, 3vw, 40px); font-size: 1.5em; } /* tamaño que tenía como h2: al pasar a h1 no cambia nada visual */
.case__logo img { width: 100%; max-width: 720px; height: auto; }
.personal__text p + p { margin-top: 1.2rem; opacity: .85; }
.traits { list-style: none; border-top: 1px solid var(--line); }
.traits li:nth-child(1) { grid-column: 1 / 4; }
.traits li:nth-child(2) { grid-column: 4 / 7; }
.traits li:nth-child(3) { grid-column: 7 / 9; }
.traits li { padding: clamp(20px, 2.5vw, 36px) 0; }
.traits span { font-family: var(--serif); font-size: 1.2rem; opacity: .7; }
.traits h3 { font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: .6rem 0 .8rem; }
.traits h3 em { color: var(--yellow); }
.traits p { opacity: .8; font-size: .95rem; max-width: 30ch; }
.traits li:nth-child(2) p { max-width: none; }
@media (min-width: 761px) { .traits li:nth-child(2) p { white-space: nowrap; } }
.personal__process { row-gap: var(--gutter); margin-top: clamp(50px, 7vw, 100px); }
.personal__process .card { grid-column: span 4; }
.personal__process .card:first-child { grid-column: 1 / -1; }
.card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 46px); cursor: zoom-in; }
.card img { border-radius: 6px; }
.card:hover img { transform: scale(1.02); }
.card--strip { cursor: default; padding: clamp(14px, 2vw, 28px); }
.strip { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 140px); min-height: clamp(56px, 6vw, 110px); color: #000; list-style: none; }
.strip--user { gap: .25em; font-family: var(--logo); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }
.strip__eagle { width: 1.06em; height: .87em; flex: none; translate: 0 .06em; }
.strip__star { width: .68em; height: .86em; flex: none; translate: 0 -.04em; }
.strip--type { font-size: clamp(1.3rem, 2.4vw, 2.6rem); line-height: 1; background: #F7F4F2; border-radius: 6px; }
.strip__poppins { font-family: var(--logo); font-weight: 500; letter-spacing: -.04em; }
.strip__serif { font-family: var(--serif); }
.strip--palette { gap: 0; padding: 6px; background: #383838; border-radius: 6px; }
.strip--palette li { flex: 1; display: grid; place-items: center; align-self: stretch; padding: .4em .6em; background: var(--c); color: var(--t); font-family: var(--logo); font-style: italic; font-size: clamp(.95rem, 2vw, 2rem); letter-spacing: -.04em; }
.evolution { margin-top: clamp(50px, 7vw, 100px); }
.evolution .mono-s { opacity: .85; margin-bottom: 1rem; }
.swatches { row-gap: var(--gutter); }
.sw { grid-column: span 2; }
.sw { border-radius: var(--radius); aspect-ratio: 1.6; padding: clamp(14px, 2vw, 28px); display: flex; flex-direction: column; justify-content: space-between; transition: transform .6s var(--ease); }
.sw:hover { transform: translateY(-8px) rotate(-1.5deg); }
.sw span { font-size: clamp(1.1rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; }
.sw b { font-weight: 400; font-size: clamp(.9rem, 1.2vw, 1.2rem); }
.sw--base { background: var(--cream); color: var(--ink); }
.sw--ink { background: #000; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246,245,233,.35); }
.sw--id { background: var(--blue); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246,245,233,.6); }
.sw--ac { background: var(--yellow); color: var(--ink); }
.type-specimen { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3em 1em; margin-top: clamp(30px, 4vw, 60px); line-height: 1; }
.ts-thunder { font-size: clamp(3.4rem, 9vw, 9.4rem); color: var(--yellow); line-height: .8; }
.ts-serif { font-size: clamp(2.4rem, 6vw, 6.4rem); }
.ts-sans { font-size: clamp(2rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -.05em; }
.star-note { border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 100px); padding-top: clamp(24px, 3vw, 40px); align-items: start; }
.star-note__title { grid-column: 1 / 4; display: flex; align-items: center; gap: .35em; font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.star-note__title em { color: var(--yellow); }
.star-note__title svg { width: .7em; height: .88em; color: var(--yellow); flex: none; }
.star-note p { grid-column: 4 / 9; max-width: 58ch; }
.star-note--dot { margin-top: clamp(30px, 4vw, 60px); }
.star-note__dot { width: .3em; height: .3em; margin: 0 .2em 0 .2em; border-radius: 50%; background: var(--yellow); flex: none; align-self: flex-end; margin-bottom: .14em; }
@media (max-width: 1024px) { .star-note__title, .star-note p { grid-column: 1 / -1; } .star-note { row-gap: 1.2rem; } }
.note { font-size: .82rem; opacity: .7; margin-top: clamp(30px, 4vw, 50px); max-width: 60ch; }

/* Capturas web dentro de un marco de navegador mínimo */
.g--web { background: #F7F2EC; border-radius: var(--radius); overflow: hidden; padding: 0; }
.g--web .browser { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #EFE7DF; color: #6A1C23; font-size: .7rem; letter-spacing: .01em; }
.g--web .browser i { width: 9px; height: 9px; border-radius: 50%; background: rgba(106,28,35,.25); flex: none; }
.g--web .browser b { font-weight: 400; margin-left: 10px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g--web img { border-radius: 0; display: block; }
.g--web figcaption { margin: 0; padding: .75rem 14px .8rem; background: var(--wine); color: #FAF0EB; }
.case--togethr .case__divider a { font-size: .85rem; }

/* ---------- 05 Tuco ---------- */
/* Reels: se reproducen en silencio; al pulsarlos se abren en el visor a pantalla completa con sonido */
.g--video { position: relative; cursor: pointer; }
.g--video:focus-visible { outline: 2px solid #FFEC00; outline-offset: 4px; border-radius: var(--radius); }
.reelbox { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 64px 20px 28px;
  background: rgba(0,0,0,.94); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s, visibility .45s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reelbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.reelbox video { height: 100%; max-height: calc(100svh - 92px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000;
  transform: scale(.96); transition: transform .6s var(--ease); }
.reelbox.is-open video { transform: none; }
.reelbox__close { position: absolute; z-index: 2; top: 6px; right: calc(var(--pad) - 12px); padding: 12px; color: var(--cream); font-size: .9rem; -webkit-tap-highlight-color: transparent; }

.case--tuco { background: #C30B31; color: var(--cream); --line: rgba(246,245,233,.28); overflow: hidden; }
.case--tuco .case__title { color: #FFEC00; }
.case--tuco .case__quote em, .case--tuco .case__kicker em { color: #FFEC00; }
.case--tuco .lead strong, .case--tuco .case__body strong { color: #FFEC00; }
/* dos piezas centradas (reels, carteles A4) */
.gallery--pair > .g:nth-child(1) { grid-column: 3 / 5; }
.gallery--pair > .g:nth-child(2) { grid-column: 5 / 7; }
.g--solo { grid-column: 4 / 6; }
.g--video { cursor: default; }
.g--video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: rgba(0,0,0,.2); }
.case--tuco .gallery--3 > .g img { aspect-ratio: 4 / 5; object-fit: cover; }
.case--tuco .gallery--tall > .g img { aspect-ratio: 9 / 16; }
.gallery--faldones > .g { grid-column: span 4; }
.g.g--static { cursor: default; } /* piezas que no se amplían (faldones de Tuco) */
.gallery[data-carousel-all] { cursor: grab; }
.gallery[data-carousel-all].is-dragging { cursor: grabbing; user-select: none; }
.gallery[data-carousel-all].is-dragging * { pointer-events: none; }
.gallery--faldones > .g:last-child { grid-column: 3 / 7; }

/* ---------- 04 Adlara ---------- */
.case--adlara { background: var(--sage); color: #2F3F22; --line: rgba(47,63,34,.2); overflow: hidden; }
.case--adlara .case__title { color: var(--green); }
.adlara { align-items: center; }
.adlara__card-wrap { grid-column: 1 / 6; }
.adlara__text { grid-column: 6 / 9; }
.adlara__card-wrap { perspective: 2000px; }
.flip { display: block; width: 100%; aspect-ratio: 2079/1370; cursor: pointer; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(10px, 1vw, 18px); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 40px 80px -30px rgba(47,63,34,.45), 0 0 0 1px rgba(47,63,34,.08); }
.flip__back { transform: rotateY(180deg); }
.flip__hint { margin-top: 1.2rem; display: flex; align-items: center; gap: .5em; opacity: .75; }
.flip__hint svg { width: 12px; height: 14px; }
.adlara__text > * + * { margin-top: 1.2rem; }
.case__meta--col { margin-top: 2rem !important; }

/* ---------- Sobre mí ---------- */
.about { padding: clamp(110px, 14vw, 220px) var(--pad); }
.about__grid { align-items: center; }
.about__visual { grid-column: 2 / 5; }
.about__text { grid-column: 5 / 8; }
.about__visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 4vw, 60px); justify-items: center; }
.about__visual > * { max-width: 100%; }
.duo { display: flex; width: 100%; max-width: 560px; }
.duo > div { width: 56%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none; }
.duo__photo { position: relative; z-index: 2; }
.duo__photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; }
.duo__eagle { background: var(--blue); margin-left: -12%; display: grid; place-items: center; transition: transform 1s var(--ease); }
.duo__eagle img { width: 52%; }
.duo:hover .duo__eagle { transform: translateX(10%) rotate(12deg); }
.ig-pill { display: flex; align-items: center; gap: 18px; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 10px 40px 10px 10px; max-width: 520px; width: 100%; }
.ig-pill img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; flex: none; }
.ig-pill b { display: block; font-family: var(--logo); font-weight: 400; font-size: 1.2rem; }
.ig-pill span { display: block; font-size: .85rem; }
.ig-pill small { display: block; font-size: .72rem; opacity: .8; margin-top: .4rem; line-height: 1.35; }
.about__hello { font-size: clamp(3rem, 7.5vw, 8.4rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; margin-bottom: 2rem; }
.about__hello .hello { display: inline-block; color: var(--blue); letter-spacing: -.03em; font-size: 1.08em; }
.about__text .lead + p { margin-top: 1.2rem; opacity: .8; max-width: 58ch; }
.services { list-style: none; margin-top: clamp(30px, 4vw, 60px); border-top: 1px solid var(--line); }
.services li { display: flex; gap: 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -.03em; transition: padding .5s var(--ease), color .3s; }
.services li span { font-family: var(--serif); font-size: .9em; opacity: .5; font-weight: 400; }
.services li:hover { padding-left: 1rem; color: var(--blue); }

/* ---------- Sobre mí · presentación ---------- */
.about__intro { display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); align-items: stretch; }
.about__intro > * { min-width: 0; }
.about__photo { grid-column: 2 / 4; margin: 0; border-radius: clamp(26px, 2.6vw, 40px); overflow: hidden; background: var(--ink); min-height: 100%; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__copy { grid-column: 4 / 8; display: flex; flex-direction: column; container-type: inline-size; }
.about__tags { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); color: var(--blue); font-size: clamp(.9rem, 1.1vw, 1.15rem); letter-spacing: -.03em; line-height: 1; }
.about__title { position: relative; margin: clamp(12px, 1.4vw, 24px) 0 clamp(26px, 2.6vw, 44px); font-size: 11.3cqi; font-weight: 600; letter-spacing: -.06em; line-height: .94; }
.about__title .l { display: block; position: relative; z-index: 1; white-space: nowrap; }
.about__title .l:nth-of-type(2) { transition-delay: 90ms; }
.about__title .l:nth-of-type(3) { transition-delay: 180ms; }
.about__title em { color: var(--ink); font-size: 1.12em; letter-spacing: -.02em; line-height: .8; }
.about__eagle { display: inline-block; width: 1.05em; height: auto; margin-left: .14em; vertical-align: -.06em; transition: transform 1s var(--ease); }
.about__title:hover .about__eagle { transform: translateX(.08em) rotate(-8deg); }
.about__star { position: absolute; z-index: 0; left: -.92em; top: -.22em; width: .95em; height: 1.2em; color: var(--yellow); animation: spin 12s linear infinite; animation-play-state: paused; }
.about__star.is-spinning { animation-play-state: running; }
.about__lead { font-size: clamp(1.05rem, 1.35vw, 1.45rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.about__body { margin-top: .9rem; font-size: clamp(.98rem, 1.15vw, 1.22rem); letter-spacing: -.03em; line-height: 1.38; opacity: .85; }

@media (max-width: 1200px) {
  .about__photo { grid-column: 1 / 4; }
  .about__copy { grid-column: 4 / 9; }
}
@media (max-width: 760px) {
  .about__photo, .about__copy { grid-column: 1 / -1; }
  .about__photo { aspect-ratio: 4 / 5; min-height: 0; border-radius: 32px; margin-bottom: 32px; }
  .about__tags { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: 13px; }
  .about__title { margin-top: 18px; }
  /* la estrella va pegada a la «y» de la primera línea */
  .about__title .l:first-of-type { display: inline-block; }
  .about__star { left: calc(100% + .05em); right: auto; top: -.12em; }
}

/* ---------- Sobre mí · Proceso "De idea a concepto" ---------- */
.process { margin-top: clamp(120px, 15vw, 240px); }
.process__head { display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); align-items: start; }
.process__head > .eyebrow { grid-column: 1 / 2; padding-top: 1.4em; }
.process__head > .display { grid-column: 2 / 9; }
.process__intro { grid-column: 2 / 6; margin-top: clamp(24px, 3vw, 44px); font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.process__intro em { color: var(--blue); font-size: 1.1em; }

.process__track { position: relative; margin-top: clamp(30px, 4vw, 60px); padding-top: clamp(220px, 22vw, 330px); }
.process__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.process__ghost { fill: none; stroke: var(--ink); stroke-opacity: .16; stroke-width: 1.4; stroke-dasharray: 1 7; stroke-linecap: round; }
.process__ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.process__tip { position: absolute; top: 0; left: 0; z-index: 3; width: 18px; height: 23px; margin: -11.5px 0 0 -9px; color: var(--yellow); pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.process__tip svg { display: block; }


.node { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--cream); transition: background .5s, border-color .5s, transform .7s var(--ease); }
.process__origin { position: absolute; top: 0; left: 68%; z-index: 1; display: flex; align-items: center; gap: .7rem; font-size: clamp(1.1rem, 1.4vw, 1.4rem); }
.process__origin .node { background: var(--ink); }
.process__origin em { opacity: .6; }

.steps { list-style: none; position: relative; z-index: 1; display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); row-gap: clamp(150px, 14vw, 230px); }
.step { position: relative; padding-left: 44px; }
.step:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
.step:nth-child(2) { grid-column: 5 / 8; grid-row: 2; }
.step:nth-child(3) { grid-column: 2 / 5; grid-row: 3; }
.step:nth-child(4) { grid-column: 6 / 9; grid-row: 4; }
.step:nth-child(5) { grid-column: 3 / 6; grid-row: 5; }
.step__node { position: absolute; left: 0; top: .2rem; }
.step__n { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--ink); font-size: 1.3rem; line-height: 1; }
.step__title { font-size: clamp(2rem, 3.4vw, 3.6rem); font-weight: 600; letter-spacing: -.055em; line-height: .95; margin: .7rem 0 1rem; }
.step__text { opacity: .8; max-width: 36ch; }
.step__out { display: inline-flex; align-items: center; gap: .55em; margin-top: 1.2rem; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; letter-spacing: .01em; }
.step__out::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.process__foot { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: clamp(110px, 12vw, 190px); margin-left: calc((100% - 7 * var(--gutter)) / 8 * 3 + 3 * var(--gutter)); }
.process__end { font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.02em; line-height: 1.05; }
.process__end { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--blue); letter-spacing: 0; }
.process__note { margin-top: .1rem; font-family: var(--sans); font-weight: 300; color: var(--ink); font-size: clamp(.8rem, .88vw, .92rem); line-height: 1.35; letter-spacing: -.01em; }

/* Con JS: los pasos esperan apagados hasta que la línea llega a su nodo */
.is-live .step__body { opacity: .2; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.is-live .step.is-on .step__body { opacity: 1; transform: none; }
.is-live .step.is-on .step__node { background: var(--blue); border-color: var(--blue); transform: scale(1.3); }
/* al llegar al final, el círculo desaparece y queda la estrella, que crece un poco */
.is-live .process__foot .node { transition: opacity .4s, transform .6s var(--ease); }
.is-live .process__foot.is-on .node { opacity: 0; transform: scale(.4); }
.process__tip svg { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.process__tip.is-done svg { transform: scale(1.7); }
.is-live .process__foot > :not(.node) { opacity: .25; transition: opacity .9s var(--ease); }
.is-live .process__foot.is-on > * { opacity: 1; }

@media (max-width: 760px) {
  .process__head > .eyebrow, .process__head > .display, .process__intro { grid-column: 1 / -1; }
  .process__head > .eyebrow { padding-top: 0; }
  .process__track { padding-top: 190px; }
  .process__origin { left: 52%; }
  .steps { row-gap: 64px; }
  .step:nth-child(n) { grid-column: 1 / -1; grid-row: auto; padding-left: 36px; }
  .process__foot { margin-left: 0; margin-top: 80px; padding-left: 0; }
  .process__foot .node { flex: none; }
  .process__closing { flex: 1; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--cream); padding: clamp(110px, 13vw, 200px) var(--pad) 84px; overflow: hidden; --line: rgba(246,245,233,.16); }
.contact__top { align-items: center; position: relative; }
/* Lluvia de estrellas: lienzo detrás del contenido, de borde a borde y desde lo alto de la sección */
.contact__top > * { position: relative; z-index: 1; }
.contact .contact__top > canvas.stars-rain { grid-row: auto; margin: 0; position: absolute; z-index: 0; top: calc(-1 * clamp(110px, 13vw, 200px)); left: calc(-1 * var(--pad)); width: calc(100% + 2 * var(--pad)); height: calc(100% + clamp(110px, 13vw, 200px) + clamp(80px, 12vw, 200px) - 12px); /* el suelo queda justo encima del logotipo grande */ grid-column: auto; pointer-events: none; }

.contact__top > * { grid-column: 2 / 6; }
/* tamaño pensado para 4 columnas: la palabra más larga cabe y el titular nunca se corta */
.contact__title { font-size: clamp(2.6rem, 5.4vw, 7.6rem); font-weight: 600; letter-spacing: -.065em; line-height: .9; overflow-wrap: break-word; }
.contact__top > .contact__portrait { grid-column: 6 / 8; grid-row: 1 / span 3; display: grid; justify-items: center; gap: 14px; margin: 0; }
.pixel-portrait {
  --portrait: #F2C94C;
  display: block; width: 100%; aspect-ratio: 64 / 80;
  image-rendering: pixelated; image-rendering: crisp-edges;
  cursor: grab; touch-action: pan-y;
}
.pixel-portrait:active { cursor: grabbing; }
.contact__title em { color: var(--blue); font-size: 1.08em; }
.contact__actions { display: flex; align-items: center; gap: clamp(24px, 4vw, 70px); flex-wrap: wrap; margin-top: clamp(40px, 5vw, 80px); }
.contact__links { display: grid; gap: .6rem; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.contact__mega { margin-top: clamp(80px, 12vw, 200px); }
.contact__mega img { width: 100%; height: auto; }
.contact__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 70px); padding-top: 16px; border-top: 1px solid var(--line); opacity: 1; }
.contact__bottom em { color: var(--blue); font-size: 1.15em; }

/* ---------- Páginas de proyecto ---------- */
.case__cover {
  position: relative; overflow: hidden; margin-top: clamp(20px, 2vw, 32px);
  height: clamp(320px, 64vh, 780px); border-radius: var(--radius); background: var(--bg, #000);
  view-transition-name: case-cover;
}
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__cover--contain { view-transition-name: none; }
.case__cover--contain img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 2 * clamp(20px, 4vw, 60px)); max-height: calc(100% - 2 * clamp(20px, 4vw, 60px)); view-transition-name: case-art; }
.case--page { padding-top: clamp(100px, 10vw, 150px); }
.back { position: relative; font-size: .9rem; }
.back::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.back:hover::after { transform: scaleX(1); transform-origin: left; }
.case--page .case__top { align-items: baseline; }

.next { position: relative; padding: clamp(90px, 10vw, 160px) var(--pad) clamp(70px, 8vw, 120px); overflow: hidden; }
.next__link { display: block; position: relative; }
.next__top { display: flex; justify-content: space-between; font-size: .9rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.next__name {
  display: block; font-family: var(--thunder); font-weight: 900; text-transform: uppercase;
  line-height: .8; white-space: nowrap; padding-top: .06em; margin-top: clamp(20px, 3vw, 40px);
  transition: color .5s ease;
}
.next__link:hover .next__name { color: var(--blue); }
.next__img {
  position: absolute; right: 6%; top: 50%; width: clamp(180px, 20vw, 320px); aspect-ratio: 4/5;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  translate: 0 -40%; rotate: 8deg; scale: 0; transition: scale .7s var(--ease), rotate .7s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next__link:hover .next__img { scale: 1; rotate: -4deg; }
.next__all { display: inline-block; margin-top: clamp(24px, 3vw, 40px); font-size: .95rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.95); color: var(--cream);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox:not(.is-open) { pointer-events: none; } /* mientras se desvanece ya no recibe toques */
.lb__fig { grid-column: 2; display: grid; justify-items: center; gap: 1rem; max-height: 100vh; padding: 70px 0; }
.lb__fig img { max-height: calc(100vh - 160px); max-width: 100%; width: auto; object-fit: contain; border-radius: 10px; transform: scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.lightbox.is-open .lb__fig img.loaded { transform: none; opacity: 1; }
.lb__fig figcaption { font-size: .85rem; opacity: .7; }
/* «cerrar» siempre por encima de las flechas (que ocupan columnas de toda la altura) y con zona táctil amplia */
.lb__close { position: absolute; z-index: 3; top: 6px; right: calc(var(--pad) - 12px); padding: 12px; font-size: .9rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lb__nav { font-size: 1.6rem; height: 100%; width: 100%; opacity: .6; transition: opacity .3s; }
.lb__nav:hover { opacity: 1; }
.lb__prev { grid-column: 1; grid-row: 1; } .lb__next { grid-column: 3; grid-row: 1; }
.lb__count { position: absolute; z-index: 3; top: 22px; left: var(--pad); opacity: .7; }

/* ---------- View Transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-group(case-cover) { animation-duration: .95s; animation-timing-function: cubic-bezier(.77, 0, .175, 1); overflow: hidden; border-radius: var(--radius); }
::view-transition-old(case-cover), ::view-transition-new(case-cover) { height: 100%; width: 100%; object-fit: cover; }
::view-transition-group(case-art) { animation-duration: .95s; animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
/* Una sola imagen viaja: sin fundido entre el encuadre de la tarjeta y el de la cabecera (evita el «doble»).
   La imagen de destino crece desde la tarjeta hasta su sitio como un único zoom continuo */
::view-transition-old(case-cover), ::view-transition-old(case-art) { animation: none; opacity: 0; }
::view-transition-new(case-cover), ::view-transition-new(case-art) { animation: none; opacity: 1; }
/* la página de origen se queda quieta debajo y la nueva aparece encima: sin «flash» de fondo mientras la imagen vuela */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-in .6s ease .25s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 30px; }
  .hero__text { grid-column: 1 / 5; }
  .hero__photo { grid-column: 5 / 9; }
  .about__visual { grid-column: 1 / 5; }
  .about__text { grid-column: 5 / 9; }
  .manifesto__text, .manifesto__foot { grid-column: 2 / 9; }
  .contact__top > * { grid-column: 1 / 6; }
  .contact__top > .contact__portrait { grid-column: 6 / 9; }
}

@media (max-width: 1024px) {
  .case__quote { grid-column: 1 / -1; }
  .case__body { grid-column: 1 / 6; }
  .case__intro > .case__meta { grid-column: 6 / 9; }
  .fan__meta { grid-column: 2 / 8; }
  .fan__prev { grid-column: 1 / 2; }
  .fan__next { grid-column: 8 / 9; }
}

/* Móvil: 4 columnas, mismo margen de 20px, gutter reducido */
@media (max-width: 760px) {
  :root { --cols: repeat(4, minmax(0, 1fr)); --gutter: 16px; }
  .frame { font-size: 13px; }
  .island { top: 10px; left: 10px; right: 10px; translate: none; justify-content: space-between; padding: 6px 6px 6px 14px; }
  .island.is-hidden { translate: 0 calc(-100% - 24px); }
  .nav, .island__cta { display: none; }
  .menu-btn { display: block; }
  .frame--bottom { padding-bottom: 10px; }

  .hero { padding: 110px var(--pad) 70px; }
  .hero__meta { height: auto; top: 76px; font-size: 12px; }
  .hero__grid { row-gap: 28px; margin-top: 40px; }
  .hero__text, .hero__photo { grid-column: 1 / -1; }
  .hero__services { font-size: 13px; }
  .hero__scroll { margin-top: 28px; }

  .manifesto > .eyebrow, .manifesto__text, .manifesto__foot { grid-column: 1 / -1; }
  .manifesto > .eyebrow { padding-top: 0; }

  .fan { --card: 62vw; }
  .fan__meta { grid-column: 1 / -1; grid-row: 1; }
  .fan__prev { grid-column: 1 / 3; grid-row: 2; justify-self: start; margin-top: 1.2rem; }
  .fan__next { grid-column: 3 / 5; grid-row: 2; justify-self: end; margin-top: 1.2rem; }
  .fan__arrow { width: 48px; height: 48px; }

  .personal > * { min-width: 0; }
  .case__top { flex-direction: column; gap: .2rem; }
  .case__quote, .case__body, .case__intro > .case__meta { grid-column: 1 / -1; }
  .case__title--script { font-size: 30vw; }
  .g--half { grid-column: 1 / -1; }
  .gallery--4 > .g, .gallery--togethr > .g, .g--quarter { grid-column: span 2; }
  .gallery--2 > .g { grid-column: 1 / -1; }
  .gallery--3 > .g:nth-child(1) { grid-column: 1 / 3; }
  .gallery--3 > .g:nth-child(2) { grid-column: 3 / 5; }
  .gallery--3 > .g:nth-child(3) { grid-column: 2 / 4; }
  .case__divider { flex-direction: column; gap: .3rem; }

  .personal__mark { grid-column: 1 / -1; max-width: 340px; }
  .personal__text { grid-column: 1 / -1; }
  .traits li:nth-child(n) { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .personal__process .card { grid-column: 1 / -1; }
  .sw { grid-column: span 2; aspect-ratio: 1.3; }

  .adlara__card-wrap, .adlara__text { grid-column: 1 / -1; }
  .about__visual, .about__text { grid-column: 1 / -1; }
  .about__grid { row-gap: 40px; }
  .ig-pill { padding-right: 20px; gap: 12px; }
  .ig-pill img { width: 64px; height: 64px; }
  .contact__top > *, .contact__top > .contact__portrait { grid-column: 1 / -1; grid-row: auto; }
  .contact__portrait { width: 72%; justify-self: center; margin-top: 40px !important; }
  .contact__title { font-size: 11vw; }

  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .case__cover { height: 46vh; }
  .strip { gap: 18px; }
  .strip--user { font-size: 7.4vw; }
  .strip--type { font-size: 5.6vw; }
  .strip--palette { gap: 0; }
  .strip--palette li { font-size: 3.6vw; white-space: nowrap; padding: .9em .3em; }
  .logo { height: 18px; }
  .next__img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, [data-split] .w > span, .hero__title .line > span { opacity: 1; transform: none; }
}

/* =========================================================
   Ajustes exclusivos de móvil (≤760px). Tablet y escritorio no cambian.
   ========================================================= */
@media (max-width: 760px) {
  /* Header: solo el logotipo, centrado, sin menú */
  .island { left: 50%; right: auto; translate: -50% 0; justify-content: center; padding: 11px 20px; }
  .island.is-hidden { translate: -50% calc(-100% - 24px); }
  .menu-btn, .mobile-menu { display: none !important; }

  /* Hero: sin indicador de scroll y foto cuadrada */
  .hero__scroll { display: none; }
  .hero__photo { aspect-ratio: 4 / 5; border-radius: 6% / 4.8%; z-index: 3; } /* al hacer scroll sube por encima del texto */
  .hero__text { transform-origin: 50% 0; will-change: translate, scale, opacity; }
  /* Meta del hero en una columna a la izquierda: ubicación + tiempo, nombre, disponibilidad; cada una en una línea */
  .hero__meta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .35em; white-space: nowrap; }
  .hero__grid { margin-top: 64px; }

  /* Trabajos: nombre del proyecto más grande */
  .fan__name { font-size: 16vw; }
  /* En táctil el :hover se queda "pegado" tras pulsar: las flechas vuelven a su estado normal
     y solo se iluminan mientras el dedo está encima */
  .fan__arrow:hover { background: transparent; color: inherit; border-color: rgba(246,245,233,.3); }
  .fan__arrow:active { background: var(--cream); color: var(--ink); border-color: var(--cream); transition-duration: 0s; }
  .fan__arrow { -webkit-tap-highlight-color: transparent; }
  /* Flechas a la misma altura que «Ver proyecto»: el bloque de info se reparte en una rejilla
     (número, nombre y etiqueta arriba; flecha · botón · flecha en la última fila) */
  .fan__info { grid-template-columns: 48px 1fr 48px; column-gap: 12px; }
  .fan__meta { display: contents; }
  .fan__meta > * { grid-column: 1 / -1; transition: opacity .35s ease, translate .35s ease; }
  .fan__meta.is-swap > * { opacity: 0; translate: 0 8px; }
  .fan__n { grid-row: 1; } .fan__name { grid-row: 2; } .fan__tag { grid-row: 3; margin-bottom: 1.4rem; }
  .fan__meta > .fan__cta { grid-column: 2; grid-row: 4; justify-self: center; margin-top: 0; transition: opacity .35s ease, translate .35s ease, background .4s, color .4s, transform .4s var(--ease); }
  .fan__prev, .fan__next { grid-row: 4; margin-top: 0; }
  .fan__prev { grid-column: 1; justify-self: start; }
  .fan__next { grid-column: 3; justify-self: end; }
  /* visor de fotos: flechas sin hover pegado y sin invadir la franja superior del botón cerrar */
  .lb__nav:hover { opacity: .6; }
  .lb__nav:active { opacity: 1; }
  .lb__nav { align-self: stretch; height: auto; margin-top: 64px; -webkit-tap-highlight-color: transparent; }

  /* Sobre mí: foto bastante más pequeña */
  .about__photo { width: 58%; justify-self: start; border-radius: 24px; }

  /* Pie fijo: sin estrella ni águila (se mantiene el nombre de la sección) */
  .frame--bottom .frame__star, .frame--bottom .eagle { visibility: hidden; }

  .gallery.gallery--web[data-carousel] > .g:nth-child(n) { flex-basis: 82%; }
  /* Tuco en móvil */
  .gallery--pair > .g:nth-child(1), .gallery--pair > .g:nth-child(2) { grid-column: span 2; }
  .g--solo { grid-column: 2 / 4; }
  .gallery--faldones > .g, .gallery--faldones > .g:last-child { grid-column: 1 / -1; }

  /* Galerías [data-carousel]: carrusel horizontal con imán, a sangre hasta los bordes de la pantalla */
  .gallery[data-carousel] { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; margin-bottom: 0; }
  .gallery[data-carousel]::-webkit-scrollbar { display: none; }
  .gallery[data-carousel] > .g:nth-child(n) { flex: 0 0 45%; scroll-snap-align: center; grid-column: auto; }
  .gallery[data-carousel] figcaption { font-size: .7rem; white-space: nowrap; }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 var(--gutter); }
  .carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, width .4s var(--ease); }
  .carousel-dots span.is-on { opacity: .9; width: 18px; border-radius: 3px; }

  /* Cabecera de las páginas de trabajo: 2 líneas.
     Arriba, centrado, el número (0X / 04); abajo, «← Todos los trabajos» a la izquierda y las palabras clave a la derecha */
  .case--page .case__top { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .5rem 1rem; font-size: 12px; line-height: 1.35; }
  .case__top .case__num { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .case__top .back { grid-column: 1; grid-row: 2; white-space: nowrap; }
  .case__top .case__kicker { grid-column: 2; grid-row: 2; text-align: right; }
  .case__top .case__kicker em { white-space: nowrap; } /* el estado («Proyecto en curso»…) nunca se parte */
  .case__top .back { font-size: 12px; }
}

/* puntos del carrusel: solo existen en móvil */
@media (min-width: 761px) { .carousel-dots:not(.carousel-dots--all) { display: none; } }

/* Carrusel en todas las pantallas ([data-carousel-all]): una sola fila que avanza sola */
.gallery[data-carousel-all] { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; margin-bottom: 0; }
.gallery[data-carousel-all]::-webkit-scrollbar { display: none; }
.gallery[data-carousel-all] > .g:nth-child(n) { flex: 0 0 42%; scroll-snap-align: center; grid-column: auto; }
.gallery.gallery--faldones[data-carousel-all] > .g:nth-child(n) { flex-basis: 38%; }
@media (max-width: 760px) { .gallery.gallery--faldones[data-carousel-all] > .g:nth-child(n) { flex-basis: 82%; } }
.carousel-dots--all { display: flex; justify-content: center; gap: 8px; margin: 22px 0 var(--gutter); }
.carousel-dots--all span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, width .4s var(--ease); }
.carousel-dots--all span.is-on { opacity: .9; width: 18px; border-radius: 3px; }

/* Cabeceras de caso: retrato circular en raul.concepts, tarjeta con esquinas redondas en Adlara, isologo de Valltrez con aire */
.case--personal .case__cover--contain img { aspect-ratio: 1; height: calc(100% - 2 * clamp(20px, 4vw, 60px)); width: auto; object-fit: cover; border-radius: 50%; }
.case--adlara .case__cover--contain img { border-radius: clamp(12px, 1.4vw, 22px); box-shadow: 0 30px 60px -30px rgba(47,63,34,.35); }
.case__cover--iso img { width: min(calc(100% - 2 * clamp(20px, 4vw, 60px)), 900px) !important; max-height: none !important; }

/* ---------- Blog ---------- */
.blog, .post { padding: clamp(100px, 10vw, 150px) var(--pad) clamp(80px, 10vw, 140px); background: var(--cream); color: var(--ink); }
.blog__title { margin: clamp(30px, 4vw, 60px) 0 1.2rem; }
.blog__lead { max-width: 40ch; margin-bottom: clamp(40px, 6vw, 90px); }
.blog__list { list-style: none; border-top: 1px solid var(--line); }
.blog__item a { display: grid; grid-template-columns: 12rem 1fr 2rem; gap: .4rem 2rem; align-items: baseline; padding: clamp(20px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.blog__item a:hover { padding-left: 14px; }
.blog__date { grid-row: 1 / span 2; }
.blog__name { font-size: clamp(1.4rem, 2.6vw, 2.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.blog__desc { grid-column: 2; opacity: .7; max-width: 60ch; }
.blog__arrow { grid-column: 3; grid-row: 1; font-size: 1.4rem; transition: translate .5s var(--ease); }
.blog__item a:hover .blog__arrow { translate: 6px 0; color: var(--blue); }
.post__head { max-width: 980px; margin: clamp(30px, 4vw, 60px) auto clamp(40px, 5vw, 70px); }
.post__title { font-size: clamp(2.4rem, 5.6vw, 5.8rem); font-weight: 600; letter-spacing: -.06em; line-height: .95; margin-bottom: 1.6rem; }
.post__lead em { color: var(--blue); }
.post__body { max-width: 68ch; margin: 0 auto; font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.65; }
.post__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; margin: 2.6rem 0 1rem; }
.post__body p + p { margin-top: 1rem; }
.post__body ul { margin: 1rem 0 0 1.1rem; }
.post__body li { margin-top: .6rem; }
.post__body strong { font-weight: 600; }
.post__body a.ulink { color: var(--blue); }
.post__author { max-width: 68ch; margin: clamp(40px, 5vw, 70px) auto 0; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .blog__item a { grid-template-columns: 1fr 1.5rem; }
  .blog__date { grid-row: auto; grid-column: 1 / -1; }
  .blog__name, .blog__desc { grid-column: 1; }
  .blog__arrow { grid-column: 2; grid-row: 2; }
}
