/* Cursor dot + shared atoms (nav, footer extras) */

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  margin-left: -4px; margin-top: -4px;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  filter: invert(1);
}
.cursor-dot.is-active { width: 28px; height: 28px; margin-left: -14px; margin-top: -14px; background: var(--sea); }
@media (max-width: 820px) { .cursor-dot { display: none; } }

/* Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
/* Hero a sangre con texto superpuesto */
.hero--full {
  display: block;
  min-height: 100vh;
  overflow: hidden;
  background: #14181a;
}
.hero--full .hero__media { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.hero--full .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(12,15,16,0.78) 0%, rgba(12,15,16,0.66) 40%, rgba(12,15,16,0.44) 62%, rgba(12,15,16,0.26) 82%, rgba(12,15,16,0.32) 100%),
    linear-gradient(180deg, rgba(12,15,16,0.42) 0%, transparent 32%, rgba(12,15,16,0.5) 78%, rgba(12,15,16,0.6) 100%);
}
.hero--full .hero__content {
  position: relative; z-index: 2;
  min-height: 100vh;
  padding: 190px var(--pad-x) 120px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.hero--full .hero__claim { color: #fff; max-width: 20ch; }
.hero--full .hero__sub { color: rgba(255,255,255,0.93); max-width: 58ch; }
.hero--full .hero__scroll { animation: heroFadeUp 1s cubic-bezier(0.16,1,0.3,1) 1.35s forwards; opacity: 0; }
.hero--full .hero__eyebrow .dot { background: #fff; }
.hero--full .hero__eyebrow .mono { color: rgba(255,255,255,0.8); }
.hero--full .hero__scroll { color: rgba(255,255,255,0.7); z-index: 3; }
.hero--full .hero__scroll .stick { background: rgba(255,255,255,0.35); }
.hero--full .hero__scroll .stick::after { background: #fff; }
/* Reveal del titular: líneas enmascaradas que suben (estilo estudio) */
.hero__claim--reveal { display: block; }
.hero__claim--reveal .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__claim--reveal .line > span {
  display: block;
  transform: translateY(110%) rotate(2deg);
  opacity: 0;
  animation: heroLineUp 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__claim--reveal .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero__claim--reveal .line:nth-child(2) > span { animation-delay: 0.52s; }
@keyframes heroLineUp {
  from { transform: translateY(110%) rotate(2deg); opacity: 0; }
  to   { transform: translateY(0) rotate(0deg); opacity: 1; }
}
.hero__fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
/* Zoom lento de la imagen al entrar */
.hero--full .hero__media img { animation: heroImgSettle 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: center; }
@keyframes heroImgSettle { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__claim--reveal .line > span, .hero__fade, .hero--full .hero__media img { animation: none; opacity: 1; transform: none; }
}
/* Nav superpuesto al hero: logo en blanco */
.nav--over .brand-logo { filter: brightness(0) invert(1); }

.hero__eyebrow { display: flex; align-items: center; gap: 14px; }
.hero__eyebrow .dot { width: 8px; height: 8px; background: var(--sea); display: inline-block; }
/* Hero claim — Construcciones para vivirlas. */
.hero__claim {
  font-weight: 200;
  font-size: clamp(42px, 7.4vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-top: 24px;
  max-width: 11ch;
  white-space: normal;
  position: relative;
  z-index: 3;
}
/* No italics — color/weight as in original */
.hero__claim em { font-style: normal; color: var(--olive); font-weight: 400; }
.hero__sub {
  margin-top: 28px;
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta dt { font-family: var(--mono); font-size: 11px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.hero__meta dd { font-size: 15px; }

.hero__right {
  position: relative;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero__scroll {
  position: absolute; left: var(--pad-x); bottom: 36px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__scroll .stick { width: 1px; height: 36px; background: var(--ink); position: relative; overflow: hidden; }
.hero__scroll .stick::after { content:""; position:absolute; inset:0; background: var(--paper); transform-origin: top; animation: scrollHint 2s ease-in-out infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 920px) {
  .hero--full .hero__content { padding: 150px var(--pad-x) 90px; }
  .hero--full .hero__claim { max-width: 100%; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .hero__left { padding: 110px var(--pad-x) 48px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__right { height: 70vh; min-height: 460px; }
  .hero__scroll { display: none; }
}

/* Intro split -------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
}
.intro__big {
  font-weight: 200;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
/* No italics, keep color */
.intro__big .accent { color: var(--olive); font-style: normal; font-weight: 400; }
.intro__copy { padding-bottom: 8px; max-width: 50ch; justify-self: end; }

/* Sección intro con fondo concrete -- módulo "01 Una constructora con visión" */
.section--concrete {
  background-image: url("assets/concrete-background-doble.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding-bottom: clamp(70px, 10vw, 150px);
}
.section--concrete::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,241,234,0.37) 0%, rgba(244,241,234,0.30) 60%, rgba(244,241,234,0.50) 100%);
  pointer-events: none;
  z-index: 0;
}
.section--concrete > * { position: relative; z-index: 1; }
@media (max-width: 920px) {
  .intro { grid-template-columns: 1fr; gap: 36px; }
  .intro__copy { justify-self: stretch; }
}

/* Projects grid editorial asimétrico -------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 80px var(--gutter);
  row-gap: clamp(80px, 12vw, 160px);
}
.project-card {
  display: block;
  cursor: pointer;
  position: relative;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover .ph { transform: scale(1.005); }
.project-card:hover .project-card__title { color: var(--olive); }
.project-card .ph { aspect-ratio: 4/5; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.project-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-card__num { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; }
.project-card__loc { white-space: nowrap; font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.project-card__title { margin-top: 18px; font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; transition: color 0.4s ease; }
.project-card__desc { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 36ch; }

/* asymmetric placements */
.project-card--lg { grid-column: 1 / span 7; }
.project-card--sm { grid-column: 9 / span 4; margin-top: clamp(60px, 10vw, 140px); }
.project-card--md-l { grid-column: 1 / span 5; }
.project-card--md-r { grid-column: 7 / span 6; margin-top: clamp(40px, 7vw, 100px); }
.project-card--full { grid-column: 3 / span 7; }
.project-card--lg .ph { aspect-ratio: 4/3; }
.project-card--full .ph { aspect-ratio: 16/10; }
.project-card--sm .ph { aspect-ratio: 3/4; }
.project-card--md-r .ph { aspect-ratio: 4/3; }

@media (max-width: 920px) {
  .projects { gap: 60px 16px; }
  .project-card--lg, .project-card--sm, .project-card--md-l, .project-card--md-r, .project-card--full {
    grid-column: 1 / -1; margin-top: 0;
  }
}

/* Filosofía -------------------------------------------------- */
.philo {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 140px);
}
.philo__quote {
  font-weight: 200;
  /* PDF: 61pt (≈ 81px). Clamp para responsive. */
  font-size: clamp(40px, 6.5vw, 73px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 14ch;
  padding-top: 24px;
}
.philo__quote::before { content:"\\"; font-family: var(--mono); position: absolute; transform: translateY(-140%); font-size: 18px; color: var(--olive); opacity: 0.7; }
.philo { position: relative; }
.philo__points { display: grid; gap: 36px; max-width: 56ch; justify-self: start; padding-left: clamp(0px, 3vw, 48px); }
.philo__point { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.philo__point .num { font-family: var(--mono); font-size: 40px; font-weight: 100; letter-spacing: 0.02em; line-height: 1; color: #8ca2b2; padding-top: 4px; }
.philo__point h4 { font-weight: 500; font-size: 17px; margin-bottom: 8px; }
.philo__point p { font-size: 14px; color: rgba(244,241,234,0.7); line-height: 1.55; }

/* Sección filosofía con fondo concrete-estructura */
.section--concrete-dark {
  background-color: #2f3c40;
  background-image:
    linear-gradient(180deg, rgba(47,60,64,0.28) 0%, rgba(47,60,64,0.45) 50%, rgba(47,60,64,0.82) 100%),
    url("assets/concrete-estructura-background-f6d4f992.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section--dark .philo__point { border-top-color: rgba(244,241,234,0.18); }
.section--dark .philo__point p { color: rgba(244,241,234,0.65); }
.section--dark .philo__quote::before { color: var(--olive); }
@media (max-width: 920px) {
  .philo { grid-template-columns: 1fr; gap: 56px; }
}

/* Numbers ---------------------------------------------------- */
/* Sección cifras con vídeo de fondo */
.section--cifras { position: relative; overflow: hidden; isolation: isolate; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
.cifras-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cifras-bg__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(47,60,64,0.62) 0%, rgba(47,60,64,0.30) 45%, rgba(47,60,64,0.30) 60%, rgba(47,60,64,0.55) 100%);
}
.cifras-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.numbers {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  margin-top: auto;
  padding-top: 40px;
}
.num-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
}
.num-card__value {
  font-weight: 200;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 12px;
  justify-self: start;
}
.num-card__unit { font-family: var(--sans); font-weight: 300; font-size: clamp(20px, 2.4vw, 34px); line-height: 1; color: var(--paper); letter-spacing: 0; }
.num-card__value sup { font-size: 0.32em; font-family: var(--sans); font-weight: 300; color: var(--paper); align-self: flex-start; margin-top: 0.55em; letter-spacing: 0; text-transform: none; }
.num-card__label {
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  text-align: right;
  justify-self: end;
}
@media (max-width: 920px) {
  .section--cifras { min-height: 0; }
  .numbers { gap: 22px; padding-top: 32px; }
  .num-card { gap: 18px; }
}

/* Clients ---------------------------------------------------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
/* Carrusel continuo de clientes */
.clients-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-track .client-cell {
  flex: 0 0 22vw;
  max-width: 320px;
  border-bottom: none;
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}
.client-cell {
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  position: relative;
  transition: background 0.4s ease;
}
.client-cell:hover { background: var(--paper-2); }
.client-cell .client-name { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.client-cell .client-logo {
  width: auto;
  max-width: 200px;
  max-height: 72px;
  height: auto;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity 0.4s ease;
}
.client-cell:hover .client-logo { opacity: 1; }
.client-cell .client-logo[src*="cliente-yuzu"] { max-width: 150px; }
.client-cell .client-meta { position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-size: 11px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 920px) {
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .clients-track .client-cell { flex-basis: 46vw; }
}

/* CTA contact block ------------------------------------------- */
.cta-contact {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: end;
  padding-bottom: 0;
}
/* Sección 06 — Iniciar un proyecto: 50/50 con imagen + barra CTA */
.cta-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(640px, 82vh, 880px);
  overflow: hidden;
}
.cta-left {
  display: flex;
  flex-direction: column;
  padding: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 88px) clamp(180px, 24vh, 260px) var(--pad-x);
}
.cta-left .section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.cta-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-top: clamp(28px, 4vw, 44px);
}
.cta-right {
  position: relative;
  overflow: hidden;
}
.cta-img {
  position: absolute;
  left: 0; right: 0;
  top: -6%; bottom: -6%;
  background-size: cover;
  background-position: center 38%;
  will-change: transform;
}
/* Barra CTA larga que cruza sobre la imagen */
.cta-bar {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(44px, 8vh, 104px);
  background: #637865;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  z-index: 5;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta-bar:hover { background: #4a5a4c; border-color: #4a5a4c; }
.cta-bar__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cta-bar__arrows {
  position: absolute;
  top: 50%;
  right: clamp(22px, 3vw, 44px);
  transform: translateY(-50%);
  width: clamp(130px, 16vw, 220px);
  height: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.cta-bar__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: ctaMarch 4.5s linear infinite;
}
.cta-arrow {
  width: 26px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@keyframes ctaMarch {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bar__track { animation: none; }
}
.cta-contact__big {
  font-weight: 200;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
/* No italics — color sólo */
.cta-contact__big .it { color: var(--olive); font-weight: 400; font-style: normal; }
.cta-contact__side { display: grid; gap: 24px; max-width: 36ch; padding-bottom: 12px; }
@media (max-width: 920px) {
  .cta-contact { grid-template-columns: 1fr; gap: 36px; }
  .cta-section { grid-template-columns: 1fr; min-height: 0; }
  .cta-left { padding: clamp(48px,12vw,72px) var(--pad-x) 0; }
  .cta-right { height: 60vw; min-height: 320px; }
  .cta-bar {
    position: static;
    left: auto; right: auto;
    width: 100%;
    margin: 0;
  }
}

/* Servicios / proceso — 4 columnas a sangre completa con imagen al hover */
.svc-section {
  background: #f8f6f4;
  padding: 0;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc-col {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  outline: none;
}
.svc-col:last-child { border-right: 1px solid var(--line); }
.svc-col__head {
  padding: clamp(32px, 2.8vw, 52px) clamp(24px, 2vw, 40px) clamp(28px, 2.4vw, 40px);
}
.svc-col__num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--olive);
}
.svc-col__title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 35px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #637865;
  margin-top: clamp(20px, 2vw, 28px);
}
.svc-col__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 16px;
}
.svc-col__media {
  margin-top: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.svc-col__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s ease, transform 0.6s ease;
  filter: grayscale(1) contrast(1.03);
}
.svc-col:hover .svc-col__img,
.svc-col:focus-visible .svc-col__img {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .svc-col__img { transition: opacity 0.3s ease; transform: none; }
}
@media (max-width: 920px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-col:nth-child(3), .svc-col:nth-child(4) { border-top: 1px solid var(--line); }
  .svc-col:nth-child(2) { border-right: 1px solid var(--line); }
  .svc-col__title { font-size: 30px; }
  .svc-col__img { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-col { border-right: 1px solid var(--line); }
  .svc-col:nth-child(n+2) { border-top: 1px solid var(--line); }
  .svc-col__media { aspect-ratio: 16 / 10; }
}
