/* =========================================================
   Portafolio · Adrián Camilo Tuta Cortés
   ========================================================= */

:root {
  --bg: #111111;
  --w05: rgba(255, 255, 255, 0.05);
  --w10: rgba(255, 255, 255, 0.1);
  --w20: rgba(255, 255, 255, 0.2);
  --w40: rgba(255, 255, 255, 0.4);
  --w50: rgba(255, 255, 255, 0.5);
  --w60: rgba(255, 255, 255, 0.6);
  --w80: rgba(255, 255, 255, 0.8);
  --pad: 30px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --space: "Space Grotesk", var(--sans);
  --syne: "Syne", var(--sans);
  --inter: "Inter", var(--sans);
  --archivo: "Archivo Black", var(--sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  :root {
    --pad: 60px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #fff;
  color: #111;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

html.is-locked,
html.pd-open {
  overflow: hidden;
}

.spin {
  animation: spin 3s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulseSoft {
  50% {
    opacity: 0.5;
  }
}

.noscript {
  padding: 120px var(--pad);
  color: var(--w60);
}

/* ---------------------------------------------------------
   Pantalla de carga
   --------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.loader__cols {
  position: absolute;
  inset: 0;
  display: flex;
}
.loader__cols div {
  flex: 1;
  height: 100%;
  background: var(--bg);
  transform-origin: top;
}
.loader__glow {
  position: absolute;
  z-index: 5;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(65, 88, 172, 0.3) 0%, rgba(17, 17, 17, 0) 70%);
  filter: blur(60px);
}
.loader__count {
  position: relative;
  z-index: 10;
  font-family: "Poppins", var(--sans);
  font-weight: 200;
  font-size: 80px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.loader__count small {
  font-size: 40px;
}
.loader__label {
  position: absolute;
  z-index: 10;
  bottom: 48px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--w50);
}
@media (min-width: 768px) {
  .loader__glow {
    width: 500px;
    height: 500px;
  }
  .loader__count {
    font-size: 150px;
  }
  .loader__count small {
    font-size: 60px;
  }
}

/* ---------------------------------------------------------
   Cursor
   --------------------------------------------------------- */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
}
html:not(.has-cursor) .cursor {
  display: none;
}
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}
.cursor.is-hidden > * {
  opacity: 0;
}
.cursor__trail,
.cursor__ring,
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.2s;
}
.cursor__trail {
  filter: blur(0.5px);
}
.cursor__trail:nth-child(1) {
  width: 14px;
  height: 14px;
  background: rgba(244, 244, 244, 0.15);
}
.cursor__trail:nth-child(2) {
  width: 11px;
  height: 11px;
  background: rgba(244, 244, 244, 0.125);
}
.cursor__trail:nth-child(3) {
  width: 9px;
  height: 9px;
  background: rgba(244, 244, 244, 0.1);
}
.cursor__trail:nth-child(4) {
  width: 7px;
  height: 7px;
  background: rgba(244, 244, 244, 0.075);
}
.cursor__trail:nth-child(5) {
  width: 4px;
  height: 4px;
  background: rgba(244, 244, 244, 0.05);
}
.cursor__ring {
  z-index: 9999;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 244, 244, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, opacity 0.2s;
}
.cursor__ring.is-filled {
  background: rgba(244, 244, 244, 0.1);
}
.cursor__label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #f4f4f4;
}
.cursor__dot {
  z-index: 10000;
  width: 8px;
  height: 8px;
  background: #f4f4f4;
}

/* ---------------------------------------------------------
   Fondo WebGL, barra de progreso y transición
   --------------------------------------------------------- */
.shader {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 50;
  background: var(--w05);
  opacity: 0;
  transition: opacity 0.4s;
}
.progress.is-on {
  opacity: 1;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  transition: width 0.5s ease-out;
}
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #fff;
  transform: scaleY(0);
  pointer-events: none;
  display: none;
}

/* ---------------------------------------------------------
   Cabecera y navegación
   --------------------------------------------------------- */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px var(--pad);
  pointer-events: none;
}
.top .magnetic {
  pointer-events: auto;
}
.top__name {
  font-weight: 300;
  font-size: 18px;
}
@media (min-width: 1280px) {
  .top__name {
    font-size: 32px;
  }
}
@media (min-width: 1536px) {
  .top__name {
    font-size: 40px;
  }
}

