/* ═══════════════════════════════════════════════════════════
   PORTFOLIO UGC — Editorial noir & vainilla (paleta Anto)
   ═══════════════════════════════════════════════════════════ */

:root {
  --negro: #1a1611;
  --carbon: #221d17;
  --carbon-2: #2c251d;
  --vainilla: #f7f0e2;
  --crema: #fcf8ee;
  --oro: #e6cf8a;
  --oro-suave: #f0e4b8;
  --oro-oscuro: #6b5a28;
  --tinta: #221d17;
  --gris: #938a7a;
  --linea-dark: rgba(247, 240, 226, 0.14);
  --linea-light: rgba(34, 29, 23, 0.14);

  --serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--negro);
  color: var(--vainilla);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film-grain overlay */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

::selection { background: var(--oro); color: var(--negro); }

/* focus visible con identidad (accesibilidad teclado) */
:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 4px;
}
.about :focus-visible, .section--cream :focus-visible, .contact :focus-visible {
  outline-color: var(--oro-oscuro);
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
em { font-style: italic; }

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--negro);
  display: grid; place-items: center;
  transition: clip-path 0.9s var(--ease-expo);
  clip-path: inset(0 0 0% 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  display: block;
  letter-spacing: 0.01em;
}
.preloader__name em { color: var(--oro); font-style: normal; }
.preloader__tag {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gris);
}
.preloader__bar {
  width: min(220px, 50vw);
  height: 1px;
  margin: 2rem auto 0;
  background: var(--linea-dark);
  overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--oro);
  transition: width 0.3s ease;
}

/* ═══════════ CURSOR ═══════════ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 2500;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--oro);
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, opacity 0.3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 52px; height: 52px; background: var(--vainilla); }
.cursor.is-media {
  width: 84px; height: 84px;
  background: var(--vainilla);
  mix-blend-mode: normal;
}
.cursor__label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--negro);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-media .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1150;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background-color 0.5s, backdrop-filter 0.5s, padding 0.5s, transform 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(23, 19, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--linea-dark);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}
.nav__links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__links a {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  color: var(--vainilla);
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--oro);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 0.6rem 0.2rem;
  z-index: 1200;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--vainilla);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ═══════════ MENU MOBILE ═══════════ */
.menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--carbon);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-expo);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 400;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--linea-dark);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links a em {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--oro);
  vertical-align: super;
  margin-right: 0.8rem;
  font-style: normal;
}
.menu__foot { display: flex; gap: 1.6rem; margin-top: 2.5rem; }
.menu__foot a {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--oro);
}

/* ═══════════ BOTONES ═══════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.9rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s, border-color 0.4s;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
}
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--oro); color: var(--negro); }
.btn--solid::before { background: var(--vainilla); }
.btn--ghost { border: 1px solid var(--linea-dark); color: var(--vainilla); }
.btn--ghost::before { background: var(--vainilla); }
.btn--ghost:hover { color: var(--negro); border-color: var(--vainilla); }
.btn--nav { border: 1px solid rgba(201, 155, 95, 0.5); color: var(--oro); padding: 0.65rem 1.4rem; }
.btn--nav::before { background: var(--oro); }
.btn--nav:hover { color: var(--negro); }
.btn--big { padding: 1.2rem 2.6rem; font-size: 0.9rem; }

/* ═══════════ SECCIONES BASE ═══════════ */
.section { padding: clamp(5rem, 11vw, 9.5rem) clamp(1.2rem, 5vw, 5.5rem); position: relative; }
.section--dark { background: var(--negro); color: var(--vainilla); }
.section--cream, .about { background: var(--vainilla); color: var(--tinta); }

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.section__index {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--oro);
  display: block;
  margin-bottom: 1rem;
}
.section__index::after { content: " ────"; opacity: 0.4; letter-spacing: 0; }
.section__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.section__title em { color: var(--oro); font-weight: 300; }
/* en secciones claras el dorado no contrasta: usar bronce accesible (6.2:1) */
.about .section__index, .section--cream .section__index,
.about .section__title em, .section--cream .section__title em { color: var(--oro-oscuro); }
.section__sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  opacity: 0.75;
}

