/* Jorge Andrés Vega De Velasco — web estática
   Estructura inspirada en la plantilla de jorgeandresvega.com, estética de Studio 87
   (fondo oscuro con grano, serif, cursor propio). Sin dependencias. */

@font-face { font-family: "Noto Serif JP"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/noto-serif-jp-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-jp-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif JP"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-jp-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --ink: #fff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .14);
  --beige: #f4f2ee;
  --ink-dark: #111;
  --muted-dark: #5c5c5c;
  --accent: #fa3044;
  --serif: "Noto Serif JP", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Grano (de Studio 87) */
.grain {
  position: fixed; inset: -10rem; z-index: 0; pointer-events: none;
  background: url("../img/bg-noise.webp") repeat;
  opacity: .9;
  animation: grain 1s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 9rem, 0); } 10% { transform: translate3d(-1rem, -4rem, 0); }
  20% { transform: translate3d(-8rem, 2rem, 0); } 30% { transform: translate3d(9rem, -9rem, 0); }
  40% { transform: translate3d(-2rem, 7rem, 0); } 50% { transform: translate3d(-9rem, -4rem, 0); }
  60% { transform: translate3d(2rem, 6rem, 0); } 70% { transform: translate3d(7rem, -8rem, 0); }
  80% { transform: translate3d(-9rem, 1rem, 0); } 90% { transform: translate3d(6rem, -5rem, 0); }
  100% { transform: translate3d(-7rem, 0, 0); }
}
main, .site-footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 12vw, 160px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h-xl { font-size: clamp(40px, 7vw, 104px); }
.h-lg { font-size: clamp(32px, 4.6vw, 64px); }
.h-md { font-size: clamp(24px, 2.6vw, 36px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: #d6d6d6; max-width: 62ch; }
.muted { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 400; border-bottom: 1px solid transparent; transition: gap .3s var(--ease), border-color .3s; }
.link-arrow::after { content: "→"; font-family: var(--sans); }
.link-arrow:hover { gap: 18px; border-color: currentColor; }

/* ---------- Intro con el logo ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg); pointer-events: none;
  animation: intro-out .3s 1.15s var(--ease) forwards;
}
.no-intro .intro { display: none; }
.intro .logo-svg { width: clamp(96px, 14vw, 150px); color: var(--ink); }
.intro .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) forwards; }
.intro .d:nth-child(1) { animation-delay: 0s; }
.intro .d:nth-child(2) { animation-delay: .08s; }
.intro .d:nth-child(4) { animation-delay: .16s; }
.intro .d:nth-child(5) { animation-delay: .24s; animation-duration: .7s; }
.intro .d:nth-child(6) { animation-delay: .34s; animation-duration: .65s; }
.intro .d:nth-child(7) { animation-delay: .44s; }
.intro .d:nth-child(8) { animation-delay: .5s; }
.intro .d:nth-child(10) { animation-delay: .56s; }
.intro .dots, .intro .lg-dot { opacity: 0; animation: fade .4s .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), background-color .4s, backdrop-filter .4s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-svg { width: 54px; height: 54px; transition: width .4s var(--ease), height .4s var(--ease), transform .6s var(--ease); }
.brand-name { font: 400 15px/1.2 var(--serif); letter-spacing: .02em; white-space: nowrap; transition: opacity .3s, transform .4s var(--ease); }
.brand-name small { display: block; font: 300 11px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.is-scrolled .site-header { --header-h: 64px; background: rgba(10, 10, 10, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.is-scrolled .brand .logo-svg { width: 38px; height: 38px; transform: rotate(90deg); }
.is-scrolled .brand-name { opacity: 0; transform: translateX(-8px); pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-btn { display: flex; align-items: center; gap: 12px; margin-left: 10px; font: 400 14px var(--serif); }
.menu-btn .bars { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 5px; transition: background-color .3s; }
.menu-btn .bars i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn:hover .bars { background: rgba(255, 255, 255, .08); }
.menu-open .menu-btn .bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn .bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-btn .lbl-close { display: none; }
.menu-open .menu-btn .lbl-open { display: none; }
.menu-open .menu-btn .lbl-close { display: inline; }

/* Menú a pantalla completa */
.overlay-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: safe center;
  padding: calc(var(--header-h) + 20px) var(--pad) 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  overflow-y: auto;
}
.menu-open .overlay-nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.overlay-nav ol { list-style: none; margin: 0 auto; padding: 0; counter-reset: nav; width: 100%; max-width: 1100px; }
.overlay-nav li { counter-increment: nav; border-bottom: 1px solid var(--line); }
.overlay-nav li a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font: 300 clamp(28px, 5.2vw, 64px)/1.15 var(--serif);
  transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .3s;
}
.overlay-nav li a::before { content: "0" counter(nav); font: 400 12px var(--sans); color: var(--muted); letter-spacing: .1em; }
.overlay-nav li a:hover { color: var(--muted); }
.menu-open .overlay-nav li a { transform: none; opacity: 1; }
.menu-open .overlay-nav li:nth-child(2) a { transition-delay: .03s; } .menu-open .overlay-nav li:nth-child(3) a { transition-delay: .06s; }
.menu-open .overlay-nav li:nth-child(4) a { transition-delay: .09s; } .menu-open .overlay-nav li:nth-child(5) a { transition-delay: .12s; }
.menu-open .overlay-nav li:nth-child(6) a { transition-delay: .15s; } .menu-open .overlay-nav li:nth-child(7) a { transition-delay: .18s; }
.menu-open .overlay-nav li:nth-child(8) a { transition-delay: .21s; }
.overlay-nav .nav-foot { max-width: 1100px; width: 100%; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14px; }
.overlay-nav .nav-foot a:hover { color: var(--ink); }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center;
  padding: calc(var(--header-h) + 24px) 0 90px; overflow: hidden;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 18px; }
