/* ============================================================
   GRUPO PÁEZ — experiencia inmersiva
   Paleta: marfil cálido / tinta profunda / cobre
   ============================================================ */

:root {
  --ivory: #f5f3ee;
  --ivory-2: #ece8df;
  --ink: #0a0e1c;
  --ink-soft: #3a3f52;
  /* #a8853b con blanco encima daba 3.36:1. #8a6a24 lo sube a 4.8:1. */
  --copper: #8a6a24;
  --copper-deco: #a8853b;
  --copper-soft: #c9a96a;
  --white: #fdfcf9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* clip, no hidden: hidden en html rompe position:sticky */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--copper); color: var(--white); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { position: relative; }
.preloader-letter {
  font-family: var(--serif);
  font-size: 5rem; font-weight: 300;
  color: var(--ivory);
}
.preloader-line {
  position: absolute; left: 50%; bottom: -0.4rem;
  transform: translateX(-50%);
  width: 0; height: 1px; background: var(--copper);
  animation: preline 1.4s var(--ease-out) forwards 0.2s;
}
@keyframes preline { to { width: 120%; } }
.preloader-word {
  font-size: 0.72rem; letter-spacing: 0.55em; text-indent: 0.55em;
  color: rgba(245, 241, 232, 0.55);
  animation: prefade 1.2s var(--ease-out) forwards 0.5s;
  opacity: 0;
}
@keyframes prefade { to { opacity: 1; } }

/* ---------- Progress + chapter nav ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-soft));
}
.chapter-nav {
  position: fixed; right: 2rem; top: 50%; z-index: 110;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.chapter-nav a { display: flex; align-items: center; gap: 0.6rem; flex-direction: row-reverse; }
.chapter-nav i {
  width: 7px; height: 7px; border-radius: 50%;
  background: transparent; border: 1px solid var(--ink-soft);
  transition: all 0.4s var(--ease-out);
  display: block;
}
.chapter-nav a span {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0;
  transform: translateX(6px);
  transition: all 0.4s var(--ease-out);
}
.chapter-nav a:hover span, .chapter-nav a.active span { opacity: 1; transform: none; }
.chapter-nav a.active i { background: var(--copper); border-color: var(--copper); transform: scale(1.35); }
.chapter-nav.on-dark i { border-color: rgba(245,241,232,0.6); }
.chapter-nav.on-dark a span { color: rgba(245,241,232,0.75); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background 0.5s, box-shadow 0.5s, padding 0.5s;
}
.site-header.scrolled {
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 3rem;
  box-shadow: 0 1px 0 rgba(10, 14, 28, 0.08);
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
}
.brand-name { font-size: 0.78rem; letter-spacing: 0.42em; font-weight: 600; white-space: nowrap; }
.site-header:not(.scrolled) { color: var(--white); }
.site-header.scrolled { color: var(--ink); }
.header-cta {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 0.65rem 1.5rem;
  border: 1px solid currentColor; border-radius: 99px;
  transition: all 0.35s var(--ease-out);
}
.header-cta:hover { background: var(--copper); border-color: var(--copper); color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 2.4rem; border-radius: 99px;
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn-solid { background: var(--copper); color: var(--white); }
.btn-solid:hover { background: var(--ink); }
.btn-ghost { border: 1px solid rgba(253, 252, 249, 0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(253, 252, 249, 0.14); }
.btn-lg { font-size: 0.95rem; padding: 1.25rem 3rem; text-transform: none; letter-spacing: 0.03em; }

/* ---------- Tipografía de sección ---------- */
.section-kicker {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--copper); font-weight: 600;
  margin-bottom: 1.6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title .accent, .accent { color: var(--copper); font-style: italic; }
.section-body {
  font-size: 1.02rem; color: var(--ink-soft);
  max-width: 34rem; margin-top: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: heroZoom 8s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,28,0.35) 0%, rgba(10,14,28,0.05) 40%, rgba(10,14,28,0.82) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 3rem 7.5rem;
  max-width: 68rem;
}
.hero-kicker span { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; opacity: 0.85; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8.2vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 1.6rem 0 1.8rem;
}
.hero-title-line { display: block; overflow: hidden; }
.hero-title-line > span { display: block; transform: translateY(110%); animation: riseUp 1.1s var(--ease-out) forwards; }
.hero-title-line:nth-child(1) > span { animation-delay: 1.15s; }
.hero-title-line:nth-child(2) > span { animation-delay: 1.28s; }
.hero-title-line:nth-child(3) > span { animation-delay: 1.41s; }
@keyframes riseUp { to { transform: translateY(0); } }
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: block; transform: translateY(110%); opacity: 0; animation: riseSoft 1s var(--ease-out) forwards 1.7s; }
.hero-kicker > span { animation-delay: 1.05s; }
@keyframes riseSoft { to { transform: translateY(0); opacity: 1; } }
.hero-sub { max-width: 30rem; font-size: 1.05rem; font-weight: 300; opacity: 0.92; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; opacity: 0; animation: prefade 1s var(--ease-out) forwards 2.1s; }
.hero-scrollcue {
  position: absolute; bottom: 2.2rem; right: 3rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  opacity: 0; animation: prefade 1s forwards 2.6s;
}
.hero-scrollcue span {
  width: 1px; height: 52px;
  background: rgba(253,252,249,0.5);
  position: relative; overflow: hidden;
}
.hero-scrollcue span::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--white);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop { to { top: 110%; } }
.hero-scrollcue p { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; opacity: 0.8; }

