/* ============================================================
   Juan Ruiz · v3 — estética Google / Material limpia
   ============================================================ */

:root {
  --bg:            #0a0a0a;
  --bg-soft:       #111111;
  --bg-soft-2:     #161616;
  --surface:       #141414;
  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --ink:           #f0ece4;
  --ink-2:         rgba(240,236,228,.82);
  --muted:         rgba(240,236,228,.5);
  --muted-2:       rgba(240,236,228,.35);

  --accent:        #C9A96E;
  --accent-ink:    #9B7A3E;
  --accent-soft:   #F5EFE1;

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --shadow-2: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.45);
  --shadow-3: 0 4px 16px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.5);

  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --t: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss03';
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ============================================================
   Header fijo · barra Google
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 32px;
  background: rgba(10,10,10,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.topbar__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
}

.topbar__nav {
  display: flex;
  gap: 4px;
}

.topbar__nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s var(--t), color .2s var(--t);
}

.topbar__nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.topbar__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(240,236,228,.95);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .2s var(--t), transform .2s var(--t), box-shadow .2s var(--t);
  box-shadow: var(--shadow-1);
}

.topbar__cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* ============================================================
   Rail lateral
   ============================================================ */
.rail {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 8px;
  background: rgba(20,20,20,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.rail .dot {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  transition: transform .2s var(--t);
}

.rail .dot span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background .25s var(--t), transform .25s var(--t);
}

.rail .dot:hover span { background: var(--muted); transform: scale(1.4); }
.rail .dot.is-active span { background: var(--accent); transform: scale(1.6); }

.rail .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--t), transform .2s var(--t);
}

.rail .dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   Flechas
   ============================================================ */
.arrow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--t), box-shadow .2s var(--t), background .2s var(--t);
}

.arrow:hover {
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
}

.arrow svg { width: 20px; height: 20px; }

.arrow--up   { top: 88px; }
.arrow--up:hover { transform: translateX(-50%) translateY(-2px); }

.arrow--down { bottom: 32px; }
.arrow--down:hover { transform: translateX(-50%) translateY(2px); }

/* ============================================================
   Slides
   ============================================================ */
.slides { padding-top: 64px; }

.slide {
  min-height: 100vh;
  padding: 96px 96px;
  position: relative;
}

.slide__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.slide__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 56px;
}

.slide__head--center { align-items: center; text-align: center; }
.slide__head--left   { align-items: flex-start; text-align: left; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.slide__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
}

.slide__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* ============================================================
   Slide 1 · HERO
   ============================================================ */
.slide--hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 96px;
  min-height: 100vh;
  background: #2e3033;
  color: #e8eaed;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: grayscale(10%) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(46,48,51,.2) 0%, rgba(46,48,51,.5) 60%, rgba(46,48,51,.8) 100%),
    linear-gradient(180deg, rgba(46,48,51,.4) 0%, rgba(46,48,51,.65) 60%, rgba(46,48,51,.85) 100%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__rule--top span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__rule--top span:first-child::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 4px rgba(52,168,83,.18);
}

.hero__rule--bottom { gap: 14px; }
.hero__rule--bottom svg { width: 18px; height: 18px; color: var(--muted); }

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(232,234,237,.78);
  font-weight: 400;
  margin-top: 8px;
}

/* Banda de marcas · estilo claro, en flujo, dentro de Contacto */
.brands-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.brands-strip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brands-strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
}

.brands-strip .brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s var(--t), transform .25s var(--t);
}

.brands-strip .brand:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.brands-strip img.brand {
  height: 24px;
  width: auto;
  filter: grayscale(100%);
  opacity: .55;
  transition: opacity .25s var(--t), filter .25s var(--t), transform .25s var(--t);
}
.brands-strip img.brand:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: none;
}

@media (max-width: 720px) {
  .brands-strip { margin-top: 48px; padding-top: 28px; gap: 14px; }
  .brands-strip__list { gap: 10px 24px; }
  .brands-strip .brand { font-size: 13px; }
  .brands-strip img.brand { height: 20px; }
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232,234,237,.7);
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 200px);
  line-height: .95;
  letter-spacing: -.04em;
  color: #f8f9fa;
}

.hero__name em {
  font-style: normal;
  font-weight: 400;
  color: #f8f9fa;
}

.hero__dot {
  color: #C9A96E;
  font-style: normal;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin-top: 24px;
}

.hero__meta > div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: box-shadow .2s var(--t), transform .2s var(--t), border-color .2s var(--t);
}

.hero__meta > div:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}

.hero__meta p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__meta em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   Slide 2 · TRABAJO — carrusel horizontal
   ============================================================ */
