/* ==========================================================================
   .movi — Agencia de marketing
   Estética del prototipo: negro profundo, vidrio estriado, carpetas de vidrio,
   Poppins para títulos, DM Sans para textos y Gochi Hand para notas a mano.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, licencia SIL OFL) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/poppins-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations'), url('/assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Gochi Hand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/gochi-hand-latin-400-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-2: #070707;
  --ink: #fff;
  --cream: #ece6d6;
  --mute: #a3a3a3;
  --mute-2: #707070;
  --line: rgba(255, 255, 255, .12);
  --banana: #f4c53d;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --f-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --f-hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --fluted: url('/assets/img/ui/fluted.webp');
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.menu-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--banana); color: #000; }
:focus-visible { outline: 2px solid var(--banana); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--banana); color: #000; font-weight: 700; transition: top .3s; }
.skip:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.eyebrow { margin-bottom: 1.1rem; font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.hand { font-family: var(--f-hand); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }


/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn span[aria-hidden] { transition: transform .45s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: var(--banana); }
.btn-banana { background: var(--banana); color: #000; }
.btn-banana:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.nav.is-scrolled { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.brand { margin-right: auto; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.04em; position: relative; z-index: 2; }
.nav-links { display: flex; gap: 30px; font-size: .95rem; }
.nav-links a { position: relative; color: rgba(255, 255, 255, .7); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .78em 1.3em; position: relative; z-index: 2; }
.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -8px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 10px) var(--pad) 36px;
  background: #000 var(--fluted) 50% 60% / cover;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .74); }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-links { position: relative; display: grid; gap: clamp(12px, 2.4vh, 20px); }
.menu-links a {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 6vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease);
}
.menu-links small { min-width: 2.2em; font-family: var(--f-body); font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--mute); font-variant-numeric: tabular-nums; }
.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-links a:nth-child(1) { transition-delay: .12s; } .menu-links a:nth-child(2) { transition-delay: .16s; }
.menu-links a:nth-child(3) { transition-delay: .2s; }  .menu-links a:nth-child(4) { transition-delay: .24s; }
.menu-links a:nth-child(5) { transition-delay: .28s; } .menu-links a:nth-child(6) { transition-delay: .32s; }
.menu-links a:nth-child(7) { transition-delay: .36s; } .menu-links a:nth-child(8) { transition-delay: .4s; }
.menu-foot { position: relative; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(32px, 6vh, 56px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 20px) var(--pad) 120px;
}
.hero-bg {
  position: absolute; inset: -8% -2% -2%; z-index: -3;
  background: #000 var(--fluted) 50% 70% / cover no-repeat;
  transform-origin: 50% 30%; will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 40%, rgba(0, 0, 0, .7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 25%, transparent 70%, #000 100%);
}
.hero-shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 45%), rgba(255, 255, 255, .5), transparent 65%);
  transition: opacity .8s;
}
.hero:hover .hero-shine { opacity: 1; }
.hero-inner { position: relative; display: inline-flex; flex-direction: column; will-change: transform, opacity; }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 15.5vw, 15rem); line-height: .9; letter-spacing: -.055em; }
.hero-word { display: block; overflow: hidden; padding: .06em .03em .08em 0; margin: -.06em 0 -.08em; }
.hero-word > span { display: inline-block; transform: translateY(108%); animation: rise 1.25s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .055s); }
@keyframes rise { to { transform: none; } }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: .25em; padding-left: .25em; font-size: 1rem; line-height: 1.4; letter-spacing: normal; }
.hero-tag { font-family: var(--f-body); font-size: clamp(.66rem, 1.12vw, 1rem); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--cream); opacity: 0; animation: fade .9s ease 1.05s forwards; }
.hero-dot { margin-top: -.12em; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.03em; opacity: 0; animation: fade-up 1s var(--ease) 1.15s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 30px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
  opacity: 0; animation: fade 1s ease 1.6s forwards;
}
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: drop 1.9s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Carrusel de marcas ---------- */
.brands-strip { padding: clamp(42px, 6vw, 72px) 0; border-block: 1px solid var(--line); background: #000; }
.brands-strip .eyebrow { margin-bottom: clamp(22px, 3vw, 32px); text-align: center; }
.logo-marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track { --ls: 1; flex-shrink: 0; display: flex; align-items: center; gap: clamp(48px, 6vw, 100px); padding-right: clamp(48px, 6vw, 100px); animation: logos 46s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-track li { display: flex; align-items: center; }
.logo-track img { width: calc(var(--w) * var(--ls) * 1px); height: auto; opacity: .8; transition: opacity .4s; }
.logo-track li:hover img { opacity: 1; }
@media (max-width: 640px) { .logo-track { --ls: .78; } }
@keyframes logos { to { transform: translateX(-100%); } }

/* ---------- Servicios (carpetas) ---------- */
.servicios {
  position: relative; overflow: hidden;
  padding: clamp(90px, 11vw, 150px) 0 clamp(90px, 11vw, 150px);
  background-color: #000;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
}
.servicios::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 65% at 50% 45%, transparent 25%, #000 90%); }
.servicios .wrap { position: relative; }
.servicios-head { margin-bottom: clamp(36px, 5vw, 64px); text-align: center; }
.servicios-head .display { font-weight: 900; font-size: clamp(3rem, 8.4vw, 7.2rem); }
.servicios-head .hand { margin-top: .5rem; color: var(--mute); }
.servicios-grid { display: grid; grid-template-columns: 1fr clamp(150px, 17vw, 230px); gap: clamp(20px, 3vw, 40px); align-items: start; }

.folders { position: relative; aspect-ratio: 950 / 600; }
.folder { position: absolute; left: calc(var(--i) * 11%); top: calc(var(--i) * 10.25%); z-index: calc(var(--i) + 1); width: 56%; transition: transform .6s var(--ease); }
.folder-link { position: relative; display: block; }
.folder-link img { width: 100%; filter: drop-shadow(0 -10px 22px rgba(0, 0, 0, .55)) brightness(.95); transition: filter .5s; }
.folder-label { position: absolute; left: 5%; top: 3.4%; font-size: clamp(.82rem, 1.45vw, 1.15rem); font-weight: 500; color: #f2f2f2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.folder-num, .folder-go { position: absolute; right: 5.5%; top: 10.8%; font-size: clamp(.68rem, 1vw, .82rem); letter-spacing: .12em; transition: opacity .35s, transform .5s var(--ease); }
.folder-num { color: rgba(255, 255, 255, .42); }
.folder-go { color: var(--banana); letter-spacing: .04em; opacity: 0; transform: translateX(-8px); }
.folder-link picture { display: block; }
/* Levantar la carpeta: con mouse al pasar por encima y con teclado al enfocarla
   (en pantallas táctiles no, para que no quede levantada después de tocarla). */
@media (hover: hover) {
  .folder:hover { transform: translateY(-16px); }
  .folder:hover .folder-link img { filter: drop-shadow(0 -14px 28px rgba(0, 0, 0, .6)) brightness(1.4); }
  .folder:hover .folder-num { opacity: 0; }
  .folder:hover .folder-go { opacity: 1; transform: none; }
}
.folder:has(:focus-visible) { transform: translateY(-16px); }
.folder:has(:focus-visible) .folder-link img { filter: drop-shadow(0 -14px 28px rgba(0, 0, 0, .6)) brightness(1.4); }
.folder:has(:focus-visible) .folder-num { opacity: 0; }
.folder:has(:focus-visible) .folder-go { opacity: 1; transform: none; }

.banana { position: relative; display: grid; justify-items: center; padding-top: clamp(0px, 2vw, 20px); text-align: center; }
.banana-note { font-family: var(--f-hand); font-size: clamp(.95rem, 1.35vw, 1.2rem); line-height: 1.05; text-transform: uppercase; transform: rotate(-4deg); }
.banana-arrow { width: 34px; margin: 4px 0 -6px -46px; transform: rotate(-8deg); opacity: .95; }
.banana-img { width: clamp(84px, 9.5vw, 128px); transform-origin: 50% 92%; animation: wiggle 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .65)); }
.banana:hover .banana-img, .banana:focus-visible .banana-img { animation-duration: .6s; }
@keyframes wiggle { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.pixel-cursor { position: absolute; width: 36px; height: auto; image-rendering: pixelated; pointer-events: none; }
.banana .pixel-cursor { right: 4%; bottom: 0; }

/* ---------- Secciones (pestaña de carpeta sobre vidrio estriado) ---------- */
.sec { position: relative; overflow-x: clip; padding-bottom: clamp(80px, 10vw, 130px); }
.sec-strip { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 56px; margin-bottom: clamp(64px, 8vw, 110px); background: #000 var(--fluted) 50% 32% / 100% auto; }
.sec-strip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)); }
.sec-strip span { position: relative; margin-bottom: -1px; padding: 13px 36px 11px; border-radius: 18px 18px 0 0; background: #000; font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.sec-strip span::before, .sec-strip span::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 18px; }
.sec-strip span::before { left: -18px; background: radial-gradient(circle at 0 0, transparent 17.5px, #000 18px); }
.sec-strip span::after { right: -18px; background: radial-gradient(circle at 100% 0, transparent 17.5px, #000 18px); }
.sec-head { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 28px 60px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-intro p { max-width: 42ch; color: rgba(255, 255, 255, .74); }
.sec-intro .hand { margin-top: 1rem; color: #fff; }
.sec-head-center { display: block; text-align: center; }
.hand-lg { margin-top: .9rem; font-size: clamp(1.3rem, 2.3vw, 2rem); }

/* ---------- Redes: marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 56px) clamp(14px, 2.2vw, 30px); }
.brand-card { position: relative; display: flex; flex-direction: column; }
.brand-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #111; }
.brand-media img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; filter: saturate(.9) brightness(.92); transition: scale 1.2s var(--ease), filter .6s; will-change: translate; }
.brand-media::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white' stroke='none'/%3E%3C/svg%3E") center / 18px no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease);
}
.brand-card:hover .brand-media img, .brand-card:focus-visible .brand-media img { scale: 1.2; filter: saturate(1.08) brightness(1); }
.brand-card:hover .brand-media::after, .brand-card:focus-visible .brand-media::after { opacity: 1; transform: none; }
.plate {
  position: relative; z-index: 1; display: grid; gap: 1px;
  margin: -26px 7% 0; padding: 10px 12px 11px; border-radius: 12px; text-align: center;
  background: linear-gradient(105deg, rgba(200, 200, 200, .42), rgba(95, 95, 95, .46) 45%, rgba(38, 38, 38, .62));
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -8px 16px rgba(0, 0, 0, .25), 0 16px 30px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.plate strong { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.plate small { font-size: .78rem; color: rgba(255, 255, 255, .86); }
.brand-card:hover .plate { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -8px 16px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .3), 0 24px 40px rgba(0, 0, 0, .6); }
.brand-cta .brand-media { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, .25); background: radial-gradient(circle at 30% 20%, #232323, #080808); transition: border-color .4s; }
.brand-cta .brand-media::after { display: none; }
.brand-cta-inner { display: grid; justify-items: center; gap: 6px; padding: 16px; text-align: center; }
.brand-cta-inner strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.brand-cta-inner span[aria-hidden] { font-size: 1.4rem; transition: transform .45s var(--ease); }
.brand-cta:hover .brand-media { border-color: var(--banana); }
.brand-cta:hover .brand-cta-inner span[aria-hidden] { transform: translateX(6px); }

/* ---------- Contenido: reels ---------- */
.reels-sticky { display: grid; gap: 34px; }
.reels-intro { position: relative; z-index: 2; width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.reels-icons { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.reels-icons svg { width: 42px; height: 42px; }
.reels-icons .ico-tt svg { width: 34px; height: 34px; }
.reels-title { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.reels-copy { max-width: 34ch; margin: 1.3rem 0 1.1rem; color: rgba(255, 255, 255, .74); }
.hand-list { display: grid; gap: .1rem; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.reels-tip { margin-top: 1.6rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.reels-track {
  position: relative; display: flex; gap: clamp(26px, 3vw, 50px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px var(--pad) 36px;
}
.reels-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 auto; display: grid; justify-items: center; gap: 18px; scroll-snap-align: center; transform: rotate(var(--r, 0deg)); transition: transform .7s var(--ease); }
.reel:hover { transform: rotate(0deg) translateY(-8px); }
.reel-link { padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: .85rem; color: rgba(255, 255, 255, .72); transition: color .3s, border-color .3s; }
.reel-link:hover { color: var(--banana); border-color: var(--banana); }

/* Pin horizontal en escritorio (lo activa app.js) */
.is-pinned .reels-pin { height: var(--pin-h, 300vh); }
.is-pinned .reels-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: center; gap: 0;
  padding: var(--nav-h) 0 20px var(--pad);
}
.is-pinned .reels-intro { width: auto; margin: 0; padding-right: 30px; }
.is-pinned .reels-intro::before { content: ""; position: absolute; z-index: -1; inset: -100vh -90px -100vh calc(-1 * var(--pad)); background: linear-gradient(90deg, #000 72%, transparent); }
.is-pinned .reels-track { min-width: 0; overflow: visible; scroll-snap-type: none; padding: 20px var(--pad) 20px 60px; will-change: transform; }
.is-pinned .reels-tip { display: none; }

/* Teléfono */
.phone {
  position: relative; width: clamp(210px, 19vw, 268px); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 44px;
  background: linear-gradient(150deg, #3b3b3b, #131313 38%, #050505);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 0 0 4px #0b0b0b, 0 0 0 1px #000, 0 40px 80px -24px rgba(0, 0, 0, .95);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2b2b2b; }
.phone::after { content: ""; position: absolute; left: -3px; top: 19%; width: 3px; height: 6%; border-radius: 3px 0 0 3px; background: #2b2b2b; box-shadow: 0 46px 0 #2b2b2b; }
.phone-screen { position: relative; isolation: isolate; height: 100%; overflow: hidden; border-radius: 35px; background: #0c0c0c; }
.phone-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 32%); }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.phone-island { position: absolute; top: 9px; left: 50%; z-index: 3; width: 31%; height: 21px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.reel-sound {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, transform .3s var(--ease);
}
.reel-sound:hover { background: rgba(0, 0, 0, .7); transform: scale(1.08); }
.reel-sound .i-on, .reel-sound[aria-pressed="true"] .i-off { display: none; }
.reel-sound[aria-pressed="true"] .i-on { display: block; }
.reel-sound[aria-pressed="true"] { background: var(--banana); color: #000; border-color: var(--banana); }
.reel-play {
  position: absolute; inset: 0; z-index: 3; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.reel.is-paused .reel-play { opacity: 1; pointer-events: auto; }
.reel-play:hover { transform: scale(1.08); }

/* ---------- Fotografía: galería con parallax ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); align-items: start; }
.g-col { display: grid; gap: clamp(14px, 2vw, 26px); will-change: translate; }
.g-col:nth-child(2) { padding-top: 60px; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #111; }
.g-item img { width: 100%; scale: 1.12; transition: scale 1.2s var(--ease); will-change: translate; }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.g-item:hover img { scale: 1.17; }
.g-note { padding: 18px 6px; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1; text-align: center; transform: rotate(-5deg); }
.g-note-big { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.05; transform: rotate(3deg); color: var(--banana); }

/* ---------- Publicidad ---------- */
.ads { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: clamp(30px, 4vw, 60px); }
.ads-visual { position: relative; padding: 13% 0 10%; }
.ads-glow { position: absolute; inset: 0 6% 8%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08) 55%, transparent); filter: blur(12px); }
.ads-laptop { position: relative; z-index: 1; width: 90%; margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); }
.ads-table { position: absolute; z-index: 2; left: -1%; right: -3%; top: 46%; transform: rotate(-2deg); }
.ads-table img { width: 100%; border-radius: 6px; box-shadow: 0 24px 50px rgba(0, 0, 0, .7); }
.ads-table figcaption { margin-top: 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-align: right; }
.chat { position: absolute; z-index: 3; top: 0; right: -2%; width: min(320px, 50%); display: grid; gap: 9px; }
.bubble { justify-self: start; padding: 9px 13px 7px; border-radius: 14px 14px 14px 4px; background: #262626; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); font-size: .86rem; line-height: 1.35; }
.bubble time { display: block; margin-top: 2px; text-align: right; font-size: .66rem; color: rgba(255, 255, 255, .55); }
.typing { display: none; justify-self: start; gap: 4px; padding: 11px 13px; border-radius: 14px; background: #262626; }
.typing.show { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .65); animation: blink 1.1s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }

.ads-side { position: relative; display: grid; justify-items: start; padding: 40px 0 10px 4%; }
.phone-kpi { width: clamp(230px, 21vw, 280px); }
.kpis { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px 20px 28px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, #1f1f1f, #050505 70%); }
.kpis h3 { margin-bottom: 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.kpis dl { display: grid; gap: 14px; }
.kpis dl div { display: flex; flex-direction: column-reverse; }
.kpis dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis dt { margin-top: 2px; font-size: .64rem; color: rgba(255, 255, 255, .62); }
.story-wrap { position: absolute; top: 2%; right: -3%; width: 34%; max-width: 190px; }
.story-card { position: relative; display: block; transform: rotate(8deg); transition: transform .6s var(--ease); }
.story-card > img:first-child { border: 3px solid #fff; border-radius: 14px; box-shadow: 0 30px 50px rgba(0, 0, 0, .65); }
.story-card:hover { transform: rotate(2deg) scale(1.05); }
.story-card .pixel-cursor { left: -22px; bottom: 16%; width: 38px; }

/* ---------- Diseño gráfico ---------- */
.case { margin-top: clamp(50px, 6vw, 80px); }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-head h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.case-head p { max-width: 46ch; color: rgba(255, 255, 255, .72); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.bento-2 { grid-template-columns: repeat(2, 1fr); }
.b-item { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #0e0e0e; }
.b-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.b-item img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: scale 1.1s var(--ease); will-change: translate; }
.b-item:hover img { scale: 1.17; }
.b-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.b-info { display: grid; place-items: center; background: #000 var(--fluted) 50% 40% / cover; }
.b-info::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.b-info .hand { position: relative; text-align: center; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.15; }

/* ---------- Nosotros ---------- */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.nosotros-text .display { font-weight: 900; }
.statement { margin: 1.4rem 0 1.2rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -.025em; }
.statement .w { color: #8c8c8c; transition: color .45s; }
.statement .w.on { color: #fff; }
.nosotros-text p:not(.statement):not(.eyebrow) { max-width: 46ch; color: rgba(255, 255, 255, .78); }
.nosotros-text p.nosotros-sign { margin: 1.1rem 0 2rem; font-size: 1.15rem; color: #fff; }
.polaroids { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); padding: 20px 0 30px; }
.polaroid { position: relative; padding: 7px 7px 26px; border-radius: 3px; background: #f4f1ea; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); transform: rotate(var(--r, 0deg)); transition: transform .7s var(--ease), opacity .7s, box-shadow .5s; }
.polaroid:nth-child(even) { margin-top: 34px; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid:hover { z-index: 2; transform: rotate(0deg) scale(1.07); box-shadow: 0 28px 60px rgba(0, 0, 0, .7); }

/* ---------- Contacto ---------- */
.contacto { isolation: isolate; overflow: hidden; padding-top: clamp(100px, 12vw, 170px); text-align: center; }
.contacto-bg {
  position: absolute; inset: -18% 0; z-index: -1; opacity: .5;
  background: #000 var(--fluted) 50% 60% / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.contacto-inner { position: relative; display: grid; justify-items: center; }
.contacto .display { max-width: 12ch; font-size: clamp(2.7rem, 8vw, 7rem); }
.contacto-copy { max-width: 44ch; margin-top: 1.4rem; color: rgba(255, 255, 255, .8); }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); width: min(100%, 1000px); margin-top: clamp(36px, 5vw, 60px); text-align: left; }
.contact-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'icon label' 'icon value' 'go go';
  align-items: center; gap: 2px 16px; padding: clamp(20px, 2.6vw, 30px); border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .5s var(--ease), border-color .4s;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .42); }
.cc-icon { grid-area: icon; width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: #fff; color: #000; }
.contact-wa .cc-icon { background: #25d366; color: #fff; }
.cc-label { grid-area: label; align-self: end; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.cc-value { grid-area: value; align-self: start; font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 1.55vw, 1.32rem); line-height: 1.2; letter-spacing: -.02em; }
.cc-go { grid-area: go; display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--banana); }
.cc-go span { transition: transform .45s var(--ease); }
.contact-card:hover .cc-go span { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(60px, 8vw, 110px); background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-mail {
  align-self: flex-start; padding-bottom: 6px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: color .3s;
}
.footer-mail:hover { color: var(--banana); }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 110px); }
.footer-cols div { display: grid; align-content: start; gap: 10px; }
.footer-cols h2 { margin-bottom: 6px; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.footer-cols a { color: rgba(255, 255, 255, .85); transition: color .3s, transform .35s var(--ease); }
.footer-cols a:hover { color: #fff; transform: translateX(4px); }
.footer-word {
  margin-top: clamp(30px, 5vw, 70px); text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 30vw, 27rem); line-height: .8; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  background: var(--fluted) 50% 40% / 100% auto; -webkit-background-clip: text; background-clip: text;
  will-change: transform;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mute); }
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(20, 20, 20, .6); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transform: translateY(130px); transition: transform .6s var(--ease);
}
.wa-float.show { transform: none; }
.wa-float.show:hover { background: #25d366; border-color: #25d366; transform: scale(1.06); }

/* ---------- Visor de imágenes ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; overscroll-behavior: contain; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-figure { display: grid; justify-items: center; gap: 12px; max-width: 92vw; }
.lb-img { width: auto; max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-img.in { animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lb-cap { max-width: 70ch; font-size: .85rem; color: var(--mute); text-align: center; }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; line-height: 1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); transition: background-color .3s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 18px; right: 18px; font-size: 1.9rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Animaciones de entrada (solo con JavaScript activo) ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
  .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .1em; margin: -.08em -.02em -.1em; }
  .ch { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--ci, 0) * 24ms); }
  [data-split].in .ch { transform: none; }
  .chat .bubble { display: none; }
  .chat .bubble.show { display: block; animation: bubble-in .55s var(--ease) both; }
  .polaroids:not(.in) .polaroid { opacity: 0; transform: translateY(70px) rotate(calc(var(--r, 0deg) * 3)); }
  .polaroids.in:not(.done) .polaroid:nth-child(2) { transition-delay: .09s; }
  .polaroids.in:not(.done) .polaroid:nth-child(3) { transition-delay: .18s; }
  .polaroids.in:not(.done) .polaroid:nth-child(4) { transition-delay: .27s; }
  .polaroids.in:not(.done) .polaroid:nth-child(5) { transition-delay: .36s; }
  .polaroids.in:not(.done) .polaroid:nth-child(6) { transition-delay: .45s; }
  /* Red de seguridad: si app.js no carga, todo aparece igual */
  html:not(.ready) .reveal { animation: show-now 0s 2.5s forwards; }
  html:not(.ready) .chat .bubble { display: block; }
  html:not(.ready) .polaroids .polaroid { animation: show-now 0s 2.5s forwards; }
}
@keyframes show-now { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(3, 1fr); }
  .ads { grid-template-columns: 1fr; }
  .ads-side { justify-items: center; padding: 10px 0 0; }
  .story-wrap { top: 6%; right: 6%; width: 24%; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .sec-head, .nosotros-grid { grid-template-columns: 1fr; }
  .sec-head { align-items: start; }
  .polaroids { max-width: 620px; }
}
@media (max-width: 760px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .folders { aspect-ratio: auto; display: flex; flex-direction: column; }
  .folder { position: relative; left: auto; top: auto; width: 100%; margin-top: -49%; }
  .folder:first-child { margin-top: 0; }
  .folder:has(:focus-visible) { transform: translateY(-8px); }
  @media (hover: hover) { .folder:hover { transform: translateY(-8px); } }
  .folder-label { font-size: 1.05rem; }
  .banana { margin-top: 10px; }
  .chat { position: relative; top: auto; right: auto; width: 100%; max-width: 360px; margin: 24px 0 0; }
  .ads-visual { padding-bottom: 0; }
  .ads-table { position: relative; left: auto; right: auto; top: auto; margin: -24% -1% 0; }
  .ads-table figcaption { text-align: left; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-big { grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .brands { grid-template-columns: repeat(2, 1fr); gap: 34px 12px; }
  .plate { margin-inline: 4%; padding: 8px 6px 9px; }
  .plate strong { font-size: .92rem; }
  .plate small { font-size: .7rem; }
  .gallery { display: block; columns: 2; column-gap: 12px; }
  .g-col { display: contents; }
  .g-item, .g-note { break-inside: avoid; margin-bottom: 12px; }
  .g-note { padding: 10px 4px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { gap: 2px 14px; }
  .cc-icon { width: 48px; height: 48px; border-radius: 14px; }
  .story-wrap { position: relative; top: auto; right: auto; width: min(56%, 220px); margin: 34px auto 0; }
  .story-card { transform: rotate(-4deg); }
  .story-card .pixel-cursor { left: auto; right: -24px; transform: scaleX(-1); }
  .polaroids { grid-template-columns: repeat(2, 1fr); }
  .polaroid:nth-child(even) { margin-top: 24px; }
  .hero-foot p { display: none; }
  .hero-foot { justify-content: center; }
  .footer-cols { gap: 40px; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .bento-2 { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ----------
   Pedido del cliente: todos los efectos (scroll suave, parallax, apariciones, el
   balanceo de la banana y demás animaciones) se ven siempre, aunque el sistema
   tenga activada la opción de reducir el movimiento. */
