/* Africa Ink Tattoo — negro de estudio, rojo sangre del logo, hueso del papel de revista */
:root {
  --black: #0a0909;
  --coal: #141212;
  --coal-2: #1d1a1a;
  --bone: #ece6da;
  --muted: #a39d93;
  --red: #b5121b;      /* fondos (blanco encima 6.9:1) */
  --red-l: #e0343d;    /* texto grande sobre negro */
  --red-t: #f06a71;    /* texto chico sobre negro */
  --gold: #c9a24a;
  --display: "Pirata One", "UnifrakturCook", Georgia, serif;
  --body: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--bone); font-family: var(--body); font-size: 17.5px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--red-t); 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: 100; background: var(--red); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
svg { width: 1.1em; height: 1.1em; flex: none; }

.kicker { font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red-t); display: flex; align-items: center; gap: 12px; }
.kicker span { color: var(--bone); border: 1px solid currentColor; padding: 3px 8px; letter-spacing: .12em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7.4vw, 7rem); line-height: .92; margin-top: 16px; }
.h2 em { font-style: normal; color: var(--red-l); }
.lead { color: var(--muted); font-size: clamp(1.04rem, 1.4vw, 1.2rem); max-width: 44ch; margin-top: 18px; }
.sec-head { margin-bottom: clamp(40px, 6vw, 76px); max-width: 860px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font: 700 .88rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: translate .2s ease, background-color .2s, color .2s, border-color .2s; }
.btn:hover { translate: 0 -2px; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .78rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #cf1822; }
.btn-line { border-color: rgba(236, 230, 218, .5); color: var(--bone); }
.btn-line:hover { border-color: var(--red-t); color: var(--red-t); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 12px var(--pad); transition: background-color .3s; }
.nav.is-solid { background: rgba(10, 9, 9, .92); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--bone); }
.nav nav { margin-left: auto; display: flex; gap: 24px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--bone); }

/* HERO — portada */
.hero { position: relative; min-height: max(100svh, 760px); padding: 86px var(--pad) 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -60px; z-index: -1; background: url("assets/ig-1.jpg") center 30% / cover; filter: grayscale(1) blur(40px) brightness(.32); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(10, 9, 9, .85) 75%); }
.issue { justify-self: end; max-width: 280px; }
.issue-k { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--red-l); margin-bottom: 18px; }
.issue li a { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(236, 230, 218, .18); text-decoration: none; font-weight: 500; line-height: 1.25; transition: color .2s, padding .3s; }
.issue li:last-child a { border-bottom: 1px solid rgba(236, 230, 218, .18); }
.issue li a:hover { color: var(--red-t); padding-left: 6px; }
.issue li span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); padding-top: 2px; }
.cover { position: relative; height: min(80svh, 760px); aspect-ratio: .72; overflow: hidden; background: #000; box-shadow: 0 50px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(236, 230, 218, .12); container-type: inline-size; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: grayscale(1) contrast(1.12) brightness(.95); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 26%, transparent 58%, rgba(0, 0, 0, .85)), linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 45%); pointer-events: none; }
.masthead { position: absolute; z-index: 2; top: 2.5cqi; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 400; font-size: 23cqi; line-height: .95; color: var(--red-l); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); letter-spacing: -.01em; }
.cover-tag { position: absolute; z-index: 2; top: 27cqi; left: 0; right: 0; text-align: center; font-size: 2.6cqi; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; }
.lines { position: absolute; z-index: 2; left: 5cqi; top: 52%; display: grid; gap: 3.2cqi; }
.lines li { display: grid; border-left: 3px solid var(--red-l); padding-left: 3cqi; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.lines b { font-size: 5.6cqi; font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.lines span { font-size: 3cqi; font-style: italic; color: var(--bone); opacity: .9; margin-top: 2px; }
.cover-foot { position: absolute; z-index: 2; left: 5cqi; right: 5cqi; bottom: 4.5cqi; display: flex; justify-content: space-between; align-items: end; }
.rating { display: grid; line-height: 1; }
.rating b { font-family: var(--display); font-weight: 400; font-size: 15cqi; color: var(--bone); }
.rating span { font-size: 2.8cqi; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red-t); }
.barcode { display: grid; gap: 1cqi; background: #fff; color: #000; padding: 2cqi 2.4cqi 1.4cqi; text-decoration: none; transition: translate .2s; }
.barcode:hover { translate: 0 -2px; }
.barcode i { display: block; width: 26cqi; height: 9cqi; background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 5px, transparent 5px 8px, #000 8px 11px, transparent 11px 12px, #000 12px 13px, transparent 13px 16px); }
.barcode span { font-size: 2.8cqi; font-weight: 700; letter-spacing: .16em; text-align: center; }
.hero-side { justify-self: start; max-width: 300px; display: grid; gap: 28px; }
.side-txt { font-size: 1.2rem; line-height: 1.4; color: var(--bone); }
.side-txt em { font-family: var(--display); font-style: normal; font-size: 1.3em; line-height: 1; color: var(--red-l); }
.cta-col { display: grid; gap: 10px; }

/* Galería */
.gal { padding: clamp(90px, 12vw, 160px) 0; }
.masonry { columns: 3; column-gap: clamp(14px, 2vw, 26px); }
.tile { break-inside: avoid; margin-bottom: clamp(18px, 2.4vw, 32px); }
.tile img { width: 100%; filter: grayscale(.25) contrast(1.05); transition: filter .4s; }
.tile:hover img { filter: none; }
.tile-crop img { aspect-ratio: 720 / 1040; object-fit: cover; object-position: 50% 0; }
.tile figcaption { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(236, 230, 218, .2); margin-top: 10px; font-size: .92rem; color: var(--muted); }
.tile figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--bone); }
.tile:nth-child(3n+2) { margin-top: 40px; }
.gal-more { margin-top: 20px; }

/* Cover up — página invertida */
.cu { background: var(--bone); color: var(--black); padding: clamp(90px, 12vw, 160px) 0; }
.cu .kicker { color: var(--red); }
.cu .kicker span { color: var(--black); }
.cu .h2 em { color: var(--red); }
.cu-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.cu-img { position: relative; max-width: 460px; }
.cu-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--red); }
.cu-img img { position: relative; width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.1); }
.cu-big { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.15; margin: 22px 0; max-width: 24ch; }
.cu-list { display: grid; gap: 0; margin-bottom: 32px; border-top: 1px solid rgba(10, 9, 9, .25); }
.cu-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(10, 9, 9, .25); position: relative; font-weight: 500; }
.cu-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--black); translate: 0 -50%; box-shadow: 0 0 0 3px var(--bone), 0 0 0 4px var(--black); }

