:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --white: #fffefa;
  --ink: #1d2825;
  --muted: #68716c;
  --green: #2e5144;
  --line: #d9dbd4;
  --accent: #c5d070;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: var(--accent); }

.site-header { height: 88px; padding: 0 7.2%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(29,40,37,.1); position: relative; z-index: 5; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { font: 800 24px/1 var(--display); letter-spacing: -2px; }
.brand-mark span { color: #769073; }
.brand-name { font: 700 8px/1.35 var(--body); letter-spacing: 1.2px; }
.primary-nav { display: flex; align-items: center; gap: 38px; font-size: 12px; font-weight: 600; }
.primary-nav a:not(.nav-cta) { color: #515c56; transition: color .2s; }
.primary-nav a:not(.nav-cta):hover { color: var(--green); }
.nav-cta { padding: 13px 18px; border: 1px solid var(--ink); border-radius: 2px; }
.nav-cta span { padding-left: 12px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 600px; padding: 50px 7.2% 72px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: 5.5%; overflow: hidden; }
.hero-copy { padding: 14px 0 30px; max-width: 490px; animation: hero-rise .85s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow { margin: 0 0 20px; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; color: var(--green); }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 25px; height: 1px; background: var(--green); margin: 0 9px 3px 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -2.7px; }
h1 { max-width: 530px; margin-bottom: 22px; font-size: clamp(48px, 5.8vw, 78px); line-height: 1.04; }
h1 span, h2 span { color: #718574; }
.hero-intro { max-width: 390px; margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 48px; padding: 0 17px; font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: var(--green); }
.button span { font-size: 16px; }
.text-link { font-size: 11px; font-weight: 700; }
.text-link span { padding-left: 7px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 53px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.note-icon { width: 29px; height: 29px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); font-size: 15px; }
.hero-visual { position: relative; height: min(39vw, 480px); min-height: 340px; animation: hero-rise .95s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero-visual > img { height: 100%; object-fit: cover; }
.image-label { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 15px 19px; color: #fff; background: linear-gradient(transparent,rgba(0,0,0,.52)); font-size: 9px; letter-spacing: .4px; }
.hero-stamp { position: absolute; right: -25px; top: 26px; width: 91px; height: 91px; border: 1px solid rgba(29,40,37,.4); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent); transform: rotate(9deg); font-size: 7px; line-height: 1.55; letter-spacing: 1px; animation: stamp-float 4s ease-in-out 1s infinite; }
.hero-stamp strong { font: 800 17px var(--display); letter-spacing: -1px; }
.hero-index { position: absolute; bottom: 25px; left: 7.2%; color: #89918c; font-size: 8px; letter-spacing: 1.5px; }

.intro-strip { padding: 32px 7.2%; display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: center; gap: 8%; background: #e9ebe3; }
.intro-strip p:first-child { margin: 0; font: 600 19px/1.4 var(--display); letter-spacing: -.5px; }
.intro-strip p:nth-child(2) { max-width: 470px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.round-link { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #aeb8a9; border-radius: 50%; font-size: 17px; }
.section { padding: 105px 7.2%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 15px; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.13; }
.section-aside { max-width: 335px; margin: 0 1% 4px 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { position: relative; display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 26px 23px 24px 0; }
.service-card + .service-card { padding-left: 23px; border-left: 1px solid var(--line); }
.service-number { color: #8d968f; font-size: 9px; letter-spacing: .6px; }
.service-icon { position: absolute; right: 22px; top: 19px; color: #859581; font-size: 24px; }
.service-card h3 { max-width: 180px; margin: 46px 0 10px; font: 700 15px/1.4 var(--display); letter-spacing: -.35px; }
.service-card p { flex: 1; min-height: 52px; margin-bottom: 14px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.service-card a { display: inline-block; margin-top: auto; padding-bottom: 4px; border-bottom: 1px solid #a9b29f; font-size: 9px; font-weight: 700; }
.service-card a span { margin-left: 8px; }
.projects-section { padding-top: 68px; background: var(--white); }
.project-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px 25px; }
.project-large { grid-row: span 2; }
.project-card { display: block; }
.project-image { position: relative; height: 235px; overflow: hidden; background: #e5e8e1; }
.project-large .project-image { height: 500px; }
.project-image img { height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-arrow { position: absolute; right: 13px; bottom: 13px; width: 35px; height: 35px; display: grid; place-items: center; background: var(--accent); font-size: 17px; transition: transform .2s; }
.project-card:hover .project-arrow { transform: rotate(45deg); }
.project-meta { display: flex; justify-content: space-between; margin: 16px 0 9px; color: #7a857d; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.project-card h3 { margin-bottom: 7px; font: 700 18px/1.35 var(--display); letter-spacing: -.5px; }
.project-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.project-large h3 { max-width: 440px; font-size: 23px; }
.sample-note { margin: 42px 0 0; color: #7c857e; font-size: 9px; }

.process-band { padding: 87px 7.2% 93px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; background: var(--green); color: white; }
.process-scrolly { position: relative; }
.process-title .eyebrow { color: #c5d070; }
.process-title h2 { font-size: clamp(36px, 3.8vw, 48px); }
.process-title h2 span { color: #c5d070; }
.process-title > p:last-child { max-width: 260px; margin: 17px 0 0; color: #d3ded5; font-size: 11px; line-height: 1.8; }
.process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 33px; margin: 0; padding: 0; list-style: none; }
.process-steps li { padding: 0 0 22px; margin-bottom: 21px; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-steps li > span { color: #c5d070; font-size: 9px; }
.process-steps h3 { margin: 14px 0 6px; font: 700 15px var(--display); }
.process-steps p { max-width: 225px; margin: 0; color: #d3ded5; font-size: 10px; line-height: 1.7; }
.contact-section { position: relative; overflow: hidden; padding: 86px 7.2%; display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: 12%; background: var(--accent); }
.contact-section .eyebrow { color: #394b3d; }
.contact-section h2 { font-size: clamp(39px, 4.3vw, 57px); }
.contact-section h2 span { color: #62735d; }
.contact-copy { position: relative; z-index: 1; max-width: 320px; }
.contact-copy p { margin-bottom: 20px; color: #3e4a3e; font-size: 11px; line-height: 1.8; }
.button-light { color: white; background: var(--ink); }
.button-light:hover { background: var(--green); }
.contact-copy small { display: block; margin-top: 11px; color: #59674f; font-size: 8px; }
.contact-decoration { position: absolute; right: 7%; bottom: -68px; color: rgba(54,75,60,.06); font: 800 230px/.8 var(--display); letter-spacing: -20px; }
.site-footer { min-height: 90px; padding: 21px 7.2%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-footer .brand-mark { font-size: 21px; }
.site-footer > p, .site-footer > span { margin: 0; color: var(--muted); font-size: 9px; }

.detail-hero { padding: 58px 7.2% 65px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 7%; }
.detail-copy { max-width: 455px; }
.breadcrumbs { margin: 0 0 31px; color: #7a857d; font-size: 9px; }
.breadcrumbs a { color: var(--green); }
.detail-copy h1 { font-size: clamp(42px, 5vw, 65px); }
.detail-copy > p:not(.eyebrow):not(.breadcrumbs) { max-width: 380px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-image { position: relative; height: 390px; }
.detail-image img { height: 100%; object-fit: cover; }
.detail-image-caption { position: absolute; left: 15px; bottom: 15px; padding: 10px 12px; color: white; background: rgba(29,40,37,.8); font-size: 9px; }
.project-facts { padding: 22px 7.2%; display: grid; grid-template-columns: repeat(3, 1fr); background: #e9ebe3; }
.project-facts div { padding-left: 19px; border-left: 1px solid #c9cfc5; }
.project-facts dt { margin-bottom: 6px; color: #78827a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.project-facts dd { margin: 0; font: 600 12px var(--display); }
.project-story { padding-top: 80px; padding-bottom: 88px; }
.story-intro { display: grid; grid-template-columns: .7fr 1fr; gap: 8%; margin-bottom: 53px; }
.story-intro h2 { font-size: clamp(30px, 3.2vw, 42px); }
.story-intro > p { max-width: 490px; align-self: end; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline-step { position: relative; padding-top: 0; }
.timeline-image { height: 155px; margin-bottom: 17px; object-fit: cover; background: #e5e8e1; }
.timeline-step > span { position: absolute; top: 10px; left: 10px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: white; background: var(--green); font-size: 9px; font-weight: 700; }
.timeline-step h3 { margin: 0 0 9px; font: 700 15px var(--display); }
.timeline-step p { max-width: 250px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.detail-result { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding: 45px; background: #e9ebe3; }
.detail-result h2 { margin-bottom: 15px; font-size: 32px; }
.detail-result p:not(.eyebrow) { max-width: 400px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.result-image { height: 270px; }
.result-image img { height: 100%; object-fit: cover; }
.detail-cta { padding: 70px 7.2%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.detail-cta h2 { font-size: 35px; }
.detail-cta h2 span { color: #718574; }
.back-link { display: inline-block; margin-top: 22px; color: var(--green); font-size: 10px; font-weight: 700; }

@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes stamp-float {
  0%, 100% { transform: rotate(9deg) translate3d(0, 0, 0); }
  50% { transform: rotate(3deg) translate3d(0, -8px, 0); }
}

@media (max-width: 800px) {
  .site-header { height: 75px; padding: 0 5%; }
  .menu-toggle { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; border: 1px solid var(--line); background: transparent; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: var(--ink); }
  .primary-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; padding: 20px 5% 25px; align-items: stretch; flex-direction: column; gap: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .hero { padding: 51px 5% 64px; grid-template-columns: 1fr; gap: 29px; }
  .hero-copy { max-width: 600px; }
  .hero-visual { height: min(65vw, 430px); min-height: 260px; margin-right: 13px; }
  .hero-stamp { right: -16px; }
  .hero-index { left: 5%; bottom: 21px; }
  .intro-strip { padding: 30px 5%; grid-template-columns: 1fr auto; gap: 18px; }
  .intro-strip p:nth-child(2) { grid-row: 2; }
  .round-link { grid-column: 2; grid-row: 1 / span 2; }
  .section { padding: 75px 5%; }
  .section-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 32px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 230px; padding-right: 15px; }
  .service-card + .service-card { padding-left: 17px; }
  .service-card:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-card:nth-child(4) { border-top: 1px solid var(--line); }
  .project-grid { gap: 32px 18px; }
  .project-large .project-image { height: 400px; }
  .project-image { height: 190px; }
  .process-band { padding: 70px 5%; grid-template-columns: 1fr; gap: 38px; }
  .contact-section { padding: 70px 5%; grid-template-columns: 1fr 1fr; gap: 6%; }
  .site-footer { padding: 20px 5%; }
  .detail-hero { padding: 45px 5% 55px; grid-template-columns: 1fr; gap: 30px; }
  .detail-copy { max-width: 600px; }
  .detail-image { height: min(57vw, 390px); min-height: 250px; }
  .project-facts { padding: 20px 5%; }
  .project-story { padding-top: 65px; padding-bottom: 65px; }
  .story-intro { grid-template-columns: 1fr; gap: 17px; margin-bottom: 40px; }
  .detail-result { padding: 28px; gap: 25px; }
  .result-image { height: 220px; }
  .detail-cta { padding: 60px 5%; }
}

@media (min-width: 801px) {
  .process-scrolly { height: 220vh; }
  .process-band { position: sticky; top: 0; min-height: 100vh; align-content: center; }
}

@media (max-width: 540px) {
  h1 { font-size: 48px; letter-spacing: -2px; }
  .hero { padding-top: 39px; }
  .hero-note { margin-top: 35px; }
  .hero-visual { min-height: 245px; }
  .intro-strip p:first-child { font-size: 16px; }
  .section { padding-top: 63px; padding-bottom: 63px; }
  h2 { font-size: 36px; letter-spacing: -1.8px; }
  .service-card { min-height: 248px; }
  .service-card h3 { font-size: 13px; }
  .service-card p { font-size: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-large { grid-row: auto; }
  .project-large .project-image, .project-image { height: 245px; }
  .project-large h3 { font-size: 19px; }
  .process-steps { gap: 0 18px; }
  .process-steps p { font-size: 9px; }
  .contact-section { grid-template-columns: 1fr; gap: 24px; }
  .contact-decoration { right: 4%; bottom: -30px; font-size: 130px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer > p { order: 3; width: 100%; }
  .site-footer > span { margin-left: auto; align-self: center; font-size: 8px; }
  .project-facts { gap: 13px; }
  .project-facts div { padding-left: 9px; }
  .project-facts dd { font-size: 10px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .timeline-image { height: 135px; }
  .timeline-step { padding-top: 0; }
  .timeline-step p { font-size: 9px; }
  .detail-result { grid-template-columns: 1fr; padding: 25px 20px; }
  .result-image { height: 230px; }
  .detail-cta { align-items: flex-start; flex-direction: column; }
  .detail-cta h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ====== SCROLL 3D ====== */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress-fill {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
    transition: none;
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

.hero { perspective: 1300px; }
.hero-visual { will-change: transform; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(46, 81, 68, .35);
  background: linear-gradient(135deg, rgba(197, 208, 112, .16), transparent 60%);
  transform: translateZ(-60px);
  z-index: -1;
}

[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
.hero-index[data-parallax],
.contact-decoration[data-parallax] { transition: none; }

.service-card.scroll-reveal {
  transform: perspective(1100px) translate3d(0, 70px, -120px) rotateX(14deg);
}
.service-card.scroll-reveal.is-visible {
  transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg);
}
.project-card.scroll-reveal {
  transform: perspective(1100px) translate3d(-36px, 56px, -90px) rotateY(-7deg);
}
.project-card.scroll-reveal.is-visible {
  transform: perspective(1100px) translate3d(0, 0, 0) rotateY(0deg);
}
.section-heading.scroll-reveal {
  transform: perspective(1100px) translate3d(0, 40px, -70px);
}
.process-steps li.scroll-reveal {
  transform: perspective(1000px) translate3d(0, 44px, -60px) rotateX(10deg);
}
.process-steps li.scroll-reveal.is-visible {
  transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .service-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
  .service-card:hover {
    transform: translateY(-6px) translateZ(26px) rotateX(2.5deg);
    box-shadow: 0 22px 44px rgba(29, 40, 37, .12);
  }
  .project-card:hover .project-arrow { transform: rotate(45deg) translateZ(30px); }
}

.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled {
  position: sticky;
  top: 0;
  background: rgba(245, 244, 239, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(29, 40, 37, .1), 0 10px 30px -18px rgba(29, 40, 37, .25);
}

@keyframes stamp-orbit {
  0%, 100% { transform: rotateY(0deg) rotate(9deg) translate3d(0, 0, 0); }
  50% { transform: rotateY(18deg) rotate(3deg) translate3d(0, -8px, 12px); }
}
.hero-stamp { animation-name: stamp-orbit; }

@media (prefers-reduced-motion: reduce), (hover: none) {
  .scroll-progress-fill { animation: none; transform: scaleX(0); }
  [data-parallax] { transform: none !important; transition: none !important; }
  .hero-visual::before { transform: none; }
  .service-card.scroll-reveal,
  .project-card.scroll-reveal,
  .section-heading.scroll-reveal,
  .process-steps li.scroll-reveal { transform: none !important; }
  .hero-stamp { animation: none !important; }
  .service-card:hover { transform: none; }
  .site-header { position: relative; }
}

/* ====== SCROLL 3D (agente IMMERSE-WEB 3D + WPO: solo transform/opacity) ====== */

/* Barra de progreso global, acelerada por GPU vía animation-timeline cuando existe */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress-fill {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
    transition: none;
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* Escena 3D: el héroe y secciones entran con profundidad mientras scrolleas */
.scene-3d {
  perspective: 1200px;
  perspective-origin: 50% 30%;
}
.hero { perspective: 1300px; }
.hero-visual { will-change: transform; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(46, 81, 68, .35);
  background: linear-gradient(135deg, rgba(197, 208, 112, .16), transparent 60%);
  transform: translateZ(-60px);
  z-index: -1;
}

/* Parallax sutil controlado por JS (variables GPU, sin listeners costosos) */
[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
  transition: transform .1s linear;
}
.hero-visual[data-parallax] { transition: transform .1s linear; }
.hero-index[data-parallax] {
  transition: none;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

/* Tarjetas: entrada con rotación 3D y levantamiento con profundidad real */
.service-card.scroll-reveal {
  transform: perspective(1100px) translate3d(0, 70px, -120px) rotateX(14deg);
}
.service-card.scroll-reveal.is-visible {
  transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg);
}
.project-card.scroll-reveal {
  transform: perspective(1100px) translate3d(-36px, 56px, -90px) rotateY(-7deg);
}
.project-card.scroll-reveal.is-visible {
  transform: perspective(1100px) translate3d(0, 0, 0) rotateY(0deg);
}
.section-heading.scroll-reveal {
  transform: perspective(1100px) translate3d(0, 40px, -70px);
}
.process-steps li.scroll-reveal {
  transform: perspective(1000px) translate3d(0, 44px, -60px) rotateX(10deg);
}
.process-steps li.scroll-reveal.is-visible {
  transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg);
}

/* Interacción con profundidad en tarjetas ya visibles */
@media (hover: hover) and (pointer: fine) {
  .service-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
  .service-card:hover {
    transform: translateY(-6px) translateZ(26px) rotateX(2.5deg);
    box-shadow: 0 22px 44px rgba(29, 40, 37, .12);
  }
  .project-card .project-image {
    transform-style: preserve-3d;
  }
  .project-card:hover .project-arrow {
    transform: rotate(45deg) translateZ(30px);
  }
}

/* Header con profundidad al scrollear */
.site-header {
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  position: sticky;
  top: 0;
  background: rgba(245, 244, 239, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(29, 40, 37, .1), 0 10px 30px -18px rgba(29, 40, 37, .25);
}

/* Hero stamp: rotación 3D continua ligera */
@keyframes stamp-orbit {
  0%, 100% { transform: rotateY(0deg) rotate(9deg) translate3d(0, 0, 0); }
  50% { transform: rotateY(18deg) rotate(3deg) translate3d(0, -8px, 12px); }
}
.hero-stamp { animation-name: stamp-orbit; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-fill { animation: none; transform: scaleX(0); transition: none; }
  [data-parallax] { transform: none !important; transition: none !important; }
  .hero-visual::before { transform: none; }
  .service-card.scroll-reveal,
  .project-card.scroll-reveal,
  .section-heading.scroll-reveal,
  .process-steps li.scroll-reveal { transform: none !important; }
  .hero-stamp { animation: none !important; }
  .service-card:hover { transform: none; }
  .site-header { position: relative; }
}

[data-tilt] {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, filter .32s ease;
}
.hero-visual[data-tilt] { transform-origin: center; }
.hero-visual > img { transform: translateZ(0) scale(1.035); transition: transform .45s ease; }
.hero-visual[data-tilt]:hover > img { transform: translateZ(14px) scale(1.055); }
.service-card[data-tilt] { z-index: 0; }
.service-card[data-tilt]:hover { z-index: 1; box-shadow: 0 16px 34px rgba(29,40,37,.1); }
.project-card[data-tilt] { transform-origin: center; }
.project-card[data-tilt]:hover { filter: drop-shadow(0 14px 14px rgba(29,40,37,.1)); }
.detail-image[data-tilt] { transform-origin: center; }
.detail-image[data-tilt] img { transform: scale(1.025); transition: transform .45s ease; }
.detail-image[data-tilt]:hover img { transform: scale(1.07); }

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 52px, 0) scale(.97);
  transition: opacity .8s ease var(--reveal-delay, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.service-card.scroll-reveal,
.project-card.scroll-reveal {
  transform: translate3d(0, 52px, 0) scale(.97) perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.service-card.scroll-reveal.is-visible,
.project-card.scroll-reveal.is-visible {
  transform: scale(1) perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.process-progress {
  grid-column: 1 / -1;
  margin-bottom: 5px;
}
.process-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #d3ded5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.process-progress-value { color: #c5d070; font-variant-numeric: tabular-nums; }
.process-progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
}
.process-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #c5d070;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s linear;
}
.process-status {
  margin: 8px 0 0;
  color: #d3ded5;
  font-size: 9px;
}
.process-steps li { transition: opacity .25s, transform .25s; }
.process-steps li[aria-current="step"] { transform: translateZ(0) scale(1.025); }
.process-steps li[aria-current="step"] > span { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .service-card[data-tilt] { transition: transform .24s cubic-bezier(.2,.7,.2,1); }
}

@media (max-width: 800px) {
  .process-progress { margin-bottom: -8px; }
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  [data-tilt] { transform: none !important; }
  [data-tilt] { transition: none !important; }
  .hero-visual > img,
  .detail-image[data-tilt] img { transform: none !important; }
  .process-progress-fill { transition: none; }
  .process-steps li[aria-current="step"] { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .process-steps li { transition: none !important; }
  .scroll-reveal,
  .service-card.scroll-reveal,
  .project-card.scroll-reveal,
  .scroll-reveal.is-visible,
  .service-card.scroll-reveal.is-visible,
  .project-card.scroll-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-copy,
  .hero-visual,
  .hero-stamp {
    animation: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.process-band :focus-visible { outline-color: var(--accent); }
