/* ============================================================
   IRVSANZ ARQUITECTURA — design system
   Brand palette: ink #191919 · steel #474748 · yellow #FFC400 · light #EFEFEF
   Display: Fira Sans Black · Body: Montserrat · Labels: IBM Plex Mono (mono accent)
   Supporting neutrals (carbon/line/grey) derived on the manual's neutral axis.
   ============================================================ */

:root {
  --ink: #191919;      /* manual — negro */
  --carbon: #202020;   /* derivado — superficie */
  --carbon-2: #292929; /* derivado — superficie */
  --line: #2E2E2E;     /* derivado — bordes sutiles */
  --steel: #474748;    /* manual — gris */
  --bone: #EFEFEF;     /* manual — claro */
  --grey: #8A8A8C;     /* derivado — texto atenuado legible sobre ink */
  --yellow: #FFC400;   /* amarillo marca oficial (actualizado 2026-07-03) */
  --yellow-dim: #B38A00; /* derivado de #FFC400 */
  --display: "Fira Sans", "Montserrat", sans-serif; /* Fira Sans Black (900) */
  --body: "Montserrat", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --nav-h: 72px;
  --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300; /* Montserrat Light — cercano al Extra Light del manual, legible */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

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

.container { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--yellow); flex: none; }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}

h1.display { font-size: clamp(40px, 6.6vw, 88px); }
h2.display { font-size: clamp(32px, 5.4vw, 68px); }

.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--grey); max-width: 60ch; }
.lead strong, .lead b { color: var(--bone); font-weight: 500; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.btn .arr { transition: transform .25s; }
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500; }
.btn--solid:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(25,25,25,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-in { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; transform: rotate(-10deg); } /* tilted like a signature */
.brand-name { font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.brand-name span { color: var(--yellow); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); transition: color .2s; position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow);
}
.nav-cta { border-color: var(--yellow); color: var(--yellow); padding: 10px 22px; }
/* nav: Proyectos = primario (B2C, sólido) · Curso = secundario (contorno amarillo) — jerarquía diferenciada */
.nav-proj { background: var(--bone); border-color: var(--bone); color: var(--ink); font-weight: 600; padding: 11px 24px; }
.nav-proj:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.nav-proj[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); }
.nav-course { border-color: var(--yellow); color: var(--yellow); padding: 11px 20px; font-weight: 500; }
.nav-course:hover { background: rgba(255,196,0,.14); color: var(--yellow); border-color: var(--yellow); }
.nav-course[aria-current="page"] { background: var(--yellow); color: var(--ink); }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 8px 13px; color: var(--grey); transition: color .2s, background .2s;
}
.lang-toggle a.on { background: var(--yellow); color: var(--ink); font-weight: 500; }
.lang-toggle a:not(.on):hover { color: var(--bone); }

.burger { display: none; z-index: 102; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--bone);
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 101;
  background: rgba(25,25,25,.97); backdrop-filter: blur(10px);
  flex-direction: column; justify-content: center; padding: var(--pad);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(34px, 9vw, 56px); text-transform: uppercase;
  line-height: 1.25; color: var(--bone); transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--yellow); }
.mobile-menu .mono-label { margin-top: 32px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 5vh, 64px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg img.on { opacity: 1; }

/* ---------- hero scroll-scrub video ---------- */
.hero-track { position: relative; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
/* scrub active: tall runway + sticky stage; JS sets the runway height */
.hero-track.scrub-on .hero {
  position: sticky; top: 0;
  height: 100svh; min-height: 0;
}
.hero-track.scrub-on .hero-video { opacity: 1; }
.hero-track.scrub-on .hero-content,
.hero-track.scrub-on .scroll-hint { will-change: opacity; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(25,25,25,.55) 0%, rgba(25,25,25,.12) 38%, rgba(25,25,25,.55) 72%, rgba(25,25,25,.92) 100%);
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 12ch; }
.hero h1 .y { color: var(--yellow); }
.hero-sub { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hero-sub .lead { max-width: 46ch; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 48px; background: var(--grey); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--carbon); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(24px, 3.4vw, 48px) var(--pad); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1; color: var(--bone);
}
.stat b .y { color: var(--yellow); }
.stat > span { display: block; margin-top: 8px; }
.stat b .y { display: inline; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- spectrum: slider dinámico de escalas ---------- */
.spectrum { background: var(--carbon); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spectrum-slider { position: relative; overflow: hidden; margin-top: clamp(22px, 3vw, 44px); padding: 10px 0; }
.spectrum-slider { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.spec-track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; }
.spec-slide { position: relative; flex: 0 0 auto; width: clamp(228px, 24vw, 320px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--ink); transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .45s, opacity .35s; }
.spec-media { aspect-ratio: 16 / 11; overflow: hidden; }
.spec-media img { width: 100%; height: 100%; object-fit: cover; opacity: .52; filter: grayscale(.35) brightness(.92); transition: opacity .45s, filter .45s, transform .6s cubic-bezier(.16,1,.3,1); }
.spec-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(15px, 1.6vw, 22px); background: linear-gradient(180deg, rgba(25,25,25,.05) 20%, rgba(25,25,25,.9)); }
.spec-scale { align-self: flex-start; margin-bottom: auto; color: var(--yellow); background: rgba(255,196,0,.12); border: 1px solid rgba(255,196,0,.4); border-radius: 999px; padding: 3px 11px; letter-spacing: .12em; }
.spec-name { font-family: var(--display); font-size: clamp(18px, 1.7vw, 26px); text-transform: uppercase; line-height: 1.05; margin-top: 12px; }
.spec-client { color: var(--grey); font-size: 12px; margin-top: 6px; line-height: 1.3; }
.spec-count { display: flex; align-items: center; gap: 8px; color: var(--yellow); font-size: 11px; margin-top: 13px; }
.spec-go { display: inline-flex; transition: transform .3s; }
.spec-track.dim .spec-slide:not(.on) { opacity: .4; }
.spec-slide.on, .spec-slide:hover { border-color: var(--yellow); box-shadow: 0 22px 54px rgba(0,0,0,.55); transform: translateY(-6px) scale(1.02); }
.spec-slide.on .spec-media img, .spec-slide:hover .spec-media img { opacity: .95; filter: grayscale(0) brightness(1); transform: scale(1.07); }
.spec-slide.on .spec-go, .spec-slide:hover .spec-go { transform: translate(3px, -3px); }
.spec-slide:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* filosofía (reemplaza los números del hero) */
.philosophy { border-bottom: 1px solid var(--line); }
.philo-statement { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.9vw, 40px); line-height: 1.22; letter-spacing: -.01em; max-width: 960px; margin-top: clamp(16px, 2vw, 28px); color: var(--bone); }
.philo-statement .y { color: var(--yellow); }
/* espectro con más jerarquía */
.spectrum--hero { padding-top: clamp(66px, 9vw, 128px); }
.spectrum--hero .section-head .display { font-size: clamp(40px, 6vw, 94px); line-height: .98; }
.spectrum--hero .section-head { align-items: end; }

/* ---------- hexagon spectrum (legacy, ya no usado en home) ---------- */
.hexwrap { display: flex; flex-direction: column; align-items: center; }
.hexrow { display: flex; justify-content: center; gap: clamp(6px, 1vw, 14px); }
.hexrow + .hexrow { margin-top: calc(var(--hex-w) * -0.22); }
.hexwrap { --hex-w: clamp(170px, 21vw, 300px); }

.hex {
  position: relative;
  width: var(--hex-w);
  aspect-ratio: 0.8660; /* pointy-top hexagon */
  display: block;
}
/* NEON HEX GLOW — a technological light in the seams, driven by mouse proximity (--glow 0..1) */
.hex { --glow: 0; }
/* additive bloom bleeding into the gaps between hexagons */
.hex::before {
  content: ""; position: absolute; inset: -28%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,246,200, calc(1 * var(--glow))) 0%,
    rgba(255,208,30, calc(.92 * var(--glow))) 24%,
    rgba(255,196,0, calc(.42 * var(--glow))) 48%,
    transparent 70%);
  filter: blur(13px);
  mix-blend-mode: screen;
  transform: scale(calc(.5 + .5 * var(--glow)));
  transition: transform .22s ease-out;
}
/* crisp neon rim tracing the hexagon edge */
.hex::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #FFF8DA 0%, #FFC400 50%, #6f5400 100%);
  opacity: calc(.1 + .9 * var(--glow));
  transition: opacity .15s linear;
}
.hex-in {
  position: absolute; inset: 2px; z-index: 2;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  gap: 4px; padding: 20% 15% 15%;
  overflow: hidden;
}
.hex-in img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: calc(.6 + .32 * var(--glow));
  filter: saturate(calc(.9 + .45 * var(--glow))) brightness(calc(.92 + .2 * var(--glow))) contrast(1.02);
  transform: scale(calc(1.05 + .08 * var(--glow)));
  transition: opacity .4s, filter .4s, transform .6s cubic-bezier(.16,1,.3,1);
}
/* readable gradient anchored to the bottom where the labels live — image stays visible up top */
.hex-in::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,.02) 0%, rgba(25,25,25,.1) 40%, rgba(25,25,25,.55) 74%, rgba(25,25,25, calc(.82 - .12 * var(--glow))) 100%);
  transition: background .4s;
}
@media (hover: none) { .hex { --glow: .38; } }
/* scale badge — a yellow pill that reads like a technical tag */
.hex-scale {
  position: relative; z-index: 1; order: -1;
  font-family: var(--mono); font-weight: 500; font-size: clamp(9px, .82vw, 11px); letter-spacing: .12em;
  color: var(--ink); background: var(--yellow);
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(255,196,0, calc(.2 + .4 * var(--glow)));
  transform: translateY(calc(-4px * (1 - var(--glow))));
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.hex-name {
  position: relative; z-index: 1;
  font-family: var(--display); font-size: clamp(14px, 1.35vw, 20px);
  text-transform: uppercase; line-height: 1.08; letter-spacing: .01em;
  color: var(--bone); transition: color .3s;
}
.hex:hover .hex-name, .hex:focus-visible .hex-name { color: var(--yellow); }
.hex-count { position: relative; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--yellow); opacity: .85; }
.hex-client { position: relative; z-index: 1; font-size: clamp(9px, .82vw, 11.5px); color: var(--bone); opacity: .72; line-height: 1.18; max-width: 92%; }
.hex:focus-visible { outline: none; --glow: 1; }

