/* =====================================================
   SERIGRAFÍA ARTEBE — CMYK Editorial
   ===================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --paper: #f4f0e8;
  --ink: #ededed;
  --muted: #888888;
  --line: rgba(255, 255, 255, 0.08);

  --c: #00d9ff;   /* cyan */
  --m: #ff2bd6;   /* magenta */
  --y: #fff200;   /* yellow */
  --k: #0a0a0a;   /* key */

  --serif: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --easing: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--y); color: var(--k); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.loader.done { pointer-events: none; }
.loader-inks { position: relative; width: 140px; height: 80px; }
.ink {
  position: absolute; top: 10px; width: 60px; height: 60px;
  border-radius: 50%; mix-blend-mode: screen; filter: blur(4px);
  animation: inkPulse 1.6s var(--easing) infinite;
}
.ink-c { left: 0; background: var(--c); }
.ink-m { left: 30px; background: var(--m); animation-delay: .15s; }
.ink-y { left: 60px; background: var(--y); animation-delay: .3s; }
.ink-k { display: none; }
@keyframes inkPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
  50%       { transform: translateY(-12px) scale(1.05); opacity: 1; }
}
.loader-text {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -.04em; line-height: 1;
  position: relative;
}
.loader-text span {
  position: relative; display: inline-block;
}
.loader-text span::before,
.loader-text span::after {
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: screen;
  animation: glitch 2s infinite linear alternate-reverse;
}
.loader-text span::before { color: var(--c); transform: translate(-2px, 0); }
.loader-text span::after  { color: var(--m); transform: translate( 2px, 0); }
@keyframes glitch {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}
.loader-bar {
  width: 240px; height: 2px; background: rgba(255,255,255,.1);
  overflow: hidden; position: relative;
}
.loader-bar span {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%; background: var(--y);
  animation: loadBar 1.6s var(--easing) forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; pointer-events: none; z-index: 150;
  border-radius: 50%; mix-blend-mode: difference;
  transition: transform .25s var(--easing), background .25s var(--easing), opacity .25s;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid #fff;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: #fff;
  transform: translate(-50%, -50%);
}
.cursor.hover { transform: translate(-50%, -50%) scale(1.6); background: var(--y); border-color: var(--y); mix-blend-mode: normal; }
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  animation: grainShift 1.2s steps(8) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  10% { transform: translate(-3%, -3%); }
  20% { transform: translate(3%, -2%); }
  30% { transform: translate(-2%, 4%); }
  40% { transform: translate(4%, 3%); }
  50% { transform: translate(-3%, -1%); }
  60% { transform: translate(2%, 4%); }
  70% { transform: translate(-4%, 3%); }
  80% { transform: translate(3%, -3%); }
  90% { transform: translate(-2%, -2%); }
  100% { transform: translate(0,0); }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: all .4s var(--easing);
  mix-blend-mode: difference;
}
.nav.scrolled {
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10,10,10,.5);
  border-bottom: 1px solid var(--line);
  mix-blend-mode: normal;
  padding: 14px 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 800;
  font-size: 18px; letter-spacing: -.02em;
}
.dots { display: inline-flex; gap: 2px; }
.d { width: 9px; height: 9px; border-radius: 50%; display: inline-block; mix-blend-mode: screen; }
.d.c { background: var(--c); animation: bob 1.2s var(--easing) infinite; }
.d.m { background: var(--m); animation: bob 1.2s var(--easing) -.4s infinite; }
.d.y { background: var(--y); animation: bob 1.2s var(--easing) -.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.logo-text small { font-size: 10px; color: var(--muted); margin-left: 4px; font-weight: 500; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .4s var(--easing);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid currentColor;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  font-family: var(--mono);
  transition: all .3s var(--easing);
}
.nav-cta:hover { background: var(--y); color: var(--k); border-color: var(--y); }
.nav-cta .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--y);
  box-shadow: 0 0 0 4px rgba(255, 242, 0, .25);
  animation: pulse 1.8s var(--easing) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,242,0,.25); }
  50% { box-shadow: 0 0 0 10px rgba(255,242,0,0); }
}

