/* =====================================================
   OVNI VISUALS — Portfolio CGI / VFX / 3D Generalist
   Design system, layout & animations
===================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --color-bg: #1E1E1E;
  --color-bg-soft: #262626;
  --color-amarillo: #D6F500;
  --color-azul: #0037f9;
  --color-text-main: #FFFFFF;
  --color-text-muted: #999999;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-vhs: #1E1E1E;

  /* Typography */
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-accent: 'KH Interference TRIAL', 'DM Sans', sans-serif;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-width: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.45s;
  --dur-slow: 0.8s;

  --header-h: 84px;
}

/* ---------- 1b. CUSTOM FONT FACE ---------- */
/* Coloca los archivos en assets/fonts/ con estos nombres exactos
   (o ajusta las rutas/pesos según los archivos que tengas). */
/* Solo existe el corte Regular del trial: lo registramos para todo el rango
   400-700 para que los textos en negrita (font-weight: 700) también lo usen
   en vez de caer a DM Sans. Si en el futuro consigues el corte Bold real,
   añade un segundo @font-face con font-weight: 700 apuntando a esos archivos. */
@font-face {
  font-family: 'KH Interference TRIAL';
  src: url('../assets/fonts/KHInterferenceTRIAL-Regular.woff2') format('woff2'),
       url('../assets/fonts/KHInterferenceTRIAL-Regular.woff') format('woff'),
       url('../assets/fonts/KHInterferenceTRIAL-Regular.otf') format('opentype'),
       url('../assets/fonts/KHInterferenceTRIAL-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 3. SUBTLE GRAIN TEXTURE ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- 3b. VHS GLITCH OVERLAY (gris, estilo cinta VHS) ---------- */
.vhs-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

/* Estática animada en escala de grises (#1E1E1E) */
.vhs-overlay__static {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-color: var(--color-vhs);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23s)'/></svg>");
  background-size: 180px 180px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23s)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23s)'/></svg>");
  -webkit-mask-size: 180px 180px;
  mask-size: 180px 180px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  animation: vhsStaticShift 0.4s steps(4) infinite;
}

@keyframes vhsStaticShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Líneas de escaneo horizontales (#1E1E1E) */
.vhs-overlay__scanlines {
  position: absolute;
  inset: -4px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.45) 0px,
    rgba(30, 30, 30, 0.45) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: multiply;
  animation: vhsScan 4s linear infinite;
}

@keyframes vhsScan {
  from { transform: translateY(0); }
  to   { transform: translateY(4px); }
}

/* Cortes de glitch (bandas en #1E1E1E) que parpadean de forma intermitente */
.vhs-overlay__glitch {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 48%,
    rgba(30, 30, 30, 0.85) 49%,
    rgba(30, 30, 30, 0.6) 50%,
    transparent 51%
  );
  mix-blend-mode: multiply;
  opacity: 0;
  animation: vhsGlitch 4.5s infinite;
}
.vhs-overlay__glitch--alt {
  animation-name: vhsGlitchAlt;
  animation-duration: 6s;
  animation-delay: 1.2s;
}

@keyframes vhsGlitch {
  0%, 81%, 100% { opacity: 0; transform: translate(0, 0) scaleY(1); }
  81.4%  { opacity: 0.85; transform: translate(-2.2%, 14%) scaleY(2.8); }
  81.8%  { opacity: 0; }
  83.6%  { opacity: 0.7; transform: translate(2.4%, -20%) scaleY(3.6); }
  83.9%  { opacity: 0; }
  86.2%  { opacity: 0.8; transform: translate(-3%, 32%) scaleY(2); }
  86.5%  { opacity: 0; }
  88%    { opacity: 0.6; transform: translate(2%, -10%) scaleY(1.4); }
  88.3%  { opacity: 0; }
}

@keyframes vhsGlitchAlt {
  0%, 84%, 100% { opacity: 0; transform: translate(0, 0) scaleY(1); }
  84.3% { opacity: 0.65; transform: translate(3%, -28%) scaleY(2.4); }
  84.6% { opacity: 0; }
  87%   { opacity: 0.75; transform: translate(-2.6%, 8%) scaleY(3.2); }
  87.3% { opacity: 0; }
  90.5% { opacity: 0.5; transform: translate(2.2%, 22%) scaleY(1.8); }
  90.8% { opacity: 0; }
}

/* ---------- 4. LAYOUT HELPERS ---------- */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 36ch;
  margin-top: var(--space-md);
}

.dot { color: var(--color-amarillo); }
.dot--blue { color: var(--color-azul); }

