/* =========================================================================
   Dany Cartagena — Tatuador Realismo Black & Grey
   Hoja de estilos compartida — index, portafolio, privacidad, 404
   Paleta (5 hex, no agregar ninguno): ver variables abajo.
   Tipografía: fuentes de sistema (Futura / Avenir Next Condensed, disponibles
   en macOS/iOS) — sin @font-face, cae a sans-serif en otros sistemas.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0C1510;      /* Negro tinta */
  --forest: #1A3A15;   /* Verde bosque */
  --forest-hover: #20431a;
  --ash: #6D6A61;      /* Gris ceniza */
  --tan: #B6A178;      /* Tan / acento de acción */
  --bone: #EDEFDA;     /* Hueso (atenuado, menos brillo en pantalla) */

  --font-serif: 'Futura', sans-serif;
  --font-sans: 'Avenir Next Condensed', sans-serif;

  --cursor-default: url('/assets/cursor-needle.png') 7 34, auto;
  --cursor-active: url('/assets/cursor-needle.png') 7 34, pointer;

  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-inout: cubic-bezier(0.65,0,0.35,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  font-family: var(--font-sans);
  cursor: var(--cursor-default);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { cursor: var(--cursor-active); }
button { font: inherit; cursor: var(--cursor-active); }

.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Scroll progress bar (Home) ---------- */
.scroll-progress-track {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(109,106,97,0.18);
}
.scroll-progress-bar { height: 100%; width: 0%; background: var(--ash); }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px,3vw,24px) clamp(16px,4vw,48px); gap: 12px;
}
.nav--hero {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
body.hero-stage-1 .nav--hero { opacity: 1; transform: translateY(0); }
.nav--solid {
  position: sticky; top: 0; z-index: 20; background: var(--ink);
  padding: 18px clamp(16px,4vw,64px);
}
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-style: italic; font-weight: 460;
  font-size: clamp(15px,3.6vw,19px); color: var(--bone); text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav--hero .nav__brand { gap: 2px; font-size: clamp(14px,3vw,17px); }
.nav__logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.nav--solid .nav__logo { width: 34px; height: 34px; }
.nav__wordmark { position: relative; top: -2px; }
.nav--solid .nav__wordmark { top: 0; }


.nav__links { display: flex; align-items: center; gap: clamp(20px,4vw,48px); }
.nav--solid .nav__links { gap: clamp(12px,3vw,32px); }
.nav__link {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--bone); text-decoration: none; letter-spacing: 0.02em;
  display: flex; align-items: center; min-height: 44px;
  transition: opacity 0.25s ease;
}
.nav--solid .nav__link { font-size: 13px; }
.nav__link:hover { opacity: 0.7; }

/* ---------- Botones ---------- */
.btn {
  font-family: var(--font-sans); font-weight: 600; border: none; border-radius: 9px;
  display: inline-block; text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn__arrow { display: inline-block; margin-left: 8px; transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--tan {
  color: var(--ink); background: var(--tan);
  box-shadow: 0 0 0 rgba(12,21,16,0);
}
.btn--tan:hover { background: var(--bone); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,21,16,0.3); }

.btn--dark {
  color: var(--bone); background: var(--ink);
}
.btn--dark:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,21,16,0.28); }

.btn--forest {
  color: var(--bone); background: var(--forest);
}
.btn--forest:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12,21,16,0.38); }

