:root {
  --black: #000;
  --bone: #ece8e1;
  --mute: #8f8a82;
  --line: #262422;
  --pad: clamp(16px, 2.2vw, 32px);
  --wide: "wdth" 125;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; overflow-x: clip; }
body {
  background: var(--black);
  color: var(--bone);
  font: 400 17px/1.55 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

.skip { position: fixed; left: var(--pad); top: 8px; z-index: 50; background: var(--bone); color: #000; padding: 8px 12px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Barra sobre el hero */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  background: linear-gradient(#000a, #0000);
}
.bar-name { font-weight: 700; font-variation-settings: var(--wide); text-decoration: none; font-size: 15px; }
.bar-cta {
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--bone); padding: 9px 18px;
  transition: background .2s, color .2s;
}
.bar-cta:hover { background: var(--bone); color: #000; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; }
.lang button {
  background: none; border: 0; color: var(--mute); cursor: pointer;
  font: 600 14px "Archivo", sans-serif; padding: 8px 6px;
}
.lang button[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }
.lang button:hover { color: var(--bone); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 20;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px #0008;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.phone { margin-top: 18px; color: var(--mute); font-size: 15px; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.shot .hero { height: 860px; min-height: 0; }
.shot .areas { position: static; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #000 0%, #000c 18%, #0000 55%);
}
.hero-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px); }
.hero h1 {
  font-variation-settings: var(--wide); font-weight: 900;
  font-size: clamp(54px, 12.6vw, 230px); line-height: .8; letter-spacing: -.025em;
  animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) both;
}
.hero-text p { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 20px); animation: rise 1.1s .15s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.brands { padding: 22px var(--pad) 26px; color: var(--mute); font-size: 15px; max-width: 110ch; }

/* Navegacion por area */
.areas {
  position: sticky; top: 0; z-index: 10;
  display: flex; background: #000; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.areas::-webkit-scrollbar { display: none; }
.areas a {
  flex: 1 0 auto; padding: 17px var(--pad); text-decoration: none; white-space: nowrap;
  color: var(--mute); font-weight: 600; font-size: 15px; font-variation-settings: "wdth" 110;
  transition: color .2s, box-shadow .2s;
}
.areas a:hover { color: var(--bone); }
.areas a.on { color: var(--bone); box-shadow: inset 0 -3px 0 var(--bone); }
.areas a.talk { flex: 0 0 auto; color: var(--bone); }

/* Secciones */
.area { padding-top: clamp(64px, 9vw, 120px); }
.area-head { padding: 0 var(--pad) 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); gap: 12px 40px; align-items: end; }
.area h2 {
  font-variation-settings: var(--wide); font-weight: 800;
  font-size: clamp(38px, 6.4vw, 104px); line-height: .9; letter-spacing: -.02em;
}
.area-head p { color: var(--mute); font-size: 16px; }

.grid { display: grid; gap: 0; }
.grid.tall { grid-template-columns: repeat(6, 1fr); }
.grid.card { grid-template-columns: repeat(3, 1fr); }
.grid.cover { grid-template-columns: repeat(3, 1fr); }
.grid.cover.two { grid-template-columns: repeat(2, 1fr); }