/* line-split reveal */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(110%); }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(6.5rem, 13vh, 9rem) clamp(1.2rem, 5vw, 5.5rem) clamp(4rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 155, 95, 0.13), transparent 65%);
}
.hero__content { position: relative; z-index: 2; }
.hero__kicker {
  display: flex; align-items: center; flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(0.4rem, 1.4vw, 0.8rem);
  font-size: clamp(0.58rem, 2.3vw, 0.74rem); font-weight: 700;
  letter-spacing: clamp(0.1em, 1vw, 0.34em); text-transform: uppercase;
  color: var(--oro-suave);
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
}
.hero__kicker i { color: var(--oro); font-style: normal; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.6vw, 7.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero__row { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__row--mix { display: flex; gap: 0.35em; flex-wrap: wrap; }
.ht { display: inline-block; }
.ht--italic { font-style: italic; font-weight: 300; color: var(--oro); }
.ht--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 237, 222, 0.75);
}
.ht--dot { color: var(--oro); -webkit-text-stroke: 0; }
/* línea larga del titular: escala editorial levemente menor para que entre en una línea */
.ht--fit { font-size: 0.74em; letter-spacing: -0.01em; }
.hero__sub {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: rgba(244, 237, 222, 0.82);
}
.hero__sub em { color: var(--oro-suave); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.8rem, 4vh, 2.8rem); }

.hero__collage { position: relative; height: clamp(380px, 60vh, 620px); z-index: 1; }
.hero__card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(244, 237, 222, 0.08);
  will-change: transform;
}
.hero__card--1 { width: 58%; aspect-ratio: 3/4; top: 4%; left: 0; rotate: -5deg; z-index: 1; }
.hero__card--2 { width: 52%; aspect-ratio: 3/4; top: 22%; right: 2%; rotate: 4deg; z-index: 2; }
.hero__card--3 { width: 44%; aspect-ratio: 3/4; bottom: 0; left: 18%; rotate: -2deg; z-index: 3; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: clamp(1.2rem, 5vw, 5.5rem);
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gris);
}
.hero__scroll span {
  width: 46px; height: 1px;
  background: var(--gris);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--oro);
  animation: scrollLine 2.2s var(--ease-expo) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-top: 1px solid var(--linea-dark);
  border-bottom: 1px solid var(--linea-dark);
  padding: 0.55rem 0;
  overflow: hidden;
  background: var(--carbon);
}
.marquee__track { display: flex; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vainilla);
  padding-right: 0.5rem;
}
.marquee__track i { color: var(--oro); font-style: normal; }

/* ═══════════ STATS ═══════════ */
.stats { padding: clamp(2rem, 4.5vw, 3.2rem) clamp(1.2rem, 5vw, 5.5rem); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--linea-dark);
  border: 1px solid var(--linea-dark);
}
.stat {
  background: var(--negro);
  padding: clamp(1rem, 2vw, 1.6rem) clamp(0.8rem, 1.8vw, 1.3rem);
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 400;
  color: var(--oro);
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris);
}
.stats__note {
  text-align: center;
  margin-top: clamp(1rem, 2vw, 1.4rem);
  font-size: 0.78rem;
  color: var(--oro-suave);
  font-style: italic;
}
.stats__note i { font-style: normal; margin-right: 0.4rem; color: var(--oro); }

