/* ============================================================
   PATRICIO VARELA — PORTAFOLIO
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --ink:        #0a0a0c;
  --ink-2:      #121216;
  --ink-3:      #1a1a20;
  --paper:      #f6f4ec;

  --yellow:     #ffd400;
  --yellow-2:   #ffb800;
  --yellow-dim: #7a6300;

  --magenta:    #ff2e92;
  --cyan:       #00e5ff;
  --lime:       #b4ff39;
  --violet:     #8a5cff;

  --line:       rgba(255,255,255,.12);
  --line-soft:  rgba(255,255,255,.06);
  --text:       #f4f3ee;
  --text-dim:   #9a9aa2;
  --text-dimmer:#6b6b74;

  --radius:     18px;
  --radius-sm:  10px;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--yellow); color:var(--ink); }

/* Hide native cursor on devices that support hover (desktop) */
@media (hover:hover) and (pointer:fine){
  body{ cursor:none; }
  a,button,.hoverable{ cursor:none; }
}

.container{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  margin:0;
  letter-spacing:-.01em;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--yellow);
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.eyebrow::before{
  content:'';
  width:26px;height:2px;
  background:var(--yellow);
  display:inline-block;
}

/* ============== CUSTOM CURSOR ============== */
.cursor-dot,.cursor-ring{
  position:fixed;
  top:0;left:0;
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  transform:translate(-50%,-50%);
  will-change:transform;
}
.cursor-dot{
  width:8px;height:8px;
  background:var(--yellow);
}
.cursor-ring{
  width:38px;height:38px;
  border:1.5px solid rgba(255,212,0,.55);
  transition:width .25s var(--ease),height .25s var(--ease),border-color .25s ease,background .25s ease;
}
.cursor-ring.is-active{
  width:64px;height:64px;
  background:rgba(255,212,0,.08);
  border-color:var(--yellow);
}
@media (hover:none), (pointer:coarse){
  .cursor-dot,.cursor-ring{ display:none; }
}

/* ============== SCROLL PROGRESS ============== */
.scroll-progress{
  position:fixed;
  top:0;left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg,var(--yellow),var(--magenta),var(--cyan));
  z-index:9998;
  transition:width .08s linear;
}

/* ============== SOUND TOGGLE ============== */
.sound-toggle{
  position:fixed;
  bottom:28px;right:28px;
  z-index:500;
  width:54px;height:54px;
  border-radius:50%;
  background:var(--ink-2);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;
  box-shadow:0 8px 30px rgba(0,0,0,.5);
  transition:transform .3s var(--ease),border-color .3s ease,background .3s ease;
}
.sound-toggle:hover{ transform:scale(1.08) rotate(-6deg); border-color:var(--yellow); }
.sound-toggle svg{ width:22px;height:22px; }

.back-to-top{
  position:fixed;
  bottom:28px;left:28px;
  z-index:500;
  width:54px;height:54px;
  border-radius:50%;
  background:var(--yellow);
  color:var(--ink);
  border:none;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  box-shadow:0 8px 30px rgba(255,212,0,.3);
  opacity:0;
  pointer-events:none;
  transform:translateY(20px);
  transition:opacity .3s var(--ease),transform .3s var(--ease);
}
.back-to-top.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }
.back-to-top:hover{ transform:translateY(-4px) scale(1.05); }

/* ============== NAVBAR ============== */
.navbar{
  position:fixed;
  top:0;left:0;right:0;
  z-index:400;
  padding:20px 0;
  transition:padding .3s var(--ease),background .3s ease,border-color .3s ease;
  border-bottom:1px solid transparent;
}
.navbar.scrolled{
  padding:12px 0;
  background:rgba(10,10,12,.75);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
}
.navbar .container{ display:flex; align-items:center; justify-content:space-between; }

.brand{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.1rem;
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:-.02em;
}
.brand-mark{
  width:38px;height:38px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--yellow),var(--yellow-2));
  color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  font-size:1rem;
  transform:rotate(-6deg);
  transition:transform .4s var(--ease);
}
.brand:hover .brand-mark{ transform:rotate(6deg) scale(1.08); }