.tile {
  position: relative; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; background: #0d0d0d; color: inherit; text-align: left; font: inherit;
}
.grid.tall .tile { aspect-ratio: 9 / 16; }
.grid.card .tile { aspect-ratio: 4 / 5; }
.grid.cover .tile { aspect-ratio: 808 / 632; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video { opacity: 0; transition: opacity .3s; }
.tile.playing video { opacity: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #000d 0%, #0000 42%);
  transition: opacity .3s;
}
.tile-cap { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; }
.tile-cap b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; font-variation-settings: "wdth" 110; }
.tile-cap span { display: block; color: #cfc9c0; font-size: 13px; margin-top: 3px; }
.grid.cover .tile-cap b { font-size: clamp(17px, 1.6vw, 22px); }

.tile-cta {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(18px, 2.4vw, 32px); text-decoration: none;
  background: #0d0d0d; border-left: 1px solid var(--line);
}
.tile-cta b { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(26px, 3vw, 44px); line-height: .95; }
.tile-cta span { color: var(--mute); max-width: 32ch; }
.tile-cta em { font-style: normal; font-weight: 700; border: 1px solid var(--bone); align-self: flex-start; padding: 9px 18px; margin-top: 8px; transition: background .2s, color .2s; }
.tile-cta:hover em { background: var(--bone); color: #000; }

/* About y contacto */
.about { padding: clamp(80px, 11vw, 160px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 40px; }
.about h2, .contact h2 { font-variation-settings: var(--wide); font-weight: 800; letter-spacing: -.02em; }
.about h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.about-text { max-width: 62ch; font-size: clamp(17px, 1.5vw, 21px); }
.about-text p + p { margin-top: 1em; color: var(--mute); }

.contact { padding: clamp(96px, 13vw, 200px) var(--pad) clamp(64px, 8vw, 120px); }
.contact h2 { font-size: clamp(48px, 10vw, 180px); line-height: .85; }
.contact p { margin-top: 26px; color: var(--mute); max-width: 48ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-links a {
  text-decoration: none; font-weight: 700; font-size: clamp(18px, 2vw, 24px);
  font-variation-settings: "wdth" 115;
  border: 1px solid var(--bone); padding: 16px 28px; transition: background .2s, color .2s;
}
.contact-links a:hover { background: var(--bone); color: #000; }

.foot { border-top: 1px solid var(--line); padding: 22px var(--pad) 32px; color: var(--mute); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* Ventana de caso */
.case {
  width: min(1240px, 100vw); max-width: 100vw; max-height: 100dvh; height: 100dvh;
  margin: 0 auto; padding: 0; border: 0;
  background: #000; color: var(--bone);
}
.case::backdrop { background: #000e; }
.case-inner {
  min-height: 100%; padding: 20px var(--pad) 40px;
  background: radial-gradient(70% 38% at 50% 0%, color-mix(in srgb, var(--glow, #555) 34%, transparent), transparent 100%);
}
.case-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 20px; }
.case h3 { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(28px, 4vw, 56px); line-height: .95; letter-spacing: -.02em; }
.case-line { margin-top: 10px; max-width: 60ch; color: #d6d0c7; }
.case-close, .case-step {
  background: none; color: var(--bone); border: 1px solid var(--bone); padding: 9px 18px;
  font: 600 15px "Archivo", sans-serif; cursor: pointer; flex: 0 0 auto;
}
.case-close:hover, .case-step:hover { background: var(--bone); color: #000; }
.case-media { display: grid; gap: 12px; justify-items: center; }
.case-media video { background: #050505; width: 100%; max-height: 76dvh; object-fit: contain; }
.case-media video.v916 { width: auto; height: 76dvh; aspect-ratio: 9 / 16; max-width: 100%; }
.case-media small { color: var(--mute); justify-self: start; }
.case-credit { margin: 16px 0 28px; color: var(--mute); font-size: 15px; }
.case-loops { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.case-loops.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-loops figure { position: relative; }
.case-loops video { width: 100%; }
.case-loops figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px #000; }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.case-behance { font-weight: 600; }
.case-behance[hidden] { display: none; }

@media (max-width: 1100px) {
  .grid.tall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid.tall { grid-template-columns: repeat(2, 1fr); }
  .grid.card, .grid.cover, .grid.cover.two { grid-template-columns: 1fr; }
  .grid.card .tile { aspect-ratio: 4 / 3; }
  .area-head, .about { grid-template-columns: 1fr; }
  .areas a { padding: 15px 14px; font-size: 14px; }
  .case-media video.v916 { height: auto; width: 100%; max-height: 70dvh; }
  .case-foot { justify-content: center; }
  .case-behance { order: -1; width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-text p { animation: none; }
}