/* ═══════════ SOBRE MÍ ═══════════ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 70px rgba(28, 24, 20, 0.22);
}
.about__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(23, 19, 16, 0.85);
  backdrop-filter: blur(8px);
  color: var(--vainilla);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
}
.about__badge em { color: var(--oro); font-style: normal; margin-right: 0.3rem; }
.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1.6rem;
}
.about__lead em { color: var(--oro-oscuro); }
.about__body > p:not(.about__lead) { max-width: 56ch; opacity: 0.8; margin-bottom: 1rem; }
.about__facts {
  list-style: none;
  margin-top: 2.2rem;
  border-top: 1px solid var(--linea-light);
}
.about__facts li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--linea-light);
  font-size: 0.95rem;
}
.about__facts strong {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--oro-oscuro);
}
.about__facts span { text-align: right; }
.about__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.about__tags span {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--linea-light);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
}
.about__tags span:hover { background: var(--tinta); color: var(--vainilla); }

/* ═══════════ PROYECTOS ═══════════ */
.work__filters {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.chip {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--linea-dark);
  border-radius: 999px;
  color: rgba(244, 237, 222, 0.7);
  transition: all 0.35s var(--ease-out);
}
.chip:hover { border-color: var(--oro); color: var(--oro); }
.chip.is-active { background: var(--oro); border-color: var(--oro); color: var(--negro); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.reel {
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.reel.is-hidden { display: none; }
.reel.is-entering { animation: reelIn 0.55s var(--ease-out) both; }
@keyframes reelIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
/* marco estilo smartphone: bisel oscuro + dynamic island, sin mockup fotorrealista */
.reel__media {
  position: relative;
  /* misma proporción que las capturas de pantalla (1080x2340): entran enteras */
  aspect-ratio: 1080/2340;
  border-radius: clamp(26px, 2.2vw, 34px);
  overflow: hidden;
  padding: 7px;
  background: linear-gradient(160deg, #171310, #060504);
  border: 1px solid rgba(244, 237, 222, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(244, 237, 222, 0.12);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
@media (hover: hover) {
  .reel:hover .reel__media {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(244, 237, 222, 0.12);
  }
}
.reel__screen {
  position: absolute; inset: 7px;
  display: block;
  border-radius: calc(clamp(26px, 2.2vw, 34px) - 7px);
  overflow: hidden;
  background: var(--carbon-2);
}
.reel__screen img { transition: transform 0.8s var(--ease-out), filter 0.5s; }
@media (hover: hover) {
  .reel:hover .reel__screen img { transform: scale(1.06); filter: brightness(0.85); }
}
.reel__screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23, 19, 16, 0.55), transparent 45%);
  opacity: 0.9;
}
/* dynamic island */
.reel__media::before {
  content: "";
  position: absolute; top: 17px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  width: 34%; height: 14px;
  border-radius: 999px;
  background: #060504;
  box-shadow: inset 0 1px 2px rgba(244, 237, 222, 0.08);
}
.reel__play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(244, 237, 222, 0.15);
  border: 1px solid rgba(244, 237, 222, 0.4);
  backdrop-filter: blur(6px);
  color: var(--vainilla);
  font-size: 0.85rem;
  padding-left: 4px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.4s, transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .reel:hover .reel__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* en touch no hay :hover — el play tiene que verse siempre, sin necesitar un primer toque */
@media (hover: none) {
  .reel__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.reel__tag {
  position: absolute; top: 2.7rem; left: 1.1rem; z-index: 2;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(23, 19, 16, 0.7);
  backdrop-filter: blur(6px);
  color: var(--oro-suave);
}
.reel__title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  margin-top: 0.9rem;
  line-height: 1.3;
}
.reel__note {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--gris);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ═══════════ SERVICIOS ═══════════ */
.services { background: var(--carbon); }
.services__list { list-style: none; border-top: 1px solid var(--linea-dark); }
.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0.5rem;
  border-bottom: 1px solid var(--linea-dark);
  cursor: default;
  transition: background-color 0.4s, padding-left 0.4s var(--ease-out);
}
.service:hover { background: rgba(201, 155, 95, 0.05); padding-left: 1.4rem; }
.service__num {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--oro);
  align-self: start;
  padding-top: 0.4rem;
}
.service__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  transition: color 0.35s;
}
.service:hover .service__body h3 { color: var(--oro-suave); }
.service__body p { margin-top: 0.45rem; max-width: 52ch; font-size: 0.94rem; opacity: 0.65; }
.service__arrow {
  font-size: 1.5rem;
  color: var(--oro);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.service:hover .service__arrow { opacity: 1; transform: none; }
.service__preview {
  position: fixed; z-index: 900;
  width: 240px; aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9) rotate(3deg);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.service__preview.is-visible { opacity: 1; transform: scale(1) rotate(3deg); }
@media (hover: none) { .service__preview { display: none; } }

/* ═══════════ PROCESO ═══════════ */
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--linea-light);
  border: 1px solid var(--linea-light);
  counter-reset: step;
}
.step {
  background: var(--vainilla);
  padding: clamp(1.5rem, 2.5vw, 2.2rem) clamp(1.1rem, 2vw, 1.6rem);
  position: relative;
  transition: background-color 0.4s;
}
.step:hover { background: var(--crema); }
.step__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--oro-oscuro);
  display: block;
  line-height: 1;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem;
}
.step p { font-size: 0.88rem; opacity: 0.75; }

