/* =========================================================
   Construdiseños · estilos
   Paleta: carbón, hueso, beige, madera + oro del logo
   ========================================================= */
:root {
  --carbon: #171512;
  --carbon-2: #211e1a;
  --carbon-3: #2c2823;
  --hueso: #f6f2ea;
  --hueso-2: #efe9de;
  --beige: #e6dccb;
  --arena: #cdbb9d;
  --madera: #8a6a48;
  --oro: #c29b5c;
  --oro-claro: #d8bd8c;
  --texto: #2a2621;
  --muted: #6f665b;
  --linea: rgba(42, 38, 33, 0.14);
  --linea-clara: rgba(246, 242, 234, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 12vw, 10rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--hueso);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--madera);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: var(--oro-claro); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--carbon);
}
.display em, .hero h2 em, .hero__lead em { font-style: italic; color: var(--madera); }
.display--light { color: var(--hueso); }
.display--light em { color: var(--oro-claro); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; color: var(--texto); margin: 2rem 0 1.2rem; }
.section__head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section__lead { margin-top: 1.6rem; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--hueso); }
.brand__mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.brand__word { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.12em; line-height: 1; white-space: nowrap; }
.brand__word span { font-weight: 400; }
.brand__word b { font-weight: 600; }
.brand--light { color: var(--hueso); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--carbon);
  color: var(--hueso);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.loader__logo { width: min(240px, 60vw); height: auto; animation: breathe 2.4s var(--ease) infinite; }
.loader__word { font-size: 1.15rem; letter-spacing: 0.32em; padding-left: 0.32em; }
.loader__word b { font-weight: 600; }
.loader__bar { width: 180px; height: 1px; background: var(--linea-clara); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--oro); transform-origin: left; transform: scaleX(0); transition: transform 0.25s linear; }
.loader__pct { font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(246, 242, 234, 0.55); font-variant-numeric: tabular-nums; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.75; transform: translateY(-4px); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), color 0.5s, box-shadow 0.5s;
}
.header.is-solid {
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 var(--linea);
}
.header.is-solid .brand { color: var(--carbon); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav a {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hueso); position: relative; padding-block: 0.3rem;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.header.is-solid .nav a { color: var(--texto); }
.nav__cta {
  white-space: nowrap;
  border: 1px solid rgba(246, 242, 234, 0.6); padding: 0.75rem 1.2rem !important;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.nav__cta:hover { background: var(--hueso); color: var(--carbon) !important; }
.header.is-solid .nav__cta { border-color: var(--carbon); background: var(--carbon); color: var(--hueso) !important; }
.header.is-solid .nav__cta:hover { background: var(--oro); border-color: var(--oro); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--hueso); transition: transform 0.4s var(--ease), top 0.4s var(--ease), background 0.3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.header.is-solid .burger span { background: var(--carbon); }
.nav-open .burger span { background: var(--hueso) !important; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--carbon); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav a { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.02em; text-transform: none; font-weight: 300; color: var(--hueso) !important; }
  .nav__cta { font-family: var(--sans) !important; font-size: 0.8rem !important; letter-spacing: 0.16em !important; text-transform: uppercase !important; font-weight: 500 !important; margin-top: 1rem; border-color: var(--oro) !important; background: var(--oro) !important; color: var(--carbon) !important; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .brand { color: var(--hueso) !important; }
  .nav-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 620vh; background: var(--carbon); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23, 21, 18, 0.55) 0%, rgba(23, 21, 18, 0) 22%),
    linear-gradient(0deg, rgba(23, 21, 18, 0.88) 0%, rgba(23, 21, 18, 0.5) 38%, rgba(23, 21, 18, 0) 70%),
    linear-gradient(90deg, rgba(23, 21, 18, 0.4) 0%, rgba(23, 21, 18, 0) 60%),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
}
.hero__titles, .hero__intro { position: absolute; inset: 0; pointer-events: none; }
.hero__title, .hero__intro > * { color: var(--hueso); }
.hero__title {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(5.5rem, 14vh, 9rem);
  max-width: 44rem; opacity: 0; visibility: hidden;
}
.hero__title .eyebrow { color: var(--oro-claro); margin-bottom: 1.2rem; }
.hero h2 {
  font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.01em;
  font-size: clamp(2.7rem, 7.2vw, 6.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero h2 em, .hero__lead em { color: var(--oro-claro); }
.hero__sub { margin-top: 1.3rem; max-width: 30rem; font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: rgba(246, 242, 234, 0.85); }

.hero__intro { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(5.5rem, 14vh, 9rem); }
.hero__h1 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--oro-claro) !important; max-width: 34rem; line-height: 1.8; margin-bottom: 1.4rem;
}
.hero__lead {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 7.6vw, 7rem); line-height: 0.98; letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; color: rgba(246, 242, 234, 0.8);
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 46px; background: rgba(246, 242, 234, 0.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--oro-claro); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__progress { position: absolute; left: var(--pad); bottom: clamp(2.4rem, 5.5vh, 3.4rem); width: min(220px, 30vw); height: 1px; background: rgba(246, 242, 234, 0.22); }
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--oro); transform: scaleX(0); transform-origin: left; }