.hero .big { font-weight: 300; font-family: var(--serif); line-height: .92; letter-spacing: -.035em; position: relative; z-index: 2; }
.hero .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero .line > span { display: inline-block; }
.hero .l1 { font-size: clamp(54px, 12.5vw, 200px); }
.hero .l2 { font-size: clamp(34px, 7.4vw, 124px); text-align: right; }
.hero-media {
  position: relative; z-index: 1; margin: 0; overflow: hidden; border-radius: 2px;
  aspect-ratio: 16 / 10; background: var(--bg-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: hero-zoom 14s ease-out forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.05), rgba(10,10,10,.45)); }
.hero-side { display: grid; gap: 18px; align-content: start; }
.hero-side p { margin: 0; color: #d6d6d6; font-size: 15px; max-width: 34ch; }
.hero-tags { font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-tags a { display: block; width: max-content; transition: color .3s; }
.hero-tags a:hover, .hero-side a:hover { color: var(--ink); }
.hero .big { display: block; }
a.hero-media { display: block; }
.hero-rule { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); bottom: 40px; }
.badge {
  position: absolute; z-index: 3; width: 128px; height: 128px; display: grid; place-items: center;
  right: 6%; top: -40px;
}
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge svg.ring text { font: 500 8.4px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.badge .logo-svg { width: 46px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .badge { display: none; } }
@media (max-width: 519px) { .brand-name { display: none; } }
.scroll-down {
  position: absolute; left: var(--pad); bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 12px; font: 400 13px var(--serif); color: var(--muted);
}
.scroll-down span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--bg); }
.scroll-down:hover { color: var(--ink); }
/* entrada del titular (solo transform: no retrasa el LCP) */
.js .hero .line > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 1.2s); }
.js .hero .l2 .line > span { --d: 1.32s; }
.no-intro .hero .line > span { --d: .1s; }
.no-intro .hero .l2 .line > span { --d: .22s; }
@keyframes rise { to { transform: none; } }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto auto; align-items: center; }
  .hero .l1 { grid-column: 1 / -1; grid-row: 1; margin-bottom: -.32em; }
  .hero-media { grid-column: 3 / 11; grid-row: 2; aspect-ratio: 16 / 8.2; }
  .hero .l2 { grid-column: 1 / -1; grid-row: 3; margin-top: -.42em; }
  .hero-side { grid-column: 11 / 13; grid-row: 2; align-self: end; padding-left: 20px; }
}

/* ---------- Showreel ---------- */
.reel { padding-top: clamp(40px, 6vw, 80px); }
.reel .wrap { max-width: 1180px; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 941 / 1410; object-fit: cover; }
.about-photo figcaption { position: absolute; left: -1px; bottom: 24px; background: var(--bg); padding: 10px 18px; font: 400 13px var(--serif); }
.about blockquote { margin: 0 0 32px; font: 300 clamp(28px, 3.6vw, 54px)/1.15 var(--serif); letter-spacing: -.02em; }
.brands { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.brands img { width: min(100%, 620px); height: auto; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; } }

/* ---------- Marquee de texto (plantilla) ---------- */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-track > span { flex: none; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.bg-text { font: 300 clamp(56px, 11vw, 180px)/1 var(--serif); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); margin-bottom: clamp(40px, 6vw, 80px); }
.bg-text em { font-style: italic; color: var(--ink); -webkit-text-stroke: 0; }

