/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #faf8f4;
  --bg-2:        #eef3ef; /* pale tint of the green accent, not an independent sand tone */
  --paper:       #ffffff;
  --ink:         #17211b;
  --ink-soft:    #2d362f;
  --ink-mute:    #6b6f66;
  --accent:      #005d43;
  --accent-2:    #0a7a58;
  --accent-soft: #dfe9e2;
  --pink:        #ff8fa3;
  --pink-soft:   #ffe1e7;
  --line:        rgba(23, 33, 27, 0.12);
  --line-soft:   rgba(23, 33, 27, 0.07);
  --shadow-1:    0 1px 2px rgba(23, 33, 27, 0.06);
  --shadow-2:    0 18px 40px -20px rgba(23, 33, 27, 0.35);
  --shadow-green: 0 20px 44px -18px rgba(0, 93, 67, 0.45);

  /* Display: Noto Serif Display, italic, extracondensed — approximated with
     font-stretch (real condensed metrics when the browser honours the
     variable width axis) plus a slightly tight tracking, since a global
     scaleX() on headings of very different alignments would misalign them. */
  --display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 64px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em; /* Helvetica, slightly open tracking */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-style: italic;
  font-stretch: 62.5%;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
::selection { background: var(--pink); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 16px; height: 1px; background: var(--accent);
  display: inline-block;
}
.reveal .eyebrow::before,
.reveal-stagger .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out) .15s;
}
.reveal.is-visible .eyebrow::before,
.reveal-stagger.is-visible .eyebrow::before {
  transform: scaleX(1);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
  position: relative;
}
.section--soft { background: var(--bg-2); }
.section--ink {
  background: var(--ink);
  color: var(--bg);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  margin-top: 14px;
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
}
.section-head p {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--ink-mute);
  font-size: 1.02rem;
}
.section--ink .section-head p { color: rgba(250, 248, 244, .72); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-green);
  transition: transform .16s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--accent-2); box-shadow: 0 22px 48px -16px rgba(0,93,67,.55); }
