/* ==========================================================================
   THINKUP® (thinkup.design) — INSPIRED 1:1 BY TRIONN.COM MOTION ARCHITECTURE
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-main: #0b0c0e;
  --bg-elevated: #121519;
  --bg-card: #15191f;
  --bg-glass: rgba(18, 21, 25, 0.72);
  --text-main: #e0eeee;
  --text-muted: #8a99a8;
  --text-unfilled: #22272e;
  --border-subtle: rgba(224, 238, 238, 0.12);
  --border-strong: rgba(224, 238, 238, 0.28);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --coral: #ff4d5a;
  --cyan: #7dd3fc;
  --amber: #ffb703;
  --emerald: #2ec4b6;
  --font-display: 'Syne', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #eef2f5;
  --bg-elevated: #ffffff;
  --bg-card: #e3e9ef;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-main: #0b0c0e;
  --text-muted: #4b5563;
  --text-unfilled: #cbd5e1;
  --border-subtle: rgba(11, 12, 14, 0.12);
  --border-strong: rgba(11, 12, 14, 0.28);
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.25);
}

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

html {
  scroll-behavior: auto;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.55s var(--ease-out-expo), color 0.55s var(--ease-out-expo);
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

a,
button {
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
  font: inherit;
  cursor: none;
}

ul {
  list-style: none;
}

canvas,
img,
svg {
  display: block;
  max-width: 100%;
}

/* Subtle Film Grain Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ==========================================================================
   1. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07080a;
  color: #e0eeee;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s ease;
}

.preloader.is-hidden {
  transform: translateY(-102%);
  pointer-events: none;
}

.preloader__inner {
  width: min(1360px, 92vw);
  padding: 2.4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preloader__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #8a99a8;
}

.preloader__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

.preloader__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.preloader__lion-mark {
  width: 108px;
  height: 108px;
  color: #e0eeee;
}

.spin-slow {
  transform-origin: 60px 60px;
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.preloader__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #8a99a8;
}

.preloader__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.preloader__bar-track {
  flex: 1;
  height: 2px;
  background: rgba(224, 238, 238, 0.12);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.preloader__bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #e0eeee);
  transition: width 0.12s linear;
}

.preloader__counter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #e0eeee;
}

/* ==========================================================================
   2. CUSTOM CURSOR (FLUID LERP RING + CONTEXTUAL BADGE)
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 238, 238, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              background-color 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo);
  backdrop-filter: blur(2px);
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0b0c0e;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
  padding: 0 6px;
  white-space: nowrap;
}

body.cursor-active .cursor-dot {
  opacity: 0;
}

body.cursor-active .cursor-ring {
  width: 92px;
  height: 92px;
  background-color: var(--text-main);
  border-color: var(--text-main);
  mix-blend-mode: normal;
}

body.cursor-active .cursor-label {
  opacity: 1;
  transform: scale(1);
}

body.cursor-blast .cursor-ring {
  width: 112px;
  height: 112px;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   3. FIXED TOP NAVBAR (TRIONN HEADER BAR)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 1.65rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.navbar > * {
  pointer-events: auto;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.navbar__logo .reg {
  font-size: 0.65rem;
  color: var(--accent);
  margin-left: 2px;
}

.navbar__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.ctrl-btn:hover {
  border-color: var(--accent);
}

/* Sound Equalizer Bars */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.sound-bars span {
  width: 2px;
  height: 4px;
  background: var(--text-main);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.sound-bars.is-playing span {
  background: var(--accent);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.sound-bars.is-playing span:nth-child(2) {
  animation-delay: 0.18s;
}
.sound-bars.is-playing span:nth-child(3) {
  animation-delay: 0.35s;
}
.sound-bars.is-playing span:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes eqBounce {
  0% {
    height: 3px;
  }
  100% {
    height: 14px;
  }
}

/* Right Menu Button */
.navbar__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.navbar__menu-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.navbar__menu-btn:hover .navbar__menu-circle {
  border-color: var(--accent);
}

.burger-line {
  width: 18px;
  height: 1.8px;
  background: var(--text-main);
  transition: transform 0.4s var(--ease-out-expo);
}

body.nav-open .burger-line--1 {
  transform: translateY(3.4px) rotate(45deg);
}

body.nav-open .burger-line--2 {
  transform: translateY(-3.4px) rotate(-45deg);
}

/* ==========================================================================
   4. FULLSCREEN CURTAIN NAVIGATION OVERLAY
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.nav-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.96);
  backdrop-filter: blur(22px);
  transform: translateY(-100%);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-overlay__container {
  position: relative;
  z-index: 2;
  width: min(1360px, 90vw);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.45s ease 0.2s, transform 0.55s var(--ease-out-expo) 0.2s;
}

body.nav-open .nav-overlay {
  pointer-events: auto;
  visibility: visible;
}

body.nav-open .nav-overlay__bg {
  transform: translateY(0%);
}

body.nav-open .nav-overlay__container {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nav-overlay__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.nav-overlay__list li {
  border-bottom: 1px solid rgba(224, 238, 238, 0.09);
}

.nav-overlay__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  font-weight: 800;
  color: #e0eeee;
  transition: padding-left 0.35s var(--ease-out-expo), color 0.3s ease;
}

.nav-overlay__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-right: 1.2rem;
}

.nav-overlay__link em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #8a99a8;
  margin-left: auto;
}

.nav-overlay__link:hover {
  padding-left: 1.2rem;
  color: var(--accent);
}

.nav-overlay__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 238, 238, 0.12);
  border-radius: 24px;
  padding: 2.5rem;
}

.nav-overlay__contact-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #e0eeee;
  margin-bottom: 0.5rem;
}

.nav-overlay__contact-phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.nav-overlay__location {
  color: #9ba9b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.nav-overlay__clock {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e0eeee;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ec4b6;
  box-shadow: 0 0 12px #2ec4b6;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

.nav-overlay__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-link {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 238, 238, 0.18);
  font-size: 0.8rem;
  color: #e0eeee;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pill-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0c0e;
}

/* ==========================================================================
   5. HERO SECTION + 3D HOLD TO BLAST
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem clamp(1.5rem, 4vw, 4rem) 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__blast-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  user-select: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__blast-badge:hover,
body.is-blasting .hero__blast-badge {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: scale(1.04);
}

.blast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.blast-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: min(1400px, 94vw);
  text-align: center;
  pointer-events: none;
}

.hero__container a,
.hero__container button {
  pointer-events: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.9vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero__line-wrap {
  display: block;
  overflow: hidden;
  padding: 0.06em 0;
}

.hero__line {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out-expo), letter-spacing 0.4s ease;
}

body.is-ready .hero__line {
  transform: translateY(0%);
}

body.is-blasting .hero__line {
  letter-spacing: 0.03em;
  text-shadow: 0 0 38px var(--accent-glow);
}

.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-main);
}

body.is-blasting .hero__line--outline {
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero__subtitle {
  max-width: 680px;
  margin: 0 auto 3.2rem;
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.hero__subtitle strong {
  color: var(--text-main);
}

.hero__bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
}

.hero__scroll-down {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.hero__scroll-down:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Signature Trionn Pill Button */
.btn-trionn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  color: var(--text-main);
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.btn-trionn__bg {
  position: absolute;
  inset: 0;
  background: var(--text-main);
  transform: translateY(102%);
  border-radius: 999px;
  transition: transform 0.45s var(--ease-out-expo);
  z-index: 0;
}

.btn-trionn__text {
  position: relative;
  z-index: 1;
}

.btn-trionn:hover {
  color: var(--bg-main);
  border-color: var(--text-main);
}

.btn-trionn:hover .btn-trionn__bg {
  transform: translateY(0%);
}

.btn-trionn--accent {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.btn-trionn--accent .btn-trionn__bg {
  background: var(--accent);
}

.btn-trionn--accent:hover {
  color: #06080a;
  border-color: var(--accent);
}

.btn-trionn--large {
  padding: 1.35rem 3rem;
  font-size: 1.08rem;
}

/* ==========================================================================
   6. EXPANDING SHOWREEL VIDEO / INTERACTIVE CANVAS SECTION
   ========================================================================== */
.showreel-section {
  position: relative;
  padding: 1rem 0 7rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showreel-wrapper {
  position: relative;
  width: 38%;
  min-width: 310px;
  height: clamp(240px, 42vw, 680px);
  border-radius: 220px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #07090d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  will-change: width, border-radius, transform;
}

.showreel-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showreel-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, rgba(7, 9, 13, 0.15) 0%, rgba(7, 9, 13, 0.68) 100%);
}

.showreel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.72);
  border: 1px solid rgba(224, 238, 238, 0.16);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #e0eeee;
}