/* ---------- Manifiesto ---------- */
.manifesto {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(7rem, 16vh, 12rem) 3rem;
  display: flex; justify-content: center;
}
.manifesto-inner { max-width: 62rem; }
.manifesto .section-kicker { color: var(--copper-soft); }
.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: 0.002em;
}
.manifesto-text em { color: var(--copper-soft); }
.manifesto-text .w { opacity: 0.16; transition: opacity 0.5s var(--ease-out); display: inline; }
.manifesto-text .w.lit { opacity: 1; }
.manifesto-sign { display: flex; align-items: center; gap: 1.2rem; margin-top: 3.5rem; }
.sign-line { width: 64px; height: 1px; background: var(--copper-soft); display: block; }
.manifesto-sign p { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.65; }

/* ---------- Legado ---------- */
.legacy { padding: clamp(6rem, 14vh, 10rem) 3rem; }
.legacy-grid {
  max-width: 76rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem;
  align-items: start;
}
.legacy-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 2rem;
  padding-top: 1rem;
}
.stat { border-top: 1px solid rgba(10,14,28,0.18); padding-top: 1.3rem; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 400; color: var(--copper);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); display: block; margin-top: 0.6rem; max-width: 13rem; }

/* ---------- Memoria de obra ---------- */
.record { padding: clamp(6rem, 14vh, 10rem) 3rem; }
.record-head { max-width: 76rem; margin: 0 auto 3.5rem; }
.record-totals {
  max-width: 76rem; margin: 0 auto 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(10,14,28,0.16);
  border-bottom: 1px solid rgba(10,14,28,0.16);
  padding: 2rem 0;
}
.rt-num {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 400; color: var(--copper); display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rt-label { font-size: 0.78rem; color: var(--ink-soft); display: block; margin-top: 0.5rem; max-width: 12rem; }

.record-filters {
  max-width: 76rem; margin: 0 auto 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.rf {
  font-family: inherit; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid rgba(10,14,28,0.2);
  border-radius: 99px; padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.rf:hover { border-color: var(--copper); color: var(--copper); }
.rf.active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.record-list {
  max-width: 76rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.rec {
  border: 1px solid rgba(10,14,28,0.14);
  background: var(--white);
  padding: 1.7rem 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.rec:hover { border-color: var(--copper); box-shadow: 0 14px 40px -26px rgba(10,14,28,0.5); }
.rec--major { grid-column: span 2; }
.rec.is-hidden { display: none; }
.rec-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dot--done { background: var(--ink-soft); }
.dot--live { background: var(--copper); box-shadow: 0 0 0 3px rgba(168,133,59,0.2); }
.rec-name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0.9rem 0 0.3rem; line-height: 1.15; }
.rec-type { font-size: 0.8rem; color: var(--copper); font-weight: 600; letter-spacing: 0.04em; }
.rec-data { margin: 1.3rem 0 0; display: grid; gap: 0.7rem; }
.rec-data > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.8rem; align-items: baseline; }
.rec-data dt {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.rec-data dd { margin: 0; font-size: 0.9rem; }
.rec-note {
  margin-top: 1.1rem; font-size: 0.82rem; color: var(--ink-soft);
  border-left: 2px solid var(--copper); padding-left: 0.8rem;
}
.rec-map {
  margin-top: auto; padding-top: 1.2rem;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft);
  transition: color 0.3s;
}
.rec-map:hover { color: var(--copper); }
.record-empty { max-width: 76rem; margin: 2rem auto 0; color: var(--ink-soft); }

/* ---------- El rango ---------- */
.range { background: var(--ink); color: var(--ivory); padding: clamp(6rem, 14vh, 10rem) 3rem; }
.range-inner { max-width: 76rem; margin: 0 auto; }
.range .section-kicker { color: var(--copper-soft); }
.range .section-body { color: rgba(245,243,238,0.72); max-width: 44rem; }
.range-scale { margin-top: 4rem; display: grid; gap: 1.1rem; }
.rs {
  display: grid; grid-template-columns: 15rem 1fr 15rem;
  gap: 1.5rem; align-items: center;
  border-top: 1px solid rgba(245,243,238,0.14);
  padding-top: 1.1rem;
}
.rs-tag { font-size: 0.95rem; font-weight: 500; }
.rs-bar { height: 2px; background: rgba(245,243,238,0.14); position: relative; overflow: hidden; }
.rs-bar::after {
  content: ""; position: absolute; inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--copper), var(--copper-soft));
  transition: right 1.1s var(--ease-out);
}
.rs.in-view .rs-bar::after { right: 0; }
.rs:nth-child(2) .rs-bar::after { transition-delay: 0.1s; }
.rs:nth-child(3) .rs-bar::after { transition-delay: 0.2s; }
.rs:nth-child(4) .rs-bar::after { transition-delay: 0.3s; }
.rs:nth-child(5) .rs-bar::after { transition-delay: 0.4s; }
.rs-ex { font-size: 0.8rem; color: rgba(245,243,238,0.6); text-align: right; }

/* ---------- Proyectos ---------- */
.projects { background: var(--ivory-2); padding: clamp(6rem, 14vh, 10rem) 0 4rem; }
.projects-head { max-width: 76rem; margin: 0 auto 5rem; padding: 0 3rem; }
.project {
  max-width: 88rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 6rem) 3rem;
}
.project--alt { grid-template-columns: 1fr 1.15fr; }
.project--alt .project-media { order: 2; }
.project--alt .project-info { order: 1; }
.project-media {
  overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 3;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
}
.project.in-view .project-media { clip-path: inset(0 0 0% 0); }
.project-media img {
  width: 100%; height: 116%; object-fit: cover;
  will-change: transform;
}
.project-index {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--copper);
  display: block; margin-bottom: 1rem;
}
.project-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 400; line-height: 1.05;
}
.project-tag {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--copper); font-weight: 600;
  margin: 1.1rem 0 1.4rem;
}
.project-desc { color: var(--ink-soft); max-width: 30rem; }
.project-facts { list-style: none; margin-top: 2rem; display: grid; gap: 0.85rem; }
.project-facts li {
  display: flex; justify-content: space-between; gap: 2rem;
  border-bottom: 1px solid rgba(10,14,28,0.14);
  padding-bottom: 0.85rem;
  font-size: 0.88rem;
}
.project-facts strong { font-weight: 600; letter-spacing: 0.05em; }
.project-facts span { color: var(--ink-soft); text-align: right; }
.project-info { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.project.in-view .project-info { opacity: 1; transform: none; }

/* ---------- Método ---------- */
.method { background: var(--ink); color: var(--ivory); padding: clamp(6rem, 15vh, 11rem) 3rem; }
.method-inner { max-width: 76rem; margin: 0 auto; }
.method .section-kicker { color: var(--copper-soft); }
.method-steps {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem 4rem; margin-top: 4.5rem;
}
.method-step {
  border-top: 1px solid rgba(245,241,232,0.16);
  padding-top: 1.6rem;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.method-step.in-view { opacity: 1; transform: none; }
.method-num { font-family: var(--serif); font-style: italic; color: var(--copper-soft); }
.method-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0.7rem 0 0.8rem; }
.method-step p { color: rgba(245,241,232,0.72); font-size: 0.95rem; max-width: 26rem; }

/* ---------- Galería de vida ---------- */
.gallery { padding: clamp(6rem, 14vh, 10rem) 3rem; background: var(--ivory-2); }
.gallery-head { max-width: 76rem; margin: 0 auto 4rem; }
.gallery-grid {
  max-width: 76rem; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.gfig { position: relative; overflow: hidden; border-radius: 3px; margin: 0; }
.gfig--tall { grid-row: span 2; }
.gfig--wide { grid-column: span 2; }
.gfig img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.gfig:hover img { transform: scale(1.05); }
.gfig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.4rem 1.3rem;
  font-family: var(--serif); font-size: 1.02rem; font-style: italic;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(10,14,28,0.88));
}
.gfig--tall img { min-height: 30rem; }
.gfig img { min-height: 15rem; }