/* ---------- Texto dividido (líneas y palabras) ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }
.word { transition: none; }

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(7rem, 16vw, 13rem) clamp(4rem, 8vw, 7rem); background: var(--hueso); }
.manifesto__text {
  font-family: var(--serif); font-weight: 300; color: var(--carbon);
  font-size: clamp(2.1rem, 5.4vw, 5.2rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 19ch;
}
.manifesto__text em { color: var(--madera); }
.manifesto__text .word { opacity: 0.14; }
.stats { margin-top: clamp(4rem, 9vw, 7rem); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); }
.stat { padding: 2rem 2rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--linea); }
.stat__n { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--carbon); }
.stat__l { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Imagen que se expande ---------- */
.expand { height: 220vh; background: var(--hueso); position: relative; }
.expand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.expand__media { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; transform: scale(0.52); transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.expand__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); will-change: transform; backface-visibility: hidden; }
.expand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 21, 18, 0.55), rgba(23, 21, 18, 0) 50%); }
.expand__caption {
  position: absolute; left: var(--pad); bottom: clamp(2.5rem, 8vh, 5rem); z-index: 1; color: var(--hueso);
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.95; letter-spacing: -0.02em; opacity: 0;
}
.expand__caption em { color: var(--oro-claro); }

/* ---------- Franja en movimiento ---------- */
.marquee { background: var(--carbon); color: var(--hueso); overflow: hidden; padding-block: clamp(1.6rem, 3vw, 2.4rem); border-block: 1px solid var(--linea-clara); }
.marquee__track { display: flex; align-items: center; width: max-content; gap: clamp(1.6rem, 3vw, 3rem); will-change: transform; }
.marquee span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2rem, 4.6vw, 4.2rem); white-space: nowrap; line-height: 1; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(216, 189, 140, 0.8); }
.marquee i { width: 10px; height: 10px; flex: none; background: var(--oro); transform: rotate(45deg); }

/* ---------- Servicios: carrusel circular 3D ---------- */
.services { background: var(--carbon); color: var(--hueso); padding-block: clamp(6rem, 11vw, 9rem) clamp(4rem, 8vw, 6rem); overflow: hidden; }
.services__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ring { --w: clamp(220px, 21vw, 310px); --h: calc(var(--w) * 1.28); --r: calc(var(--w) * 1.75); position: relative; height: calc(var(--h) + 4.5rem); margin-top: clamp(1.5rem, 4vw, 3rem); perspective: 2200px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.ring.is-dragging { cursor: grabbing; }
.ring__stage { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)); }
.ring__spin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.rcard { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); opacity: 0.38; filter: grayscale(0.35) brightness(0.7); cursor: pointer; }
.rcard figure { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.rcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.rcard__tag { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; background: rgba(23, 21, 18, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border-radius: 2px; }
.rcard__tag span { color: var(--oro); font-weight: 600; }
.rcard.is-front { opacity: 1; filter: none; cursor: default; }
.rcard.is-front img { transform: scale(1); }
.rcard.is-front figure { outline: 1px solid rgba(216, 189, 140, 0.55); outline-offset: 8px; }

.ring__info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; max-width: 46rem; margin-top: 0.5rem; text-align: center; }
.ring__count { font-size: 0.74rem; letter-spacing: 0.24em; color: rgba(246, 242, 234, 0.5); }
.ring__count b { color: var(--oro); font-weight: 600; }
.ring__text h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; margin: 0.5rem 0 0.6rem; }
.ring__text p:last-child { color: rgba(246, 242, 234, 0.7); font-size: 0.98rem; }
.ring__text.is-changing > * { opacity: 0; transform: translateY(12px); }
.ring__text > * { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.ring__arrow { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--linea-clara); color: var(--hueso); font-size: 1.15rem; transition: all 0.35s var(--ease); }
.ring__arrow:hover { background: var(--oro); border-color: var(--oro); color: var(--carbon); }
.ring__index { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.4rem; }
.ring__index button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.05rem; border-radius: 999px; border: 1px solid var(--linea-clara); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 242, 234, 0.6); transition: all 0.35s var(--ease); }
.ring__index button span { color: var(--oro); font-weight: 600; }
.ring__index button:hover { color: var(--hueso); border-color: rgba(246, 242, 234, 0.5); }
.ring__index button[aria-current="true"] { background: var(--hueso); color: var(--carbon); border-color: var(--hueso); }
.ring__index button[aria-current="true"] span { color: var(--madera); }