@media (max-width: 800px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  padding: 140px 40px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
#inkCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}
.hero > * { position: relative; z-index: 1; }

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.meta-line { display: inline-flex; align-items: center; gap: 8px; }
.meta-line i {
  width: 6px; height: 6px; background: var(--y); border-radius: 50%;
  box-shadow: 0 0 8px var(--y);
}
.meta-line:nth-child(1) i { background: var(--c); box-shadow: 0 0 8px var(--c); }
.meta-line:nth-child(2) i { background: var(--m); box-shadow: 0 0 8px var(--m); }

.hero-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(56px, 11vw, 200px);
  line-height: .92; letter-spacing: -.04em;
  margin: 80px 0 0; max-width: 1400px;
}
.hero-title .word {
  display: inline-block; margin-right: .15em;
  position: relative;
}
.hero-title .word.stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
}
.hero-title .word.accent.c { color: var(--c); }
.hero-title .word.accent.m { color: var(--m); }
.hero-title .word.accent.y { color: var(--y); }
.hero-title .break { display: block; height: 0; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 60px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-claim {
  max-width: 520px; font-size: 16px; color: var(--ink); margin: 0;
  line-height: 1.6;
}
.hero-claim strong { color: var(--y); font-weight: 600; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 999px;
  flex-shrink: 0;
  transition: all .35s var(--easing);
}
.hero-scroll svg { width: 16px; height: 16px; transition: transform .35s var(--easing); }
.hero-scroll:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-scroll:hover svg { transform: translateY(4px); }

.hero-corners .corner {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--muted);
}
.corner.tl { top: 100px; left: 30px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 100px; right: 30px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 30px; left: 30px; border-right: 0; border-top: 0; }
.corner.br { bottom: 30px; right: 30px; border-left: 0; border-top: 0; }

@media (max-width: 800px) {
  .hero { padding: 110px 20px 40px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 30px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 60px; align-items: center;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(36px, 6vw, 72px); letter-spacing: -.03em;
  white-space: nowrap;
  animation: scrollLeft 38s linear infinite;
}
.marquee-track span:nth-child(4n+1) { color: var(--ink); }
.marquee-track span:nth-child(4n+2) {
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
}
.marquee-track span:nth-child(4n+3) { color: var(--y); }
.marquee-track span:nth-child(4n+4) {
  -webkit-text-stroke: 1.5px var(--m);
  -webkit-text-fill-color: transparent;
}
.marquee-track i {
  font-style: normal; color: var(--c); font-size: 30px;
}
@keyframes scrollLeft { to { transform: translateX(-50%); } }

/* ---------- SECTIONS COMUNES ---------- */
section {
  padding: 140px 40px;
  position: relative;
}
@media (max-width: 800px) { section { padding: 80px 20px; } }

.section-head {
  max-width: 1400px; margin: 0 auto 80px;
}
.section-id {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.5vw, 90px);
  line-height: 1.05; letter-spacing: -.03em;
  margin: 0; max-width: 1100px;
}
.section-title em {
  font-style: italic; font-weight: 400;
  -webkit-text-stroke: 1px var(--ink);
  -webkit-text-fill-color: transparent;
}
.section-title .hl {
  position: relative; display: inline-block; color: var(--y);
}
.section-title .hl::before {
  content: ""; position: absolute; left: -4px; right: -4px;
  bottom: -4px; height: 22%; background: var(--y);
  z-index: -1; opacity: .15; transform: skewY(-1deg);
}

