:root {
  --paper:   #faefe6;
  --paper-2: #faefe6;
  --ink:     #2d1a38;
  --muted:   #7a6080;
  --line:    rgba(85, 53, 102, .16);
  --night:   #553566;
  --acid:    #7faf36;
  --coral:   #fc883d;
  --blue:    #5ea5bd;
  --yellow:  #c665c0;
  --olive:   #5b6947;
  --lime:    #7faf36;
  --font-display: "Hagrid", Arial, sans-serif;
  --font-body:    "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Transición circular entre secciones (estilo dorstenlesser.com) ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ink);
  /* usar px para compatibilidad con todos los navegadores */
  clip-path: circle(0px at var(--tx, 50%) var(--ty, 50%));
  transition: clip-path .6s cubic-bezier(.77, 0, .18, 1);
  pointer-events: none;
  will-change: clip-path;
}
.page-transition.is-open {
  clip-path: circle(3000px at var(--tx, 50%) var(--ty, 50%));
  pointer-events: all;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

/* ── Cursor dot ── */
.cursor-dot {
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--acid);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
}

/* ── Cursor PLAY (IMAGEN 3) ── */
.play-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 300;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.play-cursor.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

/* ══════════════════════════════════════
   HEADER (IMAGEN 4)
══════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 3.8vw, 58px);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(244, 241, 232, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

/* Logo izquierdo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brand-symbol {
  display: grid;
  width: 46px; height: 46px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  letter-spacing: 0;
}
.brand-name {
  font-size: 13px;
  line-height: .92;
}

/* Globitos laterales fijos (estilo dorstenlesser.com) */
.side-nav {
  position: fixed;
  right: 24px;
  top: 22%;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.side-capsule {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  background: var(--ink);
  overflow: hidden;
  flex-shrink: 0;
  transition: width .38s cubic-bezier(.4,0,.2,1), border-radius .38s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}
.side-capsule:hover {
  width: 174px;
  border-radius: 999px;
}
/* Label que aparece al expandir — fuera del círculo hasta que haya espacio */
.side-capsule::after {
  content: attr(data-label);
  position: absolute;
  left: 68px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: capitalize;
  letter-spacing: -.01em;
  color: var(--paper);
}
/* Un color de paleta por cada globito */
.side-nav .side-capsule:nth-child(1) { background: #c665c0; }
.side-nav .side-capsule:nth-child(2) { background: #fc883d; }
.side-nav .side-capsule:nth-child(3) { background: #5b6947; }
.side-nav .side-capsule:nth-child(4) { background: #5ea5bd; }
.side-nav .side-capsule:nth-child(5) { background: #553566; }
.side-nav .side-capsule:nth-child(6) { background: #7faf36; }

/* Texto oscuro en los fondos claros */
.side-nav .side-capsule:nth-child(4)::after,
.side-nav .side-capsule:nth-child(6)::after { color: var(--ink); }

/* ══════════════════════════════════════
   BARRA DE PROGRESO DE SCROLL
══════════════════════════════════════ */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: var(--progress, 0%);
  background: var(--blue);
  transition: width .08s linear;
  pointer-events: none;
}


/* ══════════════════════════════════════
   HERO (IMAGEN 2 + 3)
══════════════════════════════════════ */
.hero {
  display: grid;
  align-content: start;
  gap: clamp(24px, 4vw, 54px);
  overflow: hidden;
  min-height: 100svh;
  padding: 90px 108px clamp(36px, 5vw, 72px) clamp(18px, 4vw, 58px);
}
.hero-grid {
  width: min(1460px, 100%);
}
.section-index {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* "Hola, yo soy" — bocadillo de diálogo */
.hero-label {
  display: inline-flex;
  align-items: center;
  background: var(--coral);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px 6px 6px 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 22px;
  position: relative;
}
.hero-label::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  border-left: 11px solid var(--coral);
  border-bottom: 10px solid transparent;
}

/* Título editorial partido en líneas con bloques visuales */
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 112px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-line {
  display: flex;
  align-items: center;
}
.hero-word {
  display: inline-block;
}

/* Keyframes para animación fluida estilo video */
@keyframes heroGlow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes heroScan {
  0%   { top: -30%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 130%; opacity: 0; }
}
@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: .45; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: .8; }
}

/* Bloques tipo video/media — gradiente animado fluido */
.hero-block-insert {
  display: inline-block;
  width: clamp(80px, 11vw, 190px);
  height: .64em;
  background: linear-gradient(-55deg, #ff6542, #0f0f0e, #275bff, #ffc832, #0f0f0e, #ff66cc);
  background-size: 350% 350%;
  animation: heroGlow 5s ease infinite;
  margin: 0 .05em;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: none;
  position: relative;
  overflow: hidden;
}
/* línea de escaneo (scan line) que cruza verticalmente */
.hero-block-insert::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -30%;
  height: 28%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.09) 50%,
    transparent 100%);
  animation: heroScan 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
/* ▶ central que pulsa */
.hero-block-insert::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: rgba(255,255,255,.45);
  font-size: clamp(12px, 1.8vw, 26px);
  letter-spacing: 0;
  z-index: 2;
  animation: heroPulse 2.5s ease-in-out infinite;
}
.hero-block-insert:hover::after {
  animation-play-state: paused;
  color: rgba(255,255,255,.9);
}
/* Bloque B: misma animación, colores y timing invertidos */
.hero-block-insert--b {
  width: clamp(60px, 8vw, 130px);
  margin-left: .18em;
  background: linear-gradient(-55deg, #275bff, #0f0f0e, #ff6542, #d7ff41, #0f0f0e, #ff9b42);
  background-size: 350% 350%;
  animation: heroGlow 5s ease infinite reverse;
}
.hero-block-insert--b::before {
  animation-delay: 1.5s;
}

.hero-intro {
  width: min(760px, 100%);
  margin: 34px 0 0 auto;
  font-size: clamp(18px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.partner-strip span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 42px);
  font-weight: 900;
  letter-spacing: -.06em;
}

/* ══════════════════════════════════════
   SECCIONES BASE
══════════════════════════════════════ */
.section {
  padding: clamp(72px, 10vw, 150px) clamp(18px, 4vw, 58px);
}
.section-heading,
.portfolio-top {
  width: min(1250px, 100%);
  margin: 0 auto clamp(38px, 6vw, 76px);
}
.section-heading h2 {
  max-width: 1040px;
}
.intro-copy h2,
.section-heading h2,
.portfolio-top h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.4vw, 132px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.05em;
  text-transform: none;
}

/* ══════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════ */
.intro-section {
  padding-top: clamp(32px, 4vw, 52px);
  min-height: 100svh;
}
.intro-layout {
  width: min(1330px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 38vw) 1fr;
  gap: clamp(34px, 7vw, 104px);
  align-items: end;
}
.profile-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--night);
  overflow: hidden;
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}
.role {
  margin: 22px 0;
  color: var(--coral);
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 900;
  letter-spacing: -.04em;
}
.intro-copy p:not(.role) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}
.profile-facts div {
  padding: 18px 14px 18px 0;
  border-bottom: 1px solid var(--line);
}
.profile-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.profile-facts dd {
  margin: 7px 0 0;
  font-weight: 900;
}
.stats-row {
  width: min(1330px, 100%);
  margin: clamp(42px, 7vw, 86px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 106px);
  line-height: .82;
  letter-spacing: -.08em;
}
.stat span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   HABILIDADES (IMAGEN 5 — versión creativa)
══════════════════════════════════════ */
.skills-section {
  background: var(--night);
  color: var(--paper);
}
.skills-header {
  width: min(1250px, 100%);
  margin: 0 auto clamp(38px, 5vw, 64px);
}
.skills-header .section-index { color: var(--acid); }
.skills-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.4vw, 132px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: lowercase;
  color: var(--paper);
}
.skills-grid {
  width: min(1250px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(244, 241, 232, .14);
}
.skill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(18px, 2.5vw, 30px) 0;
  border-bottom: 1px solid rgba(244, 241, 232, .14);
  cursor: default;
  transition: background .2s ease;
}
.skill-item:hover {
  background: rgba(255, 255, 255, .03);
}
.skill-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 68px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: none;
  transition: color .25s ease;
  color: var(--paper);
}
.skill-item:hover .skill-name {
  color: var(--skill-color, var(--acid));
}
.skill-bar-wrap {
  width: clamp(100px, 22vw, 320px);
  height: 6px;
  background: rgba(244, 241, 232, .12);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.skill-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--skill-color, var(--acid));
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}
.skill-item.bar-animated .skill-bar {
  width: var(--skill-width, 70%);
}