.btn--nav { font-size: 13px; letter-spacing: 0.03em; padding: 14px clamp(14px,3vw,22px); min-height: 44px; white-space: nowrap; }
@media (max-width: 480px) {
  .nav { padding-left: 14px; padding-right: 14px; gap: 6px; }
  .nav .nav__brand { font-size: 13px; }
  .nav .nav__links { gap: 6px; }
  .nav .nav__link { font-size: 11px; }
  .btn--nav { font-size: 10px; padding: 9px 9px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
}
.btn--hero { font-size: 15px; letter-spacing: 0.02em; padding: 16px 30px; min-height: 48px; }
.btn--plan { font-size: 15px; letter-spacing: 0.02em; padding: 16px 32px; min-height: 48px; }
.btn--final { font-size: 15px; letter-spacing: 0.02em; padding: 17px 34px; min-height: 50px; }

.link-underline {
  font-family: var(--font-sans); font-weight: 500; color: var(--bone);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(237,239,218,0.4); transition: text-decoration-color 0.25s ease;
}
.link-underline:hover { text-decoration-color: var(--bone); }

/* ---------- Botón flotante (sticky) ---------- */
.sticky-cta {
  font-family: var(--font-sans); font-weight: 600; border: none; border-radius: 9px;
  color: var(--bone); background: var(--forest);
  font-size: 14px; letter-spacing: 0.02em; padding: 16px 26px; min-height: 48px;
  position: fixed; bottom: clamp(16px,4vw,28px); right: clamp(16px,4vw,28px); z-index: 50;
  box-shadow: 0 8px 22px rgba(12,21,16,0.28);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
  display: inline-block; text-decoration: none;
}
.sticky-cta:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12,21,16,0.38); }
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn__arrow { display: inline-block; margin-left: 8px; transition: transform 0.25s ease; }
.sticky-cta:hover .btn__arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 640px;
  overflow: hidden; background: var(--ink);
}
.hero__parallax { position: absolute; inset: 0; will-change: transform; }
.hero__bg {
  position: absolute; inset: 0; background: var(--forest);
  animation: heroZoom 15s cubic-bezier(0.25,0.1,0.25,1) forwards;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--ink);
}
.hero__content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  justify-content: center; max-width: 560px; padding: 0 clamp(24px,6vw,80px);
}
.hero__eyebrow {
  font-family: var(--font-sans); font-size: clamp(8px,2.1vw,13px); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bone); margin: 0 0 18px 0; white-space: nowrap;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
body.hero-stage-1 .hero__eyebrow { opacity: 1; transform: translateY(0); }

.hero__headline {
  font-family: var(--font-serif); font-weight: 700; font-style: normal;
  font-size: clamp(40px,5.4vw,72px); line-height: 1.1; color: var(--bone);
  margin: 0 0 26px 0; letter-spacing: -0.01em;
}
.hero__headline .word {
  display: inline-block; opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
body.hero-stage-2 .hero__headline .word { opacity: 1; transform: translateY(0); }
.hero__headline .word:nth-child(1) { transition-delay: 0ms; }
.hero__headline .word:nth-child(2) { transition-delay: 40ms; }
.hero__headline .word:nth-child(3) { transition-delay: 80ms; }
.hero__headline .word:nth-child(4) { transition-delay: 120ms; }
.hero__headline .word:nth-child(5) { transition-delay: 160ms; }
.hero__headline .word:nth-child(6) { transition-delay: 200ms; }

.hero__sub {
  font-family: var(--font-sans); font-style: normal; font-weight: 500;
  font-size: clamp(19px,2.1vw,26px); line-height: 1.45; color: var(--bone);
  margin: 0 0 44px 0; max-width: 480px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
body.hero-stage-3 .hero__sub { opacity: 1; transform: translateY(0); }

.hero__cta-row {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
body.hero-stage-4 .hero__cta-row { opacity: 1; transform: translateY(0); }

.hero__trust {
  display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin: 0 0 10px 0; max-width: 100%;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
body.hero-stage-1 .hero__trust { opacity: 1; transform: translateY(0); }
.hero__trust-stars { color: var(--tan); font-size: clamp(17px,3.6vw,20px); letter-spacing: clamp(1.5px,0.5vw,3px); }
.hero__trust-text { font-family: var(--font-sans); font-size: clamp(15px,2.8vw,20px); color: var(--bone); }

/* ---------- Geometría sagrada (SVG) ---------- */
.geo-svg { position: absolute; top: 50%; pointer-events: none; opacity: 0.07; }
.geo-svg--stakes {
  right: clamp(-220px,-30vw,-40px); width: clamp(280px,70vw,620px); height: auto;
  transform: translateY(-50%);
}
.geo-svg--final {
  left: clamp(-260px,-30vw,-60px); width: clamp(280px,60vw,560px); height: auto;
  transform: translateY(-50%);
}
.geo-svg circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-inout);
  transform-origin: 300px 300px;
}
.geo-svg.is-drawn circle { stroke-dashoffset: 0; animation: ringBreathe 9s ease-in-out infinite; }
.geo-svg.is-drawn circle:nth-child(1) { transition-delay: 0ms; animation-delay: 0s; }
.geo-svg.is-drawn circle:nth-child(2) { transition-delay: 160ms; animation-delay: 0.6s; }
.geo-svg.is-drawn circle:nth-child(3) { transition-delay: 320ms; animation-delay: 1.2s; }
.geo-svg.is-drawn circle:nth-child(4) { transition-delay: 480ms; animation-delay: 1.8s; }
.geo-svg.is-drawn circle:nth-child(5) { transition-delay: 640ms; animation-delay: 2.4s; }

@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes ringBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ---------- Reveal al scroll (IntersectionObserver) ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.2s; }

/* ---------- 2. STAKES ---------- */
.stakes {
  position: relative; width: 100%; background: var(--bone); overflow: hidden;
  padding: clamp(72px,14vw,180px) clamp(20px,6vw,80px) clamp(88px,14vw,170px);
}
.stakes__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.stakes__head {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(34px,4.6vw,60px);
  line-height: 1.12; color: var(--ink);
  max-width: 780px; margin: 0 0 clamp(44px,7vw,88px) clamp(0px,4vw,56px);
}
.stakes__list {
  display: flex; flex-direction: column; max-width: 700px;
  margin-left: clamp(0px,4vw,56px); border-top: 1px solid var(--ash);
}
.stakes__line {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--ash);
  transition: padding-left 0.35s ease, background 0.35s ease, opacity 0.7s ease, transform 0.7s ease;
}
.stakes__line:hover { padding-left: 12px; background: rgba(182,161,120,0.06); }
.stakes__num {
  font-family: var(--font-serif); font-weight: 460; font-size: 15px; color: var(--ash);
  transition: color 0.35s ease;
}
.stakes__line:hover .stakes__num { color: var(--tan); }
.stakes__text {
  font-family: var(--font-sans); font-weight: 400; font-size: clamp(18px,2vw,22px);
  line-height: 1.5; color: var(--ash); margin: 0; transition: color 0.35s ease;
}
.stakes__line:hover .stakes__text { color: var(--ink); }
.stakes__line--quote .stakes__text {
  font-weight: 700; color: var(--ink);
}