/* ---------- OFICIO ---------- */
.oficio { background: var(--bg); }
.oficio-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
}
.oficio-text .big {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.35;
  margin: 0 0 32px; color: var(--ink);
}
.oficio-text p { color: var(--muted); margin: 0 0 22px; }
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  align-self: start;
}
.stat {
  background: var(--bg); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.stat .num {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(48px, 6vw, 88px); line-height: 1;
  color: var(--y); letter-spacing: -.04em;
}
.stat .suf {
  font-family: var(--serif); font-size: 28px; color: var(--m);
  margin-left: 2px;
}
.stat small {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.stat:nth-child(2) .num { color: var(--c); }
.stat:nth-child(3) .num { color: var(--m); }
.stat:nth-child(4) .num { color: var(--ink); }

@media (max-width: 900px) {
  .oficio-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--bg-2); border-top: 1px solid var(--line); }
.cards {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card.wide { grid-column: span 3; }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
}
.card {
  position: relative; aspect-ratio: 4/5;
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--bg);
  transition: transform .5s var(--easing), border-color .5s;
  isolation: isolate;
}
.card.wide { aspect-ratio: 8/5; }
.card-img {
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  filter: grayscale(.3) brightness(.5) contrast(1.1);
  transition: transform .9s var(--easing), filter .6s;
  z-index: 0;
}
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.4) 50%, transparent 100%);
}
.card-body {
  position: absolute; inset: 0;
  padding: 32px; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 14px;
}
.card-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .12em;
}
.card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.1;
  letter-spacing: -.02em; margin: 0; color: var(--ink);
}
.card p {
  margin: 0; color: rgba(237,237,237,.75); font-size: 14px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--easing), opacity .4s, margin-top .4s;
}
.card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .04em;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--easing), opacity .4s;
}
.card ul li::before {
  content: "·"; margin-right: 6px;
}
.card[data-color="c"] { --accent: var(--c); }
.card[data-color="m"] { --accent: var(--m); }
.card[data-color="y"] { --accent: var(--y); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--accent);
  z-index: 2; transition: width .5s var(--easing);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card:hover::before { width: 100%; }
.card:hover .card-img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(.55) contrast(1.05);
}
.card:hover p, .card:hover ul {
  max-height: 200px; opacity: 1;
}
.card:hover h3 { color: var(--accent); }

/* ---------- PROCESO ---------- */
.proceso { border-top: 1px solid var(--line); }
.steps {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.step {
  padding: 50px 36px; min-height: 380px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: background .4s var(--easing);
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--serif); font-weight: 800;
  font-size: 80px; line-height: 1; color: var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  letter-spacing: -.04em;
  transition: color .4s, -webkit-text-fill-color .4s;
}
.step:nth-child(1):hover .step-num { -webkit-text-fill-color: var(--c); -webkit-text-stroke-color: var(--c); }
.step:nth-child(2):hover .step-num { -webkit-text-fill-color: var(--m); -webkit-text-stroke-color: var(--m); }
.step:nth-child(3):hover .step-num { -webkit-text-fill-color: var(--y); -webkit-text-stroke-color: var(--y); }
.step:nth-child(4):hover .step-num { -webkit-text-fill-color: var(--ink); }
.step h3 {
  font-family: var(--serif); font-size: 22px; margin: 0;
  letter-spacing: -.01em; color: var(--ink);
}
.step p { color: var(--muted); margin: 0; font-size: 14px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; min-height: auto; }
  .step:last-child { border-bottom: 0 !important; }
}

/* ---------- TRABAJOS / GALERÍA ---------- */
.trabajos { background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  grid-auto-rows: 140px;
}
.g-item {
  position: relative; overflow: hidden; border-radius: 4px;
  margin: 0; background: var(--bg);
  transition: transform .5s var(--easing);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--easing), filter .5s;
  filter: grayscale(.2);
}
.g-item:hover { transform: scale(1.02); }
.g-item:hover img { transform: scale(1.1); filter: grayscale(0); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,0) 0%, rgba(255,43,214,0) 100%);
  mix-blend-mode: screen; opacity: 0;
  transition: opacity .4s;
}
.g-item:hover::after { opacity: .35; background: linear-gradient(135deg, var(--c) 0%, var(--m) 100%); }

