/* =====================================================
   HV INK · DEMO "Hoja de contactos"
   Canvas tinta, un solo acento (blanco hueso), grotesca
   condensada, sin cards, sin radios, el trabajo primero.
   ===================================================== */
/* ---------- Fuentes alojadas en el sitio (Barlow, latin) ---------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #111112;
  --line: #2a2a2b;
  --bone: #ece9e2;
  --dim: #9a968e;
  --gutter: clamp(20px, 4vw, 56px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Tipografía base ---------- */
.label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.5;
}
h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }

.link { border-bottom: 1px solid var(--dim); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.link:hover { border-color: var(--bone); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { height: 34px; width: auto; }
.logo__text { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.logo__text span { color: var(--dim); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.nav__cta { border: 1px solid var(--bone); padding: 10px 18px; opacity: 1 !important; transition: background 0.2s, color 0.2s !important; }
.nav__cta:hover { background: var(--bone); color: var(--ink); }
.header__burger { display: none; width: 44px; height: 44px; background: none; border: none; cursor: pointer; position: relative; }
.header__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--bone); }
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 25px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 clamp(28px, 4vw, 52px); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0.12) 70%, rgba(10, 10, 10, 0.5) 100%);
}
.hero__body { position: relative; }
.hero__kicker { color: var(--bone); margin-bottom: 18px; }
.hero__title {
  font-family: var(--display);
  font-size: clamp(3.6rem, 12.5vw, 12.5rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(28px, 4vw, 52px); padding-top: 24px; border-top: 1px solid rgba(236, 233, 226, 0.35); }
.hero__lead { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__lead p { max-width: 34ch; font-size: 1.1rem; }
.hero__award { display: flex; align-items: center; gap: 14px; text-align: right; }
.hero__award-num { font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 0.8; }

/* ---------- Datos ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts p { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.facts p + p { border-left: 1px solid var(--line); padding-left: 24px; }
.facts strong { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; line-height: 1; font-weight: 700; letter-spacing: 0.01em; }
.facts span { font-size: 13px; color: var(--dim); line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--rule { border-top: 1px solid var(--line); }
.head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(36px, 5vw, 64px); }
.head__note { max-width: 52ch; color: var(--dim); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.split > .head { margin-bottom: 0; position: sticky; top: 100px; }
.split .head .link { justify-self: start; }

/* ---------- Galería (hoja de contactos) ---------- */
.filters { display: flex; gap: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters__btn { background: none; border: none; cursor: pointer; padding: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.filters__btn:hover { color: var(--bone); }
.filters__btn.is-active { color: var(--bone); border-bottom-color: var(--bone); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; counter-reset: piece; }
.gallery__item { cursor: zoom-in; counter-increment: piece; }
.gallery__item.is-hidden { display: none; }
.gallery__frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2); }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s; filter: grayscale(0.25) contrast(1.03); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); filter: none; }
.gallery__item figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; font-size: 13px; letter-spacing: 0.04em; color: var(--dim); }
.gallery__item figcaption::before { content: counter(piece, decimal-leading-zero); font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--bone); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.more { margin-top: 40px; }

/* ---------- Listas con filas (sin cards) ---------- */
.rows { counter-reset: row; }
.rows li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: row; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li::before { content: counter(row, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-size: 1.1rem; color: var(--dim); font-weight: 600; line-height: 1.5; }
.rows h3 { font-size: 1.7rem; }
.rows p { color: var(--dim); max-width: 56ch; margin-top: 4px; }
.rows--compact li { padding: 18px 0; }
.rows--compact h3 { font-size: 1.35rem; }
.rows[start="6"] { counter-reset: row 5; }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.sobre__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: grayscale(0.2); }
.sobre__text { display: grid; gap: 16px; max-width: 60ch; }
.sobre__wordmark { height: 64px; width: auto; margin-top: 8px; }
.sobre__role { margin-bottom: 8px; }
.sobre__text p:not(.label) { color: #d4d0c8; }
.sobre__text strong { color: var(--bone); font-weight: 600; }
.sobre__text em { font-style: normal; color: var(--bone); font-family: var(--display); font-size: 1.8rem; line-height: 1.1; text-transform: uppercase; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.steps__n { font-family: var(--display); font-size: clamp(3.4rem, 6vw, 5.5rem); font-weight: 700; line-height: 0.85; color: var(--bone); font-variant-numeric: tabular-nums; }
.steps p { color: var(--dim); }
.reels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.reel video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink-2); display: block; }
.reel figcaption { display: grid; gap: 8px; padding-top: 16px; justify-items: start; }
.reel figcaption p { color: var(--dim); max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.8rem; line-height: 0.9; color: var(--dim); transition: transform 0.25s; }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--bone); }
.faq__item p { color: var(--dim); padding: 0 0 24px; max-width: 60ch; }