.slide--work {
  background: var(--bg-soft);
  padding: 96px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide--work .slide__head {
  padding: 0 96px;
  margin-bottom: 16px;
}

/* Filtro de proyectos · cápsula glassy estilo Apple */
.work-filter {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 44px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 1px 2px rgba(0,0,0,.3),
    0 6px 20px rgba(0,0,0,.2);
}

.filter-chip {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .005em;
  transition: background .25s var(--t), color .25s var(--t), transform .15s var(--t);
}

.filter-chip:hover {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}

.filter-chip:active { transform: scale(.96); }

.filter-chip.is-active {
  background: rgba(255,255,255,.14);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 1px 2px rgba(0,0,0,.3),
    0 2px 6px rgba(0,0,0,.2);
}

.work__viewport {
  position: relative;
}

/* Cards ocultos por filtro */
.work__card.is-hidden {
  display: none;
}

.work__grid {
  display: flex;
  gap: 24px;
  padding: 12px 96px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: 96px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
}

.work__grid::-webkit-scrollbar { display: none; }

.work__grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work__grid.is-dragging * { pointer-events: none; }

/* Flechas del carrusel */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--t), box-shadow .2s var(--t), background .2s var(--t), opacity .2s var(--t);
}

.carousel-nav:hover {
  background: var(--bg-soft);
  box-shadow: var(--shadow-3);
}

.carousel-nav:active { transform: translateY(-50%) scale(.94); }

.carousel-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-nav svg { width: 22px; height: 22px; }

.carousel-nav--prev { left: 32px; }
.carousel-nav--next { right: 32px; }

.work__card {
  position: relative;
  flex: 0 0 auto;
  width: min(72vw, 920px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: box-shadow .25s var(--t), transform .25s var(--t), border-color .25s var(--t);
}

.work__card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.16), 0 6px 16px rgba(0,0,0,.10);
  border-color: var(--border-strong);
  transform: translateY(-8px);
}

.work__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft-2);
}

/* Capa de enlace que cubre la card entera (debajo del botón de mute) */
.work__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  outline: none;
}
.work__mute { z-index: 4; }

.work__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft-2);
  z-index: 1;
  transition: opacity .45s var(--t);
  pointer-events: none;
}

.work__card.has-poster:hover .work__poster,
.work__card.has-poster:focus-within .work__poster {
  opacity: 0;
}

/* Card de galería · cicla entre 3 imágenes al hover */
.work__card--gallery .gallery-img {
  position: absolute;
  inset: 0;
}

.work__card--gallery .gallery-img--2,
.work__card--gallery .gallery-img--3 {
  opacity: 0;
}

.work__card--gallery:hover .gallery-img--1 { animation: gallery-fade-1 5.4s ease-in-out infinite; }
.work__card--gallery:hover .gallery-img--2 { animation: gallery-fade-2 5.4s ease-in-out infinite; }
.work__card--gallery:hover .gallery-img--3 { animation: gallery-fade-3 5.4s ease-in-out infinite; }

@keyframes gallery-fade-1 {
  0%, 30%   { opacity: 1; }
  38%, 92%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes gallery-fade-2 {
  0%, 30%   { opacity: 0; }
  38%, 60%  { opacity: 1; }
  68%, 100% { opacity: 0; }
}
@keyframes gallery-fade-3 {
  0%, 60%   { opacity: 0; }
  68%, 92%  { opacity: 1; }
  100%      { opacity: 0; }
}

.work__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 70%);
  color: #fff;
}

.work__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  opacity: .8;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  letter-spacing: -.015em;
  text-align: right;
}

.work__mute {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(20,20,20,.88);
  color: var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: opacity .2s var(--t), transform .2s var(--t), background .2s var(--t);
}

.work__card:hover .work__mute { opacity: 1; }
.work__mute:hover { background: rgba(30,30,30,.96); transform: scale(1.05); }

.work__mute .icon { width: 20px; height: 20px; }
.work__mute .icon--unmuted { display: none; }
.work__mute[aria-pressed="true"] .icon--muted { display: none; }
.work__mute[aria-pressed="true"] .icon--unmuted { display: block; }

.scroll-hint-h {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 96px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: flex-start;
}

.scroll-hint-h svg {
  width: 28px;
  height: 14px;
  animation: hint-pulse 2.4s var(--t) infinite;
}

@keyframes hint-pulse {
  0%, 100% { transform: translateX(0); opacity: .8; }
  50%      { transform: translateX(6px); opacity: 1; }
}

/* ============================================================
   Slide 3 · EXPERIENCIA
   ============================================================ */