.spectrum-axis {
  margin-top: clamp(30px, 4vw, 54px);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
}
.spectrum-axis .bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--yellow), var(--line)); position: relative; }

/* ---------- featured: short full-width parallax bands ---------- */
.fbands { display: flex; flex-direction: column; }
.fband {
  position: relative; display: flex; align-items: flex-end;
  height: clamp(320px, 52vh, 520px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.fband-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: flex; }
.fband-bg--split { gap: 2px; }
.fband-bg img { flex: 1 1 0; width: 0; min-width: 0; height: 132%; object-fit: cover; will-change: transform; }
.fband::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(25,25,25,.28), transparent 42%, rgba(25,25,25,.82));
  transition: background .4s;
}
.fband-body {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 28px;
  padding-bottom: clamp(18px, 3vh, 34px);
}
.fband h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.6vw, 52px); text-transform: uppercase; line-height: 1; transition: color .3s; }
.fband:hover h3 { color: var(--yellow); }
.fband .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.fband .arrgo {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(237,234,226,.4);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--bone);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.fband:hover .arrgo { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: rotate(45deg); }

/* ---------- servicio B2B (amarillo corporativo, líneas negras) ---------- */
.b2b { position: relative; background: var(--yellow); color: var(--ink); overflow: hidden; }
.b2b .container { position: relative; z-index: 2; }
/* rejilla técnica + diagonal (blueprint) en líneas negras */
.b2b-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(25,25,25,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.14) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px, 100% 100%;
}
.b2b-lines::after { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 200%;
  background: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(25,25,25,.06) 26px 27px);
  transform: rotate(0deg); }