/* ---------- Banda visual ---------- */
.band { position: relative; height: 88svh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10,14,28,0.55); }
.band-quote { position: relative; z-index: 2; max-width: 52rem; padding: 0 3rem; text-align: center; }
.band-quote blockquote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.35; color: var(--white);
}

/* ---------- Contacto ---------- */
.contact { padding: clamp(7rem, 16vh, 12rem) 3rem; text-align: center; }
.contact-inner { max-width: 60rem; margin: 0 auto; }
.contact-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.08;
}
.contact-sub { color: var(--ink-soft); margin: 1.6rem auto 2.8rem; max-width: 32rem; }
.contact-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  margin-top: 5rem; text-align: left;
}
.contact-cols > div { border-top: 1px solid rgba(10,14,28,0.16); padding-top: 1.2rem; }
.contact-cols h4 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper); }
.contact-cols p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,241,232,0.7); padding: 3.5rem 3rem; }
.footer-inner { max-width: 76rem; margin: 0 auto; text-align: center; display: grid; gap: 0.6rem; }
.footer-brand { letter-spacing: 0.45em; font-weight: 600; color: var(--ivory); font-size: 0.85rem; }
.footer-line { font-size: 0.82rem; }
.footer-legal { font-size: 0.72rem; opacity: 0.55; margin-top: 1rem; }