.nav-links{
  display:flex;
  gap:36px;
  list-style:none;
  margin:0;padding:0;
  font-size:.92rem;
  font-weight:500;
}
.nav-links a{
  position:relative;
  padding:6px 0;
  color:var(--text-dim);
  transition:color .25s ease;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background:var(--yellow);
  transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ width:100%; }

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 22px;
  border-radius:100px;
  background:var(--yellow);
  color:var(--ink);
  font-weight:700;
  font-size:.88rem;
  transition:transform .3s var(--ease),box-shadow .3s ease;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(255,212,0,.35); }

.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--ink-2);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--text); display:block; transition:all .3s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position:fixed;
  inset:0;
  z-index:390;
  background:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
  transform:translateY(-100%);
  transition:transform .5s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--font-display); font-size:1.6rem; font-weight:700; }

/* ============== HERO ============== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:140px 0 40px;
  overflow:hidden;
  isolation:isolate;
}
.hero::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0; height:220px;
  background:linear-gradient(180deg, transparent, var(--ink-2));
  pointer-events:none; z-index:1;
}
#particle-canvas{
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.75;
}
.hero-glow{
  position:absolute;
  z-index:-1;
  border-radius:50%;
  filter:blur(90px);
  opacity:.35;
  pointer-events:none;
}
.hero-glow.g1{ width:520px;height:520px; background:var(--yellow); top:-160px; left:-120px; }
.hero-glow.g2{ width:420px;height:420px; background:var(--magenta); bottom:-140px; right:-100px; opacity:.28; }
.hero-glow.g3{ width:360px;height:360px; background:var(--cyan); top:40%; right:8%; opacity:.16; }

.hero-grid-noise{
  position:absolute; inset:0; z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
}

.hero-top-row{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:56px; flex-wrap:wrap; gap:18px;
}
.hero-status{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:.8rem; color:var(--text-dim);
  padding:8px 16px; border:1px solid var(--line); border-radius:100px;
}
.hero-status .dot{
  width:8px;height:8px;border-radius:50%;background:var(--lime);
  box-shadow:0 0 0 0 rgba(180,255,57,.6);
  animation:pulse-dot 2s infinite;
}
@keyframes pulse-dot{
  0%{ box-shadow:0 0 0 0 rgba(180,255,57,.55); }
  70%{ box-shadow:0 0 0 9px rgba(180,255,57,0); }
  100%{ box-shadow:0 0 0 0 rgba(180,255,57,0); }
}

.hero-name{
  font-size:clamp(3rem,9vw,7.5rem);
  line-height:.94;
  font-weight:800;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.hero-name .line{ display:block; overflow:hidden; }
.hero-name .line span{ display:inline-block; will-change:transform; }
.hero-name .outline{
  -webkit-text-stroke:2px var(--text);
  color:transparent;
}
.hero-name .fill-yellow{ color:var(--yellow); }

.hero-role-row{
  display:flex; align-items:center; gap:16px; margin-top:28px;
  font-family:var(--font-mono); font-size:clamp(1rem,2vw,1.35rem); color:var(--text-dim);
  flex-wrap:wrap;
}
.hero-role-row .bracket{ color:var(--yellow); }
#role-cycle{ color:var(--text); font-weight:500; }
#role-cycle .cursor-blink{
  display:inline-block; width:2px; height:1.1em; background:var(--yellow);
  margin-left:2px; vertical-align:-.15em;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.hero-desc{
  max-width:560px;
  margin-top:32px;
  color:var(--text-dim);
  font-size:1.08rem;
  line-height:1.7;
}
.hero-desc strong{ color:var(--text); font-weight:600; }

.hero-actions{
  display:flex; gap:18px; margin-top:44px; flex-wrap:wrap;
}

.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:17px 32px;
  border-radius:100px;
  font-weight:700;
  font-size:.95rem;
  border:none;
  overflow:hidden;
  isolation:isolate;
  transition:transform .35s var(--ease), box-shadow .35s ease;
}
.btn-primary{
  background:var(--yellow);
  color:var(--ink);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 34px rgba(255,212,0,.32); }
.btn-outline{
  background:transparent;
  color:var(--text);
  border:1.5px solid var(--line);
}
.btn-outline:hover{ border-color:var(--yellow); color:var(--yellow); transform:translateY(-3px); }


.marquee-strip{
  position:relative;
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
  background:var(--ink-2);
  padding:18px 0;
  overflow:hidden;
  transform:rotate(-0.6deg) scale(1.03);
  margin:-24px 0 -1px;
}
.marquee-track{
  display:flex;
  width:max-content;
  gap:48px;
  animation:marquee 26s linear infinite;
}
.marquee-track span{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.1rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--text-dim);
  display:flex; align-items:center; gap:48px;
}
.marquee-track span em{ font-style:normal; color:var(--yellow); }
.marquee-track span::after{ content:'✦'; color:var(--magenta); margin-left:48px; }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ============== SECTION SHELL ============== */
section{ position:relative; padding:130px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom:64px; flex-wrap:wrap;
}
.section-title{
  font-size:clamp(2.2rem,5vw,3.6rem);
  line-height:1.02;
  margin-top:18px;
  text-transform:uppercase;
}
.section-title em{ font-style:normal; color:var(--yellow); }
.section-note{
  max-width:340px; color:var(--text-dim); font-size:.95rem; line-height:1.6;
}