.b2b .eyebrow { color: var(--ink); }
.b2b .eyebrow::before { background: var(--ink); }
.b2b .display { color: var(--ink); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.02; }
.b2b-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 56px); align-items: end; margin-bottom: clamp(30px, 4vw, 52px); }
.b2b-head .lead { margin: 0; color: rgba(25,25,25,.82); }
.b2b-head .lead strong { color: var(--ink); font-weight: 700; }
.b2b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.b2b-card { border: 1.5px solid var(--ink); border-radius: 14px; padding: clamp(20px, 2.2vw, 30px); background: rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 9px; transition: transform .3s, background .3s; }
.b2b-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.28); }
.b2b-n { color: var(--ink); opacity: .55; }
.b2b-card h3 { font-family: var(--display); font-size: clamp(16px, 1.4vw, 21px); text-transform: uppercase; letter-spacing: .01em; }
.b2b-card p { color: rgba(25,25,25,.78); line-height: 1.55; font-size: 14px; }
.b2b-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(24px, 3vw, 42px); padding: clamp(20px, 2.4vw, 30px); border: 1.5px solid var(--ink); border-radius: 16px; background: rgba(25,25,25,.05); }
.b2b-note p { flex: 1 1 340px; max-width: 66ch; line-height: 1.6; color: rgba(25,25,25,.85); }
.b2b-note strong { color: var(--ink); font-weight: 700; }
.b2b-cta { background: var(--ink); border-color: var(--ink); color: var(--yellow); font-weight: 500; }
.b2b-cta:hover { background: var(--carbon-2, #000); border-color: var(--ink); color: var(--yellow); }

/* ---------- franja de logos de clientes ---------- */
.clients-strip { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(34px, 5vw, 64px) 0; }
.clients-strip .eyebrow { margin-bottom: clamp(22px, 3vw, 38px); }
.client-marquee { display: flex; width: max-content; animation: clientscroll 52s linear infinite; }
.client-set { display: flex; align-items: center; }
.client-logo { flex: 0 0 auto; width: clamp(120px, 13vw, 178px); display: flex; align-items: center; justify-content: center; }
.client-logo img { max-height: clamp(28px, 3vw, 42px); max-width: 78%; width: auto; opacity: .58; transition: opacity .3s, transform .3s; }
.client-logo img:hover { opacity: 1; transform: scale(1.06); }
@keyframes clientscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .client-marquee { animation: none; } }

/* ---------- nostalgia "First approach" (layout limpio) ---------- */
.nostalgia { position: relative; overflow: hidden; background: #14140f; }
.nos-bg { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 4px; opacity: .16; filter: grayscale(.6) sepia(.2); }
.nos-tile { overflow: hidden; }
.nos-tile img { width: 100%; height: 100%; object-fit: cover; }
.nostalgia::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(130% 100% at 28% 40%, rgba(20,20,15,.55), rgba(20,20,15,.92)); pointer-events: none; }
.nos-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.nos-portrait { position: relative; width: clamp(180px, 20vw, 240px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(0,0,0,.55); transform: rotate(-3deg); margin-bottom: 28px; }
.nos-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) sepia(.2); }
.nos-portrait .portrait-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.nos-copy .nos-hint { color: var(--yellow); opacity: .85; margin-top: 18px; }
.nos-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); }
.nos-photo { display: block; text-align: left; background: #f3efe6; padding: 8px 8px 28px; border-radius: 3px; box-shadow: 0 16px 38px rgba(0,0,0,.5); transform: rotate(var(--rot, 0deg)); transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; cursor: pointer; }
.nos-photo-media { display: block; overflow: hidden; }
.nos-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nos-cap { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: #4a463d; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .nos-photo:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 24px 54px rgba(0,0,0,.65); position: relative; z-index: 2; }
  .nos-photo:hover .nos-photo img, .nos-photo:hover img { transform: scale(1.06); }
}
.nos-photo:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* student lightbox */
.slb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(10,10,8,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 5vh 5vw; }
.slb.open { display: flex; }
/* imagen del visor con diseño de foto instantánea (polaroid) */
.slb-frame { margin: 0; background: #f3efe6; padding: 14px 14px 44px; border-radius: 4px; box-shadow: 0 34px 90px rgba(0,0,0,.62); max-width: min(88vw, 640px); transform: rotate(-1.2deg); }
.slb-frame img { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #111; }
.slb-cap { display: block; margin-top: 12px; text-align: center; color: #4a463d; font-size: 12px; letter-spacing: .05em; }
.slb-close { position: absolute; top: 18px; right: 22px; font-size: 22px; color: var(--bone); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.slb-prev, .slb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--bone); font-size: 22px; background: rgba(25,25,25,.5); display: flex; align-items: center; justify-content: center; }
.slb-prev { left: 18px; } .slb-next { right: 18px; }
.slb-prev:hover, .slb-next:hover, .slb-close:hover { color: var(--yellow); border-color: var(--yellow); }
.slb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--grey); }

/* ---------- project modal (subwindow over the honeycomb) ---------- */
.pmodal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center;
  padding: clamp(10px, 3vw, 48px);
  background: rgba(25,25,25,.72); backdrop-filter: blur(8px);
}
.pmodal.open { display: flex; }
.pmodal-win {
  position: relative; width: min(1240px, 100%); max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.pmodal-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.strip { padding: 14px clamp(20px, 3vw, 40px); }
.strip img { border-radius: 14px; background: var(--carbon-2); }
.strip button { border-radius: 14px; overflow: hidden; }
.pmodal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px) 12px;
}
.pmodal-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 44px); text-transform: uppercase; line-height: 1; }
.pmodal-close {
  flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  transition: color .2s, border-color .2s;
}
.pmodal-close:hover { color: var(--yellow); border-color: var(--yellow); }
.pmodal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 0 clamp(20px, 3vw, 40px) 18px;
}
.pmodal-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.pmodal-meta span b { color: var(--yellow); font-weight: 500; }

/* horizontal filmstrip — natural aspect ratios, pans with the mouse */
.strip-wrap { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--carbon); }
.strip {
  display: flex; gap: 6px; height: clamp(300px, 52svh, 560px);
  width: max-content; will-change: transform;
}
.strip button { flex: none; height: 100%; padding: 0; cursor: zoom-in; }
.strip img { height: 100%; width: auto; display: block; }
.strip-hint {
  position: absolute; right: 14px; bottom: 12px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone); background: rgba(25,25,25,.65); padding: 7px 12px; border-radius: 999px;
}
.pmodal-desc { padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 40px); color: #B7B7B9; max-width: 84ch; }
.pmodal-video { padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.pmodal-video video { width: 100%; border: 1px solid var(--line); }
.pmodal-foot { margin-top: 6px; }
/* barra amarilla full-width al pie del modal — negro sobre amarillo, hover invierte */
.pmodal-full {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: clamp(18px, 2.4vw, 26px) 24px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .28s, color .28s;
}
.pmodal-full .arr { transition: transform .28s; }
.pmodal-full:hover { background: var(--ink); color: var(--yellow); }
.pmodal-full:hover .arr { transform: translate(3px, -3px); }
@media (max-width: 700px) {
  .pmodal { padding: 0; }
  .pmodal-win { max-height: 100svh; height: 100svh; border-left: 0; border-right: 0; }
  .strip-wrap { overflow-x: auto; }
  .strip { height: clamp(240px, 40svh, 420px); }
  .c-a, .c-b, .c-c, .c-d, .c-e, .c-f { grid-column: span 12; grid-row: span 2; }
}

/* ---------- about (integrated cutout portrait) ---------- */
.about-teaser { background: var(--carbon); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-sticky { position: sticky; top: calc(var(--nav-h) + 22px); display: flex; flex-direction: column; gap: 24px; }
.about-sticky .quote { margin: 0; }
.about-body { min-width: 0; }
.about-body .quote-src { margin-top: 14px; }
.about-edu { margin-top: 34px; color: var(--grey); }
.cutout { position: relative; display: flex; justify-content: center; }
.cutout::before {
  content: ""; position: absolute; inset: 8% 6% 0 6%; z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255,196,0,.14), transparent 70%);
}
.cutout img {
  position: relative; z-index: 1; width: min(100%, 420px);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.55));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
}
.portrait-tag {
  position: absolute; left: 8%; bottom: 26px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 10px 14px;
}

/* ---------- socials ---------- */
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1.5px solid var(--line); color: var(--bone);
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.socials a svg { width: 21px; height: 21px; display: block; }
.socials a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.socials--big { margin-top: 0; align-items: center; }
.socials--big a { width: 54px; height: 54px; border-radius: 16px; }
blockquote.quote {
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.45; font-weight: 500; color: var(--bone);
  border: 0; margin: 26px 0;
}
blockquote.quote em { color: var(--yellow); font-style: normal; }
.quote-src { color: var(--grey); }

/* ---------- clients marquee ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee-set { display: flex; align-items: center; }
.marquee .c {
  font-family: var(--display); font-size: clamp(18px, 2vw, 26px); text-transform: uppercase;
  color: var(--line); padding: 0 34px; white-space: nowrap;
  transition: color .3s;
}
.marquee .c:hover { color: var(--yellow); }
.marquee .dot { color: var(--yellow); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; position: relative; overflow: hidden; }
.cta-band .display a { color: inherit; transition: color .3s; }
.cta-band .display a:hover { color: var(--yellow); }
.cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--carbon); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 44px 0; }
.foot .brand img { height: 22px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; font-weight: 400; }
.foot-col a { display: block; color: var(--bone); padding: 3px 0; font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--yellow); }
.foot-base { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-base, .foot-base a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; }
.foot-base a:hover { color: var(--yellow); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(36px, 5vw, 72px); }
.page-hero .eyebrow { margin-bottom: 18px; }

/* projects hero con fondo que cambia + título flotante (parallax) */
.page-hero--fx { position: relative; overflow: hidden; min-height: clamp(360px, 58vh, 640px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 30px) 0 clamp(30px, 5vw, 64px); }
.ph-bg { position: absolute; inset: 0; z-index: 0; }
.ph-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1.5s ease; will-change: opacity; }
.ph-bg img.on { opacity: .5; }
.ph-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,20,15,.5) 0%, rgba(20,20,15,.4) 45%, rgba(20,20,15,.85) 100%); }
.ph-in { position: relative; z-index: 2; }
.ph-title { font-size: clamp(64px, 15vw, 210px); line-height: .86; letter-spacing: -.02em; will-change: transform; }
.ph-l { display: inline-block; animation: phFloat 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .11s); }
@keyframes phFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.055em); } }
@media (prefers-reduced-motion: reduce) { .ph-l { animation: none; } }