/* ---------- 3. PROPUESTA DE VALOR ---------- */
.value {
  position: relative; width: 100%; background: var(--ink);
  padding: clamp(80px,12vw,160px) clamp(20px,6vw,80px);
}
.fade-edge-top {
  position: absolute; top: 0; left: 0; right: 0; height: 64px; pointer-events: none;
}
.fade-edge-top--from-ink { display: none; }
.fade-edge-top--from-bone { display: none; }
.fade-edge-top--from-forest { display: none; }
.value__inner { max-width: 1180px; margin: 0 auto; }

.before-after { margin: 0 auto clamp(56px,7vw,84px) auto; max-width: 832px; }
.before-after__labels { display: flex; gap: clamp(12px,2vw,18px); margin-bottom: 14px; }
.before-after__label {
  flex: 1 1 0; font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); text-align: center;
}
.before-after__row { display: flex; gap: clamp(12px,2vw,18px); }
.before-after__photo {
  flex: 1 1 0; aspect-ratio: 3/5; background: var(--forest); position: relative; overflow: hidden;
}
.before-after__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Compare Slider (Stencil / Final) ---------- */
.compare-slider { width: 100%; background: var(--ink); padding: clamp(32px,4vw,56px) clamp(20px,6vw,80px) clamp(48px,6vw,72px); }
.compare-slider__inner { max-width: 440px; margin: 0 auto; }
.compare-slider__frame {
  position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px;
  cursor: ew-resize; user-select: none; touch-action: none;
}
.compare-slider__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%;
  display: block; pointer-events: none;
}
.compare-slider__img--before { z-index: 2; clip-path: inset(0 50% 0 0); }
.compare-slider__badge {
  position: absolute; top: 16px; font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); background: rgba(12,21,16,0.72);
  padding: 7px 14px; border-radius: 3px; z-index: 3; pointer-events: none;
}
.compare-slider__badge--before { left: 16px; }
.compare-slider__badge--after { right: 16px; }
.compare-slider__divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ink);
  transform: translateX(-1px); z-index: 4; pointer-events: none;
}
.compare-slider__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bone);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.compare-slider__caption {
  font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--bone);
  text-align: center; margin: 18px 0 0 0;
}
@media (max-width: 480px) {
  .compare-slider { padding: 32px 16px; }
  .compare-slider__frame { aspect-ratio: 3/4; max-height: 60vh; }
  .compare-slider__caption { font-size: 13px; margin-top: 12px; }
}
@media (max-width: 480px) {
  .before-after__photo { aspect-ratio: 4/5; }
}