/* Proyecto */
.proj { padding: clamp(90px, 12vw, 160px) 0; background: var(--coal); }
.proj-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.proj-grid > header { position: sticky; top: 100px; }
.preview { margin-top: 36px; background: #1f2b22; border-radius: 4px 18px 18px 18px; padding: 16px 18px; max-width: 420px; border: 1px solid rgba(236, 230, 218, .12); }
.pv-k { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8fd3a5; margin-bottom: 8px; }
.pv-msg { white-space: pre-line; font-size: .98rem; line-height: 1.45; }
.ficha { display: grid; gap: 26px; background: var(--black); border: 1px solid rgba(236, 230, 218, .16); padding: clamp(22px, 3.6vw, 44px); }
.ficha fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ficha legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--bone); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { cursor: pointer; background: transparent; color: var(--bone); border: 1px solid rgba(236, 230, 218, .3); padding: 10px 16px; min-height: 44px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.chips button:hover { border-color: var(--red-t); }
.chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.idea { display: grid; gap: 8px; font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.idea textarea, .idea input { font: 400 1rem/1.4 var(--body); color: var(--bone); background: var(--coal-2); border: 1px solid rgba(236, 230, 218, .3); padding: 12px 14px; min-height: 48px; width: 100%; resize: vertical; }
.idea textarea::placeholder, .idea input::placeholder { color: #8a847b; }
.ficha-go { justify-self: start; }
.ficha-note { font-size: .9rem; color: var(--muted); margin-top: -12px; }

/* Turnos */
.turnos { padding: clamp(90px, 12vw, 160px) 0;
  --tn-accent: var(--red); --tn-on-accent: #fff; --tn-radius: 0; --tn-line: rgba(236, 230, 218, .26); --tn-card: rgba(236, 230, 218, .03); }
.tn-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.tn-box { border: 1px solid rgba(236, 230, 218, .2); background: var(--coal); padding: clamp(20px, 3.4vw, 40px); position: relative; }
.tn-box::before { content: ""; position: absolute; left: -1px; top: -1px; width: 60px; height: 4px; background: var(--red-l); }
.turnos .tn-step legend { color: var(--red-t); opacity: 1; }
.turnos .tn-opt:hover:not(:disabled) { border-color: var(--red-t); }

/* Dónde */
.donde { padding: clamp(90px, 12vw, 160px) 0; background: var(--coal); }
.donde-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.facts { margin: 30px 0; border-top: 1px solid rgba(236, 230, 218, .18); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(236, 230, 218, .18); }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { text-align: right; font-weight: 500; }
.facts a { color: var(--red-t); text-underline-offset: 4px; }
.map { aspect-ratio: 1; border: 1px solid rgba(236, 230, 218, .25); background: var(--coal-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.88) contrast(.95); }

/* Footer */
.foot { padding: 60px 0 120px; text-align: center; overflow: hidden; }
.foot-in img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; }
.foot-big { font-family: var(--display); font-size: clamp(4rem, 17vw, 16rem); line-height: 1; color: var(--red-l); margin-bottom: 20px; }
.foot p:last-child { color: var(--muted); font-size: .95rem; }

.dock { display: none; }
.js .reveal { opacity: 0; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: auto minmax(0, 1fr); }
  .issue { display: none; }
}
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .cu-grid, .proj-grid, .tn-wrap, .donde-grid { grid-template-columns: 1fr; }
  .proj-grid > header { position: static; }
  .masonry { columns: 2; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .hero { grid-template-columns: 1fr; padding: 76px 16px 28px; gap: 24px; min-height: 0; }
  .cover { height: auto; width: 100%; aspect-ratio: .74; justify-self: center; }
  .hero-side { max-width: none; gap: 18px; }
  .side-txt { font-size: 1.05rem; }
  .cta-col { grid-template-columns: 1fr 1fr; }
  .cta-col .btn-red { grid-column: 1 / -1; }
  .cta-col .btn { padding: 0 12px; }
  .masonry { column-gap: 12px; }
  .tile:nth-child(3n+2) { margin-top: 0; }
  .tile figcaption { font-size: .82rem; }
  .tile figcaption b { font-size: 1.25rem; }
  .cu-img { max-width: 300px; }
  .ficha { padding: 20px 16px; }
  .ficha-go { justify-self: stretch; }
  .tn-box { padding: 18px 14px; }
  .map { aspect-ratio: 4 / 3.6; }
  .dock { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; background: rgba(10, 9, 9, .95); border: 1px solid rgba(236, 230, 218, .25); padding: 6px; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: var(--bone); text-decoration: none; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
  .dock svg { width: 19px; height: 19px; }
  .dock .dock-main { background: var(--red); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile img, .issue li a, .chips button { transition: none; }
}