/* fx-scene: fondo de imágenes con partículas (reutilizable en el inicio) */
.fx-scene { position: relative; overflow: hidden; }
.fx-bg { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 3px; opacity: .18; filter: grayscale(.45) contrast(.95); will-change: transform; }
.fx-tile { overflow: hidden; }
.fx-tile img { width: 100%; height: 100%; object-fit: cover; }
.fx-scene::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,20,16,.84), rgba(20,20,16,.9)); pointer-events: none; }
.fx-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stats.fx-scene { padding: clamp(32px, 4vw, 56px) 0; }
.stats.fx-scene .stats-in { position: relative; z-index: 3; }

/* ---------- projects page: filtros ---------- */
.filters {
  position: sticky; top: calc(var(--nav-h) - 1px); z-index: 50;
  background: rgba(20,20,18,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filters-in { display: flex; gap: 8px; align-items: center; padding: 12px var(--pad); overflow-x: auto; scrollbar-width: none; }
.filters-in::-webkit-scrollbar { display: none; }
.filters-in.filters-loc { border-top: 1px solid var(--line); background: rgba(0,0,0,.22); }
.filters-tag { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--grey); margin-right: 8px; letter-spacing: .16em; }
.filters-tag::before { content: ""; width: 16px; height: 1px; background: var(--yellow); }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--grey); background: transparent;
  transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.chip:hover { color: var(--bone); border-color: var(--grey); background: rgba(255,255,255,.04); transform: translateY(-1px); }
.chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; box-shadow: 0 6px 18px rgba(255,196,0,.22); }

/* ---------- projects gallery: bento editorial (tamaño según la portada) ---------- */
.gallery-wrap { padding-top: clamp(30px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 72px); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1vw, 16px); grid-auto-flow: dense; }
.pcard {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  background: var(--carbon); isolation: isolate; grid-column: span 1;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), box-shadow .5s ease;
}
.pcard[data-span="wide"] { grid-column: span 2; } /* portada apaisada → tarjeta ancha 16:10 */
.pcard-media { aspect-ratio: 4 / 5; overflow: hidden; }
.pcard[data-span="wide"] .pcard-media { aspect-ratio: 16 / 10; }
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.9) brightness(.8); transform: scale(1.03);
  transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(25,25,25,0) 34%, rgba(25,25,25,.5) 64%, rgba(25,25,25,.94) 100%);
  transition: background .4s ease;
}
.pcard-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(14px, 1.5vw, 22px); }
.pcard-scale { display: block; color: var(--yellow); font-size: 10px; margin-bottom: 8px; opacity: .95; }
.pcard-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(16px, 1.5vw, 24px); line-height: 1.02; letter-spacing: -.005em; color: var(--bone);
}
.pcard[data-span="wide"] .pcard-title { font-size: clamp(20px, 2.3vw, 36px); }
.pcard-loc { display: block; color: var(--grey); font-size: 10px; margin-top: 8px; transition: color .3s; }
.pcard-open { display: block; margin-top: 10px; color: var(--yellow); font-size: 10px; letter-spacing: .14em; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
.pcard-go {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(239,239,239,.35); color: var(--bone); font-size: 18px;
  background: rgba(25,25,25,.35); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-8px) rotate(-8deg);
  transition: opacity .4s, transform .4s, background .3s, color .3s, border-color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(0,0,0,.55); }
  .pcard:hover .pcard-media img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
  .pcard:hover::after { background: linear-gradient(180deg, rgba(25,25,25,.05) 16%, rgba(25,25,25,.5) 52%, rgba(25,25,25,.92) 100%); }
  .pcard:hover .pcard-go { opacity: 1; transform: translateY(0) rotate(0); background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
  .pcard:hover .pcard-loc { color: var(--bone); }
  .pcard:hover .pcard-open { max-height: 24px; opacity: 1; }
}
.pcard:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.pcard.hidden-card { display: none; }
.cards-empty { padding: 60px 0; color: var(--grey); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; display: none; }

/* ---------- project detail ---------- */
.proj-hero { position: relative; margin-top: var(--nav-h); }
.proj-hero img { width: 100%; height: min(72svh, 760px); object-fit: cover; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,25,25,.35), transparent 30%, transparent 60%, rgba(25,25,25,.9)); }
.proj-head { position: relative; margin-top: -110px; z-index: 2; padding-bottom: clamp(30px, 4vw, 56px); }
.proj-head h1 { font-size: clamp(36px, 6.4vw, 92px); }

.proj-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin: clamp(24px, 3vw, 40px) 0;
}
.proj-meta > div { background: var(--carbon); padding: 18px 20px; }
.proj-meta b { display: block; font-weight: 500; color: var(--bone); margin-top: 6px; font-size: 15px; }

.proj-desc { max-width: 72ch; font-size: clamp(16px, 1.5vw, 19px); color: #B7B7B9; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); padding: clamp(36px, 5vw, 64px) 0; }
.gallery button { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--carbon); padding: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; transition: transform .5s, opacity .3s; cursor: zoom-in; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .tall img { aspect-ratio: 4/5; }

.proj-video { padding-bottom: clamp(36px, 5vw, 64px); }
.proj-video video { width: 100%; border: 1px solid var(--line); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; }
/* botones amarillos — negro sobre amarillo, hover invierte a negro con letras amarillas */
.prevnext a { padding: clamp(28px, 4vw, 52px) var(--pad); background: var(--yellow); color: var(--ink); transition: background .3s, color .3s; }
.prevnext a .mono-label { color: rgba(25,25,25,.72); transition: color .3s; }
.prevnext a:hover { background: var(--ink); }
.prevnext a:hover .mono-label { color: var(--yellow); }
.prevnext a + a { border-left: 1px solid rgba(25,25,25,.28); text-align: right; }
.prevnext h4 { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.4vw, 30px); text-transform: uppercase; margin-top: 8px; color: var(--ink); transition: color .3s; }
.prevnext a:hover h4 { color: var(--yellow); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(25,25,25,.96);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; width: auto; height: auto; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); padding: 16px; transition: color .2s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--yellow); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--grey); }