.pillars { display: flex; flex-direction: column; }
.pillar {
  max-width: 640px; padding: clamp(28px,4vw,40px) 0; border-top: 1px solid var(--ash); text-align: left;
}
.pillar--3 { border-bottom: 1px solid var(--ash); }
.pillar__title {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(26px,3vw,36px);
  color: var(--bone); margin: 0 0 16px 0; line-height: 1.2; text-align: left;
}
.pillar__text { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; color: var(--bone); margin: 0; text-align: left; }

/* ---------- 4. GUÍA ---------- */
.guide {
  position: relative; width: 100%; background: var(--bone);
  padding: clamp(90px,12vw,150px) clamp(20px,6vw,80px); overflow: hidden;
}
.guide__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px,6vw,80px); align-items: center; position: relative; z-index: 2;
}
.guide__photo-wrap { max-width: 420px; margin-top: clamp(0px,4vw,28px); }
.guide__photo {
  position: relative; width: 100%; aspect-ratio: 4/5; background: var(--ink);
  overflow: hidden; box-shadow: 0 24px 48px rgba(12,21,16,0.35);
}
.guide__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.guide__photo-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(26,58,21,0.22) 0%, transparent 32%, transparent 68%, rgba(12,21,16,0.5) 100%);
}
.guide__curtain {
  position: absolute; inset: 0; background: var(--bone); z-index: 3;
  transform: translateX(0); transition: transform 0.9s var(--ease-inout) 0.1s;
}
.guide__curtain.is-drawn { transform: translateX(100%); }
.guide__quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 380;
  font-size: clamp(24px,2.8vw,34px); line-height: 1.45; color: var(--ink); margin: 0 0 36px 0;
}
.guide__meta {
  font-family: var(--font-sans); font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
  color: var(--ash); line-height: 1.7; margin: 0; text-transform: uppercase;
}

/* ---------- 4.5 RESEÑAS ---------- */
.reviews {
  position: relative; width: 100%; background: var(--ink);
  padding: clamp(80px,11vw,130px) clamp(20px,6vw,80px); overflow: hidden;
}
.reviews__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.reviews__eyebrow {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 clamp(40px,5vw,56px) 0;
}
.reviews__list { display: flex; flex-wrap: wrap; gap: clamp(28px,3.5vw,20px); }
.review-card {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(28px,3vw,36px) clamp(24px,3vw,28px) 0; border-top: 1px solid var(--tan);
}
.review-card__mark { font-family: var(--font-serif); font-style: italic; font-size: 52px; line-height: 0.6; color: var(--tan); }
.review-card__quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 380; font-size: 19px;
  line-height: 1.5; color: var(--bone); margin: 0; flex: 1;
}
.review-card__author { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.review-card__avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--tan); flex-shrink: 0;
}
.review-card__name-wrap { display: flex; flex-direction: column; gap: 2px; }
.review-card__name { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ash); }
.review-card__stars { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.03em; color: var(--tan); }

/* ---------- 5. EL PLAN ---------- */
.plan {
  position: relative; width: 100%; background: var(--bone);
  padding: clamp(60px,10vw,120px) clamp(20px,6vw,80px) clamp(90px,12vw,150px);
}
.plan__inner { max-width: 1180px; margin: 0 auto; position: relative; }
.plan__eyebrow {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 12px 0;
}
.plan__lede {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(24px,3vw,34px);
  color: var(--ink); margin: 0 0 40px 0; line-height: 1.25;
}
.plan__steps { display: flex; flex-wrap: wrap; gap: clamp(20px,3vw,28px); margin-bottom: 56px; }
.plan-step {
  flex: 1 1 280px; padding: clamp(24px,3vw,32px) 0 0;
  border-top: 3px solid var(--tan);
}
.plan-step__num { font-family: var(--font-serif); font-style: italic; font-size: 52px; line-height: 0.6; color: var(--tan); margin: 0 0 28px 0; }
.plan-step__text { font-family: var(--font-sans); font-size: 19px; line-height: 1.5; color: var(--ink); margin: 0; }
.plan__cta-row { display: flex; justify-content: center; }

