/* ============================================================
   BREAK BOX STUDIO — premium / editorial / dark
   ============================================================ */
body.studio{ background:var(--bb-navy); color:var(--bb-pale); }
.studio .bb-nav{ color:var(--bb-pale); }
.studio .bb-nav.is-scrolled{ background:rgba(20,25,50,.7); }
.studio .bb-nav__cta{ color:var(--bb-pale); }
.studio .bb-nav__cta:hover{ background:var(--bb-pale); color:var(--bb-navy); }

.section{ padding:160px var(--gutter); position:relative; }
.section--tight{ padding-top:100px; padding-bottom:100px; }
.section__inner{ max-width:var(--container); margin:0 auto; }

/* ---------- HERO ---------- */
.st-hero{
  /* Capped, not just 100svh — vertically-centered content plus an
     uncapped full-viewport height meant tall/big monitors got a hero
     that kept growing, pushing "Qué hacemos" way down the page behind
     a wall of dead space. */
  min-height:min(100svh,820px); display:flex; flex-direction:column; justify-content:center;
  position:relative; overflow:hidden; padding:120px var(--gutter) 80px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(87,79,244,.4), transparent 65%),
    var(--bb-navy);
}
.st-hero__label{ color:var(--bb-lilac); margin-bottom:28px; }
.st-hero h1{
  font-size:clamp(40px,7.6vw,104px); color:var(--white); max-width:1200px;
}
.st-hero__statement{
  margin-top:26px; max-width:640px; font-family:var(--font-display); font-weight:800;
  font-size:clamp(20px,2.6vw,30px); line-height:1.3; color:var(--white);
}
.st-hero__sub{
  margin-top:18px; max-width:600px; font-size:clamp(16px,1.6vw,19px);
  line-height:1.65; color:rgba(223,224,252,.75);
}
.st-hero__ctas{ margin-top:44px; display:flex; gap:18px; flex-wrap:wrap; }
.st-hero__pin{ will-change:transform, opacity; }

.st-hero__badge{
  position:absolute; top:130px; right:6%; width:min(30vw,300px);
  filter:drop-shadow(0 30px 60px rgba(87,79,244,.4));
}

/* ---------- SERVICES ---------- */
/* The hero above is a vertically-centered 100svh flex box, so on tall
   viewports there's already dead space below its CTAs before the section
   even starts — stacking the default 160px section padding on top of
   that made the gap to "Qué hacemos" excessive. Cut just the top. */
.st-services{ background:var(--bb-navy); padding-top:clamp(60px,8vw,100px); }
.st-services__head{ max-width:720px; margin-bottom:56px; }
.st-services__head .eyebrow{ color:var(--bb-lilac); }
.st-services__head h2{ font-size:clamp(30px,4.4vw,52px); color:var(--white); }

/* Cards instead of full-width stacked rows — fits 3 (then 2, then 1)
   per row so the section doesn't demand five screens of scrolling. */