/* ---------- 5. REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 6. BUTTONS & BADGES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.85em 1.6em;
  border-radius: 0;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn--accent {
  background: var(--color-amarillo);
  color: #111;
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 245, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-amarillo);
  color: var(--color-amarillo);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .plus { transition: transform var(--dur-fast) var(--ease-out); display: inline-block; }
.btn:hover .plus { transform: rotate(90deg); }

.btn__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__icon { transform: scale(1.15) rotate(-6deg); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1.1em;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--outline {
  border: 1.5px solid var(--color-amarillo);
  color: var(--color-amarillo);
}
.badge--solid {
  background: var(--color-amarillo);
  color: #111;
}
.badge--azul {
  background: var(--color-azul);
  color: #fff;
}

/* ---------- 7. HEADER ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-mid) var(--ease-out);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  height: 38px;
  width: auto;
  display: block;
}
.logo__fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__fallback span { color: var(--color-amarillo); }

.nav {
  display: flex;
  gap: var(--space-lg);
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--color-amarillo);
  transition: width var(--dur-mid) var(--ease-out);
}
.nav__link:hover { color: var(--color-text-main); }
.nav__link:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  background: rgba(20, 20, 20, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height var(--dur-mid) var(--ease-in-out), opacity var(--dur-mid) var(--ease-out);
  z-index: 999;
}
.mobile-menu.is-open {
  height: calc(100vh - var(--header-h));
  opacity: 1;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
}
.mobile-menu__link:hover { color: var(--color-amarillo); }

/* ---------- 8. HERO ---------- */
.hero {
  min-height: 100vh; /* fallback para navegadores sin soporte de unidades svh */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  position: relative;
}

/* Ticker sutil superior, pegado bajo el header */
.hero__ticker {
  width: 100%;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.hero__ticker-track {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 24s linear infinite;
}
.hero__ticker-track span {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero__ticker-sep {
  color: var(--color-text-muted);
  padding-inline: var(--space-sm);
}
.hero__ticker:hover .hero__ticker-track { animation-play-state: paused; }

.hero__content {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero__grid { width: 100%; padding-block: var(--space-xl); }

.hero__top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.hero__top-line {
  width: 32px;
  height: 1px;
  background: var(--color-border);
  flex-shrink: 0;
}

.hero__title {
  font-family: 'Barlow Condensed', var(--font-display);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
}
.hero__title-line1 {
  display: block;
  font-size: clamp(2rem, 6vw, 4.25rem);
  letter-spacing: 0.01em;
  color: var(--color-text-main);
}
.hero__title-accent {
  display: block;
  font-size: clamp(4.5rem, 17vw, 13rem);
  letter-spacing: -0.01em;
  color: var(--color-amarillo);
  font-style: italic;
  margin-top: -0.02em;
}
.hero__dot {
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: #ECECEC;
  vertical-align: middle;
  font-style: normal;
}

.hero__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 640px;
}

.hero__text {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-lg);
}

.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: flex-end; }

.hero__scroll {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  animation: floatX 2.4s ease-in-out infinite;
}
@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ---------- 9. MARQUEE ---------- */
.marquee {
  background: var(--color-azul);
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  padding-block: var(--space-md);
  border-block: 1px solid rgba(255,255,255,0.1);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
  color: #fff;
}
.marquee__sep {
  color: var(--color-amarillo);
  padding-inline: var(--space-sm);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 10. WORK / SELECTED WORK ---------- */
.work { padding-block: var(--space-3xl); }

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.work__category { margin-top: var(--space-2xl); }
.work__category:first-of-type { margin-top: 0; }

.work__category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.work__category-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
}

.work-carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.work-carousel__viewport {
  overflow: hidden;
}

.work-carousel__track {
  display: flex;
  gap: var(--space-md);
  transition: transform var(--dur-slow) var(--ease-out);
}

.work-carousel__card {
  flex: 0 0 calc((100% - 2 * var(--space-md)) / 3);
  min-width: 0;
}
@media (max-width: 1024px) {
  .work-carousel__card { flex-basis: calc((100% - var(--space-md)) / 2); }
}
@media (max-width: 640px) {
  .work-carousel__card { flex-basis: 85%; }
}