.nav {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 9993;
  transition: opacity 0.3s;
}
html.pd-open .nav {
  opacity: 0;
  pointer-events: none;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  background: var(--w05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--space);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--w60);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover {
  color: #fff;
  background: var(--w10);
}
.nav__links a.is-active {
  color: #111;
  background: #fff;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  background: var(--w05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--space);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav__toggle svg {
  transition: transform 0.3s;
}
.nav__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
@media (min-width: 900px) {
  .nav {
    top: 32px;
    right: 32px;
  }
  .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--pad) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
}
.menu__links a {
  display: block;
  padding: 8px 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.menu__links span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
  margin-right: 14px;
  vertical-align: middle;
}
.menu__foot {
  margin-top: 48px;
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w40);
}

/* ---------------------------------------------------------
   Piezas compartidas
   --------------------------------------------------------- */
.magnetic {
  display: inline-block;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  background: var(--w05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--space);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pill:hover {
  background: var(--w10);
}
.pill--light {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.pill--light:hover {
  background: transparent;
  color: #fff;
  border-color: var(--w20);
}

.section {
  position: relative;
  z-index: 10;
  padding: 100px var(--pad);
}
@media (min-width: 1024px) {
  .section {
    padding: 150px var(--pad);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.eyebrow img {
  width: 20px;
  height: 20px;
}
.eyebrow h2 {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (min-width: 1024px) {
  .eyebrow {
    margin-bottom: 48px;
  }
  .eyebrow img {
    width: 24px;
    height: 24px;
  }
  .eyebrow h2 {
    font-size: 18px;
  }
}

.section-lead {
  font-family: var(--syne);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.3;
  max-width: 1000px;
  margin-bottom: 56px;
}
.section-lead em {
  font-style: normal;
  color: var(--w40);
}
@media (min-width: 768px) {
  .section-lead {
    font-size: 36px;
  }
}
@media (min-width: 1024px) {
  .section-lead {
    font-size: 46px;
    margin-bottom: 96px;
  }
}

.label {
  font-family: var(--space);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w40);
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li,
.tag-item {
  font-family: var(--syne);
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  color: var(--w80);
  transition: background-color 0.3s, color 0.3s;
}
.tags li:hover,
.tag-item:hover {
  background: #fff;
  color: #111;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 200px;
}
@media (min-width: 1024px) {
  .hero {
    padding: 120px var(--pad) 180px;
  }
}
.hero__hello {
  font-family: var(--space);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w60);
  margin-bottom: 20px;
}
.hero__hello strong {
  color: #fff;
  font-weight: 500;
}
.tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hero__title {
  font-size: clamp(34px, 11vw, 45px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__indent {
  display: inline-block;
  margin-left: 20px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 78px;
  }
  .hero__indent {
    margin-left: 40px;
  }
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 96px;
  }
}
@media (min-width: 1280px) {
  .hero__title {
    font-size: 120px;
    line-height: 120px;
  }
}
@media (min-width: 1536px) {
  .hero__title {
    font-size: 150px;
    line-height: 140px;
  }
}
.hero__desc {
  max-width: 560px;
  margin-top: 28px;
  color: var(--w60);
  font-size: 15px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .hero__desc {
    font-size: 18px;
    margin-top: 40px;
  }
  .hero__actions {
    margin-top: 36px;
  }
}

.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  padding: 0 var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 1024px) {
  .hero__bottom {
    bottom: 60px;
    align-items: flex-start;
  }
}
.scroll-badge {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-badge__ring {
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
}
.scroll-badge__ring text {
  font-size: 11px;
  letter-spacing: 4px;
  fill: #f4f4f4;
  font-family: var(--sans);
}
.scroll-badge__star {
  position: absolute;
  width: 14px;
  height: 14px;
  animation: spin 10s linear infinite reverse;
}
@media (min-width: 1280px) {
  .scroll-badge {
    width: 100px;
    height: 100px;
  }
  .scroll-badge__star {
    width: 16px;
    height: 16px;
  }
}
@media (min-width: 1536px) {
  .scroll-badge {
    width: 125px;
    height: 125px;
  }
}
.status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.status__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status__glow {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: var(--w05);
  filter: blur(20px);
  opacity: 0.5;
  animation: pulseSoft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.status h3 {
  position: relative;
  z-index: 10;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}
.status__star {
  position: relative;
  z-index: 10;
  width: 20px;
  height: 20px;
}
.status__place {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 200;
  color: var(--w80);
}
@media (min-width: 1024px) {
  .status {
    align-items: flex-start;
    text-align: left;
  }
  .status__row {
    gap: 16px;
  }
  .status h3 {
    font-size: 22px;
  }
  .status__star {
    width: 28px;
    height: 28px;
  }
  .status__place {
    font-size: 16px;
    margin-left: 4px;
  }
}
@media (min-width: 1280px) {
  .status h3 {
    font-size: 26px;
  }
}
@media (min-width: 1536px) {
  .status h3 {
    font-size: 32px;
  }
}

/* ---------------------------------------------------------
   Stack (palabras grandes + cita lateral)
   --------------------------------------------------------- */
.skills {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 80px var(--pad);
}
@media (min-width: 1024px) {
  .skills {
    padding: 200px var(--pad);
  }
}
.skills__aside {
  display: none;
  grid-column: span 6;
  position: relative;
}
@media (min-width: 1024px) {
  .skills__aside {
    display: block;
  }
}
.citation-wrap {
  position: fixed;
  top: 50%;
  left: -96px;
  width: 400px;
  transform: translateY(-50%) rotate(-90deg);
  pointer-events: none;
  visibility: hidden;
}
.citation-wrap.is-live {
  visibility: visible;
}
.citation {
  opacity: 0;
  margin-left: 80px;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.025em;
  color: #fff;
}
.skills__list {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .skills__list {
    grid-column: span 6;
    gap: 56px;
  }
}
.skill {
  text-align: right;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff 50%, #252525 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skill.is-filled {
  background-position: 0 0;
}
@media (min-width: 1024px) {
  .skill {
    font-size: 100px;
  }
}

/* ---------------------------------------------------------
   Experiencia
   --------------------------------------------------------- */
.timeline {
  border-top: 1px solid var(--w10);
}
.tl-item {
  display: grid;
  gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--w10);
}
@media (min-width: 1024px) {
  .tl-item {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    padding: 56px 0;
  }
}
.tl-item__when {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--w40);
}
.tl-item__idx {
  color: var(--w20);
}
.tl-item__type {
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w40);
  margin-bottom: 12px;
}
.tl-item__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease);
}
.tl-item:hover .tl-item__title {
  transform: translateX(12px);
}
.tl-item__place {
  margin-top: 10px;
  color: var(--w50);
  font-size: 15px;
}
.tl-item__desc {
  margin-top: 20px;
  max-width: 760px;
  color: var(--w60);
  font-size: 15px;
  line-height: 1.75;
}
.tl-item__list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.tl-item__list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  color: var(--w60);
  font-size: 15px;
  line-height: 1.6;
}
.tl-item__list span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
  padding-top: 3px;
}
.tl-item .tags {
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .tl-item__title {
    font-size: 48px;
  }
  .tl-item__desc,
  .tl-item__list li {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------
   Proyectos
   --------------------------------------------------------- */
.work {
  position: relative;
  z-index: 10;
  padding: 100px var(--pad) 50px;
}
@media (min-width: 1024px) {
  .work {
    padding: 150px var(--pad) 100px;
  }
}
.work__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 96px;
  }
  .work__aside {
    position: sticky;
    top: 80px;
    align-self: start;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
  }
}
.work__counter {
  display: none;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.work__num {
  font-family: var(--mono);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--w20);
}
.work__sep {
  font-size: 20px;
  font-weight: 300;
  color: var(--w20);
}
.work__list {
  display: none;
}
@media (min-width: 1024px) {
  .work__counter {
    display: flex;
  }
  .work__num {
    font-size: 60px;
  }
  .work__list {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 20px;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, #000 88%, transparent);
  }
  .work__list::-webkit-scrollbar {
    display: none;
  }
}
.work-item {
  display: block;
  padding: 10px 0 10px 20px;
  border-left: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
}
.work-item.is-active {
  opacity: 1;
  border-color: #fff;
}
.work-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.work-item__year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--w40);
}
.work-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  animation: pulseSoft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.work-item.is-active .work-item__dot {
  opacity: 1;
}
.work-item__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.3s var(--ease);
}
.work-item:hover .work-item__title {
  transform: translateX(12px);
}
.work-item__sub {
  font-size: 13px;
  color: var(--w50);
  margin-bottom: 8px;
}
.work-item__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w40);
}
.work-item__tag svg {
  transition: transform 0.3s;
}
.work-item:hover .work-item__tag svg {
  transform: translateX(8px);
}