/* ---------- 6. PORTAFOLIO TEASER / GRID ---------- */
.portfolio-teaser {
  position: relative; width: 100%; background: var(--ink);
  padding: clamp(80px,12vw,160px) clamp(20px,6vw,80px);
}
.portfolio-teaser__inner { max-width: 1180px; margin: 0 auto; position: relative; }
.portfolio-teaser__head {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(32px,4.4vw,54px);
  line-height: 1.14; color: var(--bone); max-width: 820px; margin: 0 0 clamp(48px,6vw,72px) 0;
}
.portfolio-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(16px,2vw,24px);
}
.portfolio-card {
  position: relative; aspect-ratio: 4/5; background: var(--ink); overflow: hidden;
  flex: 0 1 340px; width: min(340px, 100%);
}
.portfolio-card__img {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__img { transform: scale(1.06); }
.portfolio-card__gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,21,16,0.75) 0%, rgba(12,21,16,0.32) 38%, transparent 62%);
}
.portfolio-card__label-wrap {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; pointer-events: none;
}
.portfolio-card__label {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bone); display: inline-block;
  opacity: 0.75; transform: translateY(8px); transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-card__label { opacity: 1; transform: translateY(0); }
.portfolio-card__curtain {
  position: absolute; inset: 0; background: var(--ink); z-index: 2;
  transform: translateX(0); transition: transform 0.85s var(--ease-inout);
}
.portfolio-card__curtain.is-drawn { transform: translateX(100%); }
.portfolio-grid .portfolio-card:nth-child(3n+1) .portfolio-card__curtain { transition-delay: 0ms; }
.portfolio-grid .portfolio-card:nth-child(3n+2) .portfolio-card__curtain { transition-delay: 90ms; }
.portfolio-grid .portfolio-card:nth-child(3n+3) .portfolio-card__curtain { transition-delay: 180ms; }

.portfolio-teaser__more-row { margin-top: clamp(40px,5vw,56px); }

/* ---------- 7. CTA FINAL ---------- */
.cta-final {
  position: relative; width: 100%; background: var(--bone); overflow: hidden;
  padding: clamp(90px,14vw,180px) clamp(20px,6vw,80px);
}
.cta-final__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final__head {
  font-family: var(--font-serif); font-weight: 460; font-style: italic;
  font-size: clamp(36px,5vw,58px); line-height: 1.1; color: var(--ink); margin: 0 0 36px 0;
}
.cta-final .btn--final { margin: 0 auto 44px auto; }
.cta-final__meta { font-family: var(--font-sans); font-size: clamp(15px,1.4vw,19px); line-height: 1.8; color: var(--ash); margin: 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  width: 100%; background: var(--ink); padding: 32px clamp(20px,6vw,80px) 20px;
  display: flex; flex-direction: column; gap: 20px;
}
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-style: italic; font-weight: 460; font-size: 16px; color: var(--bone);
}
.site-footer__logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.site-footer__links { display: flex; align-items: center; gap: 24px; }
.site-footer__link {
  font-family: var(--font-sans); font-size: 13px; color: var(--bone); text-decoration: none;
  transition: color 0.25s ease;
}
.site-footer__link:hover { color: var(--tan); }
.site-footer__icon { display: flex; align-items: center; color: var(--bone); transition: color 0.25s ease; }
.site-footer__icon:hover { color: var(--tan); }
.site-footer__legal {
  border-top: 1px solid var(--tan); padding-top: 16px; display: flex; flex-direction: column; gap: 6px;
}
.site-footer__legal span { font-family: var(--font-sans); font-size: 12px; color: var(--ash); }
.site-footer__legal a {
  color: var(--ash); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(109,106,97,0.5); transition: color 0.25s ease;
}
.site-footer__legal a:hover { color: var(--bone); }

/* ---------- PÁGINA PORTAFOLIO: categorías ---------- */
.category-section { width: 100%; padding: clamp(56px,8vw,96px) clamp(20px,6vw,80px); }
.category-section--bone { background: var(--bone); }
.category-section--forest { background: var(--ink); }
.category-section__inner { max-width: 1180px; margin: 0 auto; }
.category-section__title {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(28px,3.6vw,42px);
  margin: 0 0 clamp(32px,4vw,48px) 0; line-height: 1.15;
}
.category-section--bone .category-section__title { color: var(--ink); }
.category-section--forest .category-section__title { color: var(--bone); }
.category-section__more-row { display: flex; justify-content: center; margin-top: 8px; }
.more-btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  background: transparent; border-radius: 9px; padding: 14px 28px; margin-top: clamp(28px,4vw,36px);
  transition: background 0.25s ease;
}
.category-section--bone .more-btn { color: var(--ink); border: 1px solid rgba(12,21,16,0.3); }
.category-section--forest .more-btn { color: var(--bone); border: 1px solid rgba(237,239,218,0.35); }
.more-btn:hover { background: rgba(182,161,120,0.15); }
.photo-hidden { display: none; }