/* ---------- Video detalle / misión ---------- */
.detail { position: relative; overflow: hidden; color: var(--hueso); background: var(--carbon); min-height: 100vh; display: flex; align-items: center; padding-block: clamp(7rem, 14vw, 11rem); isolation: isolate; }
.detail__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.detail__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 100% at 30% 50%, rgba(23, 21, 18, 0.88) 0%, rgba(23, 21, 18, 0.6) 60%, rgba(23, 21, 18, 0.45) 100%); }
.detail__title { font-size: clamp(2.8rem, 7.4vw, 7rem); }
.values { margin-top: clamp(3rem, 7vw, 5.5rem); display: flex; flex-wrap: wrap; gap: 0.2rem 0; max-width: 64rem; }
.values li {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.25; color: rgba(246, 242, 234, 0.2);
  display: inline-flex; align-items: center; transition: color 0.5s;
}
.values li:not(:last-child)::after { content: ""; width: 7px; height: 7px; background: var(--oro); transform: rotate(45deg); margin-inline: clamp(0.8rem, 1.6vw, 1.4rem); opacity: 0.7; }
.values li.is-on { color: var(--oro-claro); }

/* ---------- Proceso ---------- */
.process { background: var(--hueso-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(4rem, 8vw, 6.5rem); }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--linea); }
.steps__line span { display: block; height: 100%; background: var(--oro); transform: scaleX(0); transform-origin: left; }
.step { position: relative; padding-top: 3rem; }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--hueso-2); border: 1px solid var(--oro); transition: background 0.5s; }
.step.is-on .step__dot { background: var(--oro); }
.step__n { font-family: var(--serif); font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 300; line-height: 0.9; color: var(--arena); display: block; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--carbon); margin: 0.6rem 0 0.4rem; }
.step p { color: var(--muted); }