.slide--experience { background: var(--bg); }

.experience {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.exp {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.exp__item:last-child { border-bottom: 1px solid var(--border); }

.exp__year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.exp__item h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
  margin-bottom: 4px;
}

.exp__link {
  color: var(--accent-ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--t), color .2s var(--t);
}

.exp__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.exp__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

.exp__item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   Slide 4 · PERSONAL
   ============================================================ */
.slide--personal { background: var(--bg-soft); }

.duo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.duo__col {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--t), box-shadow .25s var(--t);
  background: var(--surface);
  border: 1px solid var(--border);
}

.duo__col:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.14), 0 6px 16px rgba(0,0,0,.08);
}

.duo__media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.duo__col:not(.duo__col--qp) .duo__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  z-index: 1;
}

/* Vídeo en hover: cover sobre el media 4:5 */
.duo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s var(--t);
}
.duo__video.is-ready { opacity: 1; }

/* Textos por encima del iframe y del veil */
.duo__media > .duo__tag,
.duo__media > .duo__body {
  position: relative;
  z-index: 2;
}

/* Qreativepass · fondo verde profundo + efecto linterna */
.duo__col--qp .qp-stage {
  background: #0a3b2a;
  color: #f3fff6;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.duo__col--qp .qp-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle 380px at var(--mx, 50%) var(--my, 45%),
      rgba(180, 255, 210, .26) 0%,
      rgba(120, 255, 170, .12) 30%,
      rgba(60, 200, 130, .04) 55%,
      transparent 75%
    );
  z-index: 1;
  transition: opacity .35s var(--t);
  pointer-events: none;
}

.duo__col--qp .qp-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.duo__col--qp .duo__tag,
.duo__col--qp .duo__body {
  position: relative;
  z-index: 2;
}

.duo__col--qp .duo__tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  color: #f3fff6;
}

.qp-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -.03em;
  line-height: 1;
  color: #f3fff6;
}

.duo__col--qp .duo__more {
  color: rgba(243,255,246,.8);
}

.duo__tag {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}

.duo__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duo__body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.duo__body p {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 40ch;
}

