:root {
  --ink: #191b18;
  --paper: #f3f2ed;
  --white: #fffefa;
  --line: #cbc9bf;
  --muted: #666d66;
  --moss: #506655;
  --pale: #dce2d7;
  --sand: #b69a73;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --max: 1440px;
  --header: 112px;
  --display: Poppins, Manrope, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
/* Titulares en la tipografía del logo (Poppins, como el isotipo) */
h1, h2,
.project-card h3,
.mobile-menu nav a,
.next-project span { font-family: var(--display); font-weight: 300; }
section[id] { scroll-margin-top: var(--header); }
:focus-visible { outline: 2px solid #c58f48; outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.shell { width: min(100%, var(--max)); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 9.5rem) var(--pad); }
.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--moss);
  background: var(--moss);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); background: #3e5243; }
.button--outline { background: transparent; color: var(--ink); }
.button--outline:hover { color: var(--white); }
.icon-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.text-link {
  display: inline-flex;
  padding-bottom: 5px;
  gap: .5rem;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.text-link--light { color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  padding-inline: var(--pad);
  transition: background-color .32s ease, box-shadow .32s ease;
}
.site-header--solid,
.site-header--overlay.is-scrolled {
  background: rgba(243, 242, 237, .96);
  box-shadow: 0 1px 0 rgba(25, 27, 24, .14);
  backdrop-filter: blur(12px);
}
.nav { display: flex; height: 100%; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.8rem); }
.brand { display: block; width: 76px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.brand .brand-word { display: none; }
/* El isotipo circular se conserva en ambos estados del header. */
.site-header--overlay:not(.is-scrolled) .brand .brand-icon { display: block; filter: invert(1); }
.site-header--solid .brand .brand-icon,
.site-header--overlay.is-scrolled .brand .brand-icon { display: block; filter: none; }
.site-header--solid .brand .brand-word,
.site-header--overlay.is-scrolled .brand .brand-word { display: none; }
.desktop-nav { display: flex; margin-left: auto; align-items: center; gap: clamp(1.1rem, 2.3vw, 2.2rem); }
.desktop-nav a,
.language-switch a {
  position: relative;
  padding-block: 6px;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.site-header--overlay:not(.is-scrolled) .desktop-nav,
.site-header--overlay:not(.is-scrolled) .language-switch { color: var(--white); }
.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: right .2s ease;
}
.desktop-nav a:hover::after { right: 0; }
.language-switch { display: flex; align-items: center; gap: .42rem; }
.language-switch a:not([aria-current="page"]) { opacity: .48; }
.menu-button { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: currentColor; }
.site-header--overlay:not(.is-scrolled) .menu-button { color: var(--white); }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  padding: 22px var(--pad) 30px;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .brand img { filter: invert(1); }
.menu-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.7); background: transparent; color: var(--white); font-size: 1.55rem; line-height: 1; }
.mobile-menu nav { display: grid; gap: .55rem; margin-block: auto; }
.mobile-menu nav a { font-size: clamp(2.1rem, 9vw, 4rem); font-weight: 300; letter-spacing: -.055em; line-height: 1.08; }
.mobile-menu__bottom { display: flex; gap: 1.25rem; font-size: .8rem; font-weight: 700; }
.mobile-menu__bottom a:not([aria-current="page"]) { opacity: .45; }