/* ---------- about page ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.exp-list { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.exp-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.exp-item .n { font-family: var(--mono); color: var(--yellow); font-size: 13px; }
.exp-item p { color: #B7B7B9; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(36px, 5vw, 56px); }
.skill-col { background: var(--carbon); padding: clamp(24px, 3vw, 40px); }
.skill-col h3 { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin-bottom: 16px; }
.skill-col h3 span { color: var(--yellow); }
.skill-col li { list-style: none; color: var(--grey); padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.skill-col li:last-child { border-bottom: 0; }

/* ---------- contact: yellow board ---------- */
.contact-sec {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(25,25,25,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.07) 1px, transparent 1px),
    var(--yellow);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
}
.contact-sec::before {
  content: ""; position: absolute; right: -160px; bottom: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(25,25,25,.14), transparent 65%);
  pointer-events: none;
}
.contact-sec .eyebrow { color: var(--ink); }
.contact-sec .eyebrow::before { background: var(--ink); }
.contact-sec .lead { color: rgba(25,25,25,.72); }
.contact-sec .lead strong { color: var(--ink); }
.contact-sec .mono-label { color: rgba(25,25,25,.6); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.contact-rows { border-top: 1.5px solid var(--ink); counter-reset: crow; }
.contact-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(20px, 3vw, 30px) 8px; border-bottom: 1.5px solid var(--ink);
  isolation: isolate; overflow: hidden;
}
.contact-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .35s cubic-bezier(.3,.7,.2,1);
}
.contact-row:hover::before { transform: translateY(0); }
.contact-row::after {
  counter-increment: crow; content: counter(crow, decimal-leading-zero);
  position: absolute; right: 14px; top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: rgba(25,25,25,.55);
  transition: color .25s;
}
.contact-row b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 3vw, 38px); text-transform: uppercase; line-height: 1.1;
  color: var(--ink);
  transition: color .25s, transform .35s;
}
.contact-row .arr { color: var(--ink); font-size: 24px; transition: color .25s, transform .3s; }
.contact-row:hover b { color: var(--yellow); transform: translateX(10px); }
.contact-row:hover .mono-label, .contact-row:hover::after { color: rgba(255,196,0,.8); }
.contact-row:hover .arr { color: var(--yellow); transform: translate(4px, -4px); }
.contact-sec .btn--solid { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.contact-sec .btn--solid:hover { background: var(--carbon-2); }
.contact-sec .socials a { border-color: rgba(25,25,25,.4); color: var(--ink); }
.contact-sec .socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.contact-aside { position: relative; }
.contact-aside .avatar { max-width: 340px; margin-bottom: 8px; filter: drop-shadow(0 18px 34px rgba(25,25,25,.35)); }
.hours { border-top: 1.5px solid var(--ink); }
.hours li { list-style: none; display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(25,25,25,.35); color: rgba(25,25,25,.65); font-size: 14px; }
.hours li span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- lead / precalificación form (on the yellow contact board) ---------- */
.lead-form { margin: 0 0 34px; max-width: 660px; position: relative; }
.lead-form > .eyebrow { color: var(--ink); margin-bottom: 18px; }
.lead-form > .eyebrow::before { background: var(--ink); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-field.lf-wide { grid-column: 1 / -1; }
.lf-field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(25,25,25,.68); }
.lead-form input, .lead-form select {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  background: rgba(25,25,25,.05); border: 1px solid rgba(25,25,25,.25); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.lead-form select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23191919' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}
.lead-form input::placeholder { color: rgba(25,25,25,.4); }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--ink); background: rgba(255,255,255,.35); }
.lead-form [aria-invalid="true"] { border-color: #a01b10; background: rgba(160,27,16,.06); }
.lf-err { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: #7c140b; margin-top: 3px; }
.lf-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.lead-form .form-note { color: rgba(25,25,25,.6); }
.lead-form .btn--solid { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.lead-form .btn--solid:hover { background: var(--carbon-2); border-color: var(--carbon-2); }
.lf-ok { padding: 30px 0; }
.lf-ok-tick {
  display: inline-flex; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.lf-ok .lead { color: var(--ink); font-weight: 500; }

/* ---------- project-page bottom CTA (§6) ---------- */
.proj-cta { text-align: center; border-top: 1px solid var(--line); }
.proj-cta h2 { margin-bottom: 16px; }
.proj-cta .lead { margin: 0 auto 26px; max-width: 48ch; }
.proj-cta .cta-actions { justify-content: center; margin-top: 0; }

/* ============================================================
   CURSO — landing del Módulo 1
   ============================================================ */
.course .section { padding: clamp(64px, 9vw, 130px) 0; }
.course h2.display { font-size: clamp(30px, 5vw, 64px); }
.cs-note { color: var(--grey); margin-top: 22px; }
.cs-punch { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.8vw, 36px); line-height: 1.02; letter-spacing: -.01em; color: var(--bone); margin: 24px 0; max-width: 22ch; }
.cs-punch::after { content: ""; display: block; width: 60px; height: 4px; background: var(--yellow); margin-top: 18px; }

/* 1 · hero — full-bleed render + CTA over it (estilo curso) */
.cs-hero { position: relative; min-height: 94svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) 0 clamp(46px,8vh,92px); overflow: hidden; }
.cs-hero-bg { position: absolute; inset: 0; z-index: -2; }
.cs-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25,25,25,.5) 0%, rgba(25,25,25,.32) 34%, rgba(25,25,25,.8) 76%, var(--ink) 100%); }
.cs-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); font-weight: 600; padding: 8px 16px; border-radius: 999px; align-self: flex-start; }
.cs-badge--soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 2.2s ease-in-out infinite; }
.cs-soon-note { max-width: 62ch; color: var(--yellow); margin: 12px 0 0; }
.cs-h1 { font-size: clamp(40px, 7vw, 98px); margin: 22px 0 20px; max-width: 15ch; }
.cs-sub { font-size: clamp(17px, 1.8vw, 22px); max-width: 54ch; color: var(--bone); }
.cs-sub, .cs-actions { margin-top: 22px; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cs-trust { margin-top: 26px; color: var(--grey); }

/* 2 · problema */
.cs-prob .lead { max-width: 60ch; margin-top: 16px; }
.cs-prob-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(30px,4vw,52px); border-radius: 16px; overflow: hidden; }
.cs-pc { background: var(--carbon); padding: clamp(24px,3vw,36px); }
.cs-pc-ico { font-family: var(--display); font-size: 30px; color: var(--yellow); }
.cs-pc-0 .cs-pc-ico { color: var(--grey); }
.cs-pc h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(15px,1.4vw,20px); margin: 14px 0 10px; }
.cs-pc p { color: var(--grey); font-size: 14.5px; }

/* 3 · qué logras */
.cs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(30px,4vw,52px); }
.cs-card { background: var(--carbon); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px,2.4vw,30px); transition: border-color .3s, transform .3s; }
.cs-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.cs-card-n { font-family: var(--mono); color: var(--yellow); font-size: 13px; }
.cs-card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(15px,1.4vw,19px); margin: 14px 0 8px; line-height: 1.1; }
.cs-card p { color: var(--grey); font-size: 14px; }

/* 4 · caso */
.cs-caso { background: var(--carbon); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-caso-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); align-items: end; }
.cs-caso-head .lead + .lead { margin-top: 14px; }
.cs-caso-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(28px,3.5vw,44px); }
.cs-cg { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; }
.cs-cg img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.cs-cg:hover img { transform: scale(1.06); }