.work-carousel__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: pointer;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.project-card__media {
  position: relative;
  height: 0;
  /* padding-top en % calcula la altura sobre el ancho del contenedor:
     mantiene la proporción 1080x1920 en todos los navegadores, sin depender de aspect-ratio */
  padding-top: 177.78%;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
.project-card__media img,
.project-card__media video {
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover .project-card__media img,
.project-card:hover .project-card__media video {
  transform: scale(1.08);
}

.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  opacity: 0.7;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.project-card:hover .project-card__media::after { opacity: 0.9; }

.project-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
}

.project-card__info {
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 2;
  transform: translateY(8px);
  transition: transform var(--dur-mid) var(--ease-out);
}
.project-card:hover .project-card__info { transform: translateY(0); }

.project-card__client {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-amarillo);
  margin-bottom: 2px;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.pager-btn {
  width: 48px; height: 48px;
  border-radius: 0;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.pager-btn:hover:not(:disabled) {
  border-color: var(--color-amarillo);
  color: var(--color-amarillo);
  transform: scale(1.08);
}
.pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- 11. TESTIMONIALS ---------- */
.testimonials { padding-block: var(--space-3xl); background: var(--color-bg-soft); }

.testimonial-slider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonial-track {
  flex: 1;
  display: grid;
}

.testimonial-slide {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-quote {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main);
  max-width: 50ch;
}
.testimonial-quote::before { content: '\201C'; color: var(--color-amarillo); }
.testimonial-quote::after { content: '\201D'; color: var(--color-amarillo); }

.testimonial-author {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.testimonial-author__logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.testimonial-author__fallback {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-azul);
}

.slider-arrow {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 0;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.slider-arrow:hover {
  background: var(--color-amarillo);
  border-color: var(--color-amarillo);
  color: #111;
  transform: scale(1.06);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  margin-top: var(--space-lg);
}
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--color-border);
  transition: all var(--dur-fast) var(--ease-out);
}
.testimonial-dot.is-active {
  background: var(--color-amarillo);
  width: 24px;
  border-radius: 0;
}

/* ---------- 12. ABOUT / SOBRE MÍ ---------- */
.about { padding-block: var(--space-3xl); }

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
.about__image { width: 100%; height: 100%; object-fit: cover; }

.about__badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
}

.about__text {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  margin-top: var(--space-md);
  max-width: 56ch;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}
.skills-grid__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.skills-grid__bullet {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.skills-grid__bullet--amarillo { background: var(--color-amarillo); }
.skills-grid__bullet--azul { background: var(--color-azul); }

.about__cta { margin-top: var(--space-xl); }

/* ---------- 13. FOOTER ---------- */
.footer {
  padding-block: var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__title-link { display: block; }
.footer__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  text-transform: uppercase;
  line-height: 0.98;
  transition: color var(--dur-mid) var(--ease-out);
}
.footer__title-link:hover .footer__title { color: var(--color-amarillo); }
.arrow--diagonal { display: inline-block; color: var(--color-amarillo); transition: transform var(--dur-mid) var(--ease-out); }
.footer__title-link:hover .arrow--diagonal { transform: translate(6px, -6px) rotate(8deg); }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-block: var(--space-lg);
  border-block: 1px solid var(--color-border);
}

.footer__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}
.footer__link-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.footer__link-value {
  font-size: 1.3rem;
  font-weight: 700;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__link:hover .footer__link-value { color: var(--color-azul); }
.footer__link--accent:hover .footer__link-value { color: var(--color-amarillo); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__logo {
  height: 27px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.footer__credits {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.back-to-top {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.back-to-top:hover { color: var(--color-amarillo); }
.arrow--up { transition: transform var(--dur-fast) var(--ease-out); }
.back-to-top:hover .arrow--up { transform: translateY(-3px); }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image-wrap { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  .hero__bottom { align-items: flex-start; }
  .hero__right { align-items: flex-start; width: 100%; }
  .hero__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }

  .testimonial-slider { flex-direction: column; gap: var(--space-md); }
  .testimonial-quote { text-align: center; }
  .testimonial-author { justify-content: center; }
  .slider-arrow { order: 2; }

  .skills-grid { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. PLAY OVERLAY en project-card ---------- */
.project-card__play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.project-card__play-icon {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.9));
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
  opacity: 0.85;
}
.project-card:hover .project-card__play-icon {
  transform: scale(1.14);
  opacity: 1;
}

/* ---------- 15. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-xl) var(--space-lg);
}

.lightbox__video {
  max-height: 88vh;
  width: auto;
  max-width: 90vw;
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  display: block;
}
@media (max-width: 640px) {
  .lightbox__video {
    max-height: 82vh;
    max-width: 96vw;
  }
  .lightbox__content { padding: var(--space-lg) var(--space-sm); }
}

.lightbox__close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 1.5px solid var(--color-border);
  background: rgba(20, 20, 20, 0.85);
  color: var(--color-text-main);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.lightbox__close:hover {
  border-color: var(--color-amarillo);
  color: var(--color-amarillo);
  transform: scale(1.08);
}