.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 2; grid-row: span 1; }
.g3 { grid-column: span 2; grid-row: span 2; }
.g4 { grid-column: span 2; grid-row: span 1; }
.g5 { grid-column: span 3; grid-row: span 2; }
.g6 { grid-column: span 1; grid-row: span 1; }
.g7 { grid-column: span 2; grid-row: span 1; }
.g8 { grid-column: span 3; grid-row: span 2; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .g1, .g3, .g5, .g8 { grid-column: span 2 !important; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 50px 0; overflow: hidden; background: var(--y);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-track {
  display: flex; gap: 40px; align-items: center;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(36px, 6vw, 80px); letter-spacing: -.03em;
  color: var(--k); white-space: nowrap;
  animation: scrollLeft 28s linear infinite;
}
.cta-track .cmyk.c { color: var(--c); -webkit-text-stroke: 1.5px var(--k); }
.cta-track .cmyk.m { color: var(--m); -webkit-text-stroke: 1.5px var(--k); }
.cta-track .cmyk.y { color: var(--y); -webkit-text-stroke: 1.5px var(--k); }
.cta-track .cmyk.k { color: var(--k); }

/* ---------- CONTACTO ---------- */
.contacto { background: var(--bg); border-top: 1px solid var(--line); }
.contacto-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
}
.contacto-info { display: flex; flex-direction: column; gap: 4px; }
.ci-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--easing);
}
.ci-item:hover { padding-left: 16px; }
.ci-item small {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.ci-item strong {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.02em; color: var(--ink);
}
.ci-item span { color: var(--muted); font-size: 14px; }
a.ci-item:hover strong { color: var(--y); }

.contacto-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px;
}
.contacto-form label {
  display: flex; flex-direction: column; gap: 6px;
}
.contacto-form span {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.contacto-form input,
.contacto-form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; font: inherit; color: var(--ink);
  outline: none; transition: border-color .3s;
  font-family: var(--sans);
  resize: vertical;
}
.contacto-form input:focus,
.contacto-form textarea:focus { border-color: var(--y); }
.contacto-form button {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; background: var(--y); color: var(--k);
  border: 0; border-radius: 999px;
  font-weight: 600; letter-spacing: -.005em;
  transition: all .35s var(--easing);
}
.contacto-form button svg { width: 18px; height: 18px; transition: transform .35s; }
.contacto-form button:hover { background: var(--ink); }
.contacto-form button:hover svg { transform: translateX(4px); }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-form { padding: 28px; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 80px 40px 40px; background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-big {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(60px, 14vw, 240px); line-height: .9;
  letter-spacing: -.04em; margin-bottom: 60px;
  display: flex; gap: .15em; flex-wrap: wrap;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.footer-big .word.accent.y { color: var(--y); }
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.footer-grid small {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.footer-grid p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.footer-grid a { color: var(--ink); transition: color .3s; }
.footer-grid a:hover { color: var(--y); }

@media (max-width: 700px) {
  .footer { padding: 50px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- SECTION CTA ---------- */
.section-cta {
  max-width: 1400px; margin: 60px auto 0;
  display: flex; justify-content: center;
}

/* ---------- KIT DIGITAL ---------- */
.kit-digital {
  background: #f5f3ee;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.kit-digital__inner { max-width: 1400px; margin: 0 auto; }
.kit-digital img {
  max-height: 100px; width: auto; max-width: 100%;
  opacity: .9; transition: opacity .3s;
}
.kit-digital a { display: inline-block; }
.kit-digital a:hover img { opacity: 1; }
@media (max-width: 600px) { .kit-digital img { max-height: 70px; } }

/* ---------- FOOTER BOTTOM ---------- */
.footer-bottom {
  max-width: 1400px; margin: 50px auto 0;
  padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom small {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .04em;
}
.footer-cookie-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  transition: all .3s var(--easing);
}
.footer-cookie-btn:hover { color: var(--y); border-color: var(--y); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  z-index: 110;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px;
  backdrop-filter: blur(20px) saturate(140%);
  background-color: rgba(17, 17, 17, .92);
  transform: translateY(calc(100% + 30px));
  transition: transform .55s var(--easing);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  max-width: 1400px; margin: 0 auto;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  display: flex; align-items: center; gap: 30px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1; min-width: 280px; margin: 0;
  font-size: 13px; color: var(--ink); line-height: 1.6;
}
.cookie-banner__text a {
  color: var(--y); text-decoration: underline;
}
.cookie-banner__actions {
  display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 18px; border: 0; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  cursor: pointer; transition: all .3s var(--easing);
  white-space: nowrap;
}
.cookie-btn--accept { background: var(--y); color: var(--k); }
.cookie-btn--accept:hover { background: #fff; }
.cookie-btn--reject { background: rgba(255,255,255,.08); color: var(--ink); }
.cookie-btn--reject:hover { background: rgba(255,255,255,.16); }
.cookie-btn--config {
  background: transparent; color: var(--muted);
  text-decoration: underline;
}
.cookie-btn--config:hover { color: var(--ink); }

/* Config Panel */
.cookie-config-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.cookie-config-overlay.visible { opacity: 1; pointer-events: auto; }

.cookie-config {
  position: fixed; left: 50%; top: 50%; z-index: 140;
  width: min(560px, calc(100vw - 40px));
  max-height: 85vh; overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px;
  transform: translate(-50%, -50%) scale(.95);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--easing), transform .35s var(--easing);
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.cookie-config.visible {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-config__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.cookie-config__title {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: 22px; letter-spacing: -.01em;
}
.cookie-config__close {
  background: transparent; border: 0; color: var(--muted);
  font-size: 28px; line-height: 1; padding: 0; width: 32px; height: 32px;
  cursor: pointer; transition: color .3s;
}
.cookie-config__close:hover { color: var(--y); }
.cookie-config__body { padding: 24px 28px; }
.cookie-config__desc {
  margin: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.cookie-config__category {
  padding: 18px 0; border-top: 1px solid var(--line);
}
.cookie-config__cat-header {
  display: flex; gap: 16px; align-items: flex-start;
  justify-content: space-between;
}
.cookie-config__cat-header > div { flex: 1; min-width: 0; }
.cookie-config__cat-header strong {
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  display: block; margin-bottom: 6px;
}
.cookie-config__cat-desc {
  margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55;
}

.cookie-toggle {
  position: relative; display: inline-flex; align-items: center;
  width: 46px; height: 24px; flex-shrink: 0; margin-top: 4px;
  cursor: pointer;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.15);
  transition: background .3s;
}
.cookie-toggle__slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: var(--ink);
  transition: transform .3s;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--y); }
.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(22px); background: var(--k);
}
.cookie-toggle--disabled .cookie-toggle__slider {
  background: rgba(0, 217, 255, .35);
}
.cookie-toggle--disabled .cookie-toggle__slider::before { transform: translateX(22px); }
.cookie-toggle__label {
  position: absolute; right: -120px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  top: 50%; transform: translateY(-50%);
}

.cookie-config__footer {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  border-radius: 0 0 12px 12px;
}

@media (max-width: 700px) {
  .cookie-banner { padding: 18px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-btn { flex: 1; min-width: 100px; }
  .cookie-toggle__label { display: none; }
}

/* ---------- PAGE HERO (subpáginas) ---------- */
.page-hero {
  padding: 160px 40px 80px;
  max-width: 1400px; margin: 0 auto;
  position: relative;
}
.page-hero::after {
  content: ""; display: block;
  height: 1px; background: var(--line);
  margin-top: 60px;
}
.page-id {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.page-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 32px; max-width: 1200px;
}
.page-title em {
  font-style: italic; font-weight: 400;
  -webkit-text-stroke: 1px var(--ink);
  -webkit-text-fill-color: transparent;
}
.page-claim {
  max-width: 680px; font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6; color: var(--muted);
  margin: 0;
}

@media (max-width: 800px) { .page-hero { padding: 120px 20px 50px; } }

/* ---------- SERVICES DETAIL ---------- */
.services-detail {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 40px 100px;
}
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-img {
  width: 100%; aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border-radius: 8px;
  position: relative; overflow: hidden;
  filter: contrast(1.05) saturate(1.05);
  transition: transform .8s var(--easing);
}
.service-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,.0) 60%, rgba(255,43,214,.15) 100%);
  mix-blend-mode: screen;
}
.service-block:hover .service-img { transform: scale(1.02); }

.service-info { display: flex; flex-direction: column; gap: 14px; }
.service-num {
  font-family: var(--mono); font-size: 12px;
  color: var(--y); letter-spacing: .12em;
}
.service-info h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0;
}
.service-info .lead {
  font-family: var(--serif); font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500; color: var(--ink); line-height: 1.4;
  margin: 0;
}
.service-info p {
  color: var(--muted); margin: 0; line-height: 1.7;
}
.service-info h3 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--y); margin: 18px 0 6px;
  font-weight: 500;
}
.service-info ul {
  margin: 0; padding-left: 0; list-style: none;
}
.service-info li {
  position: relative; padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 14px;
}
.service-info li:last-child { border-bottom: 0; }
.service-info li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
}
.service-block:nth-of-type(2n) .service-info li::before { background: var(--m); }
.service-block:nth-of-type(3n) .service-info li::before { background: var(--y); }