/* 5 · temario (acordeón) */
.tema-acc { margin-top: clamp(28px,3.5vw,44px); border-top: 1px solid var(--line); }
.tema-block { border-bottom: 1px solid var(--line); }
.tema-block > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px; padding: clamp(18px,2vw,26px) 0; }
.tema-block > summary::-webkit-details-marker { display: none; }
.tema-bt { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(16px,1.7vw,24px); flex: 1; }
.tema-bm { color: var(--grey); flex: none; }
.tema-caret { font-family: var(--display); color: var(--yellow); font-size: 24px; line-height: 1; flex: none; transition: transform .3s; }
details[open] > summary .tema-caret { transform: rotate(45deg); }
.tema-list { list-style: none; padding: 0 0 18px; }
.tema-list li { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.tema-n { color: var(--yellow); flex: none; width: 42px; }
.tema-t { flex: 1; color: var(--bone); font-size: 15px; }
.tema-dur { color: var(--grey); flex: none; }
.tema-free { display: inline-block; background: var(--yellow); color: var(--ink); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* 6 · roadmap */
.road-list { margin-top: clamp(28px,3.5vw,44px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.road-mod { display: flex; align-items: center; gap: 18px; padding: clamp(18px,2vw,24px) clamp(18px,2.4vw,28px); border-bottom: 1px solid var(--line); }
.road-mod:last-child { border-bottom: 0; }
.road-mod.locked { opacity: .6; }
.road-ico { font-size: 20px; flex: none; }
.road-txt { flex: 1; min-width: 0; }
.road-n { color: var(--yellow); }
.road-mod.locked .road-n { color: var(--grey); }
.road-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(15px,1.5vw,21px); line-height: 1.05; margin: 5px 0 4px; }
.road-entrega { color: var(--grey); }
.road-fecha { flex: none; text-align: right; color: var(--grey); }
.road-fecha--live { color: var(--yellow); }

/* 7 · quién */
.cs-quien-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px,5vw,72px); align-items: center; }
.cs-quien-img { border-radius: 18px; overflow: hidden; }
.cs-quien-img img { width: 100%; display: block; filter: grayscale(1) contrast(1.02); }
.cs-quien .lead { margin: 14px 0; }
.cs-quien-stats { display: flex; flex-wrap: wrap; gap: 26px 40px; margin: 26px 0; }
.cs-quien-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(26px,3vw,40px); color: var(--yellow); display: block; line-height: 1; }
.cs-quien-stats span { color: var(--grey); }

/* 8 · qué te llevas */
.cs-files { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px,4vw,56px); margin-top: clamp(24px,3vw,40px); }
.cs-files li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(15px,1.4vw,18px); }
.cs-file-n { color: var(--yellow); flex: none; }

/* 9 · precio */
.cs-price-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: clamp(28px,3.5vw,44px); align-items: stretch; }
.cs-price-card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; }
.cs-price-main { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cs-price-tag { letter-spacing: .14em; }
.cs-price-main .cs-price-tag { color: rgba(25,25,25,.7); }
.cs-price-beca .cs-price-tag { color: var(--grey); }
.cs-price-amt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.cs-price-now { font-family: var(--display); font-weight: 400; font-size: clamp(44px,6vw,78px); line-height: .9; }
.cs-price-cur { font-family: var(--mono); font-size: 14px; }
.cs-price-main .cs-price-cur { color: rgba(25,25,25,.7); }
.cs-price-was { font-family: var(--mono); font-size: 14px; text-decoration: line-through; color: rgba(25,25,25,.5); }
.cs-price-inc { font-size: 14.5px; margin-bottom: 8px; }
.cs-price-main .cs-price-inc { color: rgba(25,25,25,.82); }
.cs-price-beca .cs-price-inc { color: var(--grey); }
.cs-price-inc--dim { opacity: .8; }
.cs-price-card .btn { margin-top: auto; align-self: flex-start; }
.cs-price-main .btn--solid { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.cs-price-main .btn--solid:hover { background: var(--carbon-2); }

/* 10 · lección gratis + captura */
.cs-free { background: var(--carbon); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.cs-free .lead { margin: 16px 0; }
.mini-capture { display: flex; flex-direction: column; gap: 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px,3vw,32px); }
.mini-capture .lf-field { display: flex; flex-direction: column; gap: 6px; }
.mini-capture .lf-field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.mini-capture input { font: inherit; font-size: 15px; color: var(--bone); background: var(--carbon); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s; }
.mini-capture input:focus { outline: none; border-color: var(--yellow); }
.mini-capture [aria-invalid="true"] { border-color: #c0392b; }
.mini-capture .btn { margin-top: 4px; justify-content: center; }
.mc-ok { text-align: center; padding: 16px 0; }
.mc-ok-tick { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }

/* 11 · faq */
.faq-list { margin-top: clamp(24px,3vw,40px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(16px,1.8vw,22px) 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(14px,1.4vw,19px); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--grey); padding-bottom: 20px; max-width: 70ch; font-size: 15px; }

/* 12 · cierre */
.cs-cierre { text-align: center; background: var(--carbon); border-top: 1px solid var(--line); }
.cs-cierre h2 { font-size: clamp(30px,5.4vw,72px); margin-bottom: 26px; }
.cs-cierre .y { color: var(--yellow); }
.cs-cierre .cs-actions { justify-content: center; }

@media (max-width: 860px) {
  .cs-prob-cols, .cs-cards, .cs-caso-head, .cs-quien-grid, .cs-price-grid, .cs-free-grid, .cs-files, .cs-caso-gallery { grid-template-columns: 1fr; }
  .cs-cards { grid-template-columns: 1fr 1fr; }
  .cs-caso-gallery { grid-template-columns: 1fr 1fr; }
  .cs-quien-img { max-width: 340px; }
}
@media (max-width: 560px) {
  .cs-cards, .cs-prob-cols { grid-template-columns: 1fr; }
  .cs-actions .btn, .cs-price-card .btn { width: 100%; justify-content: center; }
  .road-mod { flex-wrap: wrap; }
  .road-fecha { text-align: left; }
}

/* ---------- 360 panoramas ---------- */
.panos-sec { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.pano-stage {
  position: relative; width: 100%;
  height: min(70svh, 620px);
  background: var(--carbon); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
}
.pano-stage .pnlm-container { background: var(--carbon) !important; }
.pano-cta {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(25,25,25,.45); color: var(--bone);
  cursor: pointer; width: 100%;
}
.pano-cta .mono-label { color: var(--bone); }
.pano-cta .ring {
  width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--yellow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pano-label {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(25,25,25,.7); color: var(--yellow); padding: 9px 14px; border-radius: 999px;
}
.pano-thumbs {
  display: flex; gap: 10px; margin-top: 14px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.pano-thumbs::-webkit-scrollbar { display: none; }
.pano-thumb {
  flex: none; width: 132px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; position: relative;
  transition: border-color .25s, opacity .25s;
  opacity: .6;
}
.pano-thumb img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.pano-thumb.on, .pano-thumb:hover { border-color: var(--yellow); opacity: 1; }
.pano-thumb span {
  position: absolute; left: 6px; bottom: 5px; right: 6px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone); text-shadow: 0 1px 4px rgba(0,0,0,.9);
  text-align: left; line-height: 1.2;
}

/* ---------- 360 section: tablero amarillo (destaca sobre el fondo oscuro) ---------- */
.panos-sec--gold {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(25,25,25,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.07) 1px, transparent 1px),
    var(--yellow);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
  border-top: 1px solid var(--yellow);
}
.panos-sec--gold .eyebrow { color: var(--ink); }
.panos-sec--gold .eyebrow::before { background: var(--ink); }
.panos-sec--gold .display { color: var(--ink); }
.panos-sec--gold .lead { color: rgba(25,25,25,.72); }
.panos-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 60px); margin-bottom: clamp(28px, 4vw, 48px); }
.panos-head-txt { max-width: 62ch; }
.panos-head-txt .display { margin: 12px 0 16px; }
.panos-head-txt .lead { max-width: 46ch; }
/* IRV_02 se "recarga" sobre el borde superior del visor 360 */
.panos-guide { position: relative; z-index: 2; width: clamp(130px, 15vw, 210px); align-self: flex-end; margin-bottom: clamp(-58px, -4vw, -28px); filter: drop-shadow(0 14px 26px rgba(25,25,25,.3)); flex: none; }
/* el visor 360 conserva su marco oscuro para que el render se lea bien sobre el amarillo */
.panos-sec--gold .pano-stage { border-color: rgba(25,25,25,.22); box-shadow: 0 26px 60px rgba(25,25,25,.28); }
.panos-sec--gold .pano-thumb.on, .panos-sec--gold .pano-thumb:hover { border-color: var(--ink); }
@media (max-width: 560px) { .panos-guide { display: none; } }

/* ---------- hero end-line: cierre contundente al final del scroll-scrub ---------- */
.hero-endline {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(34px, 8vh, 92px);
  z-index: 3; opacity: 0; pointer-events: none; transform: translateY(26px);
  transition: opacity .1s linear;
}
.hero-endline span {
  display: inline-block; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(26px, 5vw, 66px); line-height: .95; letter-spacing: -.015em;
  color: var(--bone); max-width: 15ch;
  padding: 4px 0 4px 20px; border-left: 6px solid var(--yellow);
  text-shadow: 0 6px 44px rgba(0,0,0,.72);
}
.hero-endline b { color: var(--yellow); font-weight: inherit; }

/* ---------- contacto: sticker cómic ---------- */
.contact-aside .avatar--comic { max-width: 330px; margin-bottom: 8px; filter: drop-shadow(0 16px 30px rgba(25,25,25,.32)); }

/* ---------- hero: acciones + botón 360 ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-360-btn { padding-left: 14px; }
.hero-360-btn .ring360 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor;
  font-family: var(--mono); font-size: 10px; letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.hero-360-btn:hover .ring360 { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
/* botón 360 reubicado en la sección "El espectro de diseño" */
.spec-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.spec-aside .lead { margin: 0; }

/* ---------- 360: leyenda de ayuda (amarilla) + botones de zoom ---------- */
#recorridos-360 { scroll-margin-top: 88px; }
.pano-hint {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  z-index: 6; max-width: min(90%, 580px); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease; pointer-events: none;
}
.pano-hint.show { opacity: 1; visibility: visible; }
.pano-hint span {
  display: inline-block; background: rgba(25,25,25,.85); color: var(--yellow);
  border: 1px solid var(--yellow); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; line-height: 1.35; backdrop-filter: blur(6px);
}
.pano-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: none; flex-direction: column; gap: 8px; }
.pano-zoom.show { display: flex; }
.pano-zoom-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(25,25,25,.72); border: 1px solid var(--yellow); color: var(--yellow);
  font-family: var(--display); font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s;
}
.pano-zoom-btn:hover { background: var(--yellow); color: var(--ink); }
.pano-zoom-btn:active { transform: scale(.92); }