/* ---------- Header de Portafolio ---------- */
.portfolio-header { width: 100%; background: var(--ink); padding: clamp(56px,9vw,110px) clamp(20px,6vw,80px) clamp(48px,7vw,80px); }
.portfolio-header__inner { max-width: 1180px; margin: 0 auto; }
.portfolio-header__eyebrow {
  font-family: var(--font-sans); font-size: clamp(9px,2.3vw,13px); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bone); margin: 0 0 18px 0; white-space: nowrap;
}
.portfolio-header__title {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(34px,5.5vw,64px);
  line-height: 1.08; color: var(--bone); margin: 0; max-width: 760px;
}

/* ---------- Páginas simples: Privacidad / 404 ---------- */
.simple-page { width: 100%; background: var(--bone); padding: clamp(56px,9vw,110px) clamp(20px,6vw,80px) clamp(80px,10vw,140px); }
.simple-page__inner { max-width: 760px; margin: 0 auto; }
.simple-page__eyebrow {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 18px 0;
}
.simple-page__title {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(32px,4.5vw,52px);
  line-height: 1.1; color: var(--ink); margin: 0 0 36px 0;
}
.simple-page h2 {
  font-family: var(--font-serif); font-weight: 460; font-size: clamp(22px,2.6vw,28px);
  line-height: 1.25; color: var(--ink); margin: 40px 0 14px 0;
}
.simple-page p, .simple-page li {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--ash); margin: 0 0 14px 0;
}
.simple-page a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(12,21,16,0.4); text-underline-offset: 3px; }
.simple-page a:hover { text-decoration-color: var(--ink); }
.simple-page ul { padding-left: 20px; }

/* ---------- 404: nav + contenido + footer caben en un solo viewport, sin scroll ---------- */
body.viewport-fit { min-height: 100vh; display: flex; flex-direction: column; }
body.viewport-fit .page-404 { flex: 1; min-height: 0; }

.page-404 {
  display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--ink); padding: clamp(24px,5vw,64px) clamp(20px,6vw,80px);
}
.page-404__eyebrow {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 18px 0;
}
.page-404__title {
  font-family: var(--font-serif); font-weight: 460; font-style: italic;
  font-size: clamp(40px,7vw,84px); line-height: 1.05; color: var(--bone); margin: 0 0 24px 0;
}
.page-404__text {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ash);
  margin: 0 0 36px 0; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ---------- prefers-reduced-motion: mostrar estado final directo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { animation: none; transform: scale(1.02); }
  .hero__parallax { transform: none !important; }
  .geo-svg { animation: none !important; }
  .geo-svg circle { animation: none !important; transition: none !important; stroke-dashoffset: 0; }
  .hero__eyebrow, .hero__headline .word, .hero__sub, .hero__cta-row, .hero__trust,
  .nav--hero, .reveal, .guide__curtain, .portfolio-card__curtain,
  .stakes__line, .portfolio-card__img, .portfolio-card__label,
  .plan-step, .sticky-cta, .btn, .site-footer__link, .site-footer__icon {
    transition: none !important;
  }
  .hero__eyebrow, .hero__headline .word, .hero__sub, .hero__cta-row, .hero__trust, .nav--hero, .reveal {
    opacity: 1 !important; transform: none !important;
  }
  .guide__curtain, .portfolio-card__curtain { transform: translateX(100%) !important; }
}
/* Clase equivalente aplicada por JS cuando matchMedia detecta la preferencia,
   para navegadores/casos donde conviene forzar el estado final vía clase en <html> */
html.reduced-motion .hero__bg { animation: none; transform: scale(1.02); }
html.reduced-motion .hero__parallax { transform: none !important; }
html.reduced-motion .geo-svg { animation: none !important; }
html.reduced-motion .geo-svg circle { animation: none !important; transition: none !important; stroke-dashoffset: 0; }
html.reduced-motion .hero__eyebrow,
html.reduced-motion .hero__headline .word,
html.reduced-motion .hero__sub,
html.reduced-motion .hero__cta-row,
html.reduced-motion .hero__trust,
html.reduced-motion .nav--hero,
html.reduced-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.reduced-motion .guide__curtain,
html.reduced-motion .portfolio-card__curtain { transform: translateX(100%) !important; transition: none !important; }

/* ---------- Responsive tweaks generales ---------- */
@media (max-width: 640px) {
  .guide__inner { gap: 32px; }
}