/* ---------- Portafolio ---------- */
.portfolio { background: var(--hueso); position: relative; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 42rem; justify-content: flex-end; }
.tab {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 0.7rem 1rem; border: 1px solid var(--linea); color: var(--muted); transition: all 0.35s var(--ease); border-radius: 999px;
}
.tab:hover { color: var(--carbon); border-color: var(--carbon); }
.tab[aria-selected="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--hueso); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 21vw, 290px); gap: clamp(0.6rem, 1.2vw, 1rem); }
.g-item { position: relative; overflow: hidden; background: var(--beige); cursor: none; border-radius: var(--radius); }
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(6) { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 21, 18, 0.75), rgba(23, 21, 18, 0) 55%); opacity: 0; transition: opacity 0.6s var(--ease); }
.g-item figcaption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 1; color: var(--hueso); font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; opacity: 0; transform: translateY(10px); transition: all 0.6s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:hover figcaption, .g-item:focus-visible::after, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--oro); color: var(--carbon);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  pointer-events: none; transform: scale(0); transition: transform 0.35s var(--ease);
}
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } .g-item { cursor: zoom-in; } }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--beige); }
.testimonials__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tslider { position: relative; width: 100%; max-width: 62rem; display: grid; justify-items: center; }
.tslider__mark { font-family: var(--serif); font-size: clamp(6rem, 12vw, 10rem); line-height: 0.6; color: var(--oro); height: 0.55em; }
.tslide { grid-area: 2 / 1; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), visibility 0.9s; }
.tslide.is-active { opacity: 1; visibility: visible; transform: none; }
.tslide blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.15; color: var(--carbon); letter-spacing: -0.01em; }
.tslide figcaption { margin-top: 2rem; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--madera); font-weight: 500; }
.tslider__nav { grid-area: 3 / 1; margin-top: 3rem; display: flex; align-items: center; gap: 1.6rem; }
.tslider__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linea); font-size: 1.1rem; transition: all 0.35s var(--ease); }
.tslider__nav button:hover { background: var(--carbon); color: var(--hueso); border-color: var(--carbon); }
.tslider__count { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tslider__count b { color: var(--carbon); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--hueso); background: var(--carbon); overflow: hidden; isolation: isolate; padding-block: clamp(7rem, 12vw, 10rem); }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 14, 12, 0.9) 0%, rgba(16, 14, 12, 0.6) 55%, rgba(16, 14, 12, 0.35) 100%); }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 13vw, 12rem); line-height: 0.9; letter-spacing: -0.03em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact__title em { color: var(--oro-claro); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem; font-weight: 500; letter-spacing: 0.08em; transition: background 0.4s, box-shadow 0.4s; }
.btn svg { width: 1.6em; height: 1.6em; }
.btn--wa { background: var(--oro); color: var(--carbon); }
.btn--wa:hover { background: var(--oro-claro); box-shadow: 0 18px 40px -18px rgba(194, 155, 92, 0.7); }
.btn--xl { font-size: clamp(0.95rem, 1.4vw, 1.1rem); padding: 1.45rem 2.4rem; border-radius: 999px; }
.contact__info { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; gap: 0.8rem 2.6rem; font-size: 0.86rem; letter-spacing: 0.06em; color: rgba(246, 242, 234, 0.78); }
.contact__info a { border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.contact__info a:hover { color: var(--oro-claro); border-color: var(--oro-claro); }

/* ---------- Footer ---------- */
.footer { background: #100e0c; color: rgba(246, 242, 234, 0.72); padding-top: clamp(4rem, 8vw, 6rem); font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__logo img { width: 190px; height: auto; }
.footer__brand p { margin-top: 1.4rem; max-width: 22rem; }
.footer__title { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.1rem !important; font-weight: 500; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__contact p { margin-bottom: 0.4rem; }
.footer a:hover { color: var(--oro-claro); }
.footer__social a { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem 2rem; border-top: 1px solid var(--linea-clara); font-size: 0.76rem; color: rgba(246, 242, 234, 0.45); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.8rem); bottom: clamp(1rem, 2.5vw, 1.8rem); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--carbon); color: var(--hueso); border: 1px solid var(--oro);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, opacity 0.6s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--oro); color: var(--carbon); }
.wa-float::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--oro); animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float__tip {
  position: absolute; right: calc(100% + 0.8rem); white-space: nowrap; background: var(--carbon); color: var(--hueso);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.6rem 0.9rem; opacity: 0; transform: translateX(6px);
  transition: all 0.4s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
body.is-loading .wa-float { opacity: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16, 14, 12, 0.96); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox[hidden] { display: none; }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; max-height: 100%; }
.lightbox__fig img { max-height: 76vh; width: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; color: var(--hueso); max-width: 40rem; }
.lightbox figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.lightbox figcaption span { font-size: 0.9rem; color: rgba(246, 242, 234, 0.7); }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; font-size: 2.4rem; color: var(--hueso); line-height: 1; width: 48px; height: 48px; }
.lightbox__nav { font-size: 3rem; color: var(--hueso); width: 56px; height: 56px; opacity: 0.7; transition: opacity 0.3s; }
.lightbox__nav:hover, .lightbox__close:hover { opacity: 1; color: var(--oro-claro); }

/* ---------- Revelado al scroll (estado inicial solo con JS) ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(36px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .manifesto__text .word { opacity: 1; }
  .expand__media { transform: none; border-radius: 0; }
  .expand__caption { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ring { --w: min(62vw, 260px); --r: calc(var(--w) * 1.05); perspective: 1100px; }
  .ring__info { grid-template-columns: auto 1fr auto; gap: 0.8rem; }
  .ring__arrow { width: 46px; height: 46px; }
  .ring__index { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.4rem; scrollbar-width: none; }
  .ring__index::-webkit-scrollbar { display: none; }
  .ring__index button { white-space: nowrap; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line span { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; }
  .step { padding: 0 0 3rem 3rem; }
  .step__dot { top: 0.4rem; }
  .tabs { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero { height: 500vh; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--linea); flex-direction: row; align-items: baseline; justify-content: space-between; }
  .expand { height: 180vh; }
  .expand__media { transform: scale(0.7); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .g-item:nth-child(6) { grid-row: span 1; }
  .g-item figcaption { opacity: 1; transform: none; font-size: 1rem; left: 0.8rem; bottom: 0.7rem; }
  .g-item::after { opacity: 0.8; }
  .footer__grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 2 * var(--pad)); padding-bottom: 0.4rem; }
  .tab { white-space: nowrap; }
  .brand__word { font-size: 0.82rem; }
  .brand__mark { width: 32px; height: 32px; }
  .hero__scroll span { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 1rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .btn--xl { width: 100%; padding: 1.25rem 1rem; font-size: 0.86rem; letter-spacing: 0.02em; gap: 0.6rem; }
  .contact__info { flex-direction: column; }
}