.work__previews {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 1024px) {
  .work__previews {
    gap: 80px;
  }
}
.preview {
  opacity: 0.75;
  transition: opacity 0.5s;
}
.preview.is-active {
  opacity: 1;
}
@media (min-width: 1024px) {
  .preview {
    opacity: 1;
  }
}
.preview__card {
  position: relative;
  height: 62vh;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1024px) {
  .preview__card {
    height: 75vh;
  }
}
.preview__hit {
  position: absolute;
  inset: 0;
  z-index: 15;
}
.preview__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.8s var(--ease);
}
.preview__card:hover .preview__bg {
  transform: scale(1.04);
}
.preview__shade {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to top, #111111 0%, rgba(17, 17, 17, 0.45) 45%, transparent 100%);
}
.preview__glow {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 192px;
  height: 192px;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}
.preview__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 28px;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .preview__body {
    padding: 48px;
  }
}
.preview__title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}
@media (min-width: 1024px) {
  .preview__title {
    display: none;
  }
}
.preview__desc {
  max-width: 520px;
  color: var(--w80);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .preview__desc {
    font-size: 19px;
    margin-bottom: 24px;
  }
}
.preview__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w40);
}
.preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}
.btn-view,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 22px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.btn-view:hover,
.btn-ghost:hover {
  background: var(--w10);
}
.btn-view i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--w10);
  transition: transform 0.3s;
}
.btn-view:hover i {
  transform: rotate(45deg);
}
.btn-ghost {
  padding: 12px 20px;
  color: var(--w80);
}
.btn-ghost.is-static {
  color: var(--w50);
  cursor: default;
}
.btn-ghost.is-static:hover {
  background: none;
}
.preview__num {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  font-family: var(--mono);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.06;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .preview__num {
    top: 48px;
    right: 48px;
    font-size: 200px;
  }
}