/* ---------- avatar cartoons ---------- */
.approach-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.avatar { max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
.avatar-tagline { text-align: center; margin-top: 14px; }
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr; } .avatar { max-width: 220px; } }

/* ---------- animation base states (JS + motion only) ---------- */
.js.motion .reveal { opacity: 0; transform: translateY(28px); }
.js.motion .reveal-img img { transform: scale(1.12); opacity: 0; }
.js.motion .hero .hero-eyebrow,
.js.motion .hero h1 .line,
.js.motion .hero .hero-sub { opacity: 0; transform: translateY(40px); }
.js.motion .stat b { opacity: 0; }

/* ---------- cómo trabajo (proceso) ---------- */
.como.fx-scene > .container { position: relative; z-index: 3; }
.como-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: clamp(30px, 4vw, 52px); }
.como-step { background: var(--ink); padding: clamp(28px, 3vw, 46px); min-height: clamp(200px, 22vw, 300px); display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.como-step:hover { background: var(--carbon); }
.como-n { color: var(--yellow); font-size: 13px; }
.como-step h3 { font-family: var(--display); font-size: clamp(24px, 2.2vw, 36px); text-transform: uppercase; letter-spacing: .01em; margin-top: 2px; }
.como-step p { color: var(--grey); line-height: 1.6; font-size: 15px; margin-top: auto; }

/* ---------- ecosistema: etapas conectadas (flujo consecutivo) ---------- */
.etapas-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; margin-bottom: clamp(30px, 4vw, 54px); }
.etapas-title { font-size: clamp(30px, 4vw, 60px); line-height: 1.0; }
.etapas-note { margin: 0; color: rgba(239,239,239,.82); }
.etapas-note strong { color: var(--yellow); font-weight: 600; }
.etapas-flow { list-style: none; position: relative; }
.etapa { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: clamp(16px, 2vw, 34px); padding-bottom: clamp(26px, 3vw, 46px); }
.etapa:last-child { padding-bottom: 0; }
/* espina que conecta un nodo con el siguiente */
.etapa::before { content: ""; position: absolute; left: 28px; top: 46px; bottom: -6px; width: 2px; background: linear-gradient(var(--yellow), rgba(255,196,0,.25)); z-index: 0; }
.etapa:last-child::before { display: none; }
.etapa-node { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--yellow); background: var(--ink); display: flex; align-items: center; justify-content: center; color: var(--yellow); font-size: 15px; letter-spacing: .04em; transition: background .3s, color .3s, transform .3s; }
.etapa-txt { padding-top: 5px; }
.etapa-txt h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: .01em; color: var(--bone); margin-bottom: 8px; }
.etapa-txt p { color: var(--grey); line-height: 1.6; max-width: 68ch; }
@media (hover: hover) { .etapa:hover .etapa-node { background: var(--yellow); color: var(--ink); transform: scale(1.06); } }
/* roadmap del curso reutiliza el timeline conectado, con estados bloqueado/vivo */
.road-flow .road-n { display: block; color: var(--yellow); font-size: 11px; margin-bottom: 6px; }
.road-locked .etapa-node { border-color: var(--line); color: var(--grey); font-size: 17px; }
.road-locked .road-n { color: var(--grey); }
.road-locked .etapa-txt h4 { color: var(--grey); }
.road-locked .etapa-txt p { opacity: .68; }
@media (hover: hover) { .road-locked:hover .etapa-node { background: var(--ink); color: var(--grey); transform: none; } }

