/* =========================================================
   Marina Alfaro — UGC Portfolio
   ========================================================= */

:root {
  --cream: #fff9e0;
  --cream-2: #f6efd2;
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --muted: rgba(14, 14, 14, 0.58);
  --line: rgba(14, 14, 14, 0.14);
  --cream-muted: rgba(255, 249, 224, 0.6);
  --cream-line: rgba(255, 249, 224, 0.16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

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

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--ink); color: var(--cream); }

/* ---------- Utilities ---------- */
.label {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 5vw, 56px);
}
.label span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.label--light { color: var(--cream-muted); }

.display {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.display em { letter-spacing: -0.02em; display: block; }
.display span { display: block; }
.display--light { color: var(--cream); }

.split-line, .hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* las cursivas (j, A…) sobresalen de su caja: se amplía el recorte sin mover el texto */
em.split-line, .split-line:has(> .line-inner > em) {
  padding: 0 0.12em 0.2em 0.16em;
  margin: 0 -0.12em -0.14em -0.16em;
}
.split-line > .line-inner { display: inline-block; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn--dark:hover { color: var(--ink); }
.btn--dark:hover::before { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--xl { padding: clamp(18px, 2.4vw, 28px) clamp(26px, 3.4vw, 44px); font-size: clamp(16px, 2.2vw, 28px); letter-spacing: -0.02em; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  clip-path: inset(0% 0% 0% 0%);
}
.loader__name {
  display: flex;
  gap: 0.25em;
  font-size: clamp(36px, 7vw, 96px);
  letter-spacing: -0.05em;
  font-weight: 500;
  overflow: hidden;
  line-height: 1.05;
}
.loader__name > * { display: inline-block; }
.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
}
.no-js .loader, .loader.is-done { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s;
  opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-big {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  mix-blend-mode: normal;
  background: var(--cream);
}
.cursor__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(255, 249, 224, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}
.nav__logo em { font-size: 1.15em; }
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__social { display: flex; gap: 4px; }
.nav__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__social a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.nav__social svg { width: 16px; height: 16px; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.lang button {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn--sm { padding: 9px 14px; font-size: 13px; }
  .nav__right { gap: 8px; }
  .nav__social a { width: 34px; height: 34px; }
  .lang button { padding: 6px 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  padding: 84px var(--gutter) 40px;
  display: grid;
  grid-template-areas: "stack";
  grid-template-columns: 1fr;
  overflow: hidden;
}
.hero__name { display: contents; }
.hero__line {
  grid-area: stack;
  font-size: clamp(88px, 16vw, 290px);
  line-height: 0.84;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 0;
  position: relative;
}
.hero__line--1 { align-self: start; justify-self: start; z-index: 3; margin-left: -0.04em; }
.hero__line--2 {
  align-self: end;
  justify-self: end;
  z-index: 3;
  margin-bottom: clamp(60px, 9svh, 110px);
  letter-spacing: -0.03em;
  padding: 0 0.08em 0.12em 0.22em;
}
.hero__line--2 em { line-height: 0.95; }
.hero__line .split { display: inline-block; }
.hero__line .char { display: inline-block; will-change: transform; }

.hero__photo {
  grid-area: stack;
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  margin: 2svh 0 0;
  height: clamp(380px, 68svh, 760px);
  aspect-ratio: 3 / 4.4;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px 24px 24px;
  background: var(--cream-2);
}
.hero__badge {
  position: absolute;
  right: -46px;
  top: 18%;
  width: 112px;
  height: 112px;
  fill: var(--ink);
  font-size: 9.4px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__badge text { animation: spin 16s linear infinite; transform-origin: 60px 60px; }
.hero__star { fill: var(--ink); transform-origin: 60px 60px; animation: pulse 3s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(0.8) rotate(45deg); } }

.hero__meta {
  position: absolute;
  top: 96px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta--right { right: var(--gutter); }
.hero__role {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__intro p { margin: 0; }
.hero__intro {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  max-width: 300px;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.hero__scroll:hover { background: var(--ink); color: var(--cream); }
.hero__scroll svg { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 84px;
    padding-bottom: 130px;
    grid-template-areas: none;
    align-content: start;
  }
  .hero__line, .hero__photo { grid-area: auto; }
  .hero__line { font-size: 26vw; }
  .hero__line--1 { order: 1; }
  .hero__photo { order: 2; height: auto; width: 62vw; max-width: 340px; margin-top: -6vw; }
  .hero__line--2 { order: 3; margin: -12vw 0 0; }
  .hero__badge { right: -30px; width: 88px; height: 88px; top: 8%; }
  .hero__meta--right { display: none; }
  .hero {
    min-height: 0;
    padding-bottom: 48px;
  }
  .hero__intro {
    position: static;
    order: 4;
    margin-top: 28px;
    max-width: none;
    padding-right: 64px;
    font-size: 17px;
  }
  .hero__scroll { bottom: 48px; padding: 12px; }
  .hero__scroll span { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px) 0;
  transform: rotate(-1.4deg) scale(1.03);
  margin: 0 0 clamp(60px, 8vw, 120px);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: clamp(22px, 3.4vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 500;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee__track i { font-style: normal; font-size: 0.6em; opacity: 0.7; }
.marquee__track em { font-size: 1.12em; letter-spacing: -0.02em; }
.services li em { font-size: 1.12em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 12vw, 180px); }
.about__text {
  margin: 0;
  max-width: 22ch;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: clamp(32px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.about__text em { letter-spacing: -0.02em; }
.about__text .word { display: inline-block; }
.about__grid {
  margin-top: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.services li {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}
.services li:hover { background: var(--ink); color: var(--cream); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.stat { padding: 20px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat__value {
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.stat__value em { font-size: 0.9em; }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.3; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 20px; }
}

/* ---------- Work ---------- */
.work {
  background: var(--ink);
  color: var(--cream);
  border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
  padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 6vw, 80px);
}
.work__head { padding: 0 var(--gutter); margin-bottom: clamp(48px, 7vw, 100px); }
.work__hint { margin: 24px 0 0; color: var(--cream-muted); font-size: 15px; }
.work__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.work__tabs a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.work__tabs a sup { font-size: 10px; color: var(--cream-muted); }
.work__tabs a:hover, .work__tabs a.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.work__tabs a:hover sup, .work__tabs a.is-active sup { color: var(--muted); }

.cat {
  display: grid;
  grid-template-columns: clamp(250px, 22vw, 330px) 1fr;
  gap: clamp(32px, 3.6vw, 56px);
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  border-top: 1px solid var(--cream-line);
}
.cat__head { position: sticky; top: 96px; align-self: start; }
.cat__index { font-size: 13px; color: var(--cream-muted); letter-spacing: 0.1em; }
.cat__name {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 4.4vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.cat__intro { margin: 0; max-width: 30ch; color: var(--cream-muted); font-size: 16px; }
.cat__count {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
}
.cat__reels {
  /* 4 columnas iguales que llegan al margen derecho: misma anchura y altura (9:16) en todas las categorías */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 3.6vw, 56px) clamp(26px, 2.8vw, 44px);
  align-items: start;
}

.piece { min-width: 0; }
.piece__top {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.piece__brandrow {
  height: 26px;
  display: flex;
  align-items: center;
}
.piece__logo {
  height: 22px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.piece__wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piece__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
}
.piece__tags::-webkit-scrollbar { display: none; }
.piece__tags li {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--cream-muted);
  white-space: nowrap;
}
.piece__tags li:first-child { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.piece__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.piece__frame video,
.piece__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.piece__frame:hover video, .piece__frame:hover img { transform: scale(1.045); }
.piece__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 35%);
  pointer-events: none;
}
.piece__play {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 249, 224, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.4s var(--ease);
}
.piece__play svg { width: 14px; height: 14px; }
.piece__frame:hover .piece__play { transform: translateY(-3px); }
.piece__progress {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 249, 224, 0.25);
  overflow: hidden;
}
.piece__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cream);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 1100px) {
  .cat__reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { grid-template-columns: 1fr; }
  .cat__head { position: static; }
}

/* Carrusel en móvil */
@media (max-width: 760px) {
  .cat { padding-left: 0; padding-right: 0; gap: 28px; }
  .cat__head { padding: 0 var(--gutter); }
  .cat__reels {
    max-width: none;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cat__reels::-webkit-scrollbar { display: none; }
  .piece { flex: 0 0 72vw; scroll-snap-align: start; }
}

/* ---------- Brands ---------- */
.brands {
  padding: clamp(90px, 12vw, 170px) 0;
  overflow: hidden;
}
.brands__head { padding: 0 var(--gutter); margin-bottom: clamp(48px, 7vw, 100px); }
.brands__rows {
  display: grid;
  gap: clamp(34px, 4.6vw, 64px);
  /* los bordes se funden con el fondo */
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.brands__row { overflow: hidden; }
.brands__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.brands__set {
  display: flex;
  align-items: center;
  gap: clamp(56px, 7vw, 110px);
  padding-right: clamp(56px, 7vw, 110px);
}
.brands__set img {
  flex: none;
  width: calc(var(--bw) * var(--brand-scale, 1));
  height: calc(var(--bh) * var(--brand-scale, 1));
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.brands__set img:hover { opacity: 1; transform: scale(1.06); }
@media (max-width: 760px) {
  .brands { --brand-scale: 0.66; }
}

/* ---------- Photos ---------- */
.photos { padding: 0 var(--gutter) clamp(90px, 12vw, 170px); }
.photos__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.photos__head .label { margin-bottom: 0; order: 2; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row dense;
  gap: clamp(10px, 1.4vw, 20px);
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream-2);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.shot--feature { grid-column: span 2; grid-row: span 2; }
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14, 14, 14, 0.06);
  pointer-events: none;
}
@media (hover: hover) {
  .shot img { transition: transform 1.1s var(--ease), filter 0.6s; }
  .shot:hover img { transform: scale(1.05) !important; }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Gear ---------- */
.gear {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(60px, 8vw, 120px);
  border-radius: clamp(24px, 4vw, 48px);
  margin: 0 clamp(0px, 1vw, 16px);
  overflow: hidden;
}
.gear::before {
  /* luz suave de fondo para dar profundidad */
  content: "";
  position: absolute;
  inset: 20% -10% auto;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 249, 224, 0.04), transparent 70%);
  pointer-events: none;
}
.gear__stage {
  position: relative;
  aspect-ratio: 100 / 82;
  margin-top: clamp(40px, 6vw, 90px);
}
.gear__obj {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  margin: 0;
  will-change: transform;
}
.gear__float {
  position: relative;
  animation: gearFloat var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes gearFloat {
  from { transform: translate3d(0, -10px, 0) rotate(calc(var(--tilt, 1deg) * -1)); }
  to { transform: translate3d(0, 12px, 0) rotate(var(--tilt, 1deg)); }
}
.gear__media {
  position: relative;
  display: block;
}
.gear__obj img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}
/* bruma de luz detrás de cada objeto: escala con su tamaño */
.gear__glow {
  position: absolute;
  inset: -22% -26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 249, 224, 0.15), rgba(255, 249, 224, 0.06) 48%, transparent 100%);
  filter: blur(14px);
  pointer-events: none;
  animation: gearGlow 7s ease-in-out infinite alternate;
}
@keyframes gearGlow {
  from { opacity: 0.75; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}
.gear__tag {
  position: absolute;
  top: var(--ty, 18%);
  left: calc(100% + 4px);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.gear__obj[data-side="left"] .gear__tag { left: auto; right: calc(100% + 4px); flex-direction: row-reverse; text-align: right; }
.gear__obj[data-side="left"] .gear__arrow { transform: scale(-1, -1); }
.gear__obj[data-side="bottom"] .gear__tag {
  top: calc(100% + 2px);
  left: 18%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.gear__arrow {
  flex: none;
  /* apuntan al objeto, con la curva reflejada al otro lado */
  transform: scaleY(-1);
  width: clamp(44px, 5vw, 76px);
  height: auto;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gear__obj[data-side="bottom"] .gear__arrow { width: clamp(30px, 3vw, 46px); }
.gear__arrow--up { transform: scaleX(-1); }
.gear__text { display: grid; line-height: 1; }
.gear__text em {
  font-size: clamp(22px, 2.3vw, 36px);
  letter-spacing: -0.01em;
  padding-bottom: 0.1em;
}
.gear__text small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

@media (max-width: 900px) {
  .gear__stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 16px;
  }
  .gear__obj {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    display: flex;
    justify-content: center;
  }
  .gear__float { width: 100%; }
  .gear__media { width: 78%; }
  .gear__obj[data-img="osmo"] .gear__media { width: 26%; }
  .gear__obj[data-img="minifoco"] .gear__media { width: 42%; }
  .gear__obj[data-img="iphone"] .gear__media { width: 58%; }
  .gear__obj[data-img="focos"] .gear__media { width: 62%; }
  .gear__obj .gear__tag,
  .gear__obj[data-side] .gear__tag {
    position: static;
    margin-top: 6px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
  }
  .gear__float { display: flex; flex-direction: column; align-items: center; }
  .gear__obj .gear__arrow { display: none; }
  .gear__obj .gear__arrow--up { display: block; width: 26px; }
  .gear__text em { font-size: 22px; }
}
@media (min-width: 901px) {
  .gear__arrow--up { display: none; }
  .gear__obj[data-side="bottom"] .gear__arrow:not(.gear__arrow--up) { display: none; }
  .gear__obj[data-side="bottom"] .gear__arrow--up { display: block; }
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px);
  text-align: center;
}
.contact .label { justify-content: center; }
.contact__title {
  margin: 0;
  font-size: clamp(56px, 12.5vw, 230px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.contact__title em { letter-spacing: -0.025em; }
.contact__text {
  max-width: 36ch;
  margin: clamp(24px, 3vw, 40px) auto clamp(36px, 4vw, 56px);
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
}
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.copy {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.copy:hover { color: var(--ink); border-color: var(--ink); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { background: var(--ink); color: var(--cream); }

@media (max-width: 480px) {
  .btn--xl { font-size: 15px; padding: 18px 22px; gap: 8px; }
  .btn--xl svg { width: 18px; height: 18px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 24px;
  overflow: hidden;
}
.footer__big {
  font-size: clamp(64px, 16.4vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.065em;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}
.footer__big em { letter-spacing: -0.03em; }
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
  font-size: 13px;
  color: var(--cream-muted);
}
.footer__row a:hover { color: var(--cream); }
.footer__row > :nth-child(2) { justify-self: center; text-align: center; }
.footer__row > :last-child { justify-self: end; }
@media (max-width: 760px) {
  .footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__row > :last-child { justify-self: center; }
}

/* ---------- Player & Lightbox ---------- */
.player, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 56px 16px 24px;
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.player.is-open, .lightbox.is-open { opacity: 1; visibility: visible; }
.player__frame {
  height: min(78svh, 820px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transform: scale(0.94);
  transition: transform 0.6s var(--ease);
}
.player.is-open .player__frame { transform: scale(1); }
.player__frame video { width: 100%; height: 100%; object-fit: contain; }
.player__caption { text-align: center; font-size: 14px; color: var(--cream-muted); }
.player__caption strong { display: block; color: var(--cream); font-weight: 500; font-size: 16px; }
.player__caption span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; }
.player__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}
.player__close:hover { background: var(--cream); color: var(--ink); }
.lightbox img {
  max-height: 86svh;
  max-width: min(92vw, 1100px);
  width: auto;
  border-radius: 14px;
  transform: scale(0.94);
  transition: transform 0.6s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