.reveal{
  opacity:0;
  transform:translateY(46px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* ============== ABOUT ============== */
.about-grid{
  display:flex;
  justify-content:center;
}
.about-copy{ max-width:720px; }

.about-copy p{ color:var(--text-dim); font-size:1.08rem; line-height:1.85; margin:0 0 22px; }
.about-copy strong{ color:var(--text); font-weight:600; }
.about-copy .accent{ color:var(--yellow); font-weight:600; }

.stat-row{ display:flex; gap:0; margin-top:44px; border-top:1px solid var(--line-soft); }
.stat{ flex:1; padding:24px 20px 0; border-right:1px solid var(--line-soft); }
.stat:last-child{ border-right:none; }
.stat b{
  display:block; font-family:var(--font-display); font-size:2.1rem; color:var(--yellow); font-weight:800;
}
.stat span{ font-size:.82rem; color:var(--text-dim); }

/* ============== SKILLS ============== */
.skills-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:64px;
}
.skill-bars{ display:flex; flex-direction:column; gap:30px; }
.skill-item .skill-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.skill-item .skill-name{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; text-transform:uppercase; }
.skill-item .skill-pct{ font-family:var(--font-mono); color:var(--yellow); font-size:.95rem; }
.skill-track{
  height:12px; border-radius:100px; background:var(--ink-3);
  border:1px solid var(--line-soft);
  overflow:hidden;
  position:relative;
}
.skill-fill{
  height:100%; border-radius:100px;
  width:0%;
  position:relative;
  transition:width 1.4s var(--ease);
  background:linear-gradient(90deg,var(--yellow-2),var(--yellow));
}
.skill-item[data-tool="capcut"] .skill-fill{ background:linear-gradient(90deg,var(--magenta),#ff6fb3); }
.skill-item[data-tool="davinci"] .skill-fill{ background:linear-gradient(90deg,var(--cyan),#7bf3ff); }
.skill-item[data-tool="canva"] .skill-fill{ background:linear-gradient(90deg,var(--lime),#e2ff9e); }
.skill-fill::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
  width:40%;
  animation:shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ transform:translateX(-120%); }
  100%{ transform:translateX(340%); }
}

.tool-cloud{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.tool-chip{
  padding:10px 18px; border-radius:100px; border:1px solid var(--line);
  font-family:var(--font-mono); font-size:.82rem; color:var(--text-dim);
  transition:all .3s var(--ease);
}
.tool-chip:hover{ border-color:var(--yellow); color:var(--yellow); transform:translateY(-3px) rotate(-2deg); }

.skills-side{
  border-radius:24px;
  border:1px solid var(--line);
  background:linear-gradient(160deg,var(--ink-2),var(--ink-3));
  padding:40px;
  display:flex; flex-direction:column; justify-content:space-between;
  position:relative;
  overflow:hidden;
}
.skills-side::before{
  content:'✱';
  position:absolute; top:-40px; right:-20px;
  font-size:14rem; color:rgba(255,212,0,.05);
}
.skills-side h3{ font-size:1.7rem; text-transform:uppercase; margin-bottom:18px; line-height:1.15; }
.skills-side p{ color:var(--text-dim); line-height:1.75; font-size:.98rem; }
.mini-list{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:14px; }
.mini-list li{ display:flex; align-items:center; gap:12px; font-size:.92rem; color:var(--text-dim); }
.mini-list li .num{ font-family:var(--font-mono); color:var(--yellow); font-size:.82rem; }

/* ============== PROJECTS ============== */
.cat-nav{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:84px; }
.cat-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 22px; border-radius:100px; border:1px solid var(--line);
  font-weight:600; font-size:.88rem; color:var(--text-dim);
  transition:all .3s var(--ease);
}
.cat-pill-num{ font-family:var(--font-mono); color:var(--yellow); font-size:.76rem; }
.cat-pill:hover{ border-color:var(--yellow); color:var(--text); transform:translateY(-2px); }

.category-block{ margin-bottom:110px; scroll-margin-top:110px; }
.category-block:last-child{ margin-bottom:0; }
.category-head{
  display:flex; align-items:flex-end; gap:26px; margin-bottom:44px;
  padding-bottom:30px; border-bottom:1px solid var(--line-soft);
  flex-wrap:wrap;
}
.cat-index{
  font-family:var(--font-display); font-size:3.6rem; font-weight:800;
  color:transparent; -webkit-text-stroke:1.5px rgba(255,212,0,.55); line-height:1;
  flex:none;
}
.category-head .cat-title{ font-size:2rem; text-transform:uppercase; margin-bottom:9px; }
.category-head p{ color:var(--text-dim); font-size:.94rem; max-width:520px; margin:0; line-height:1.6; }
.cat-count{
  margin-left:auto; font-family:var(--font-mono); font-size:.78rem; color:var(--text-dimmer);
  padding:8px 16px; border:1px solid var(--line-soft); border-radius:100px; white-space:nowrap;
}

/* ---- diseño: filmstrip feature cards ---- */
.design-showcase{ display:flex; flex-direction:column; gap:26px; }
.design-feature{
  display:grid;
  grid-template-columns:340px 1fr;
  height:400px;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--ink-2);
  overflow:hidden;
  transition:transform .5s var(--ease), border-color .4s ease, box-shadow .5s ease;
}
.design-feature:hover{ transform:translateY(-6px); border-color:rgba(255,212,0,.4); box-shadow:0 26px 50px rgba(0,0,0,.4); }
.design-feature-info{ padding:40px 38px; display:flex; flex-direction:column; justify-content:center; gap:14px; min-width:0; }
.design-feature-info h3{ font-size:1.7rem; text-transform:uppercase; }
.design-feature-info .desc{ color:var(--text-dim); font-size:.94rem; line-height:1.65; margin:0; }
.design-feature-info .project-tags span{ font-size:.72rem; padding:6px 12px; }
.design-feature-info .project-open{ font-size:.82rem; margin-top:4px; }
.design-feature-strip{ position:relative; overflow:hidden; background:var(--ink-3); height:100%; }
.design-strip-track{
  display:flex; gap:10px; padding:10px;
  height:calc(100% - 20px); width:max-content;
  animation:stripscroll 26s linear infinite;
}
.design-feature:hover .design-strip-track{ animation-play-state:paused; }
.design-strip-track img{ height:100%; width:auto; flex:none; border-radius:12px; object-fit:cover; }
@keyframes stripscroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---- video: organized grid, hover to play ---- */
.video-grid-feature{
  border-radius:26px;
  border:1px solid var(--line);
  background:var(--ink-2);
  padding:36px;
  transition:border-color .4s ease, box-shadow .5s ease;
}
.video-grid-feature:hover{ border-color:rgba(255,212,0,.35); box-shadow:0 26px 50px rgba(0,0,0,.4); }
.video-grid-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap;
  margin-bottom:26px;
}
.video-grid-head h3{ font-size:1.7rem; text-transform:uppercase; margin-bottom:8px; }
.video-grid-head .desc{ color:var(--text-dim); line-height:1.65; font-size:.94rem; margin:0; max-width:520px; }
.video-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
}
.video-tile{
  position:relative;
  aspect-ratio:9/16;
  border-radius:14px;
  overflow:hidden;
  background:#000;
  border:1px solid var(--line-soft);
  transition:transform .3s var(--ease), border-color .3s ease;
}
.video-tile:hover{ transform:scale(1.04); border-color:var(--yellow); z-index:2; }
.video-tile video{ width:100%; height:100%; object-fit:contain; background:#000; }
.video-tile-play{
  position:absolute; inset:0; margin:auto; width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(10,10,12,.55); color:#fff; font-size:.8rem;
  pointer-events:none; opacity:1; transition:opacity .25s ease;
}
.video-tile:hover .video-tile-play{ opacity:0; }
@media (max-width:900px){
  .video-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:640px){
  .video-grid{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .video-grid-feature{ padding:22px; }
  .video-grid-head{ margin-bottom:18px; }
}

@media (max-width:900px){
  .design-feature{ grid-template-columns:1fr; height:auto; }
  .design-feature-strip{ height:220px; }
  .design-feature-info{ padding:26px 24px; gap:9px; }
  .design-feature-info h3{ font-size:1.3rem; }
  .design-feature-info .desc{ font-size:.84rem; }
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}
.project-card{
  grid-column:span 1;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--ink-2);
  overflow:hidden;
  position:relative;
  transition:transform .5s var(--ease), border-color .4s ease, box-shadow .5s ease;
}
.project-card.wide{ grid-column:span 2; }
.project-card.static-view{ cursor:default; }
.project-card.static-view:hover{ transform:none; border-color:var(--line); box-shadow:none; }
.project-card.static-view:hover .project-thumb img{ transform:none; filter:saturate(.9); }
.project-card:hover{
  transform:translateY(-8px);
  border-color:rgba(255,212,0,.4);
  box-shadow:0 30px 60px rgba(0,0,0,.45);
}
.project-thumb{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--ink-3);
}
.browser-chrome{
  position:absolute;
  top:0;left:0;right:0;
  z-index:4;
  height:34px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  background:rgba(14,14,17,.82);
  backdrop-filter:blur(8px) saturate(140%);
  -webkit-backdrop-filter:blur(8px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.browser-chrome .bc-dot{ width:8px;height:8px;border-radius:50%; flex:none; }
.browser-chrome .bc-dot.r{ background:#ff5f57; }
.browser-chrome .bc-dot.y{ background:#febc2e; }
.browser-chrome .bc-dot.g{ background:#28c840; }
.browser-chrome .bc-url{
  flex:1;
  margin-left:6px;
  background:rgba(255,255,255,.07);
  border-radius:6px;
  padding:5px 12px;
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.02em;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:flex;
  align-items:center;
  gap:6px;
}
.browser-chrome .bc-url .lock{ color:var(--lime); font-size:.62rem; flex:none; }
.project-thumb.has-chrome .thumb-mosaic,
.project-thumb.has-chrome > img,
.project-thumb.has-chrome .thumb-solo{
  padding-top:34px;
}
.project-thumb.has-chrome .thumb-mosaic{
  box-sizing:border-box;
  height:100%;
}
.project-thumb.has-chrome .thumb-tag,
.project-thumb.has-chrome .thumb-play{
  top:50px;
}
.project-card.wide .project-thumb{ aspect-ratio:21/9; }
.project-thumb img,.project-thumb video{
  width:100%; height:100%; object-fit:cover;
  transition:transform .7s var(--ease), filter .5s ease;
  filter:saturate(.9);
}
.project-card:hover .project-thumb img,
.project-card:hover .project-thumb video{ transform:scale(1.06); filter:saturate(1.1); }
.project-thumb .thumb-mosaic{
  position:absolute; inset:0;
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,1fr); gap:2px;
}
.thumb-mosaic img{ width:100%; height:100%; object-fit:cover; }
.project-thumb::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.15) 45%, transparent 70%);
}
.thumb-tag{
  position:absolute; top:16px; left:16px; z-index:2;
  padding:7px 14px; border-radius:100px;
  background:rgba(10,10,12,.7); backdrop-filter:blur(6px);
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.05em; text-transform:uppercase;
  border:1px solid var(--line);
}
.thumb-tag.live{ color:var(--lime); border-color:rgba(180,255,57,.4); }
.thumb-tag.design{ color:var(--cyan); border-color:rgba(0,229,255,.4); }
.thumb-tag.video{ color:var(--magenta); border-color:rgba(255,46,146,.4); }

.thumb-play{
  position:absolute; top:16px; right:16px; z-index:2;
  width:42px;height:42px; border-radius:50%;
  background:rgba(10,10,12,.6); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--text); font-size:.9rem;
}

.project-info{
  position:relative; z-index:2;
  margin-top:-70px;
  padding:0 26px 26px;
}
.project-card.wide .project-info{ padding:0 34px 34px; }
.project-info h3{
  font-size:1.5rem; text-transform:uppercase; margin-bottom:8px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.project-card.wide .project-info h3{ font-size:1.9rem; }
.project-info .desc{ color:var(--text-dim); font-size:.92rem; line-height:1.6; max-width:480px; margin-bottom:16px; }
.project-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.project-tags span{
  font-family:var(--font-mono); font-size:.7rem; padding:5px 11px; border-radius:100px;
  border:1px solid var(--line-soft); color:var(--text-dimmer);
}
.project-open{
  margin-top:18px; display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.82rem; color:var(--yellow); font-weight:600;
}
.project-open .arrow{ transition:transform .3s var(--ease); }
.project-card:hover .project-open .arrow{ transform:translate(4px,-4px); }

/* ============== LIGHTBOX / MODAL ============== */
.lightbox{
  position:fixed; inset:0; z-index:1000;
  background:rgba(6,6,8,.92);
  backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center;
  padding:5vh 4vw;
  opacity:0; pointer-events:none;
  transition:opacity .4s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox-panel{
  width:100%; max-width:1040px; max-height:90vh;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  display:flex; flex-direction:column;
  transform:scale(.94) translateY(20px);
  transition:transform .45s var(--ease);
}
.lightbox.open .lightbox-panel{ transform:scale(1) translateY(0); }
.lightbox-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 28px; border-bottom:1px solid var(--line-soft);
}
.lightbox-head h3{ font-size:1.3rem; text-transform:uppercase; }
.lightbox-close{
  width:38px;height:38px; border-radius:50%; border:1px solid var(--line);
  background:transparent; color:var(--text); font-size:1.1rem;
  display:flex;align-items:center;justify-content:center;
  transition:all .3s ease;
}
.lightbox-close:hover{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); transform:rotate(90deg); }
.lightbox-body{ padding:28px; overflow-y:auto; }
.lightbox-body p{ color:var(--text-dim); line-height:1.7; margin:0 0 22px; }
.lightbox-gallery{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px;
}
.lightbox-gallery img,.lightbox-gallery video{
  width:100%; border-radius:14px; aspect-ratio:4/3; object-fit:cover;
  border:1px solid var(--line-soft);
  transition:transform .4s var(--ease);
}
.lightbox-gallery a:hover img{ transform:scale(1.03); }
.lightbox-gallery video{ aspect-ratio:16/9; object-fit:contain; background:#000; cursor:pointer; }
.lightbox-actions{ display:flex; gap:14px; margin-top:24px; flex-wrap:wrap; }

.imgview{
  position:fixed; inset:0; z-index:1100;
  background:rgba(4,4,6,.96);
  display:flex; align-items:center; justify-content:center;
  padding:4vh 4vw;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.imgview.open{ opacity:1; pointer-events:auto; }
.imgview img{ max-width:100%; max-height:88vh; border-radius:10px; }
.imgview-close{
  position:absolute; top:26px; right:32px;
  width:44px;height:44px;border-radius:50%;
  border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; font-size:1.2rem;
}

/* ============== PROCESS / TIMELINE ============== */
.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:grid; grid-template-columns:90px 1fr; gap:32px;
  padding:34px 0; border-top:1px solid var(--line-soft);
  transition:padding-left .4s var(--ease);
}
.process-item:last-child{ border-bottom:1px solid var(--line-soft); }
.process-item:hover{ padding-left:16px; }
.process-num{ font-family:var(--font-mono); color:var(--yellow); font-size:1rem; padding-top:6px; }
.process-item h4{ font-size:1.4rem; text-transform:uppercase; margin-bottom:8px; }
.process-item p{ color:var(--text-dim); max-width:640px; line-height:1.7; margin:0; }

/* ============== CONTACT ============== */
.contact-panel{
  border-radius:30px;
  background:linear-gradient(150deg,var(--yellow) 0%, var(--yellow-2) 100%);
  color:var(--ink);
  padding:80px 64px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.contact-panel::before{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background-image:radial-gradient(rgba(10,10,12,.14) 1.5px, transparent 1.5px);
  background-size:20px 20px;
}
.contact-panel::after{
  content:'✦';
  position:absolute; font-size:22rem; color:rgba(10,10,12,.06);
  right:-60px; bottom:-140px; z-index:-1; font-family:var(--font-display);
}
.contact-eyebrow{
  font-family:var(--font-mono); font-size:.8rem; letter-spacing:.28em; text-transform:uppercase;
  color:rgba(10,10,12,.65);
}
.contact-title{
  font-size:clamp(2.4rem,6vw,4.6rem);
  line-height:1.02;
  margin:20px 0 30px;
  text-transform:uppercase;
  max-width:820px;
}
.contact-row{
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  margin-top:36px; padding-top:36px; border-top:1.5px solid rgba(10,10,12,.18);
}
.contact-email{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.1rem,3vw,2rem);
  display:inline-flex; align-items:center; gap:14px;
  overflow-wrap:anywhere; max-width:100%;
}
.contact-email .icon-box{
  width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--yellow);
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;
  transition:transform .4s var(--ease);
}
.contact-email:hover .icon-box{ transform:rotate(20deg) scale(1.1); }
.copy-note{ font-family:var(--font-mono); font-size:.78rem; color:rgba(10,10,12,.6); margin-top:6px; }
.contact-btn{
  padding:18px 34px; border-radius:100px; background:var(--ink); color:var(--yellow);
  font-weight:700; display:inline-flex; align-items:center; gap:10px;
  transition:transform .35s var(--ease);
}
.contact-btn:hover{ transform:translateY(-3px) scale(1.02); }

/* ============== FOOTER ============== */
footer{ padding:50px 0 40px; border-top:1px solid var(--line-soft); }
.footer-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  color:var(--text-dimmer); font-size:.85rem; font-family:var(--font-mono);
}
.footer-row a{ color:var(--text-dim); transition:color .3s ease; }
.footer-row a:hover{ color:var(--yellow); }

/* ============== TOAST ============== */
.toast{
  position:fixed; bottom:96px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink-2); border:1px solid var(--yellow); color:var(--text);
  padding:14px 24px; border-radius:100px; font-family:var(--font-mono); font-size:.85rem;
  z-index:900; opacity:0; pointer-events:none; transition:all .4s var(--ease);
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ============== RESPONSIVE ============== */
@media (max-width:980px){
  .skills-grid{ grid-template-columns:1fr; gap:44px; }
  .projects-grid{ grid-template-columns:1fr; }
  .project-card.wide{ grid-column:span 1; }
  .nav-links,.nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .contact-panel{ padding:56px 30px; }
}
@media (max-width:640px){
  .container{ padding:0 20px; }
  section{ padding:90px 0; }
  .stat-row{ flex-wrap:wrap; }
  .stat{ flex:1 1 45%; border-right:none; margin-bottom:18px; }
  body{ cursor:auto; }
  .cursor-dot,.cursor-ring{ display:none; }
  .contact-email{ font-size:1.05rem; gap:10px; }
  .contact-email .icon-box{ width:40px; height:40px; font-size:.9rem; flex:none; }
  .contact-btn{ width:100%; justify-content:center; }
  .hero{ padding-bottom:20px; }
  .hero-actions{ flex-wrap:nowrap; gap:10px; }
  .hero-actions .btn{ flex:1; padding:14px 14px; font-size:.82rem; gap:6px; white-space:nowrap; justify-content:center; text-align:center; font-weight:800; }
}
@media (max-width:400px){
  .hero-actions .btn{ padding:13px 10px; font-size:.76rem; }
}

/* ============== ACTUALIZACIÓN NOV 2026 ============== */
/* Botones de CV */
.cv-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:40px; }
.cv-actions .btn{ padding:14px 26px; font-size:.88rem; }
.contact-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.contact-btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid rgba(10,10,12,.35); }