.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.svc-card{
  display:flex; flex-direction:column; position:relative; overflow:hidden;
  background:rgba(255,255,255,.03); border:1px solid rgba(223,224,252,.12);
  border-radius:var(--radius-l); padding:36px 30px; min-height:340px;
  transition:transform .35s var(--ease-out), background .35s, border-color .35s;
}
.svc-card:hover{ transform:translateY(-6px); background:rgba(255,255,255,.055); border-color:rgba(223,224,252,.28); }
.svc-card:hover .svc-card__bg{ transform:scale(1.06); }
.svc-card__bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease-out);
}
.svc-card__scrim{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,12,30,.55) 0%, rgba(10,12,30,.72) 55%, rgba(8,10,26,.92) 100%);
}
.svc-card__num{
  position:relative; z-index:1;
  font-family:var(--font-display); font-weight:800; font-size:14px;
  color:var(--bb-lilac); letter-spacing:.1em;
}
.svc-card h3{ position:relative; z-index:1; font-size:clamp(19px,2vw,23px); color:var(--white); margin-top:8px; }
.svc-card p{ position:relative; z-index:1; margin-top:14px; color:rgba(223,224,252,.82); line-height:1.6; font-size:14.5px; flex:1; }
.svc-card__tags{ position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.svc-card__tags span{
  font-family:var(--font-display); font-size:10.5px; font-weight:700;
  letter-spacing:.03em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px; border:1px solid rgba(223,224,252,.3);
  background:rgba(10,12,30,.35); color:rgba(223,224,252,.85);
}
@media (max-width:1080px){ .svc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .svc-grid{ grid-template-columns:1fr; } }

/* ---------- PROCESS ---------- */
.st-process{ background:#171d3a; }
.process-track{
  display:grid; grid-template-columns:repeat(5,1fr); gap:24px; margin-top:60px;
}
@media (max-width:960px){ .process-track{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .process-track{ grid-template-columns:1fr; } }
.process-step{
  padding:28px 22px; border-radius:var(--radius-m);
  background:rgba(255,255,255,.03); border:1px solid rgba(223,224,252,.1);
  transition:transform .4s var(--ease-out), background .4s;
}
.process-step:hover{ transform:translateY(-6px); background:rgba(255,255,255,.06); }
.process-step .n{ font-family:var(--font-display); font-weight:800; color:var(--bb-lilac); font-size:13px; }
.process-step h4{ margin-top:14px; font-size:18px; color:var(--white); }
.process-step p{ margin-top:10px; font-size:13.5px; color:rgba(223,224,252,.65); line-height:1.55; }

/* ---------- Logos / clients marquee ---------- */
/* Moved here from Home — Home stays a bare chooser, so client proof
   lives on Studio's own page instead, right before the portfolio. */
.st-marquee{ background:#171d3a; padding:70px 0; overflow:hidden; }
.st-marquee p{
  text-align:center; font-family:var(--font-display); font-weight:700;
  font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(223,224,252,.5);
  margin-bottom:36px;
}
.marquee-track{ display:flex; align-items:center; gap:76px; width:max-content; animation:marquee 34s linear infinite; }
.marquee-track span{
  font-family:var(--font-display); font-weight:800; font-size:26px; color:rgba(223,224,252,.55);
  white-space:nowrap;
}
/* Real client logos: no card/background — grayscale(1) neutralizes any
   color, invert(1) flips black<->white so the (mostly black-on-transparent)
   art reads on the dark marquee bg, brightening to full white on hover.
   NOTE: no brightness(0) here — that crushed every pixel to one flat
   value, which erased internal white cutout detail on two-tone logos
   (e.g. text knocked out of a solid pill/badge shape) into a blob. */
.marquee-logo{
  display:flex; align-items:center; justify-content:center; height:56px;
  filter:grayscale(1) invert(1) opacity(.5);
  transition:filter .25s;
}
.marquee-logo:hover{ filter:grayscale(1) invert(1) opacity(1); }
.marquee-logo img{ max-height:46px; max-width:190px; width:auto; height:auto; object-fit:contain; display:block; }
/* Track is duplicated 4x in JS (content.js) — shift by exactly one copy's
   width (-25%) so the loop wraps with no visible seam, even on very wide
   screens where 2 copies alone might not fill the whole strip. */
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-25%); } }

/* ---------- PORTFOLIO ---------- */
/* Horizontal gallery: a draggable native row on touch/narrow screens
   (overflow-x:auto + scroll-snap), and — on desktop, via studio.js —
   a pinned section where vertical scroll drives the horizontal
   translateX of .pf-grid instead. overflow:hidden only kicks in at
   the desktop breakpoint so JS owns the motion there; below it the
   browser's native horizontal scroll does the job. */
.st-portfolio{ background:var(--bb-navy); }
.pf-nav{ display:flex; gap:10px; flex:none; }
.pf-nav__btn{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:transparent; border:2px solid rgba(255,255,255,.3); color:#fff;
  font-size:16px; cursor:pointer; transition:background .2s, border-color .2s, color .2s, transform .2s;
  display:flex; align-items:center; justify-content:center;
}
.pf-nav__btn:hover{ background:var(--bb-lilac); border-color:var(--bb-lilac); color:var(--bb-navy); transform:scale(1.06); }
.pf-nav__btn:disabled{ opacity:.35; cursor:not-allowed; }
.pf-nav__btn:disabled:hover{ background:transparent; border-color:rgba(255,255,255,.3); color:#fff; transform:none; }
.pf-viewport{
  margin-top:60px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity; scrollbar-width:none;
}
.pf-viewport::-webkit-scrollbar{ display:none; }
.pf-grid{ display:flex; gap:22px; width:max-content; }
@media (min-width:821px){ .pf-viewport{ overflow:hidden; } }
.pf-card{
  flex:0 0 min(78vw,300px); scroll-snap-align:start;
  aspect-ratio:1/1.05; border-radius:var(--radius-m); position:relative; overflow:hidden;
  background:linear-gradient(160deg,#242a52,#4e2bcd);
  display:flex; align-items:flex-end; padding:22px;
  text-decoration:none; transition:transform .35s var(--ease-out);
}
a.pf-card:hover{ transform:translateY(-6px); }
.pf-card:nth-child(3n+2){ background:linear-gradient(160deg,#2c2560,#574ff4); }
.pf-card:nth-child(3n){ background:linear-gradient(160deg,#1c2246,#3b3aa0); }
.pf-card__ig{
  position:absolute; top:16px; right:16px; z-index:1; width:30px; height:30px; border-radius:50%;
  background:rgba(255,255,255,.14); backdrop-filter:blur(2px); color:#fff; font-size:15px;
  display:flex; align-items:center; justify-content:center; transition:background .2s, transform .2s;
}
/* Behind the name label, on top of a case-image screenshot — keeps the
   label legible regardless of how light/busy the screenshot itself is. */
.pf-card__scrim{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(0deg, rgba(10,12,30,.85) 0%, rgba(10,12,30,.35) 38%, transparent 65%);
}
a.pf-card:hover .pf-card__ig{ background:var(--bb-lilac); color:var(--bb-navy); transform:scale(1.1); }
.pf-card__label{
  font-family:var(--font-display); font-weight:800; font-size:15px; color:#fff;
  opacity:.9;
}
.pf-card__ph{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(255,255,255,.35);
}
.pf-note{
  margin-top:26px; font-size:13.5px; color:rgba(223,224,252,.5); max-width:480px;
}

/* ---------- BUILDERS (team, placeholder) ---------- */
.st-builders{ background:#171d3a; }
.bd-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:60px; }
@media (max-width:900px){ .bd-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .bd-grid{ grid-template-columns:1fr; } }
.bd-card{
  aspect-ratio:3/4; border-radius:var(--radius-m); position:relative; overflow:hidden;
  background:linear-gradient(160deg,#242a52,#4e2bcd);
  display:flex; align-items:flex-end; cursor:pointer;
}
.bd-card:nth-child(4n+2){ background:linear-gradient(160deg,#2c2560,#574ff4); }
.bd-card:nth-child(4n+3){ background:linear-gradient(160deg,#1c2246,#3b3aa0); }
.bd-card:nth-child(4n)  { background:linear-gradient(160deg,#20255a,#9999ff); }
/* Permanent scrim keeps name/role legible over any photo; it deepens and
   grows taller on hover/tap to make room for the specialty line. */
.bd-card__scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg, rgba(10,12,30,.82) 0%, rgba(10,12,30,.35) 42%, transparent 68%);
  transition:background .35s var(--ease-out);
}
.bd-card:hover .bd-card__scrim, .bd-card.is-open .bd-card__scrim{
  background:linear-gradient(0deg, rgba(10,12,30,.92) 0%, rgba(10,12,30,.55) 58%, transparent 90%);
}
.bd-card__info{ position:relative; z-index:2; padding:20px; width:100%; }
.bd-card__name{
  display:block; font-family:var(--font-display); font-weight:800; font-size:17px; color:#fff;
}
.bd-card__label{
  display:block; font-family:var(--font-display); font-weight:700; font-size:10.5px;
  letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.6); margin-top:2px;
}
.bd-card__specialty{
  font-size:12.5px; line-height:1.4; color:rgba(255,255,255,.85); margin-top:9px;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .35s var(--ease-out), opacity .3s var(--ease-out), margin-top .35s var(--ease-out);
}
.bd-card:hover .bd-card__specialty, .bd-card.is-open .bd-card__specialty{
  max-height:100px; opacity:1;
}
.bd-card__ph{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(255,255,255,.35); text-align:center; padding:0 16px;
}

/* ---------- STATS ---------- */
.st-stats{ background:#171d3a; }
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:760px){ .stats-row{ grid-template-columns:1fr 1fr; } }
.stat{ text-align:left; }
.stat .num{
  font-family:var(--font-display); font-weight:900; font-size:clamp(38px,5vw,64px);
  color:var(--white);
}
.stat .num span{ color:var(--bb-lilac); }
.stat .lbl{ margin-top:8px; font-size:13.5px; color:rgba(223,224,252,.6); }

/* ---------- CTA ---------- */
.st-cta{
  background:linear-gradient(155deg,#2b2270,var(--bb-purple) 60%,#574ff4);
  text-align:center; overflow:hidden; position:relative;
}
.st-cta h2{ font-size:clamp(30px,5.4vw,64px); color:var(--white); max-width:800px; margin:0 auto; }
.st-cta p{ margin-top:20px; color:rgba(223,224,252,.85); font-size:17px; }
.st-cta__ctas{ margin-top:40px; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