@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .service-block.reverse { direction: ltr; }
  .services-detail { padding: 40px 20px 80px; }
}

/* ---------- ABOUT (sobre-nosotros) ---------- */
.about-hero {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; padding: 80px 40px;
  align-items: center;
}
.about-img {
  width: 100%; aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border-radius: 8px;
  filter: contrast(1.05);
}
.about-text h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 28px;
}
.about-text p { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 20px; }
}

/* ---------- VALUES ---------- */
.values {
  padding: 100px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.values-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value {
  padding: 36px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg);
  transition: transform .4s var(--easing), border-color .4s;
  display: flex; flex-direction: column; gap: 14px;
}
.value:hover { transform: translateY(-4px); border-color: var(--y); }
.value-num {
  font-family: var(--serif); font-weight: 800;
  font-size: 64px; line-height: 1;
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  letter-spacing: -.04em;
}
.value:nth-child(1) .value-num { -webkit-text-stroke-color: var(--c); }
.value:nth-child(2) .value-num { -webkit-text-stroke-color: var(--m); }
.value:nth-child(3) .value-num { -webkit-text-stroke-color: var(--y); }
.value h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; letter-spacing: -.01em; margin: 0;
}
.value p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.65; }

@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr; }
  .values { padding: 60px 20px; }
}