/* ---------- Proyectos audiovisuales (filas alternas) ---------- */
.rows { display: grid; gap: clamp(64px, 9vw, 130px); }
.row { display: grid; gap: 28px; align-items: center; }
.row-text .cat { font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.row-text h3 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 18px; }
.row-text p { color: #cfcfcf; max-width: 46ch; }
.row-text .place { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 7fr 5fr; gap: 64px; }
  .row:nth-child(even) .row-media { order: 2; }
  .row:nth-child(even) { grid-template-columns: 5fr 7fr; }
}

/* YouTube: miniatura que carga el iframe al hacer clic */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; opacity: .88; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; background: rgba(10,10,10,.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .4s var(--ease), background-color .3s;
}
.yt .play::before { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.yt:hover .play { transform: scale(1.08); background: rgba(10,10,10,.6); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Amazonas ---------- */
.amazonas-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 6vw, 72px); }
.amazonas-head .eyebrow::before { display: none; }
.amazonas-head .lead { margin: 24px auto 0; }
.gallery { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: 1fr 1fr; }
.gallery a { display: block; overflow: hidden; position: relative; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .stack { display: grid; gap: 12px; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr 1.12fr; }
  .gallery .stack { grid-column: auto; grid-template-columns: 1fr; }
}

/* ---------- Rejilla de trabajos ---------- */
.grid-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.works { display: grid; gap: clamp(28px, 3vw, 44px) 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .works { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } .works .work:nth-child(3n+2) { margin-top: 60px; } }
.work a { display: block; }
.work .ph { overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.15); }
.work a:hover img { transform: scale(1.05); filter: none; }
.work h3 { font-size: 21px; margin: 16px 0 4px; }
.work .place { font-size: 13px; color: var(--muted); }