/* Portada generada para proyectos sin capturas */
.cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(60% 50% at 70% 25%, var(--c, #3b82f6), transparent 70%),
    radial-gradient(50% 45% at 15% 85%, var(--c, #3b82f6), transparent 70%), #0c0c0c;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(12, 12, 12, 0.72);
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}
.cover__word,
.cover__code {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  padding: 0 24px;
}
.cover__word {
  top: 34%;
  font-family: var(--archivo);
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}
.cover__code {
  top: calc(34% + 92px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--w40);
}

/* Más proyectos */
.more {
  padding-top: 40px;
}
.more__list {
  border-top: 1px solid var(--w10);
}
.more-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--w10);
}
@media (min-width: 1024px) {
  .more-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    padding: 34px 0;
  }
}
.more-row__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
}
.more-row__title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease);
}
.more-row:hover .more-row__title {
  transform: translateX(12px);
}
.more-row__sub {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--w50);
}
@media (min-width: 1024px) {
  .more-row__title {
    font-size: 44px;
  }
  .more-row__sub {
    font-size: 15px;
  }
}
.more-row__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w40);
}
.more-row__tag {
  display: none;
}
@media (min-width: 768px) {
  .more-row__tag {
    display: inline;
  }
}
.more-row__meta i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--w20);
  color: #fff;
  transition: transform 0.3s, background-color 0.3s;
}
.more-row:hover .more-row__meta i {
  transform: rotate(45deg);
  background: var(--w10);
}

.float-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--w10);
  opacity: 0;
  pointer-events: none;
}
.float-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   Certificados e insignias
   --------------------------------------------------------- */
.certs__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .certs__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 96px;
  }
  .certs__aside {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}
.big-count {
  font-family: var(--mono);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: var(--w20);
}
@media (min-width: 1024px) {
  .big-count {
    font-size: 110px;
  }
}
.certs__intro {
  margin-top: 20px;
  max-width: 340px;
  color: var(--w50);
  line-height: 1.6;
  font-size: 15px;
}
.certs__list {
  border-top: 1px solid var(--w10);
}
.cert-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--w10);
}
@media (max-width: 639px) {
  /* En pantallas angostas el botón baja debajo del nombre. */
  .cert-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .cert-row__actions {
    grid-column: 2;
    justify-self: start;
    margin-top: 14px;
  }
}
.cert-row__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
}
.cert-row__name {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  background: linear-gradient(#fff, #fff) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.cert-row:hover .cert-row__name {
  background-size: 100% 1px;
}
.cert-row__issuer {
  display: block;
  margin-top: 8px;
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w40);
}
.cert-row__icon {
  transition: transform 0.3s;
}
.cert-row:hover .cert-row__icon {
  transform: translate(4px, -4px);
}
.cert-row__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.cert-btn {
  padding: 11px 20px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  font-family: var(--space);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.cert-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}