/* ---------- Reveal genérico ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 1.1rem 1.4rem; }
  .site-header.scrolled { padding: 0.8rem 1.4rem; }
  .chapter-nav { display: none; }
  .hero-content { padding: 0 1.6rem 6rem; }
  .hero-scrollcue { right: 1.6rem; }
  .manifesto, .legacy, .method, .contact { padding-left: 1.6rem; padding-right: 1.6rem; }
  .legacy-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-head { padding: 0 1.6rem; margin-bottom: 2rem; }
  .project, .project--alt { grid-template-columns: 1fr; padding: 2.5rem 1.6rem; gap: 1.8rem; }
  .project--alt .project-media { order: 0; }
  .project--alt .project-info { order: 1; }
  .method-steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .band { height: 60svh; }
  .gallery { padding-left: 1.6rem; padding-right: 1.6rem; }
  .gallery-head { margin-bottom: 2.2rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .gfig--tall { grid-row: auto; }
  .gfig--wide { grid-column: auto; }
  .gfig--tall img, .gfig img { min-height: 14rem; max-height: 20rem; }
  .record, .range { padding-left: 1.6rem; padding-right: 1.6rem; }
  .record-totals { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .record-list { grid-template-columns: 1fr; }
  .rec--major { grid-column: auto; }
  .rec-data > div { grid-template-columns: 6.5rem 1fr; }
  .rs { grid-template-columns: 1fr; gap: 0.45rem; }
  .rs-bar { display: none; }
  .rs-ex { text-align: left; }
}

/* Viewports bajos (teléfono en horizontal): el hero debe caber sin recortarse */
@media (max-height: 600px) {
  /* El hero crece con su contenido en vez de recortarlo */
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0.8rem 0 0.9rem; }
  .hero-content { padding-bottom: 3rem; padding-top: 6.5rem; }
  .hero-kicker span { font-size: 0.62rem; letter-spacing: 0.25em; }
  .hero-sub { font-size: 0.9rem; }
  .hero-actions { margin-top: 1.2rem; }
  .btn { padding: 0.8rem 1.6rem; font-size: 0.72rem; }
  .hero-scrollcue { display: none; }
}