/* ---------- B2B más compacto ---------- */
.b2b.section { padding-top: clamp(46px, 6vw, 82px); padding-bottom: clamp(46px, 6vw, 82px); }
.b2b-head { margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- 360 del día ---------- */
.daily360-sec { border-top: 1px solid var(--line); }
.d360-stage { position: relative; margin-top: clamp(24px, 3vw, 40px); height: clamp(340px, 58vh, 600px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--carbon); }
.d360-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.d360-stage.playing .d360-poster, .d360-stage.playing .d360-play { opacity: 0; pointer-events: none; }
.d360-stage .pnlm-container { background: var(--carbon) !important; }
.d360-play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(25,25,25,.55); border: 1.5px solid var(--yellow); transition: transform .3s, background .3s; z-index: 4; }
.d360-play:hover { transform: scale(1.08); background: var(--yellow); }
.d360-play .ring { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; color: var(--yellow); }
.d360-play:hover .ring { color: var(--ink); }
.d360-label { position: absolute; left: 18px; bottom: 16px; z-index: 4; color: var(--bone); background: rgba(25,25,25,.6); padding: 6px 12px; border-radius: 999px; }
.d360-tag { position: absolute; right: 16px; top: 16px; z-index: 4; color: var(--ink); background: var(--yellow); padding: 6px 12px; border-radius: 999px; }
.d360-lead { margin-top: 20px; max-width: 52ch; }

/* ---------- quiz de contacto (sobre tablero amarillo) ---------- */
.quiz { margin: 0 0 32px; max-width: 660px; }
.quiz-top { margin-bottom: 22px; }
.quiz > .quiz-top .eyebrow { color: var(--ink); }
.quiz > .quiz-top .eyebrow::before { background: var(--ink); }
.quiz-intro { color: rgba(25,25,25,.82); margin-top: 10px; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.quiz-bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(25,25,25,.18); overflow: hidden; }
.quiz-bar-fill { display: block; height: 100%; width: 16%; background: var(--ink); border-radius: 999px; transition: width .4s cubic-bezier(.16,1,.3,1); }
.quiz-count { color: rgba(25,25,25,.7); white-space: nowrap; }
.quiz-step[hidden] { display: none; }
.quiz-step { border: 0; padding: 0; margin: 0; animation: quizIn .35s ease both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-step legend { font-family: var(--display); font-size: clamp(21px, 2.4vw, 32px); text-transform: uppercase; line-height: 1.06; color: var(--ink); margin-bottom: 18px; padding: 0; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { text-align: left; padding: 15px 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: rgba(255,255,255,.16); color: var(--ink); font-size: 15px; font-weight: 500; transition: background .2s, transform .2s; }
.quiz-opt:hover { background: rgba(255,255,255,.4); transform: translateY(-2px); }
.quiz-opt.sel { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.quiz-select, .quiz-input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.2); border: 1.5px solid var(--ink); border-radius: 12px; padding: 15px 16px; }
.quiz-select:focus, .quiz-input:focus { outline: none; background: rgba(255,255,255,.4); }
.quiz .lf-field { display: block; margin-bottom: 12px; }
.quiz .lf-field > span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(25,25,25,.7); margin-bottom: 7px; }
.quiz .lf-field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.2); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; }
.quiz .lf-field input:focus { outline: none; background: rgba(255,255,255,.4); }
.quiz [aria-invalid="true"] { border-color: #a01b10; background: rgba(160,27,16,.08); }
.quiz .lf-err { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #7a1109; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.quiz-back { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(25,25,25,.7); padding: 8px 4px; }
.quiz-back:hover { color: var(--ink); }
.quiz .quiz-next, .quiz .quiz-send { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.quiz .quiz-next:hover, .quiz .quiz-send:hover { background: var(--carbon-2, #000); color: var(--yellow); }
.quiz .form-note { color: rgba(25,25,25,.6); margin-top: 4px; }
.quiz .lf-ok { text-align: left; }
.quiz .lf-ok .lead { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .como-steps { grid-template-columns: 1fr; }
  .como-step { min-height: 0; }
  .etapas-head { grid-template-columns: 1fr; gap: 14px; }
  .etapa { grid-template-columns: 48px 1fr; gap: 16px; }
  .etapa::before { left: 23px; top: 40px; }
  .etapa-node { width: 48px; height: 48px; font-size: 13px; }
  .about-sticky { position: static; }
  .quiz-opts { grid-template-columns: 1fr; }
  .d360-stage { height: 52vh; }
  /* nostalgia: 1 columna (intro sobre galería) */
  .nos-content { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
}
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta, .nav-proj, .nav-course { display: none; }
  .burger { display: block; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .about-grid, .about-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a + a { border-left: 0; border-top: 1px solid rgba(25,25,25,.28); }
  .scroll-hint { display: none; }
}

/* ---------- phone: designed, not shrunk ---------- */
@media (max-width: 700px) {
  /* hero: full-width action, tighter type */
  .hero-sub { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-sub .btn { justify-content: center; width: 100%; }
  /* lead form: single column */
  .lf-grid { grid-template-columns: 1fr; }
  .lf-foot { gap: 14px; }
  .lead-form .btn--solid { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }

  /* categories: honeycomb becomes a 2-col tile grid */
  .hexwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hexrow { display: contents; }
  .hexrow + .hexrow { margin-top: 0; }
  .hex { width: 100%; aspect-ratio: auto; height: 118px; }
  .hex::before, .hex::after { display: none; }
  .hex-in {
    clip-path: none; border-radius: 16px; border: 1px solid var(--line);
    align-items: flex-start; justify-content: flex-end; text-align: left;
    padding: 14px; gap: 3px;
  }
  .hex-in img { opacity: .6 !important; filter: none !important; transform: none !important; }
  .hex-name { font-size: 13px; }
  .hex-scale { font-size: 10px; }
  .hex-count { display: none; }
  .hex-client { font-size: 9.5px; margin-top: 3px; }

  /* projects gallery: 2-column grid on phone */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { border-radius: 13px; }
  .pcard-media { aspect-ratio: 3 / 4; }
  .pcard-info { padding: 12px; }
  .pcard-title { font-size: 14px; }
  .pcard-scale { font-size: 9px; margin-bottom: 5px; }
  .pcard-loc { font-size: 9px; margin-top: 5px; }
  .pcard-go { display: none; }

  /* touch targets */
  .chip { padding: 12px 18px; }
  .filters-in { padding: 12px var(--pad); }

  /* nav: brush logo only, room for the language toggle */
  .brand-name { display: none; }
  .brand img { height: 30px; }

  /* prevent grid children from forcing horizontal overflow */
  .contact-grid > *, .about-grid > *, .about-hero-grid > * { min-width: 0; }
  .contact-row b { font-size: 17px; overflow-wrap: anywhere; }
  blockquote.quote { font-size: 19px; }

  /* featured bands: compact */
  .fband { height: 300px; }
  .fband .arrgo { width: 42px; height: 42px; font-size: 16px; }
  .fband-bg--split img:nth-child(3) { display: none; } /* máx. 2 en composición en móvil */

  /* b2b + nostalgia */
  .b2b-head { grid-template-columns: 1fr; gap: 16px; }
  .b2b-cards { grid-template-columns: 1fr; }
  .nos-bg { grid-template-columns: repeat(3, 1fr); }
  .nos-portrait { width: 180px; }

  /* contact + about */
  .contact-aside .avatar { max-width: 230px; margin: 0 auto 8px; display: block; }
  .cutout img { width: min(78vw, 340px); }
  .exp-item { grid-template-columns: 40px 1fr; gap: 12px; }

  /* 360 viewer */
  .pano-stage { height: 46svh; border-radius: 16px; }
  .pano-thumb { width: 108px; }

  /* modal head */
  .pmodal-head h2 { font-size: 22px; }
  .pmodal-close { padding: 10px 14px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