.duo__more {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   Slide 5 · FORMACIÓN
   ============================================================ */
.slide--studies { background: var(--bg); }

.studies {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline__item {
  position: relative;
  padding: 20px 0 24px;
}

.timeline__item + .timeline__item {
  border-top: 1px dashed var(--border);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.timeline__item h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline__item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.timeline__meta {
  margin-top: 4px;
  font-size: 13px !important;
  color: var(--muted) !important;
}

/* ============================================================
   Slide 6 · HABILIDADES — 4 columnas editoriales
   ============================================================ */
.slide--skills { background: var(--bg); }

.skills {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.skills .slide__head {
  margin-bottom: 0;
  position: relative;
}

/* Leyenda · horizontal en una línea, alineada a la derecha */
.skills-legend {
  list-style: none;
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.skills-legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Niveles · 3 dots */
.lvl {
  width: 28px;
  height: 6px;
  flex-shrink: 0;
}

.lvl circle { fill: var(--border-strong); transition: fill .25s var(--t); }
.lvl[data-level="1"] circle:nth-child(1) { fill: var(--accent); }
.lvl[data-level="2"] circle:nth-child(-n+2) { fill: var(--accent); }
.lvl[data-level="3"] circle { fill: var(--accent); }

/* Lista · 4 columnas */
.skills-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.skills-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--border);
}

.skills-row:first-child { padding-left: 0; }
.skills-row:last-child { border-right: 0; padding-right: 0; }

@media (min-width: 1025px) {
  .skills-row:not(:first-child) { padding-left: 28px; }
}

.skills-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-row__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.3;
  border-bottom: 1px dashed transparent;
  transition: color .2s var(--t), border-color .2s var(--t);
}

.skill:hover {
  color: var(--accent);
  border-bottom-color: var(--border);
}
.skill:hover .lvl circle { fill: var(--accent); }

.skill__name { min-width: 0; }

.skills-row__items--plain .skill { cursor: default; }
.skills-row__items--plain .skill:hover {
  color: var(--ink);
  border-bottom-color: transparent;
}

.skills-note {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

/* ============================================================
   Slide 7 · CONTACTO
   ============================================================ */
.slide--contact {
  background:
    radial-gradient(60% 80% at 50% 100%, var(--bg-soft) 0%, transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact { width: 100%; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  transition: box-shadow .25s var(--t), transform .25s var(--t), border-color .25s var(--t);
  min-height: 160px;
  justify-content: space-between;
}

.contact__card:not(.contact__card--static):hover {
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

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

.contact__value {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.3;
}

.contact__more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.contact__foot {
  margin-top: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted-2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .slide { padding: 80px 48px; }
  .slide--hero { padding: 96px 48px 48px; }
  .slide--work { padding: 80px 0; }
  .slide--work .slide__head { padding: 0 48px; }
  .work__grid { padding: 12px 48px 24px; scroll-padding-left: 48px; }
  .work__card { width: min(82vw, 720px); }
  .scroll-hint-h { margin: 12px 48px 0; }
  .experience, .studies, .skills {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__meta { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: repeat(2, 1fr); }
  .skills-row { border-right: 0; padding: 24px 0; border-top: 1px solid var(--border); }
  .skills-row:first-child, .skills-row:nth-child(2) { border-top: 0; }
  .duo { grid-template-columns: 1fr; }
  .rail { display: none; }
}

@media (max-width: 720px) {
  .skills-list { grid-template-columns: 1fr; }
  .skills-row:nth-child(2) { border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .slide { padding: 64px 22px; }
  .slide--hero { padding: 80px 22px 32px; }
  .slide--work { padding: 64px 0; }
  .slide--work .slide__head { padding: 0 22px; }
  .work__grid { padding: 12px 22px 24px; scroll-padding-left: 22px; }
  .work__card { width: 86vw; aspect-ratio: 4 / 3; }
  .work__caption { padding: 18px 20px; }
  .scroll-hint-h { margin: 12px 22px 0; }
  .topbar { padding: 12px 18px; gap: 12px; }
  .topbar__nav { display: none; }
  .topbar__cta { padding: 8px 14px; font-size: 12px; }
  .exp__item, .contact__card { padding: 20px; }
  .exp__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .arrow { display: none; }
}

/* ============================================================
   EXP · Hero scroll-morph
   ============================================================ */
.slide--hero-morph {
  position: relative;
  background: #0a0a0a;
  color: #f0ece4;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.slide--hero-morph .hero__bg,
.slide--hero-morph .hero__veil,
.slide--hero-morph .hero__inner,
.slide--hero-morph .hero__logos { display: none !important; }

.morph-stage {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  z-index: 1;
}

.morph-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 85px;
  margin-left: -30px;
  margin-top: -42.5px;
  will-change: transform, opacity;
  pointer-events: none;
}

.morph-card__front {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.3);
  background: #1a1a1a;
}

.morph-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.morph-card__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.04);
  pointer-events: none;
}

/* ----- Intro text · aparece al cambiar a fase 'circle' (primer scroll) ----- */
.morph-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity .6s ease, filter .6s ease;
}

.morph-intro__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,236,228,.55);
  margin-bottom: 18px;
}

.morph-intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 160px);
  line-height: .92;
  letter-spacing: -.04em;
  color: #f0ece4;
  margin: 0;
}

.morph-intro__title em { font-style: normal; font-weight: 400; color: #C9A96E; }
.morph-intro__dot { color: #C9A96E; font-style: normal; }

.morph-intro__sub {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(240,236,228,.4);
}

/* ----- Arc text (aparece cuando se forma el arco) ----- */
.morph-arc-text {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.morph-arc-text__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #f0ece4;
  margin: 0 0 14px 0;
  max-width: 760px;
}

.morph-arc-text__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240,236,228,.7);
  max-width: 560px;
  margin: 0;
}

@media (max-width: 720px) {
  .morph-arc-text { top: 8%; }
  .morph-card { width: 48px; height: 68px; margin-left: -24px; margin-top: -34px; }
}


/* ============================================================
   KPI Band
   ============================================================ */
.kpi-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 96px;
}

.kpi-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  animation: kpi-float 4s ease-in-out infinite;
}

.kpi-item:nth-child(2) { animation-delay: 0.4s; }
.kpi-item:nth-child(3) { animation-delay: 0.8s; }
.kpi-item:nth-child(4) { animation-delay: 1.2s; }

@keyframes kpi-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.kpi-item__value {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.kpi-item__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  .kpi-band { padding: 64px 48px; }
}

@media (max-width: 600px) {
  .kpi-band { padding: 56px 24px; }
  .kpi-band__inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.preloader.is-done {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader__name {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-name-in 0.7s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}

@keyframes preloader-name-in {
  to { opacity: 1; transform: translateY(0); }
}

.preloader__bar {
  width: clamp(160px, 28vw, 260px);
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.preloader__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: preloader-fill 1.6s cubic-bezier(.4,0,.2,1) 0.5s forwards;
}

@keyframes preloader-fill {
  to { width: 100%; }
}