.showreel-center-play {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: #e0eeee;
}

.play-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.9);
  color: #07090d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.55);
  transition: transform 0.35s var(--ease-out-expo), background-color 0.3s ease;
}

.showreel-wrapper:hover .play-circle {
  transform: scale(1.12);
  background: #e0eeee;
}

.showreel-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(224, 238, 238, 0.82);
}

/* ==========================================================================
   7. SECTION HEADERS & PROGRESSIVE TEXT-FILL EFFECT (TRIONN SIGNATURE)
   ========================================================================== */
.section-container {
  width: min(1360px, 90vw);
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.section-header--center {
  text-align: center;
}

/* Progressive Left-to-Right Scroll Text Fill */
.reveal-fill-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.8vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  --fill-pct: 0%;
  background: linear-gradient(90deg, var(--text-main) var(--fill-pct), var(--text-unfilled) var(--fill-pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.section-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.reveal-fill-sub {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.38;
  --fill-pct: 0%;
  background: linear-gradient(90deg, var(--text-main) var(--fill-pct), var(--text-unfilled) var(--fill-pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   8. RECENT WORK SECTION ("TRABAJOS RECIENTES") — TILTED SLIDING CARDS
   ========================================================================== */
.work-section {
  padding: 5rem 0 8rem;
  overflow: hidden;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 9vw, 9.5rem);
}

.project-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.project-row--right {
  grid-template-columns: 0.85fr 1.35fr;
}

.project-row__visual {
  will-change: transform, opacity;
}

.project-card-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  aspect-ratio: 16 / 11;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.project-card-frame:hover {
  border-color: var(--accent);
}

.project-art-canvas,
.project-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.project-card-frame:hover .project-art-canvas,
.project-card-frame:hover .project-art-img {
  transform: scale(1.05);
}

.project-card-badge {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.78);
  border: 1px solid rgba(224, 238, 238, 0.18);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #e0eeee;
}

.project-row__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.project-row--right .project-row__details {
  align-items: flex-start;
}

.project-row__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.project-row__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.project-row__tags {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-row__desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   9. WHO WE ARE ("QUIÉNES SOMOS") + 4 TILTED STATS BENTO CARDS
   ========================================================================== */
.about-section {
  padding: 7rem 0 8rem;
  overflow: hidden;
}

.about-manifesto {
  margin-bottom: 3.5rem;
}

.reveal-fill-line {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  --fill-pct: 0%;
  background: linear-gradient(90deg, var(--text-main) var(--fill-pct), var(--text-unfilled) var(--fill-pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-secondary {
  max-width: 560px;
  margin-left: auto;
  margin-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.about-secondary p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 4 Tilted Stats Cards (Identical to Trionn's sliding rotated cards) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: clamp(2.2rem, 4vw, 3.5rem);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.45s var(--ease-out-expo),
              color 0.45s var(--ease-out-expo),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
  will-change: transform, opacity;
}

.stat-card--right {
  margin-top: 3.5rem;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6.5vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.stat-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* Trionn Signature Hover Color Morphs */
.stat-card--coral:hover {
  background-color: var(--coral);
  color: #0b0c0e;
  border-color: var(--coral);
  box-shadow: 0 24px 60px rgba(255, 77, 90, 0.3);
}

.stat-card--cyan:hover {
  background-color: var(--cyan);
  color: #0b0c0e;
  border-color: var(--cyan);
  box-shadow: 0 24px 60px rgba(125, 211, 252, 0.3);
}

.stat-card--amber:hover {
  background-color: var(--amber);
  color: #0b0c0e;
  border-color: var(--amber);
  box-shadow: 0 24px 60px rgba(255, 183, 3, 0.3);
}

.stat-card--emerald:hover {
  background-color: var(--emerald);
  color: #0b0c0e;
  border-color: var(--emerald);
  box-shadow: 0 24px 60px rgba(46, 196, 182, 0.3);
}

/* ==========================================================================
   10. DRAGGABLE SERVICES & CLIENTS CAROUSEL
   ========================================================================== */
.draggable-section {
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.drag-slider {
  width: 100%;
  overflow: hidden;
  padding: 1rem clamp(1.5rem, 5vw, 5rem) 2.5rem;
  user-select: none;
}

.drag-slider__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
}

.drag-card {
  width: clamp(320px, 34vw, 440px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.drag-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.drag-card--highlight {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), var(--bg-elevated));
  border-color: rgba(56, 189, 248, 0.35);
}

.drag-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drag-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.drag-card__pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.drag-card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.drag-card__text {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.drag-card__footer {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drag-card__link {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   11. SPLIT-SCREEN SHOWCASE SPREAD (TRIONN DRIBBBLE SPLIT EFFECT)
   ========================================================================== */
.showcase-split-section {
  position: relative;
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.showcase-split-stage {
  position: relative;
  width: min(1400px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

/* Center Manifesto (Revealed underneath as Left & Right columns split apart!) */
.showcase-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: min(460px, 86vw);
  text-align: center;
  z-index: 1;
  opacity: 0.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  pointer-events: auto;
  will-change: transform, opacity;
}

.showcase-center__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.showcase-center__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.showcase-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  will-change: transform;
}

.showcase-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.showcase-canvas,
.showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out-expo);
}

.showcase-item:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-item__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.8);
  border: 1px solid rgba(224, 238, 238, 0.15);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #e0eeee;
}

/* ==========================================================================
   12. BLOG & INSIGHTS SECTION
   ========================================================================== */
.blog-section {
  padding: 5rem 0 7rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.3rem;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.blog-card__cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.25s ease;
}

.blog-card:hover .blog-card__cta {
  color: var(--accent);
}

/* ==========================================================================
   13. VELOCITY MARQUEE, ELASTIC SVG STRINGS & SOCIAL LIST
   ========================================================================== */
.jungle-section {
  padding: 4rem 0 6rem;
  overflow: hidden;
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6rem;
  background: rgba(56, 189, 248, 0.03);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  will-change: transform;
}

.marquee-track span {
  padding-right: 2rem;
}

/* Elastic Guitar-String SVG Lines */
.elastic-line {
  position: relative;
  width: 100%;
  height: 54px;
  margin: -18px 0;
  z-index: 3;
}

.elastic-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.elastic-line path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.elastic-line:hover path {
  stroke: var(--accent);
}

.social-list {
  max-width: 1080px;
  margin: 0 auto;
}

.social-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  align-items: center;
  padding: 1.9rem 1.2rem;
  transition: padding 0.4s var(--ease-out-expo), background-color 0.35s ease;
  border-radius: 16px;
}

.social-row:hover {
  padding-left: 2.2rem;
  padding-right: 2.2rem;
  background: rgba(56, 189, 248, 0.07);
}

.social-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 800;
}

.social-row__handle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.social-row__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease, color 0.3s ease;
}

.social-row:hover .social-row__arrow {
  transform: rotate(45deg) scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0c0e;
}

/* ==========================================================================
   14. FOOTER ("¡HORA DE DESTACAR!" + GIANT INTERACTIVE WORDMARK)
   ========================================================================== */
.footer-section {
  padding: 5rem 0 0;
  overflow: hidden;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.8rem 0;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-contact-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.footer-contact-block__val {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-contact-block__val:hover {
  color: var(--accent);
}

.scroll-top-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.scroll-top-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0c0e;
}

.footer-bottom-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-giant-brand {
  width: 100%;
  text-align: center;
  overflow: hidden;
  padding: 1rem 0 0;
  line-height: 0.82;
  user-select: none;
  perspective: 900px;
}

.footer-giant-brand__text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 16.5vw, 19rem);
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 2px var(--border-strong);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent) 0%, var(--text-main) 35%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 0.25s ease;
}

.footer-giant-brand__text sup {
  font-size: 0.28em;
  vertical-align: top;
}

/* ==========================================================================
   15. CASE STUDY MODAL
   ========================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
}

.project-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.86);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-modal.is-open .project-modal__backdrop {
  opacity: 1;
}

.project-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 94vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.35s ease;
}

.project-modal.is-open .project-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.project-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.project-modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-modal__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.project-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.project-modal__tags {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-modal__body {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-main);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-overlay__grid,
  .project-row,
  .project-row--right,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .project-row--right .project-row__visual {
    order: -1;
  }

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

  .stat-card--right {
    margin-top: 0;
  }

  .footer-contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .showcase-split-stage {
    grid-template-columns: 1fr;
  }

  .showcase-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: 2rem;
  }

  .social-row {
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
  }

  .social-row__handle {
    grid-column: 1 / -1;
    order: 3;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
  }
}