@media (min-width: 1024px) {
  .cert-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 24px;
    padding: 32px 0;
  }
  .cert-row__name {
    font-size: 28px;
  }
}

.badges-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 100px;
}
.badges-head .eyebrow {
  margin-bottom: 0;
}
.badges-head__note {
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w40);
}
@media (min-width: 1024px) {
  .badges-head {
    margin-top: 150px;
  }
}
.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1280px) {
  .badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}
.badge {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 16px 22px;
  text-align: center;
  border: 1px solid var(--w10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s;
  will-change: transform;
}
.badge:hover {
  transform: translateY(-8px);
  border-color: var(--w20);
  background: var(--w05);
}
@media (min-width: 1024px) {
  .badge:hover {
    transform: translateY(-12px) scale(1.02);
  }
}
.badge img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .badge img {
    width: 112px;
    height: 112px;
  }
}
.badge__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.badge__meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--w40);
}

/* ---------------------------------------------------------
   Sobre mí
   --------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 96px;
  }
}
.about__lead {
  font-family: var(--syne);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 28px;
}
.about__lead strong {
  font-weight: 600;
}
.about__p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--w60);
  font-size: 16px;
  line-height: 1.75;
}
.about__p strong {
  color: #fff;
  font-weight: 500;
}
@media (min-width: 768px) {
  .about__lead {
    font-size: 30px;
  }
}
@media (min-width: 1024px) {
  .about__lead {
    font-size: 36px;
  }
  .about__p {
    font-size: 18px;
  }
}
.about__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--w20);
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(3deg);
  background: radial-gradient(70% 60% at 50% 20%, rgba(65, 88, 172, 0.35), transparent 70%), #151515;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease);
}
.about__photo:hover {
  transform: rotate(0deg) scale(1.02);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__img {
  position: absolute;
  inset: 0;
  object-position: center 22%;
  transform: scale(1.18);
  transition: transform 0.6s var(--ease);
}
.about__photo:hover .about__img {
  transform: scale(1.24);
}
.about__photo figcaption {
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.about__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--archivo);
  font-size: 120px;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.about__photo figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w50);
}
.about__cols {
  display: grid;
  gap: 48px;
  margin-top: 90px;
  padding-top: 56px;
  border-top: 1px solid var(--w10);
}
@media (min-width: 1024px) {
  .about__cols {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 64px;
  }
}
.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.stack-group__name {
  font-family: var(--syne);
  font-size: 15px;
  margin-bottom: 10px;
}
.stack-group li {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.8;
  color: var(--w60);
}
.stack-group li span {
  margin-right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--w40);
}
.languages li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--w10);
  font-size: 18px;
}
.lang-level {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w40);
}

/* ---------------------------------------------------------
   Contacto
   --------------------------------------------------------- */
.contact {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  padding: 0 var(--pad) 100px;
}
@media (min-width: 1024px) {
  .contact {
    flex-direction: row;
    margin: 150px 40px 0;
    padding: 0 var(--pad) 200px;
  }
  .contact__cta {
    width: 50%;
  }
}
.get-in-touch {
  display: block;
  width: 100%;
  padding: 8px 36px;
  border: 1px solid #fff;
  border-radius: 999px;
  text-align: center;
  text-transform: uppercase;
  font-size: 30px;
  transition: background-color 0.2s, color 0.2s;
}
.get-in-touch:hover {
  background: #fff;
  color: #111;
}
@media (min-width: 1024px) {
  .get-in-touch {
    width: fit-content;
    font-size: 60px;
  }
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 64px;
}
.contact__item {
  display: block;
  width: 100%;
}
@media (min-width: 1024px) {
  .contact__links {
    width: 50%;
    align-items: flex-end;
    margin-top: 0;
  }
  .contact__item {
    width: min(100%, 300px);
  }
}
.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-size: 20px;
}
@media (min-width: 1024px) {
  .social-link {
    font-size: 30px;
  }
}
.link-underline::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: #fff;
  transition: width 0.4s var(--ease);
}
.link-underline:hover::before {
  width: 100%;
}
.contact__mail {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--w40);
}