/* ============================================================
   ESCENA A SANGRE — una imagen, una línea
   ============================================================ */
.escena {
  position: relative; min-height: 88svh;
  display: grid; place-items: center;
  overflow: hidden; background: var(--ink);
}
.escena-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.escena.in-view .escena-img { transform: scale(1); }
.escena-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,14,28,0.9) 0%, rgba(10,14,28,0.6) 45%, rgba(10,14,28,0.2) 100%);
}
.escena-inner {
  position: relative; z-index: 2;
  max-width: min(42rem, calc(100% - 5rem));
  margin-right: auto; margin-left: clamp(1.6rem, 8vw, 7rem);
  color: var(--white);
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s;
}
.escena.in-view .escena-inner { opacity: 1; transform: none; }
.escena-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--copper-soft); font-weight: 600; margin-bottom: 1.4rem;
}
.escena-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.08; letter-spacing: -0.015em;
}
.escena-title em { color: var(--copper-soft); font-style: italic; }
.escena-sub { margin-top: 1.6rem; color: rgba(253,252,249,0.76); font-size: 1.02rem; max-width: 30rem; }

@media (max-width: 900px) {
  .escena { min-height: 74svh; }
  .escena-inner { margin-left: 1.4rem; max-width: calc(100% - 2.8rem); }
}

/* Enlace a KONFOR dentro del método */
.metodo-link {
  color: var(--copper-soft);
  border-bottom: 1px solid rgba(201,169,106,0.4);
  padding-bottom: 1px; transition: border-color 0.3s;
}
.metodo-link:hover { border-color: var(--copper-soft); }

/* Barra de contacto: aparece sola cuando existen los datos */
.contacto-barra { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.contacto-barra:empty { display: none; }
.cta-wa, .cta-tel {
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.9rem 1.8rem; border-radius: 99px;
  border: 1px solid rgba(10,14,28,0.14);
  transition: all 0.3s var(--ease-out);
}
.cta-wa { background: #25d366; color: #06301a; border-color: transparent; }
.cta-tel:hover { border-color: var(--copper); color: var(--copper); }

/* ============================================================
   CICLO 2 — corrección tipográfica medida
   ============================================================ */
body { font-size: 17px; }
.section-body, .escena-sub, .hero-sub { font-size: 1.06rem; }
.project-desc, .method-step p, .rs-ex, .contact-cols p { font-size: 0.98rem; }
.rt-label, .stat-label, .rec-data dd, .rec-note, .rec-type { font-size: 0.92rem; }

/* Áreas táctiles */
.brand { padding: 0.5rem 0; min-height: 44px; }
.rf { min-height: 44px; }
.rec-map { display: inline-block; min-height: 44px; padding-top: 1.2rem; }
.metodo-link { display: inline-block; min-height: 44px; padding: 0.5rem 0; }

/* ============================================================
   CICLO 3 — cobre legible
   El cobre decorativo se mantiene donde no carga texto.
   ============================================================ */
.dot--live { background: var(--copper-deco); box-shadow: 0 0 0 3px rgba(168,133,59,0.2); }
.progress-bar { background: linear-gradient(90deg, var(--copper-deco), var(--copper-soft)); }
.escena-title em, .hero-title .accent { color: var(--copper-soft); }

/* ============================================================
   CICLO 4 — navegación en móvil
   La espina de capítulos se ocultaba bajo 960px y dejaba el
   sitio con dos enlaces para 21 pantallas de recorrido.
   ============================================================ */
.pie-nav {
  max-width: 76rem; margin: 0 auto 2.5rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,243,238,0.16);
}
.pie-nav a {
  font-size: 0.95rem; color: rgba(245,243,238,0.7);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.3s;
}
.pie-nav a:hover { color: var(--copper-soft); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--ivory);
  padding: 0.9rem 1.4rem; border-radius: 99px;
  font-size: 0.9rem; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px; border-radius: 4px;
}
.hero a:focus-visible, .escena a:focus-visible,
.band a:focus-visible, .site-footer a:focus-visible { outline-color: var(--copper-soft); }

/* El velo del hero caía a 0.05 justo donde se apoyan la marca
   y el remate dorado: ahí no se leían. */