/* ══════════════════════════════════════
   INTERESES — sticky left DF + scroll panels (wearecheck.co)
══════════════════════════════════════ */
.interests-section {
  padding: 0;
}
.interests-top {
  padding: clamp(48px, 7vw, 90px) clamp(18px, 4vw, 58px) clamp(24px, 3vw, 40px);
}
.interests-top .section-index { margin: 0; }

.interest-layout {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 300px) 1fr;
  width: 100%;
  align-items: start;
}

/* Bloque DF único y estático (sticky) — UN solo bloque, no se duplica */
.interest-sticky-col {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  background: var(--olive);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2.5vw, 32px);
  overflow: hidden;
  z-index: 2;
}
.interest-by {
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  left: clamp(14px, 2vw, 22px);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
}
.interest-df {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
}

/* Paneles derechos que scrollean */
.interest-panels {
  border-top: 1px solid var(--line);
}
.interest-panel {
  padding: clamp(36px, 5.5vw, 80px) clamp(28px, 4.5vw, 70px);
  border-bottom: 1px solid var(--line);
  min-height: clamp(240px, 32vw, 400px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  background: var(--paper-2);
  transition: background .3s ease;
  cursor: default;
}
.interest-panel:hover { background: var(--paper); }

.interest-headline {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.interest-main {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s ease;
}
.interest-panel:hover .interest-main { color: var(--coral); }

.interest-sticker {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--sticker-color, #c5b4e3);
  color: var(--sticker-text, var(--ink));
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 4px;
  flex-shrink: 0;
  transform: rotate(-1.5deg);
}
.interest-desc {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  max-width: 580px;
}

/* ══════════════════════════════════════
   PORTAFOLIO (IMAGEN 6) — cards editoriales
══════════════════════════════════════ */
.portfolio-section {
  background: var(--paper-2);
}
.portfolio-top {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 28px;
  align-items: end;
}
.portfolio-top .section-index,
.portfolio-top h2 { grid-column: 1; }
.portfolio-top p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.filter-bar {
  width: min(1250px, 100%);
  margin: 0 auto 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Portfolio list mantiene compatibilidad con grid de cards */
.portfolio-list {
  width: min(1250px, 100%);
  margin: 0 auto;
}

/* Card hero (primer proyecto, full width) */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--night);
  display: block;
}
.project-card--hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 4px;
}
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.project-cards-grid .project-card {
  aspect-ratio: 4 / 3;
}
.project-card-media {
  width: 100%; height: 100%;
}
.project-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .5s ease;
  display: block;
}
.project-card-media .project-fallback {
  display: grid;
  width: 100%; height: 100%;
  min-height: 220px;
  place-items: center;
  background: var(--night);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -.05em;
  text-transform: lowercase;
  padding: 24px;
  text-align: center;
}
.project-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.project-card:hover .project-card-overlay,
.project-card:focus .project-card-overlay {
  transform: translateY(0);
  opacity: 1;
}
.project-card:hover .project-card-media img,
.project-card:focus .project-card-media img {
  transform: scale(1.04);
  filter: brightness(.75);
}
.project-card:focus {
  outline: 3px solid var(--blue);
  outline-offset: 0;
}
.project-card-meta {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}
.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 36px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.05em;
  text-transform: none;
}
.project-card--hero h3 {
  font-size: clamp(28px, 4vw, 60px);
}
/* Instagram card — preview escalado en la tarjeta */
.project-card-media--instagram {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.project-card-media--instagram iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 160px); /* extra altura para que la barra del perfil quede fuera del clip */
  border: none;
  pointer-events: none;
  display: block;
}
/* Modal Instagram embed */
.modal-media--instagram {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 4/5;
}
.modal-media--instagram iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-card-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acid);
}