.footer {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--w10);
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w40);
}

/* ---------------------------------------------------------
   Detalle de proyecto
   --------------------------------------------------------- */
.pd {
  position: fixed;
  inset: 0;
  z-index: 9992;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pd::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, rgba(65, 88, 172, 0.14), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(139, 92, 246, 0.1), transparent 70%);
}
.pd__close-wrap {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 10;
}
@media (min-width: 900px) {
  .pd__close-wrap {
    top: 32px;
    right: 32px;
  }
}
.pd__hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--pad) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .pd__hero {
    padding-top: 150px;
  }
}
.pd__title {
  font-family: var(--archivo);
  font-weight: 400;
  font-size: clamp(38px, calc(122vw / (var(--chars, 8) + 1)), 220px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}
.pd__subtitle {
  margin-top: 28px;
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w50);
}
.pd__body {
  position: relative;
  padding: 80px var(--pad);
}
@media (min-width: 768px) {
  .pd__body {
    padding: 120px var(--pad);
  }
}
.pd__grid {
  display: grid;
  gap: 60px;
  max-width: 1800px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .pd__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 120px;
  }
  .pd__info {
    position: sticky;
    top: 120px;
    align-self: start;
  }
  .pd__info.no-sticky {
    position: static;
  }
}
.pd__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pd__label {
  font-family: var(--space);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w40);
  margin-bottom: 18px;
}
.pd__about {
  font-family: var(--syne);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .pd__about {
    font-size: 32px;
  }
}
.pd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd__stack {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.8;
  color: var(--w60);
}
.pd__stack div {
  border: 0;
  padding: 0;
  border-radius: 0;
}
.pd__stack div:hover {
  background: none;
  color: var(--w80);
}
.pd__stack span {
  margin-right: 12px;
  color: var(--w40);
}
.pd__team {
  color: var(--w60);
}
.pd__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.pd__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  font-family: var(--space);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.5s, color 0.5s;
}
.pd__link:not(.is-static):hover {
  background: #fff;
  color: #111;
}
.pd__link svg {
  transition: transform 0.3s;
}
.pd__link:not(.is-static):hover svg {
  transform: translate(4px, -4px);
}
.pd__link.is-static {
  color: var(--w50);
  cursor: default;
}
.pd__main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.pd__text {
  margin-bottom: 40px;
  color: var(--w80);
  font-size: 17px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .pd__text {
    font-size: 19px;
  }
}
.pd__highlights li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--w10);
  color: var(--w80);
  line-height: 1.6;
}
.pd__highlights span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
  padding-top: 4px;
}
.pd__gallery {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 768px) {
  .pd__gallery {
    gap: 80px;
  }
}
.pd__shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--w10);
  border-radius: 16px;
  background: #0c0c0c;
}
.pd__zoom {
  display: block;
  width: 100%;
}
.pd__zoom img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
.pd__shot:hover .pd__zoom img {
  transform: scale(1.05);
}
.pd__shot figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--w10);
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w40);
}
.pd__shot--cover {
  aspect-ratio: 4 / 3;
}
.pd__footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 var(--pad) 80px;
}
@media (min-width: 768px) {
  .pd__footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 120px;
  }
}
.pd__back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  border: 1px solid var(--w20);
  border-radius: 999px;
  font-family: var(--space);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.5s, color 0.5s;
}
.pd__back:hover {
  background: #fff;
  color: #111;
}
.pd__back svg {
  transition: transform 0.3s;
}
.pd__back:hover svg {
  transform: translateX(-4px);
}
.pd__next {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .pd__next {
    align-items: flex-end;
    text-align: right;
  }
}
.pd__next-title {
  font-family: var(--archivo);
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.pd__next:hover .pd__next-title {
  opacity: 0.6;
}
@media (min-width: 768px) {
  .pd__next-title {
    font-size: 64px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9994;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid var(--w10);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* ---------------------------------------------------------
   Movimiento reducido
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skill {
    background-position: 0 0;
  }
  .citation-wrap {
    display: none;
  }
}