.hero-veil {
  background: linear-gradient(180deg, rgba(10,14,28,0.62) 0%, rgba(10,14,28,0.34) 40%, rgba(10,14,28,0.85) 100%);
}

/* Filtros y enlaces de mapa a 44px reales */
.rf { min-height: 44px; padding: 0.7rem 1.2rem; font-size: 0.78rem; }
.rec-map { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.85rem; }

/* ============================================================
   CICLO 7 — la raíz, no el cuerpo
   ============================================================ */
html { font-size: 17px; }
body { font-size: 1rem; }
.escena-title, .section-title, .contact-title, .hero-title { line-height: 1.1; }
.header-cta, .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   CICLO 8 — cuerpo y medida en móvil
   ============================================================ */
.project-desc, .method-step p, .contact-cols p, .rec-data dd { font-size: 1rem; }
.rt-label, .stat-label, .rec-note { font-size: 0.97rem; }
@media (max-width: 700px) {
  .rec, .project, .method-step { padding-left: 1.15rem; padding-right: 1.15rem; }
  .record, .range, .projects, .method, .contact, .legacy { padding-left: 1.1rem; padding-right: 1.1rem; }
  .escena-inner { margin-left: 1.1rem; max-width: calc(100% - 2.2rem); }
}

/* Misma calibración: 54ch ≈ 66 caracteres reales en esta familia. */
.section-body, .escena-sub, .hero-sub, .contact-sub { max-width: 54ch; }
.project-desc, .method-step p, .contact-cols p { max-width: 50ch; }

/* Los puntos de capítulo medían 7px y el enlace 17 de alto:
   imposible de acertar con el dedo en tableta. */
.chapter-nav a { min-height: 44px; align-items: center; }
.chapter-nav i { width: 9px; height: 9px; }
.manifesto-text { line-height: 1.22; }

/* Tercer estado: en plano. Un proyecto en mesa de dibujo no se
   evalúa igual que una obra levantándose — decirlo es parte de
   la disciplina de no prometer de más. */
.dot--plano { background: transparent; border: 1.5px solid var(--ink-soft); }

/* ============================================================
   PÁGINAS LEGALES
   Documento de lectura larga: medida estrecha, jerarquía clara
   y nada que distraiga. Lo exigen Play Store, App Store, Meta
   y Google Ads, así que tienen que leerse de verdad.
   ============================================================ */
.page-legal { padding-top: 0; }
.legal { padding: clamp(7rem, 14vh, 10rem) 1.4rem 5rem; }
.legal-inner { max-width: 46rem; margin: 0 auto; }
.legal-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08;
  margin-bottom: 1rem;
}
.legal-fecha { font-size: 0.92rem; opacity: 0.7; margin-bottom: 3rem; }
.legal h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 3rem 0 1rem; line-height: 1.2;
}
.legal h3 { font-size: 1.08rem; font-weight: 600; margin: 1.8rem 0 0.7rem; }
.legal p { margin-bottom: 1.1rem; max-width: 54ch; }
.legal ul { margin: 0 0 1.4rem 1.2rem; max-width: 54ch; }
.legal li { margin-bottom: 0.6rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-aviso, .legal-nota {
  border-left: 2px solid currentColor;
  padding: 1rem 0 1rem 1.3rem;
  margin: 2rem 0 2.5rem;
}
.legal-aviso p, .legal-nota p { margin: 0; }
.legal-nota { margin-top: 4rem; font-size: 0.92rem; opacity: 0.72; }
.legal-aviso { border-left-color: var(--copper); background: rgba(138,106,36,0.06); }
.legal-nota { border-left-color: rgba(10,14,28,0.14); }
.legal a { color: var(--copper); }

/* ---------- Identidad de empresa ---------- */
.identidad { padding: clamp(3rem,7vh,5rem) 1.4rem; border-top: 1px solid rgba(10,14,28,0.14); background: var(--ivory-2); }
.identidad-inner { max-width: 76rem; margin: 0 auto; }
.ident-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.6rem 2.5rem; margin-top: 1.5rem;
}
.ident-item { display: grid; gap: 0.3rem; }
.ident-label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.6;
}
.ident-valor { font-size: 1rem; }
.footer-links { font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