.btn:active { transform: scale(.97); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 25px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
  transition: transform .16s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn-ghost svg { width: 18px; height: 18px; flex: none; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-ghost:active { transform: scale(.97); }
.section--ink .btn-ghost { border-color: rgba(250, 248, 244,.3); color: var(--bg); }
.section--ink .btn-ghost:hover { border-color: rgba(250, 248, 244,.6); background: rgba(250, 248, 244,.08); }

.btn-white {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
}
.btn-white:hover { background: #fff; color: var(--accent-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .92rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), gap .2s var(--ease-out);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); gap: .6em; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(2px); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  border-bottom: 1px solid var(--line);
}
.has-hero-video .nav:not(.is-scrolled) { border-bottom-color: rgba(250, 248, 244,.25); }
.nav.is-scrolled {
  background: rgba(250, 248, 244, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(23,33,27,.3);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-logo .logo-light { display: none; }
.has-hero-video .nav:not(.is-scrolled) .nav-logo .logo-dark { display: none; }
.has-hero-video .nav:not(.is-scrolled) .nav-logo .logo-light { display: block; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 22px; font-size: .88rem; }

.nav.is-open { background: var(--ink); border-bottom-color: transparent; }
.nav.is-open .nav-logo .logo-dark { display: none; }
.nav.is-open .nav-logo .logo-light { display: block; }
.nav.is-open .burger span { background: var(--bg); }
.has-hero-video .nav:not(.is-scrolled) .burger span { background: var(--bg); }

.burger {
  display: grid;
  width: 40px; height: 40px;
  border-radius: 12px;
  place-items: center;
  gap: 3px;
  flex-direction: column;
}
.burger span {
  display: block; width: 20px; height: 1.6px; border-radius: 2px;
  background: var(--ink);
  transition: transform .28s var(--ease-in-out), opacity .18s var(--ease-out);
}
.nav.is-open .burger span:nth-child(1) { transform: translateY(2.3px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { transform: translateY(-2.3px) rotate(-45deg); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
  color: var(--bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,22,17,.6) 0%, rgba(15,22,17,.42) 45%, rgba(15,22,17,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(64px, 10vw, 110px);
}
.hero-content > * {
  opacity: 0;
  animation: heroEnter .8s var(--ease-out) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .32s; }
.hero-content > *:nth-child(3) { animation-delay: .48s; }
.hero-content > *:nth-child(4) { animation-delay: .64s; }
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-video { animation: none; opacity: 1; }
}
.hero-content h1 {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 500;
  line-height: .98;
  color: var(--bg);
}
.hero-content h1 em {
  font-style: italic;
  color: #ffc4ce;
}
.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(250, 248, 244,.86);
}
.hero-actions {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
}
.hero .btn-ghost { border-color: rgba(250, 248, 244,.35); color: var(--bg); }
.hero .btn-ghost:hover { border-color: rgba(250, 248, 244,.7); background: rgba(250, 248, 244,.1); }
.hero-trust {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  font-size: .82rem; color: rgba(250, 248, 244,.78);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .sparkle { width: 12px; height: 12px; color: #ffc4ce; }
.hero-trust span:nth-child(1) .sparkle { animation-delay: 0s; }
.hero-trust span:nth-child(2) .sparkle { animation-delay: .5s; }
.hero-trust span:nth-child(3) .sparkle { animation-delay: 1s; }

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 16px;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-inline: 20px;
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-mute);
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-style: normal; font-size: .8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   8. Manifesto ("qué hace")
   ============================================================= */
/* =============================================================
   9. Trabajos (portfolio)
   ============================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.work-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  isolation: isolate;
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.work-card:active { transform: translateY(-6px) scale(.99); }
.work-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease-out);
}
.work-card:hover .work-cover { transform: scale(1.05); }
.work-mark {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1;
}
.work-info {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 22px 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
}
.work-info .name { font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em; font-size: 1.15rem; }
.work-info .cat {
  display: block; margin-top: 4px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .82;
}
.work-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  flex: none;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.work-card:hover .work-arrow { transform: rotate(45deg); background: rgba(255,255,255,.3); }
.work-arrow svg { width: 16px; height: 16px; }

/* project palettes */
.work-card--lopez .work-cover { background: linear-gradient(160deg, #1c1a16 0%, #2a2620 100%); }
.work-card--lopez .work-mark { color: #d9c08a; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.work-card--bunker .work-cover { background: linear-gradient(160deg, #0c0c0c 0%, #241304 100%); }
.work-card--bunker .work-mark { color: #ff7a2e; font-family: var(--sans); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.02em; text-transform: uppercase; }
.work-card--alma .work-cover { background: linear-gradient(160deg, #e9ecdf 0%, #b9c2a6 100%); }
.work-card--alma .work-mark { color: #46543a; font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.work-card--vitalis .work-cover { background: linear-gradient(160deg, #ffffff 0%, #ece7fb 100%); }
.work-card--vitalis .work-mark { color: #6a44c9; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.work-card--vitalis .work-info,
.work-card--alma .work-info { color: var(--ink); background: linear-gradient(0deg, rgba(255,255,255,.82) 0%, transparent 100%); }
.work-card--vitalis .work-arrow,
.work-card--alma .work-arrow { background: rgba(23,33,27,.08); border-color: rgba(23,33,27,.18); }

.work-card--palma .work-cover { background: linear-gradient(160deg, #f1e4d3 0%, #d3b48c 100%); }
.work-card--palma .work-mark { color: #5b4327; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.work-card--rarri .work-cover { background: linear-gradient(160deg, #14211a 0%, #2c4433 100%); }
.work-card--rarri .work-mark { color: #cfe3c9; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.work-card--lumen .work-cover { background: linear-gradient(160deg, #2a2210 0%, #a9822f 55%, #f4d789 100%); }
.work-card--lumen .work-mark { color: #fff7e0; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.work-card--nara .work-cover { background: linear-gradient(160deg, #eef0e2 0%, #c7d0b0 100%); }
.work-card--nara .work-mark { color: #4a5636; font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.work-card--palma .work-info,
.work-card--nara .work-info { color: var(--ink); background: linear-gradient(0deg, rgba(255,255,255,.82) 0%, transparent 100%); }
.work-card--palma .work-arrow,
.work-card--nara .work-arrow { background: rgba(23,33,27,.08); border-color: rgba(23,33,27,.18); }

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 72px);
}
.project-feature { display: block; }
.project-visual {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.project-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.project-feature:hover .project-visual img { transform: scale(1.04); }
.project-visual-badge {
  position: absolute; right: 16px; bottom: 16px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bg);
  background: rgba(23,33,27,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease-out);
}
.project-feature:hover .project-visual-badge { background: var(--accent); }
.project-feature-title {
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
}
.project-feature-num { color: var(--accent); }

/* =============================================================
   10. Servicios (numbered rows)
   ============================================================= */
.services {
  border-top: 1px solid var(--ink);
}
.service-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease-out);
}
.service-row:hover { padding-left: 10px; }
.service-num {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em; font-style: italic; font-weight: 600;
  color: var(--accent); font-size: 1.05rem;
}
.service-main { display: grid; gap: 6px; }
.service-title {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em; font-size: clamp(1.35rem, 3vw, 1.9rem);
}
.service-desc { max-width: 52ch; color: var(--ink-mute); font-size: .96rem; }

/* =============================================================
   12. Aixa Studio (manifiesto + Valen)
   ============================================================= */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
.studio-copy .eyebrow { color: #ffc4ce; }
.studio-copy .eyebrow::before { background: #ffc4ce; }
.studio-copy h2 {
  margin-top: 16px;
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em; font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--bg);
}
.studio-copy p {
  margin-top: 18px;
  max-width: 52ch;
  color: rgba(250, 248, 244,.78);
  font-size: 1.02rem;
  line-height: 1.6;
}
.studio-side { display: flex; flex-direction: column; gap: 24px; }
.studio-photo {
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--accent) 0%, #0a2a1f 100%);
  position: relative;
}
.studio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }
.studio-bio {
  padding: clamp(22px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(250, 248, 244,.15);
  background: rgba(250, 248, 244,.05);
}
.studio-bio-hi {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: 1.25rem; color: var(--bg);
}
.studio-bio-role {
  margin-top: 4px;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #ffc4ce;
}
.studio-bio-desc {
  margin-top: 12px;
  font-size: .92rem; line-height: 1.55;
  color: rgba(250, 248, 244,.72);
}

/* Sparkle accent — used sparingly as a decorative flourish */
.sparkle {
  fill: currentColor;
  color: var(--accent);
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
  transform-origin: center;
}
.section--ink .sparkle { color: #ffc4ce; }
.sparkle--photo {
  position: absolute;
  top: -20px; right: -20px;
  width: 48px; height: 48px;
  filter: drop-shadow(0 6px 14px rgba(0,93,67,.4));
  animation-delay: .4s;
}
.eyebrow .sparkle {
  width: 14px; height: 14px;
  flex: none;
}
@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(14deg); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; }
}

/* =============================================================
   15. Testimonios
   ============================================================= */
.testi { margin-top: clamp(8px, 2vw, 16px); max-width: 720px; }
.testi-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 30px;
}
.testi-counter {
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-mute);
}
.testi-counter [data-testi-current] { color: var(--ink); }
.testi-arrows { display: flex; gap: 10px; }
.testi-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.testi-arrow:hover { border-color: var(--accent); background: var(--accent-soft); }
.testi-arrow svg { width: 16px; height: 16px; }

.testi-slide { display: none; }
.testi-slide.is-active { display: block; animation: testiFade .45s var(--ease-out); }
.testi-slide p {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
}
.testi-slide footer { margin-top: 22px; }
.testi-name { display: block; font-style: normal; font-weight: 700; color: var(--ink); font-size: .95rem; }
.testi-role { display: block; margin-top: 2px; font-size: .85rem; color: var(--ink-mute); }

@keyframes testiFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* =============================================================
   15b. Qué incluye
   ============================================================= */
.includes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.includes-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  font-size: .95rem; font-weight: 600; color: var(--ink);
}
.includes-item::before {
  content: "✦"; color: var(--accent); flex: none; font-size: .85rem;
}

/* =============================================================
   16. CTA final
   ============================================================= */
.cta-final { text-align: center; }
.cta-final .eyebrow { justify-content: center; color: rgba(250, 248, 244,.8); }
.cta-final .eyebrow::before { background: rgba(250, 248, 244,.6); }
.cta-final h2 {
  margin-top: 16px;
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--bg);
  max-width: 14ch;
  margin-inline: auto;
}
.cta-final .sub {
  margin-top: 14px;
  font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(250, 248, 244,.7);
}
.cta-final .btn { margin-top: 32px; padding: 12px 22px; font-size: .88rem; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(250, 248, 244,.75);
  padding-block: 48px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(250, 248, 244,.14);
}
.footer-logo img { height: 26px; }
.footer-tag { margin-top: 12px; font-size: .86rem; max-width: 30ch; color: rgba(250, 248, 244,.6); }
.footer-col h4 {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(250, 248, 244,.5); margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .9rem; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(250, 248, 244,.5);
}

/* =============================================================
   17.5 Case study page (/trabajos/*.html)
   ============================================================= */
.case-back {
  display: flex; align-items: center; gap: 8px;
  width: fit-content;
  margin-bottom: 20px;
  font-size: .85rem; font-weight: 600; color: var(--ink-mute);
  transition: gap .2s var(--ease-out), color .2s var(--ease-out);
}
.case-back:hover { color: var(--accent); }
.case-back:hover { gap: 12px; border-color: var(--accent); }
.case-back svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.case-back:hover svg { transform: translateX(-2px); }

.case-hero { padding-top: clamp(88px, 12vw, 128px); padding-bottom: clamp(40px, 6vw, 64px); }
.case-hero .eyebrow { margin-bottom: 18px; }
.case-hero h1 {
  font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch;
}
.case-tagline { margin-top: 18px; max-width: 52ch; font-size: 1.1rem; color: var(--ink-soft); }

.case-meta {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.case-meta dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.case-meta dd { margin-top: 6px; font-size: .98rem; font-weight: 600; }

.case-cover {
  margin-top: clamp(36px, 6vw, 60px);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-2);
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }

.mock-browser { display: block; background: var(--paper); }
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-soft); }
.mock-bar .mock-url {
  margin-left: 10px; flex: 1;
  height: 20px; border-radius: 5px;
  background: rgba(23,33,27,.06);
}
.mock-body {
  padding: 26px 24px 34px;
  display: grid; gap: 14px;
}
.mock-body .l1 { height: 30px; width: 60%; border-radius: 6px; background: var(--accent-soft); }
.mock-body .l2 { height: 12px; width: 88%; border-radius: 6px; background: rgba(23,33,27,.08); }
.mock-body .l3 { height: 12px; width: 70%; border-radius: 6px; background: rgba(23,33,27,.08); }
.mock-body .l-btn {
  margin-top: 10px; height: 38px; width: 148px; border-radius: 100px;
  background: var(--accent);
}
.mock-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mock-grid div { aspect-ratio: 1; border-radius: 10px; background: var(--pink-soft); }
.mock-grid div:nth-child(2) { background: var(--accent-soft); }
.mock-grid div:nth-child(3) { background: var(--bg-2); }

.case-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.case-toc { display: none; }
.case-toc a {
  display: block; padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line);
  font-size: .85rem; color: var(--ink-mute);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.case-toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.case-section + .case-section { margin-top: 40px; }
.case-section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.case-section p { margin-top: 14px; max-width: 62ch; color: var(--ink-soft); font-size: 1rem; }
.case-section ul { margin-top: 16px; display: grid; gap: 9px; }
.case-section li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.case-section li::before { content: "—"; color: var(--accent); flex: none; }

.case-gallery { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
.case-shot {
  border-radius: 18px; overflow: hidden; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1);
}
.case-shot img { width: 100%; height: 100%; object-fit: cover; }

.case-quote {
  margin-block: clamp(48px, 7vw, 76px);
  padding: clamp(32px, 5vw, 52px);
  border-radius: 24px;
  background: var(--bg-2);
  text-align: center;
}
.case-quote p {
  font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink-soft); max-width: 32ch; margin-inline: auto;
}
.case-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: .82rem; color: var(--ink-mute); }

.work-more { margin-top: 40px; text-align: center; }

.case-cover--service {
  background: linear-gradient(160deg, var(--accent) 0%, #0a2a1f 100%);
  display: flex; align-items: center; justify-content: center;
}
.case-cover--service span {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: rgba(250, 248, 244,.92);
}

/* Individual project case studies (Hero / El proyecto / Galería / Cierre) */
.project-intro { max-width: 62ch; margin-top: 18px; font-size: 1.05rem; color: var(--ink-soft); }
.project-credits {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.project-credits-role {
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: 1.1rem; color: var(--ink);
}
.project-credits-scope {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}
.project-shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  aspect-ratio: 16/10;
}
.project-shot--tall { aspect-ratio: 3/4; }
.project-shot--full { grid-column: 1 / -1; }
.project-shot .work-cover { position: absolute; inset: 0; }
.project-shot-label {
  position: absolute; left: 16px; bottom: 16px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.28);
  padding: 6px 12px; border-radius: 100px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (min-width: 720px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

.project-close { text-align: center; margin-top: clamp(32px, 5vw, 48px); }
.project-close-name {
  display: block;
  font-family: var(--display); font-style: italic; font-stretch: 62.5%; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink);
}
.project-close-cat {
  display: block; margin-top: 6px;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute);
}

.project-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.project-pagination a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  transition: color .2s var(--ease-out);
}
.project-pagination a:hover { color: var(--accent); }
.project-pagination svg { width: 15px; height: 15px; }
.project-pagination .is-next { margin-left: auto; }

/* =============================================================
   18. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(1.9rem, 9vw, 2.3rem); }
  .hero-lead { font-size: .96rem; }
}

@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 60px 1fr auto; }
  .studio-grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .case-meta { grid-template-columns: repeat(4, 1fr); }
  .case-gallery { grid-template-columns: repeat(3, 1fr); }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .case-body { grid-template-columns: 200px 1fr; align-items: start; }
  .case-toc { display: block; position: sticky; top: 100px; }
}

.nav-links {
  list-style: none; margin: 0;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 4px 24px 24px;
  background: var(--ink);
  border-top: 1px solid rgba(255,196,206,.4);
  box-shadow: 0 26px 60px -20px rgba(23,33,27,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
}
.nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
.nav-links a {
  display: block;
  padding: 18px 2px;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--bg);
  transition: color .2s var(--ease-out);
}
.nav-links a:hover { color: #ffc4ce; }


/* =============================================================
   19. Reduced motion — only the genuinely intrusive stuff
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 60s; }
  .reveal, .reveal-stagger > * { transition-duration: .25s; }
}