/* Home */
.home-hero {
  position: relative;
  display: flex;
  min-height: min(860px, 100svh);
  padding: 118px var(--pad) 58px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.home-hero__image,
.home-hero__video,
.home-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__image { object-fit: cover; object-position: 54% center; }
.home-hero__video {
  object-fit: cover;
  object-position: 54% center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.home-hero__video.is-playing { opacity: 1; }
.home-hero__shade {
  background: linear-gradient(90deg, rgba(10,12,10,.69), rgba(10,12,10,.2) 60%, rgba(10,12,10,.04)), linear-gradient(0deg, rgba(10,12,10,.5), transparent 48%);
}
.home-hero__content { position: relative; z-index: 1; }
.home-hero h1 {
  max-width: 790px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 5.4vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: 1.02;
}
.home-hero__content p { margin-bottom: 26px; color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 500; }
.home-hero__credit {
  position: absolute;
  right: var(--pad);
  bottom: 39px;
  z-index: 1;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.54);
  color: rgba(255,255,255,.73);
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
}
.intro { border-bottom: 1px solid var(--line); background: var(--white); }
.intro__grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: clamp(2rem, 8vw, 9rem); align-items: end; }
.intro__lead { margin: 0; }
/* El nombre del estudio lleva su propia jerarquía, separado del texto descriptivo. */
.intro__brand {
  display: block;
  margin-bottom: .55rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.intro__rest {
  display: block;
  max-width: 22ch;
  color: var(--muted);
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}
.intro p { margin: 0; padding-top: 20px; border-top: 1px solid var(--ink); color: #353a35; line-height: 1.78; }
.section-heading { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 7vw, 9rem); margin-bottom: clamp(2.5rem, 5vw, 4.8rem); }
.section-heading h2,
.studio h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.section-heading p { max-width: 560px; margin: .25rem 0 0; color: #353a35; line-height: 1.78; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.project-card { position: relative; grid-column: span 6; min-height: 500px; overflow: hidden; background: var(--ink); color: var(--white); }
.project-card:first-child { grid-column: span 12; min-height: 680px; }
.project-card__image,
.project-card__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-card__image { object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project-card__shade { background: linear-gradient(0deg, rgba(8,10,8,.78), rgba(8,10,8,.06) 70%); }
.project-card__content { position: absolute; inset: auto clamp(1.3rem, 3vw, 2.6rem) clamp(1.3rem, 3vw, 2.4rem); }
.project-card__status { display: inline-block; margin-bottom: .9rem; padding: 5px 10px; border: 1px solid rgba(255,255,255,.5); color: var(--white); font-size: .58rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .4rem; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 300; letter-spacing: -.055em; line-height: 1; }
.project-card p { margin: 0; font-size: .75rem; font-weight: 600; }
.project-card__view { position: relative; display: inline-block; margin-top: 1.1rem; padding-bottom: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.project-card__view::after { position: absolute; right: 100%; bottom: 0; left: 0; height: 1px; background: currentColor; content: ""; transition: right .3s ease; }
.project-card:hover .project-card__view::after { right: 0; }
.project-card:hover .project-card__image { transform: scale(1.025); }

.services { background: var(--ink); color: var(--white); }
.services .section-heading p { color: rgba(255,255,255,.7); }
.service-list { border-top: 1px solid rgba(255,255,255,.32); }
.service-item { display: grid; grid-template-columns: 76px .9fr 1.25fr; gap: 1.25rem; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.21); }
.service-item small { color: rgba(255,255,255,.55); font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.service-item h3 { margin: 0; font-size: 1.03rem; font-weight: 600; line-height: 1.45; }
.service-item p { max-width: 590px; margin: 0; color: rgba(255,255,255,.7); font-size: .91rem; line-height: 1.7; }

.process { background: var(--pale); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(0,0,0,.42); }
.process-item { min-height: 270px; padding: 24px 22px 24px 0; border-right: 1px solid rgba(0,0,0,.28); }
.process-item + .process-item { padding-left: 22px; }
.process-item:last-child { border-right: 0; }
.process-item small { color: var(--moss); font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.process-item h3 { margin: 48px 0 10px; font-size: 1.35rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.process-item p { margin: 0; color: #394039; font-size: .86rem; line-height: 1.65; }

.studio { background: var(--white); }
.studio__grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(2.5rem, 7vw, 9rem); align-items: center; }
.studio__copy > p { max-width: 575px; margin: 24px 0 0; color: #353a35; font-size: 1rem; line-height: 1.78; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 11px 0 0; }
.facts div + div { padding-left: 11px; border-left: 1px solid var(--line); }
.facts dt { margin-bottom: 3px; color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: .78rem; line-height: 1.45; }
.studio__image { min-height: 520px; margin: 0; }
.studio__image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.testimonials { background: var(--sand); }
.testimonials .section-heading p { color: rgba(25,27,24,.72); }
.testimonials__carousel { margin-right: calc(var(--pad) * -1); }
.testimonial-track {
  display: flex;
  gap: clamp(1.75rem, 3.4vw, 3.25rem);
  padding-right: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track:focus-visible { outline-offset: 8px; }
.testimonial-card {
  display: flex;
  flex: 0 0 clamp(264px, 30vw, 400px);
  margin: 0;
  padding-top: 28px;
  flex-direction: column;
  border-top: 1px solid rgba(25,27,24,.38);
  scroll-snap-align: start;
}
.testimonial-card p { margin: 0 0 26px; font-size: .95rem; line-height: 1.7; }
.testimonial-card footer { margin-top: auto; font-size: .64rem; font-weight: 700; letter-spacing: .06em; font-style: normal; text-transform: uppercase; }
.testimonial-card footer span { display: block; margin-top: 4px; font-weight: 600; letter-spacing: .03em; text-transform: none; opacity: .6; }
.carousel-controls { display: flex; gap: 12px; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.carousel-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(25,27,24,.42);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.carousel-button:hover:not(:disabled) { border-color: var(--ink); background: rgba(25,27,24,.09); }
.carousel-button:disabled { opacity: .28; cursor: default; }
.carousel-button .icon-arrow { width: 15px; height: 15px; }

.contact__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2.5rem, 8vw, 10rem); align-items: start; }
.contact__copy > p { max-width: 440px; margin: 24px 0 30px; color: #353a35; line-height: 1.78; }
.contact-details { display: grid; gap: 16px; margin: 34px 0 0; }
.contact-details dt { margin-bottom: 2px; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-size: .9rem; font-weight: 600; }
.contact-details a:hover { color: var(--moss); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 20px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--moss); }
.contact-form__wide { grid-column: span 2; }
.contact-form .button { justify-self: start; }
.contact-form__note { grid-column: span 2; margin: -8px 0 0; color: var(--muted); font-size: .76rem; }
.contact-details { margin-top: 0; }

.contact-details__map { display: inline-block; margin-top: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.contact-details__map:hover { color: var(--moss); }

/* Modal de WhatsApp */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  padding: var(--pad);
  place-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.wa-modal.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.wa-modal__backdrop { position: absolute; inset: 0; background: rgba(12,13,12,.72); backdrop-filter: blur(3px); }
.wa-modal__panel {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100svh - 2 * var(--pad));
  padding: clamp(2rem, 4vw, 2.75rem);
  overflow-y: auto;
  background: var(--white);
  text-align: center;
}
.wa-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.wa-modal__close:hover { color: var(--ink); }
.wa-modal__title { margin-bottom: .6rem; font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.12; }
.wa-modal__intro { margin-bottom: 1.75rem; color: #353a35; font-size: .9rem; line-height: 1.65; }
.wa-modal__desktop { display: flex; flex-direction: column; gap: .9rem; align-items: center; }
.wa-modal__qr { width: 208px; height: 208px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.wa-modal__qr svg { display: block; width: 100%; height: 100%; }
.wa-modal__hint { max-width: 24ch; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.wa-modal__divider { position: relative; width: 100%; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wa-modal__divider::before,
.wa-modal__divider::after { position: absolute; top: 50%; width: calc(50% - 22px); height: 1px; background: var(--line); content: ""; }
.wa-modal__divider::before { left: 0; }
.wa-modal__divider::after { right: 0; }
.wa-modal__mobile { display: flex; justify-content: center; }
.wa-modal__mobile .button,
.wa-modal__desktop .button { width: 100%; }
.wa-modal__number { margin: 1.5rem 0 0; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .03em; }

/* Footer */
.site-footer { padding: 38px var(--pad); background: var(--ink); color: rgba(255,255,255,.72); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.site-footer .brand img { filter: invert(1); }
.site-footer__links,
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .71rem; }
.site-footer__links { justify-content: center; }
.site-footer a:hover { color: var(--white); }
.site-footer__legal { justify-content: flex-end; }
.site-footer__copy { width: 100%; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.48); font-size: .67rem; }
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  color: #fff;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { display: block; width: 27px; height: 27px; fill: currentColor; }

/* Project pages */
.project-page { padding-top: var(--header); }
.project-heading { padding: clamp(3.5rem, 7vw, 7rem) var(--pad) clamp(2.2rem, 4vw, 4rem); }
.project-back { display: inline-flex; margin-bottom: clamp(2.5rem, 6vw, 5rem); gap: .5rem; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-heading__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: end; }
.project-heading h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 8.2rem); font-weight: 300; letter-spacing: -.075em; line-height: .92; }
.project-heading p { margin: 0 0 .35rem; color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.65; text-align: right; }
.project-cover { position: relative; display: block; width: 100%; height: min(80vh, 900px); min-height: 560px; padding: 0; overflow: hidden; border: 0; background: var(--ink); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-cover > span { position: absolute; right: var(--pad); bottom: 28px; padding: 9px 12px; background: rgba(25,27,24,.82); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-cover:hover img { transform: scale(1.012); }
.project-heading__status { display: block; margin-bottom: .5rem; color: var(--moss); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* Concepto y destacados del proyecto */
.project-concept { background: var(--white); border-top: 1px solid var(--line); }
.project-concept__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.project-concept__copy > small { display: block; margin-bottom: 1.15rem; color: var(--moss); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.project-concept__copy h2 { max-width: 15ch; margin-bottom: 1.75rem; font-size: clamp(1.9rem, 3.6vw, 3.15rem); font-weight: 300; letter-spacing: -.05em; line-height: 1.08; }
.project-concept__copy p { max-width: 620px; margin: 0; color: #353a35; line-height: 1.8; }
.project-concept__copy p + p { margin-top: 1.15rem; }
.project-highlights { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-highlights li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-highlights h3 { margin: 0 0 .3rem; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.project-highlights p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.62; }

/* Video de proyecto */
.project-video { padding: 0 var(--pad) 14px; }
.project-video__media { display: block; width: 100%; height: min(70vh, 700px); object-fit: cover; background: var(--ink); }

.project-services { margin-top: 0; }
.project-services__link { margin-top: clamp(2.25rem, 4vw, 3rem); color: var(--white); }

.project-intro__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 9vw, 11rem); align-items: start; }
.project-intro__copy { max-width: 690px; }
.project-intro__copy p { margin: 0; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.78; }
.project-intro__copy p + p { margin-top: 1.3rem; }
.project-specs { margin: 0; border-top: 1px solid var(--ink); }
.project-specs div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-specs dt { color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-specs dd { margin: 0; font-size: .76rem; font-weight: 600; text-align: right; }
/* Mismo enlace de volver, repetido al cerrar el proyecto. */
.project-back-end { padding: 0 var(--pad) clamp(3.5rem, 7vw, 6rem); }
.project-back-end .project-back { margin-bottom: 0; }

.project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding: 0 var(--pad) clamp(5rem, 10vw, 9rem); }
.gallery-trigger { cursor: zoom-in; }
.project-gallery__item { position: relative; grid-column: span 6; min-height: 450px; padding: 0; overflow: hidden; border: 0; background: #e3e1da; }
.project-gallery__item:nth-child(3n) { grid-column: span 12; min-height: min(70vw, 800px); }
.project-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-gallery__item:hover img { transform: scale(1.012); }
.project-gallery__item--video { background: var(--ink); }
.project-gallery__media { width: 100%; height: 100%; object-fit: cover; }
.project-gallery__item--drawing { background: var(--white); border: 1px solid var(--line); }
.project-gallery__item--drawing img { object-fit: contain; padding: clamp(14px, 2vw, 30px); }
.project-gallery__item--drawing:hover img { transform: none; }
.next-project { background: var(--ink); color: var(--white); }
.next-project a { position: relative; display: flex; min-height: 420px; padding: var(--pad); align-items: flex-end; overflow: hidden; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform .65s ease, opacity .35s ease; }
.next-project a::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,11,9,.72), rgba(9,11,9,.04)); content: ""; }
.next-project span { position: relative; z-index: 1; display: grid; font-size: clamp(2.3rem, 5vw, 5rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; }
.next-project small { margin-bottom: 1rem; font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.next-project a:hover img { opacity: .55; transform: scale(1.02); }

/* Fullscreen image viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-rows: 62px 1fr;
  background: rgba(12,13,12,.98);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.lightbox__bar { position: relative; z-index: 3; display: flex; padding: 0 18px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); }
.lightbox__counter { font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.lightbox__actions { display: flex; height: 100%; align-items: center; gap: .4rem; }
.lightbox__actions button { min-width: 44px; height: 42px; padding-inline: 12px; border: 1px solid rgba(255,255,255,.34); background: transparent; color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lightbox__actions [data-lightbox-close] { font-size: 1.4rem; font-weight: 400; line-height: 1; }
/* Flex (no grid) para que max-height:100% resuelva contra una altura definida
   y la imagen se vea completa, sin recortes. */
.lightbox__stage { position: relative; display: flex; min-width: 0; min-height: 0; padding: clamp(28px, 5vh, 62px) clamp(72px, 8vw, 140px); align-items: center; justify-content: center; overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; user-select: none; object-fit: contain; cursor: zoom-in; transition: transform .25s ease; will-change: transform; }
.lightbox.is-zoomed .lightbox__stage img { cursor: zoom-out; transform: scale(1.8); }
.lightbox__nav { position: absolute; top: 50%; z-index: 4; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(15,16,15,.46); color: var(--white); font-size: 1.2rem; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav .icon-arrow { width: 17px; height: 17px; stroke-width: 1.3; }
.lightbox__nav:hover { background: rgba(255,255,255,.13); }

/* Legal */
.legal-page { min-height: 70vh; padding-top: var(--header); }
.legal { max-width: 980px; padding: clamp(4rem, 8vw, 8rem) var(--pad); }
.legal .project-back { margin-bottom: 3rem; }
.legal h1 { max-width: 760px; margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 300; letter-spacing: -.065em; line-height: .98; }
.legal__updated { margin-bottom: clamp(3.5rem, 7vw, 6rem); color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.legal__content { max-width: 740px; }
.legal__content section + section { margin-top: 3rem; }
.legal__content h2 { margin-bottom: .75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.legal__content p,
.legal__content li { color: #353a35; line-height: 1.8; }
.legal__content ul { padding-left: 1.15rem; }
.legal__content a { border-bottom: 1px solid currentColor; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .language-switch { margin-left: auto; }
  .menu-button { display: block; margin-left: 0; }
  .service-item { grid-template-columns: 58px .9fr 1.2fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-item:nth-child(3) { border-right: 0; }
  .process-item:nth-child(n+4) { margin-top: 1px; border-top: 1px solid rgba(0,0,0,.28); }
  .site-footer__inner { grid-template-columns: auto 1fr; }
  .site-footer__links { justify-content: flex-end; }
  .site-footer__legal { grid-column: span 2; justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --header: 80px; }
  .site-header { padding-inline: 1.15rem; }
  .brand { width: 64px; }
  .language-switch { display: none; }
  .menu-button { margin-left: auto; margin-right: -10px; }
  .home-hero { min-height: 700px; padding: 100px var(--pad) 42px; }
  .home-hero h1 { font-size: clamp(2.45rem, 11vw, 3.6rem); }
  .home-hero__credit { display: none; }
  .intro__grid,
  .section-heading,
  .studio__grid,
  .contact__grid,
  .project-heading__grid,
  .project-intro__grid { grid-template-columns: 1fr; }
  .section-heading { gap: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card:first-child { grid-column: 1; min-height: 480px; }
  .project-card:first-child { min-height: 560px; }
  .service-item { grid-template-columns: 42px 1fr; gap: .7rem; }
  .service-item p { grid-column: 2; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item { min-height: 215px; }
  .process-item + .process-item { padding-left: 17px; }
  .process-item:nth-child(even) { border-right: 0; }
  .process-item:nth-child(3) { border-right: 1px solid rgba(0,0,0,.28); }
  .process-item:nth-child(n+3) { margin-top: 1px; border-top: 1px solid rgba(0,0,0,.28); }
  .process-item:last-child { grid-column: span 2; }
  .process-item h3 { margin-top: 34px; }
  .testimonial-card { flex-basis: min(78vw, 320px); padding-top: 22px; }
  .testimonial-card p { margin-bottom: 20px; font-size: .9rem; }
  .carousel-button { width: 44px; height: 44px; }
  .project-concept__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-concept__copy h2 { max-width: 100%; }
  .project-video__media { height: 52vh; min-height: 300px; }
  .studio__image,
  .studio__image img { min-height: 380px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__wide,
  .contact-form__note { grid-column: auto; }
  .wa-modal__qr { width: 176px; height: 176px; }
  .site-footer__inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer__links,
  .site-footer__legal { grid-column: auto; justify-content: flex-start; }
  .project-heading { padding-top: 3rem; }
  .project-heading__grid { gap: 1.2rem; }
  .project-heading h1 { max-width: 100%; font-size: clamp(2.8rem, 13.5vw, 4.5rem); }
  .project-heading p { text-align: left; }
  .project-cover { height: 70svh; min-height: 480px; }
  .project-cover > span { right: 1.1rem; bottom: 18px; }
  .project-gallery { grid-template-columns: 1fr; gap: 10px; }
  .project-gallery__item,
  .project-gallery__item:nth-child(3n) { grid-column: 1; min-height: 320px; }
  .project-gallery__item:nth-child(3n) { min-height: 440px; }
  .next-project a { min-height: 340px; }
  .lightbox { grid-template-rows: 58px 1fr; }
  .lightbox__stage { padding: 18px 16px 86px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 58px); }
  .lightbox__nav--next { right: calc(50% - 58px); }
  .lightbox__actions [data-lightbox-zoom] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Portada de proyecto con recorrido virtual ---------- */
.project-hero {
  position: relative;
  width: 100%;
  height: min(calc(100svh - var(--header)), 1040px);
  min-height: 560px;
  background: var(--ink);
}
.project-hero iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-hero__aside {
  display: flex;
  justify-content: flex-end;
  padding: 14px var(--pad) 0;
}
/* Con showroom el encabezado ya no necesita tanto aire por arriba. */
.project-hero + .project-heading { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 860px) {
  .project-hero { height: min(calc(100svh - var(--header)), 760px); min-height: 480px; }
  .project-hero__aside { justify-content: flex-start; }
}