/* ═══════════ POR QUÉ ═══════════ */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.why__intro {
  position: sticky;
  top: 8rem;
}
.why__portrait {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--linea-dark);
}
.why__quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
}
.why__quote em { color: var(--oro); }
.why__list { list-style: none; }
.why__list li {
  display: flex; gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--linea-dark);
}
.why__list em { color: var(--oro); font-style: normal; font-size: 1.1rem; padding-top: 0.1rem; }
.why__list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.why__list span { display: block; margin-top: 0.25rem; font-size: 0.92rem; opacity: 0.65; }

/* ═══════════ CONTACTO ═══════════ */
.contact {
  background: var(--vainilla);
  color: var(--tinta);
  text-align: center;
  padding-top: clamp(6rem, 14vw, 11rem);
  padding-bottom: clamp(6rem, 14vw, 11rem);
}
.contact__kicker {
  font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--oro-oscuro);
  margin-bottom: 1.6rem;
}
.contact__kicker i { font-style: normal; margin-right: 0.4rem; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9.5vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact__title em { color: var(--oro-oscuro); font-weight: 300; }
.contact__sub { margin: 1.8rem auto 0; max-width: 44ch; opacity: 0.75; }
.contact__email {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.contact__email a { position: relative; }
.contact__email a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--oro-oscuro);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.contact__email a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__icons {
  display: flex; justify-content: center; align-items: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}
.icon-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--vainilla);
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease-out);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--oro-oscuro); color: var(--vainilla); transform: translateY(-3px); }

/* ═══════════ FOOTER ═══════════ */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.6rem clamp(1.2rem, 5vw, 5.5rem);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gris);
  border-top: 1px solid var(--linea-dark);
}
.footer a { color: var(--vainilla); opacity: 0.7; transition: opacity 0.3s; }
.footer a:hover { opacity: 1; }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 2600;
  background: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame {
  position: relative;
  height: min(82vh, 780px);
  aspect-ratio: 9/16.6;
  max-width: 92vw;
  border-radius: 34px;
  overflow: hidden;
  padding: 9px;
  background: linear-gradient(160deg, #171310, #060504);
  border: 1px solid rgba(244, 237, 222, 0.2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__player {
  width: 100%; height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background-color: var(--carbon);
  background-size: cover;
  background-position: center;
}
.lightbox__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__missing {
  position: absolute; inset: 9px;
  border-radius: 25px;
  display: grid; place-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 2rem;
  color: var(--vainilla);
  background: rgba(23, 19, 16, 0.55);
  backdrop-filter: blur(2px);
}
.lightbox__missing[hidden] { display: none; }
.lightbox__missing em { color: var(--oro); font-style: normal; display: block; margin-top: 0.5rem; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linea-dark);
  color: var(--vainilla);
  font-size: 1.1rem;
  transition: background-color 0.35s, color 0.35s, transform 0.35s;
}
.lightbox__close:hover { background: var(--vainilla); color: var(--negro); transform: rotate(90deg); }

/* ═══════════ REVEALS (fallback sin JS: visible) ═══════════ */
.js .reveal-fade { opacity: 0; transform: translateY(34px); }
.js .reveal-mask { clip-path: inset(0 0 100% 0); }
.js .reveal-line span, .js .reveal-line i { display: inline-block; transform: translateY(120%); }
.reveal-line { overflow: hidden; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child { grid-column: 1 / -1; }
  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .why__portrait { max-width: 380px; }
}

@media (max-width: 860px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    /* en una sola columna no forzar la altura de pantalla completa:
       el min-height + align-content estiraba las filas y dejaba un
       hueco negro enorme entre los CTA y el collage de fotos */
    min-height: auto;
    align-content: start;
    padding-top: 7rem;
    gap: 2.2rem;
  }
  .hero__collage { height: clamp(320px, 48vh, 460px); max-width: 480px; margin-inline: auto; width: 100%; }
  .hero__scroll { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }

  .work__grid { grid-template-columns: repeat(2, 1fr); }

  .service { grid-template-columns: auto 1fr; }
  .service__arrow { display: none; }
}

@media (max-width: 520px) {
  .process__steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .about__facts li { flex-direction: column; gap: 0.2rem; }
  .about__facts span { text-align: left; }
}

/* ═══════════ ACCESIBILIDAD ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after { display: none; }
  .js .reveal-fade, .js .reveal-mask { opacity: 1; transform: none; clip-path: none; }
}