/* Herramientas por tipo de trabajo (sin porcentajes) */
.tool-groups{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px 34px; align-content:start; }
.tool-group h3{ font-family:var(--font-display); font-size:1rem; text-transform:uppercase; letter-spacing:.02em; margin:0 0 14px; }
.tool-group .tool-cloud{ margin-top:0; gap:9px; }
.tool-group .tool-chip{ padding:8px 15px; }
@media (max-width:640px){ .tool-groups{ grid-template-columns:1fr; } }

/* Videos: fila tipo Reels, cada video en vertical como en un celular */
.reel-block{ margin-bottom:56px; }
.reel-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.reel-head h4{ font-family:var(--font-display); font-size:1.25rem; text-transform:uppercase; margin:0; }
.reel-rail{
  display:flex; gap:18px; overflow-x:auto; padding:6px 4px 22px; margin:0 -4px;
  scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:var(--yellow-dim) transparent;
}
.reel-tile{
  position:relative; flex:0 0 220px; aspect-ratio:9/16; padding:0; border:1px solid var(--line);
  border-radius:22px; overflow:hidden; background:#000; scroll-snap-align:start; text-align:left; color:var(--text);
  transition:transform .45s var(--ease), border-color .3s ease, box-shadow .45s ease;
}
.reel-tile.ancho{ flex-basis:auto; height:391px; aspect-ratio:16/9; }
.reel-tile:hover, .reel-tile:focus-visible{ transform:translateY(-6px); border-color:var(--yellow); box-shadow:0 22px 44px rgba(0,0,0,.5); outline:none; }
.reel-tile img, .reel-tile video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.reel-tile video{ opacity:0; transition:opacity .35s ease; }
.reel-tile.preview video{ opacity:1; }
.reel-tile::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.85)); pointer-events:none; }
.reel-tile-txt{ position:absolute; left:16px; right:16px; bottom:16px; z-index:2; display:flex; flex-direction:column; gap:4px; }
.reel-tile-txt b{ font-family:var(--font-display); font-size:.86rem; line-height:1.25; text-transform:uppercase; }
.reel-tile-txt span{ font-family:var(--font-mono); font-size:.68rem; color:var(--yellow); }
.reel-tile-play{
  position:absolute; top:14px; right:14px; z-index:2; width:38px; height:38px; display:grid; place-items:center;
  border-radius:50%; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.25); font-size:.8rem;
  transition:background .3s ease, color .3s ease;
}
.reel-tile:hover .reel-tile-play{ background:var(--yellow); color:var(--ink); }
@media (max-width:640px){ .reel-tile{ flex-basis:170px; } .reel-tile.ancho{ height:302px; } }