/* ---------- PAGE CTA ---------- */
.page-cta {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.page-cta h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0 0 20px;
}
.page-cta p {
  color: var(--muted); font-size: 17px; line-height: 1.6;
  max-width: 600px; margin: 0 auto 40px;
}
.page-cta-actions {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.cta-btn {
  display: inline-flex; align-items: center;
  padding: 16px 32px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  transition: all .3s var(--easing);
}
.cta-btn--primary {
  background: var(--y); color: var(--k);
}
.cta-btn--primary:hover {
  background: #fff; transform: translateY(-2px);
}
.cta-btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--mono);
}
.cta-btn--ghost:hover {
  border-color: var(--y); color: var(--y);
}
@media (max-width: 700px) {
  .page-cta { padding: 60px 20px; }
}

/* ---------- MAPA CONTACTO ---------- */
.contacto-mapa {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px 80px;
  position: relative;
}
.contacto-mapa iframe {
  width: 100%; height: 480px;
  border: 1px solid var(--line); border-radius: 8px;
  filter: invert(.92) hue-rotate(180deg) contrast(.95) saturate(.6);
}
.mapa-link {
  display: inline-flex; margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  transition: all .3s var(--easing);
}
.mapa-link:hover { border-color: var(--y); color: var(--y); }
@media (max-width: 700px) {
  .contacto-mapa { padding: 0 20px 50px; }
  .contacto-mapa iframe { height: 360px; }
}

/* ---------- PRODUCTOS ---------- */
.products-grid-wrap {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 40px 100px;
}
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
  transition: transform .4s var(--easing), border-color .4s;
  display: flex; flex-direction: column;
}
.product::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--accent);
  z-index: 2; transition: width .5s var(--easing);
}
.product:hover { transform: translateY(-6px); border-color: var(--accent); }
.product:hover::before { width: 100%; }

.product-img {
  width: 100%; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  filter: grayscale(.3) brightness(.7) contrast(1.05);
  transition: filter .5s, transform .8s var(--easing);
}
.product:hover .product-img {
  filter: grayscale(0) brightness(.85) contrast(1.05);
  transform: scale(1.04);
}
.product-body {
  padding: 26px 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.product h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.15;
  letter-spacing: -.01em; margin: 0;
}
.product p {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55;
}
.product-meta {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.product-meta li {
  position: relative; padding: 6px 0 6px 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink); letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
}
.product-meta li:last-child { border-bottom: 0; }
.product-meta li::before {
  content: "→"; position: absolute; left: 0; top: 6px;
  color: var(--accent); font-family: var(--mono);
}

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-wrap { padding: 40px 20px 60px; }
}

/* products-table */
.products-table-section {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px 100px;
}
.products-table-wrap {
  border: 1px solid var(--line); border-radius: 8px;
  overflow-x: auto;
}
.products-table {
  width: 100%; border-collapse: collapse;
  min-width: 720px;
}
.products-table th, .products-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.products-table th {
  background: var(--bg-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--y); font-weight: 500;
}
.products-table td { color: var(--ink); }
.products-table tr:last-child td { border-bottom: 0; }
.products-table tr:hover td { background: rgba(255, 242, 0, .03); }