/* ══════════════════════════════════════
   REFERENCIAS
══════════════════════════════════════ */
.references-section {
  background: var(--night);
  color: var(--paper);
}
.references-section .section-index { color: var(--acid); }
.references-grid {
  width: min(1250px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(244, 241, 232, .18);
}
.reference-card {
  min-height: 330px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid rgba(244, 241, 232, .18);
  border-bottom: 1px solid rgba(244, 241, 232, .18);
  transition: background .2s ease;
}
.reference-card:hover { background: rgba(255,255,255,.04); }
.reference-card:last-child { border-right: 0; }
.reference-card p {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.reference-card strong {
  display: block;
  margin-top: 34px;
  color: var(--acid);
}
.reference-card span {
  display: block;
  margin-top: 6px;
  color: rgba(244, 241, 232, .62);
}

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
}
.contact-copy p:last-child {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.contact-actions {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.text-link {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -.04em;
  transition: color .2s;
}
.text-link::after {
  color: var(--blue);
  content: "abrir";
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-self: center;
}
.text-link:hover { color: var(--blue); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 58px);
  background: var(--night);
  color: var(--paper);
  font-weight: 800;
}
.site-footer a { color: var(--acid); }

/* ══════════════════════════════════════
   MODAL DE PROYECTO
══════════════════════════════════════ */
.project-modal {
  width: min(1120px, calc(100% - 28px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
}
.project-modal::backdrop { background: rgba(0,0,0,.78); }
.modal-close {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 3;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-content {
  display: grid;
  grid-template-columns: minmax(300px, 43%) 1fr;
}
.modal-media {
  min-height: 620px;
  background: var(--night);
  overflow: hidden;
}
.modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal-media--video {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: unset;
  background: #000;
}
.modal-media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.modal-body {
  padding: clamp(28px, 5vw, 58px);
  overflow-y: auto;
  max-height: 88vh;
}
.modal-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: none;
}
.modal-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}
.modal-tags,
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.modal-tags span,
.modal-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.modal-links a:first-child {
  background: var(--ink);
  color: var(--paper);
}

/* ══════════════════════════════════════
   ANIMACIONES DE ENTRADA
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE — 900px
══════════════════════════════════════ */
@media (max-width: 900px) {
  .cursor-dot,
  .play-cursor { display: none; }

  .side-nav { right: 14px; gap: 8px; top: 20%; }
  .side-capsule { width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
  .side-capsule::after { left: 54px; font-size: 12px; }
  .side-capsule:hover { width: 150px; }

  .hero-title { font-size: clamp(40px, 12vw, 90px); }

  .intro-layout,
  .contact-section,
  .modal-content {
    grid-template-columns: 1fr;
  }
  .portfolio-top {
    grid-template-columns: 1fr;
  }
  .portfolio-top .section-index,
  .portfolio-top h2,
  .portfolio-top p:last-child {
    grid-column: auto;
    grid-row: auto;
  }
  .stats-row,
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-media { min-height: 360px; }

  .interest-layout { grid-template-columns: clamp(110px, 18vw, 180px) 1fr; }
  .interest-sticky-col { height: 50vh; }
}

/* ══════════════════════════════════════
   RESPONSIVE — 620px
══════════════════════════════════════ */
@media (max-width: 620px) {
  .site-header { padding: 14px 16px; }
  .brand-symbol { width: 40px; height: 40px; }
  .brand-name { display: none; }
  .side-nav { right: 10px; gap: 6px; top: 18%; }
  .side-capsule { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
  .side-capsule::after { left: 50px; font-size: 11px; }
  .side-capsule:hover { width: 140px; }

  .hero { padding: 80px 72px 36px 16px; }
  .hero-block-insert { width: clamp(28px, 7vw, 60px); }
  .hero-block-insert--b { display: none; }

  .section { padding-left: 16px; padding-right: 16px; }

  .profile-facts,
  .stats-row,
  .references-grid {
    grid-template-columns: 1fr;
  }
  .stat,
  .reference-card { border-right: 0; }

  .project-cards-grid { grid-template-columns: 1fr; }
  .project-card--hero { aspect-ratio: 4 / 3; }

  .interest-layout { grid-template-columns: 80px 1fr; }
  .interest-sticky-col { height: 44vh; }
  .interest-df { font-size: clamp(44px, 14vw, 80px); }
  .skill-bar-wrap { width: clamp(80px, 28vw, 160px); }

  .site-footer { flex-direction: column; }
}