/* ---------- Viajes (tarjetas de vídeo) ---------- */
.trips { display: grid; gap: 28px; }
@media (min-width: 900px) { .trips { grid-template-columns: repeat(3, 1fr); } }
.trip .vid { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.trip video { width: 100%; height: 100%; object-fit: cover; }
.trip .vid-icon {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: rgba(10,10,10,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: opacity .3s;
}
.trip.is-playing .vid-icon { opacity: 0; }
.trip h3 { font-size: 24px; margin: 20px 0 6px; }
.trip .place { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.trip p { color: #cfcfcf; font-size: 15px; margin: 0; }

/* ---------- En el Studio ---------- */
.pn { display: block; text-align: center; margin-bottom: clamp(30px, 4vw, 50px); }
.pn .marquee { font: 300 clamp(56px, 10vw, 160px)/1.05 var(--serif); letter-spacing: -.03em; }
.pn .marquee-track { animation-duration: 22s; }
.pn .marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); }
.pn-sub { color: var(--muted); font: 400 15px var(--serif); margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(30px, 4vw, 50px); }
.filters button {
  font: 400 14px var(--serif); padding: 10px 20px; border: 1px solid var(--line); border-radius: 40px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.studio { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .studio { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .studio { grid-template-columns: repeat(4, 1fr); } }
.st-item[hidden] { display: none; }
.st-item a { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-2); }
.st-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.st-item a:hover img { transform: scale(1.05); }
.st-item .cap {
  position: absolute; inset: auto 0 0; padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}
.st-item h3 { font-size: clamp(17px, 1.6vw, 22px); }
.st-item .cap span { display: block; font-size: 12px; color: #cfcfcf; margin-top: 4px; }
.st-item .ext { position: absolute; top: 14px; right: 14px; font: 500 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(10,10,10,.6); padding: 6px 10px; border-radius: 20px; }
.st-private a { display: grid; place-items: center; text-align: center; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #1b1b1b, var(--bg) 70%); }
.st-private .logo-svg { width: 38%; opacity: .9; }
.st-private .tag18 { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); margin-top: -10px; }

/* ---------- Servicios (bloque claro de la plantilla) ---------- */
.light { background: var(--beige); color: var(--ink-dark); position: relative; z-index: 1; }
.light .eyebrow { color: var(--muted-dark); }
.services { display: grid; gap: 22px; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(6, 1fr); } .services .svc { grid-column: span 2; } .services .svc:nth-child(4) { grid-column: 2 / span 2; } }
.svc { background: #fff; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.svc .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.svc img { width: 100%; height: 100%; object-fit: cover; }
.svc .body { padding: 26px 26px 30px; display: grid; gap: 8px; }
.svc .cat { font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.svc h3 { font-size: 28px; }
.svc p { margin: 0; color: var(--muted-dark); font-size: 15px; }
.services-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 40px;
  background: var(--ink-dark); color: #fff; font: 400 15px var(--serif); transition: background-color .3s, gap .3s var(--ease);
}
.btn:hover { background: #000; gap: 18px; }
.btn::after { content: "→"; font-family: var(--sans); }

/* ---------- Contacto (marquee "Contáctame" con foto circular) ---------- */
.contact { padding-block: clamp(90px, 12vw, 170px) clamp(60px, 8vw, 110px); text-align: center; }
.contact-link { position: relative; display: block; }
.contact-link .marquee { font: 300 clamp(64px, 12vw, 200px)/1.1 var(--serif); letter-spacing: -.03em; }
.contact-link .marquee-track { animation-duration: 26s; }
.contact-link .marquee i { font-style: normal; color: var(--accent); }
.contact-photo {
  position: absolute; left: 50%; top: 50%; width: clamp(120px, 15vw, 220px); aspect-ratio: 1; margin: 0;
  transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; pointer-events: none;
  box-shadow: 0 0 0 8px var(--bg);
  transition: transform .6s var(--ease);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.contact-link:hover .contact-photo { transform: translate(-50%, -50%) scale(1.08); }
.contact-sub { margin-top: 22px; color: var(--muted); font: 400 16px var(--serif); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 100px) 0 30px; background: var(--bg); }
.footer-top { display: grid; gap: 40px; }
.footer-top h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 300; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(32px, 5vw, 72px); } }
@media (min-width: 1200px) { .footer-top { grid-template-columns: 5fr 7fr; align-items: end; } .footer-cols { justify-content: end; } }
.footer-cols h3 { font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-cols a { font: 400 17px var(--serif); border-bottom: 1px solid var(--line); transition: border-color .3s; overflow-wrap: anywhere; }
.footer-cols a:hover { border-color: var(--ink); }
.footer-bottom { margin-top: clamp(50px, 7vw, 90px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: 13px; color: var(--muted); padding-right: 76px; }
.footer-bottom a:hover { color: var(--ink); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Visor de fotos ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: #050505; color: var(--ink); overscroll-behavior: contain;
}
.lightbox::backdrop { background: #050505; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lb-count { font: 400 13px var(--sans); letter-spacing: .14em; color: var(--muted); padding-left: 4px; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(12px, 4vw, 56px); overflow: hidden; touch-action: pan-y; }
.lb-stage img, .lb-stage video { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-stage.is-loading::after {
  content: ""; grid-area: 1 / 1; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite;
}
.lb-bottom { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.lb-cap { margin: 0; text-align: center; font: 400 15px/1.4 var(--serif); color: #d6d6d6; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; transition: background-color .3s, color .3s; }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.lb-btn[hidden] { visibility: hidden; display: grid !important; }

/* ---------- Cursor propio (Studio 87) ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; opacity: 0;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s, border-width .3s, opacity .3s;
  will-change: transform; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.has-cursor .cursor.is-visible { opacity: .6; }
.cursor span { font: 500 16px var(--serif); color: #111; opacity: 0; transform: scale(0); transition: opacity .25s, transform .4s var(--ease); white-space: nowrap; }
.has-cursor .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-width: 1px; }
.has-cursor .cursor.is-dark { border-color: #111; box-shadow: none; }
.has-cursor .cursor.is-view.is-visible { width: 95px; height: 95px; margin: -48px 0 0 -48px; background: #fff; border-color: #fff; opacity: 1; box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.cursor.is-view span { opacity: 1; transform: none; }
.has-cursor [data-cursor] { cursor: none; }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain, .marquee-track, .badge svg.ring { animation: none !important; }
  .js .intro { display: none; }
  .js .hero .line > span { transform: none; animation: none; }
  .hero-media img { transform: none; animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Todo clicable ---------- */
a.marquee { display: block; }
.card-link { position: relative; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link a:not(.stretch) { position: relative; z-index: 2; }
.card-link:hover .stretch, main h2 a:hover, main blockquote a:hover, .footer-top h2 a:hover { opacity: .72; }
main h2 a, main h3 a, main blockquote a, .footer-top h2 a, .pn-sub a, .contact-sub a, .grid-head p a { transition: opacity .3s, color .3s; }
.pn-sub a:hover, .contact-sub a:hover, .grid-head p a:hover { color: var(--ink); }
.svc .svc-more { margin-top: 10px; font: 400 14px var(--serif); color: var(--ink-dark); transition: letter-spacing .3s; }
.svc:hover .svc-more { letter-spacing: .02em; }
.about-photo > a { display: block; overflow: hidden; }
.about-photo > a img { transition: transform 1s var(--ease); }
.about-photo > a:hover img { transform: scale(1.03); }
.brands-map { position: relative; width: min(100%, 620px); }
.brands-map img { width: 100%; }
.brands-map a { position: absolute; top: 0; bottom: 0; color: transparent; overflow: hidden; white-space: nowrap; font-size: 0; border-radius: 4px; transition: background-color .3s; }
.brands-map a:hover, .brands-map a:focus-visible { background: rgba(255,255,255,.07); }