@media (max-width: 700px) {
  .products-table-section { padding: 0 20px 60px; }
}

/* ---------- PROCESO PAGE ---------- */
.process-detail {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px 100px;
}
.process-step {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-bottom: 0; }
.process-step__num {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 1; letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  align-self: flex-start;
  transition: color .5s, -webkit-text-fill-color .5s;
}
.process-step:nth-child(1) .process-step__num { -webkit-text-stroke-color: var(--c); }
.process-step:nth-child(2) .process-step__num { -webkit-text-stroke-color: var(--m); }
.process-step:nth-child(3) .process-step__num { -webkit-text-stroke-color: var(--y); }
.process-step:nth-child(4) .process-step__num { -webkit-text-stroke-color: var(--ink); }
.process-step:hover .process-step__num {
  -webkit-text-fill-color: currentColor;
}
.process-step:nth-child(1):hover .process-step__num { color: var(--c); }
.process-step:nth-child(2):hover .process-step__num { color: var(--m); }
.process-step:nth-child(3):hover .process-step__num { color: var(--y); }
.process-step:nth-child(4):hover .process-step__num { color: var(--ink); }

.process-step__body { max-width: 720px; }
.process-step__body h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 16px;
}
.process-step__body p {
  margin: 0 0 16px; color: var(--muted); line-height: 1.7;
}
.process-step__body p:first-of-type {
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  font-weight: 500; line-height: 1.5;
}
.process-step__body ul {
  margin: 16px 0 0; padding: 0; list-style: none;
}
.process-step__body li {
  position: relative; padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 14px;
}
.process-step__body li::before {
  content: "·"; position: absolute; left: 6px; top: 4px;
  color: var(--y); font-size: 22px; line-height: 1;
}

@media (max-width: 800px) {
  .process-step { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .process-detail { padding: 0 20px 60px; }
}

/* ---------- TRABAJOS PAGE ---------- */
.gallery-page {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px 100px;
}
.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--easing);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--y); color: var(--y);
}
.gallery-page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-page-item {
  position: relative; overflow: hidden;
  border-radius: 6px; aspect-ratio: 4/3;
  background: var(--bg-2);
  cursor: pointer;
}
.gallery-page-item.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-page-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--easing), filter .4s;
  filter: grayscale(.2);
}
.gallery-page-item:hover img { transform: scale(1.06); filter: grayscale(0); }
.gallery-page-item__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; gap: 6px;
  background: linear-gradient(to top, rgba(10,10,10,.9), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--easing);
}
.gallery-page-item:hover .gallery-page-item__overlay { opacity: 1; }
.gallery-page-item__cat {
  font-family: var(--mono); font-size: 10px; color: var(--y);
  letter-spacing: .12em; text-transform: uppercase;
}
.gallery-page-item__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; color: var(--ink); margin: 0;
  letter-spacing: -.01em;
}

@media (max-width: 900px) {
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .gallery-page { padding: 0 20px 60px; }
}
@media (max-width: 500px) {
  .gallery-page-grid { grid-template-columns: 1fr; }
}

/* ---------- LEGAL PAGE ---------- */
.legal-page {
  padding: 140px 40px 80px;
  max-width: 900px; margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px;
}
.legal-page .subtitle {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 60px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.legal-page h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.01em;
  margin: 50px 0 16px;
}
.legal-page h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; margin: 30px 0 10px;
}
.legal-page p, .legal-page li {
  font-size: 15px; line-height: 1.7; color: var(--ink);
}
.legal-page p { margin: 0 0 18px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin: 0 0 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--y); text-decoration: underline; }
.legal-page strong { color: var(--y); font-weight: 600; }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 20px 0 30px;
  font-size: 14px;
}
.legal-page th, .legal-page td {
  padding: 12px 14px; border: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.legal-page th {
  background: var(--bg-2); font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--y); font-weight: 500;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 40px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); transition: all .3s var(--easing);
}
.legal-back:hover { color: var(--y); border-color: var(--y); }
@media (max-width: 700px) { .legal-page { padding: 110px 20px 60px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