/* Reproductor a pantalla completa */
.player{
  position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; gap:22px;
  padding:24px; background:rgba(6,6,8,.95); backdrop-filter:blur(12px);
}
.player[hidden]{ display:none; }
.player-stage{ margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; max-width:min(1100px,100%); }
.player-stage video{ max-width:100%; max-height:calc(100vh - 140px); border-radius:18px; background:#000; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.player-stage figcaption{ display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:6px 14px; text-align:center; }
.player-stage figcaption b{ font-family:var(--font-display); text-transform:uppercase; font-size:1rem; }
.player-stage figcaption span{ font-family:var(--font-mono); font-size:.78rem; color:var(--yellow); }
.player-stage figcaption em{ font-family:var(--font-mono); font-style:normal; font-size:.78rem; color:var(--text-dimmer); }
.player-nav, .player-close{
  flex:0 0 auto; width:52px; height:52px; border-radius:50%; border:1px solid var(--line); background:var(--ink-2);
  color:var(--text); font-size:1.2rem; display:grid; place-items:center; transition:all .3s var(--ease);
}
.player-nav:hover, .player-close:hover{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); }
.player-close{ position:absolute; top:22px; right:22px; width:46px; height:46px; }
@media (max-width:640px){
  .player{ padding:70px 10px 20px; gap:8px; }
  .player-nav{ position:absolute; bottom:18px; width:46px; height:46px; }
  .player-nav.prev{ left:calc(50% - 60px); } .player-nav.next{ right:calc(50% - 60px); }
  .player-stage video{ max-height:calc(100vh - 210px); }
}