/* ---------- Cuidados ---------- */
.care { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 80px); }
.care__tag { color: var(--bone); padding-bottom: 12px; }
.care__note { margin-top: 28px; color: var(--bone); font-family: var(--display); font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; max-width: 30ch; }

/* ---------- Merch ---------- */
.merch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.merch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ink-2); }
.merch figcaption { padding-top: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Contacto ---------- */
.contact { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); background: var(--ink-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact__info { display: grid; gap: 22px; }
.contact__lead { color: var(--dim); font-size: 1.1rem; max-width: 40ch; }
.contact__photo img { width: 180px; aspect-ratio: 1; object-fit: cover; filter: grayscale(0.2); }
.contact__list { display: grid; gap: 14px; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact__list dd { color: var(--bone); }
.payment { display: grid; gap: 12px; }
.payment__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.payment__logo { height: 30px; width: auto; }
.payment__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 12px; }

.form { display: grid; gap: 22px; border-top: 2px solid var(--bone); padding-top: 28px; }
.form h3 { font-size: 2.2rem; }
.form label { display: grid; gap: 8px; }
.form__section { display: grid; gap: 22px; }
.form__section[hidden] { display: none; }
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  color: var(--bone);
  border: none;
  border-bottom: 1px solid var(--dim);
  border-radius: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 17px;
  transition: border-color 0.2s;
  color-scheme: dark;
}
.form select option { background: var(--ink); color: var(--bone); }
.form input::placeholder, .form textarea::placeholder { color: #6c6962; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--bone); border-bottom-width: 2px; padding-bottom: 9px; }
.form input[type="file"] { font-size: 14px; color: var(--dim); }
.form input[type="file"]::file-selector-button { background: transparent; color: var(--bone); border: 1px solid var(--dim); padding: 8px 14px; margin-right: 12px; font: inherit; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.form__hint { font-size: 13px; color: var(--dim); }
.form__toggle { display: flex; gap: 0; border: 1px solid var(--line); }
.form__toggle-btn { flex: 1; background: transparent; border: none; padding: 14px 12px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); transition: background 0.2s, color 0.2s; }
.form__toggle-btn.is-active { background: var(--bone); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 6, 6, 0.96); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(92vw, 860px); max-height: 100%; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 80vh; margin: 0 auto; }
.lightbox__figure figcaption { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.lightbox__close, .lightbox__nav { position: fixed; background: none; border: 1px solid var(--line); color: var(--bone); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--bone); }
.lightbox__close { top: 16px; right: 16px; padding: 12px 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery__frame img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .facts p:nth-child(3) { border-left: none; padding-left: 0; }
  .facts p:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: none; padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .split, .sobre, .contact__grid { grid-template-columns: 1fr; }
  .split > .head { position: static; }
  .care { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
}
@media (max-width: 820px) {
  .header__burger { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav.nav--open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; opacity: 1; }
  .nav__cta { margin-top: 16px; text-align: center; border: 1px solid var(--bone) !important; background: var(--bone); color: var(--ink); }
  .header.is-solid, .header:has(.nav--open) { background: var(--ink); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__award { text-align: left; }
  .reels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { gap: 22px 10px; }
  .gallery__item figcaption { font-size: 12px; flex-direction: column; gap: 0; }
  .facts__row { grid-template-columns: 1fr; }
  .facts p, .facts p + p { border-left: none; padding-left: 0; }
  .facts p + p { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: none; padding-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); margin-top: 24px; }
  .merch { gap: 10px; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { padding: 64px 12px 90px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
}

/* ---------- Página 404 ---------- */
.notfound { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 20px; }
.notfound img { height: 56px; margin-bottom: 8px; }
.notfound h1 { font-family: var(--display); font-size: clamp(6rem, 22vw, 16rem); font-weight: 700; line-height: .85; letter-spacing: -0.02em; }
.notfound p { color: var(--dim); max-width: 40ch; }
.notfound .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.notfound .btn--ghost { background: transparent; color: var(--bone); }
.notfound .btn--ghost:hover { background: var(--bone); color: var(--ink); }
