/* ============================================================
   ReMueble — main.css v2
   Basado en rediseño de referencia
   ============================================================ */

/* ─────────────────────────────────────────────────────────
   1. VARIABLES
───────────────────────────────────────────────────────── */
:root {
  --bosque:      #183B2A;
  --bosque-700:  #11281d;
  --musgo:       #5F7F60;
  --salvia:      #8FA88A;
  --hoja:        #A8C66C;
  --hoja-bright: #7CB518;
  --crema:       #F4EFE4;
  --crema-alt:   #EAE3D3;
  --crema-deep:  #DDD5C2;
  --carbono:     #2A2A24;
  --blanco:      #FFFFFF;

  --bg:          var(--crema);
  --bg-alt:      var(--crema-alt);
  --text:        var(--carbono);
  --text-soft:   #5B5A4F;
  --text-muted:  #6B6A5F;
  --line:        rgba(46,46,42,.1);
  --line-strong: rgba(46,46,42,.2);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Instrument Sans', 'Inter', sans-serif;

  --text-xs:   .72rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.6rem;
  --text-3xl:  2.1rem;
  --text-4xl:  clamp(2.2rem, 4vw, 3.2rem);

  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 5rem;
  --sp-7: 7rem;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-soft:   0 22px 60px rgba(17,40,29,.14);
  --shadow-medium: 0 6px 20px rgba(17,40,29,.10);
  --shadow-tight:  0 2px 8px rgba(17,40,29,.08);

  --maxw: 1160px;

  /* Accent colors para service icons */
  --icon-default: #E8F4E8;
  --icon-red:     #FDE8E8;
  --icon-blue:    #E8EEF8;
  --icon-purple:  #F0E8F8;
  --icon-green:   #E8F4E8;
  --icon-teal:    #E8F4F4;
}


/* ─────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
svg { display: block; }
ul  { list-style: none; }
a   { color: var(--bosque); text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  color: var(--bosque);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
}
h3, h4 {
  font-family: var(--font-body);
  color: var(--bosque);
  line-height: 1.25;
  letter-spacing: -.005em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4 { font-size: .9rem; font-weight: 700; }

p  { color: var(--text-soft); max-width: 62ch; line-height: 1.7; }


/* ─────────────────────────────────────────────────────────
   3. LAYOUT
───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  position: relative;
}
.section--alt  { background: var(--bg-alt); }
.section--dark {
  background: var(--bosque);
  color: var(--crema);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--blanco); }
.section--dark p   { color: rgba(244,239,228,.78); }

.section-head { max-width: 52ch; margin-bottom: var(--sp-4); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--bosque); color: var(--blanco);
  padding: .8em 1.2em; border-radius: 4px; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

section[id] { scroll-margin-top: 68px; }


/* ─────────────────────────────────────────────────────────
   4. TIPOGRAFÍA UTILITARIA
───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--musgo);
  margin-bottom: .9em;
}
.section--dark .eyebrow { color: var(--hoja); }

.lede {
  font-size: var(--text-lg);
  color: var(--text-soft);
  max-width: 48ch;
  line-height: 1.6;
  margin-top: .8em;
}


/* ─────────────────────────────────────────────────────────
   5. BOTONES
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: .7em 1.4em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
}
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--bosque);
  color: var(--blanco);
  border-color: var(--bosque);
}
.btn--primary:hover { background: var(--bosque-700); border-color: var(--bosque-700); }

.btn--outline {
  background: transparent;
  color: var(--bosque);
  border-color: var(--bosque);
}
.btn--outline:hover { background: var(--bosque); color: var(--blanco); }

.btn--outline.btn--light {
  color: var(--crema);
  border-color: rgba(244,239,228,.4);
}
.btn--outline.btn--light:hover { background: rgba(244,239,228,.1); }

.btn--sm  { font-size: var(--text-xs); padding: .55em 1.1em; }
.btn--lg  { font-size: var(--text-base); padding: .85em 1.8em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bosque);
  margin-top: var(--sp-3);
  min-height: 44px;
  touch-action: manipulation;
}
.link-arrow:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────
   6. HEADER
───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--crema);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(17,40,29,.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: var(--sp-3);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--bosque);
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; margin-top: 2px; }
.brand-name { display: block; line-height: 1.1; }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-links a {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-soft);
  padding: .25em 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover,
.nav-links a.active { border-color: var(--hoja); color: var(--bosque); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .65rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  z-index: 60;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--bosque); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--crema); z-index: 55;
    flex-direction: column; justify-content: center;
    gap: var(--sp-4); font-size: 1.2rem;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; font-size: 1.05rem; }
}


/* ─────────────────────────────────────────────────────────
   7. HERO
───────────────────────────────────────────────────────── */
.hero {
  background: #dcd8cc;
  min-height: min(760px, calc(100vh - 70px));
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,239,228,.98) 0%, rgba(244,239,228,.9) 40%, rgba(244,239,228,.38) 72%, rgba(244,239,228,.16) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  display: block;
  position: static;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 790px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.hero-text.in { opacity: 1; transform: translateY(0); }

.hero-headline {
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 700;
  color: var(--bosque);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin-bottom: .5em;
}
.hero-headline span { display: block; white-space: nowrap; }

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  margin-top: 1.25rem;
}
.hero-proof li {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero-proof li::before {
  content: "✓";
  color: var(--bosque);
  font-weight: 800;
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .7s .15s cubic-bezier(.16,1,.3,1), transform .7s .15s cubic-bezier(.16,1,.3,1);
}
.hero-visual.in { opacity: 1; transform: translateX(0); }

.hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  opacity: .48;
}

.sector-strip {
  background: linear-gradient(90deg, var(--bosque-700), var(--bosque));
  color: var(--crema);
  padding: 1.15rem 0;
  border-top: 1px solid rgba(168,198,108,.16);
}
.sector-strip__inner { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.sector-strip p {
  color: var(--bosque-700);
  background: var(--hoja);
  border-radius: var(--r-pill);
  padding: .65rem 1rem;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sector-strip ul { display: flex; align-items: center; justify-content: center; gap: .55rem; width: auto; flex: 0 1 auto; }
.sector-strip li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(244,239,228,.86);
  border: 1px solid rgba(244,239,228,.14);
  background: rgba(244,239,228,.055);
  border-radius: var(--r-pill);
  padding: .55rem .78rem;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.sector-strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--hoja); opacity: .85; }

@media (max-width: 900px) {
  .sector-strip__inner { align-items: center; flex-direction: column; gap: .65rem; }
  .sector-strip ul { justify-content: center; flex-wrap: wrap; }
}

.hero-metrics {
  position: absolute;
  bottom: 4.5rem;
  left: auto;
  right: max(2rem, calc((100vw - var(--maxw)) / 2 + 2rem));
  transform: none;
  display: flex;
  gap: .75rem;
  width: auto;
  justify-content: center;
  z-index: 2;
}

.metric-pill {
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: .75rem .8rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255,255,255,.6);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .65rem;
  flex: 1;
  width: 174px;
  max-width: 174px;
  min-height: 66px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s;
  white-space: normal;
}
.hero-text.in ~ .hero-metrics .metric-pill:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.5s; }
.hero-text.in ~ .hero-metrics .metric-pill:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.65s; }
.hero-text.in ~ .hero-metrics .metric-pill:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.8s; }

.metric-pill__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--icon-green);
  color: var(--musgo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-pill__icon svg { width: 15px; height: 15px; }

.metric-pill__text {
  display: flex;
  flex-direction: column;
  gap: .1em;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
}

.metric-pill b {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 800;
  color: var(--bosque);
  letter-spacing: -.01em;
  line-height: 1.05;
  max-width: 100%;
  white-space: nowrap;
}
.metric-pill__text > span {
  font-size: .56rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .hero { min-height: 760px; align-items: flex-start; padding-top: 4.5rem; }
  .hero-text { max-width: 34rem; }
  .hero-headline span { white-space: normal; }
  .hero::before { background: linear-gradient(180deg, rgba(244,239,228,.98) 0%, rgba(244,239,228,.88) 52%, rgba(244,239,228,.35) 100%); }
  .hero-image { object-position: 62% center; opacity: .45; }
  .hero-metrics { left: 1.15rem; right: 1.15rem; bottom: 2.25rem; width: auto; }
}

@media (max-width: 600px) {
  .container { padding-left: 1.15rem; padding-right: 1.15rem; }
  .hero { padding-top: 3rem; }
  .hero-headline { font-size: clamp(2.65rem, 13vw, 3.35rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-proof { flex-direction: column; }
  .hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .metric-pill { width: auto; min-width: 0; max-width: none; padding: .7rem .55rem; border-radius: var(--r-md); }
  .metric-pill__icon { display: none; }
  .metric-pill__text { align-items: center; }
  .metric-pill b, .metric-pill span { text-align: center; }
  .metric-pill span { font-size: .55rem; }
}


/* ─────────────────────────────────────────────────────────
   8. EDITORIAL
───────────────────────────────────────────────────────── */
.editorial-split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: var(--sp-6);
  align-items: center;
}

.editorial-text h2 { margin-bottom: .6em; }
.editorial-text p { margin-bottom: var(--sp-2); }

.check-list {
  margin: var(--sp-2) 0;
  display: flex;
  flex-direction: column;
  gap: .5em;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: .65em;
  font-size: var(--text-sm);
  color: var(--text-soft);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--hoja);
  color: var(--bosque-700);
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.editorial-image { position: relative; }

.editorial-photo {
  width: 100%;
  height: 480px;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  display: block;
}

.float-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1rem;
  background: var(--bosque);
  color: var(--crema);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  min-width: 130px;
  box-shadow: var(--shadow-medium);
}
.float-badge__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hoja);
  line-height: 1;
}
.float-badge__text {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(244,239,228,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .3em;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .editorial-split { grid-template-columns: 1fr; }
  .float-badge { right: 1rem; }
}


/* ─────────────────────────────────────────────────────────
   9. MÉTRICAS
───────────────────────────────────────────────────────── */
.metrics-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.metrics-intro h2 { color: var(--blanco); margin-bottom: .5em; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.metric-big { text-align: center; }

.metric-big .val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--hoja);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: .3em;
  white-space: nowrap;
}
.metric-big .unit { font-size: .5em; }
.metric-big .label {
  font-size: var(--text-xs);
  color: rgba(244,239,228,.65);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .metrics-layout { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-2); }
  .metric-big .val { font-size: clamp(1.5rem, 11vw, 2.2rem); }
}


/* ─────────────────────────────────────────────────────────
   10. SERVICIOS
───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.card--service {
  background: var(--blanco);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-tight);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.card--service:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); }

.service-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--icon-default);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--musgo);
}
.service-icon svg { width: 20px; height: 20px; }

.service-icon--red    { background: #FBEAE3; color: #C4622A; }
.service-icon--blue   { background: var(--icon-blue);   color: #3B5FA0; }
.service-icon--neutral{ background: #EDEDE8; color: #3A3A33; }
.service-icon--green  { background: var(--icon-green);  color: var(--musgo); }
.service-icon--navy   { background: #E6ECF6; color: #2C4570; }

.service-body { flex: 1; }
.service-body h3 { font-size: .9rem; color: var(--bosque); margin-bottom: .35em; }
.service-body p  { font-size: .82rem; color: var(--text-muted); max-width: none; line-height: 1.5; }

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .75rem;
  width: 44px;
  height: 44px;
  margin-left: -.75rem;
  border-radius: 50%;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .15s, transform .15s;
}
.card--service:hover .service-arrow { color: var(--bosque); transform: translateX(3px); }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────────────────
   11. PROYECTOS
───────────────────────────────────────────────────────── */
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.projects-head h2 { margin: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.project-card {
  background: var(--blanco);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .2s;
}
.project-card:hover { box-shadow: var(--shadow-medium); }

.project-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card__img-wrap .img-after {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; right: 0;
  width: 50%;
  height: 100%;
  border-left: 2px solid var(--blanco);
  object-fit: cover;
}

.proj-badge {
  position: absolute;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .35em .85em;
  border-radius: var(--r-pill);
  background: var(--blanco);
  color: var(--carbono);
  box-shadow: var(--shadow-tight);
}
.proj-badge--before { left: 25%; }
.proj-badge--after  { left: 75%; right: auto; top: .75rem; }

.project-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.project-card__body h3 { font-size: .92rem; margin-bottom: .5em; }

.project-stats {
  display: flex;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.project-stats span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--crema);
  padding: .25em .6em;
  border-radius: var(--r-pill);
}

.project-card__body .link-arrow { margin-top: 0; }

@media (max-width: 860px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-head { flex-direction: column; align-items: flex-start; }
}


/* ─────────────────────────────────────────────────────────
   12. PROCESO — TIMELINE HORIZONTAL
───────────────────────────────────────────────────────── */
.process-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-5);
  align-items: center;
}

.process-intro h2 { margin-bottom: .6em; }
.process-intro p  { margin-bottom: var(--sp-3); }

.timeline-h {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  list-style: none;
  padding-top: 3rem;
}

/* Línea conectora */
.timeline-h::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0,
    var(--line-strong) 6px,
    transparent 6px,
    transparent 14px
  );
}

.timeline-h__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .5rem;
  position: relative;
}

.timeline-h__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--crema-alt);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--musgo);
  position: absolute;
  top: -3rem;
  z-index: 1;
}
.timeline-h__icon svg { width: 18px; height: 18px; }

.timeline-h__num {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  color: var(--musgo);
  letter-spacing: .06em;
  margin-bottom: .35em;
}

.timeline-h__item h4 {
  font-size: .82rem;
  color: var(--bosque);
  margin-bottom: .3em;
  line-height: 1.2;
}

.timeline-h__item p {
  font-size: .72rem;
  color: var(--text-muted);
  max-width: 14ch;
  margin: 0 auto;
  line-height: 1.45;
}

@media (max-width: 1060px) {
  .process-layout { grid-template-columns: 1fr; }
  .timeline-h {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5) 0;
    padding-top: 3.5rem;
  }
  .timeline-h::before { display: none; }
}
@media (max-width: 600px) {
  .timeline-h { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────────────────────────────────────────────
   13. SOSTENIBILIDAD
───────────────────────────────────────────────────────── */
.sustain-layout {
  display: grid;
  grid-template-columns: .82fr 1.48fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.sustain-col--text h2,
.sustain-col--text .eyebrow { text-align: left; }

.sustain-col--text .eyebrow {
  font-size: .8rem;
  text-transform: none;
  letter-spacing: .02em;
  color: var(--hoja);
  font-weight: 700;
}

.sustain-col--text h2 { color: var(--blanco); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .6em; }
.sustain-col--text > p:not(.eyebrow) { font-size: .95rem; max-width: 42ch; }

.sustain-checks {
  margin: var(--sp-3) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.sustain-checks li {
  position: relative;
  min-height: 112px;
  padding: 1rem .9rem 1rem 2.65rem;
  border: 1px solid rgba(244,239,228,.13);
  border-radius: var(--r-md);
  background: rgba(244,239,228,.055);
}
.sustain-checks li::before {
  content: "";
  position: absolute;
  left: .9rem;
  top: 1.05rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--hoja);
  box-shadow: inset 0 0 0 4px rgba(24,59,42,.18);
}
.sustain-checks li::after {
  content: "✓";
  position: absolute;
  left: 1.18rem;
  top: 1.02rem;
  color: var(--bosque-700);
  font-size: .72rem;
  font-weight: 900;
}
.sustain-checks strong {
  display: block;
  color: var(--blanco);
  font-size: .78rem;
  line-height: 1.3;
  margin-bottom: .35rem;
}
.sustain-checks span {
  display: block;
  color: rgba(244,239,228,.62);
  font-size: .68rem;
  line-height: 1.45;
}

.sustain-visual { position: relative; min-width: 0; }
.sustain-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, transparent 45%, rgba(17,40,29,.72) 100%);
  pointer-events: none;
}

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 31ch;
  margin: 0 0 .65em;
}

blockquote cite {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--hoja);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-style: normal;
}

.sustain-visual img {
  width: 100%;
  height: 520px;
  border-radius: var(--r-xl);
  object-fit: cover;
  object-position: center;
  display: block;
}
.sustain-quote {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 1;
}

@media (max-width: 960px) {
  .sustain-layout { grid-template-columns: 1fr; }
  .sustain-visual img { height: 440px; }
}
@media (max-width: 640px) {
  .sustain-layout { grid-template-columns: 1fr; }
  .sustain-checks { grid-template-columns: 1fr; }
  .sustain-checks li { min-height: auto; }
  .sustain-visual img { height: 420px; }
  .sustain-quote { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
}


/* ─────────────────────────────────────────────────────────
   14. FORMULARIO / CONTACTO
───────────────────────────────────────────────────────── */
/* Recursos */
.resources { overflow: hidden; }
.resources::after {
  content: "";
  position: absolute;
  width: 28rem; height: 28rem;
  border: 1px solid rgba(24,59,42,.08);
  border-radius: 50%;
  right: -12rem; top: -12rem;
  box-shadow: 0 0 0 4rem rgba(24,59,42,.025), 0 0 0 8rem rgba(24,59,42,.018);
  pointer-events: none;
}
.resources-layout { display: grid; grid-template-columns: .72fr 1.65fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; position: relative; z-index: 1; }
.resources .section-head { margin: 0; }
.resources .section-head p { margin: 1rem 0 1.5rem; }
.resources .section-head .link-arrow { margin-top: .25rem; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.resource-card {
  min-height: 18rem;
  padding: 1.65rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--musgo);
  background: rgba(255,255,255,.58);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); border-color: rgba(24,59,42,.25); }
.resource-card > span { font-family: var(--font-display); color: var(--bosque); font-size: .76rem; font-weight: 800; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(168,198,108,.28); display: grid; place-items: center; margin-bottom: auto; }
.resource-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .6rem; }
.resource-card p { font-size: .84rem; line-height: 1.6; }
.resource-card small { display: block; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--musgo); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 900px) { .resources-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .resource-grid { grid-template-columns: 1fr; } .resource-card { min-height: 15rem; } }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px,.85fr) minmax(420px,1.7fr) minmax(210px,.75fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.contact-layout > * { min-width: 0; }

.contact-intro { padding-top: .5rem; }
.contact-intro h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .5em; }

.card {
  background: var(--blanco);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.contact-form-card { padding: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.field { display: flex; flex-direction: column; gap: .3em; }
.field--full { grid-column: 1 / -1; }
.field--trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .02em;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text);
  background: var(--crema);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .55em .8em;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  min-height: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--musgo);
  box-shadow: 0 0 0 3px rgba(95,127,96,.12);
}

.field textarea { resize: vertical; min-height: 72px; }

.form-submit { width: 100%; justify-content: center; }
.form-privacy {
  margin: .65rem 0 0;
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}
.form-privacy a { color: var(--bosque); text-decoration: underline; text-underline-offset: 2px; }

/* Páginas legales */
.legal-main { min-height: 70vh; padding: clamp(7rem, 12vw, 10rem) 0 var(--sp-6); }
.legal-document { max-width: 780px; }
.legal-document .eyebrow { margin-bottom: .8rem; }
.legal-document h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); margin-bottom: .35em; }
.legal-document .legal-updated { color: var(--text-soft); margin-bottom: 2.5rem; }
.legal-document h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 2rem 0 .6rem; }
.legal-document p, .legal-document li { color: var(--text-soft); line-height: 1.75; }
.legal-document ul { padding-left: 1.2rem; }
.legal-document a { color: var(--bosque); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-flex; margin-top: 2.5rem; }

.contact-why { background: var(--bosque); border-color: var(--bosque); }
.contact-why h3 { color: var(--blanco); }
.contact-why .check-list li { color: rgba(244,239,228,.78); }

.form-status {
  margin-top: .5rem;
  font-size: var(--text-sm);
  color: var(--musgo);
  text-align: center;
  min-height: 1.5em;
}

.contact-why h3 { margin-bottom: .75rem; font-size: .95rem; }
.why-list li { font-size: .82rem; }

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────────────────
   15. FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bosque);
  color: var(--crema);
  padding: var(--sp-5) 0 var(--sp-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(244,239,228,.12);
}

.footer-brand .brand { color: var(--crema); margin-bottom: .6rem; }
.footer-brand .brand-name { color: var(--crema); }
.footer-brand p { font-size: .82rem; color: rgba(244,239,228,.6); max-width: 24ch; }

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(244,239,228,.1);
  color: rgba(244,239,228,.7);
  font-size: .72rem;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--hoja); color: var(--bosque); }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(244,239,228,.45);
  margin-bottom: .8rem;
}

.site-footer ul { display: flex; flex-direction: column; gap: .4em; }
.site-footer ul li a {
  font-size: .82rem;
  color: rgba(244,239,228,.65);
  transition: color .15s;
}
.site-footer ul li a:hover { color: var(--crema); }
.site-footer ul li:not(:has(a)) {
  font-size: .82rem;
  color: rgba(244,239,228,.45);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  font-size: .75rem;
  color: rgba(244,239,228,.4);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-legal { display: flex; gap: var(--sp-3); }
.footer-legal a { color: rgba(244,239,228,.4); }
.footer-legal a:hover { color: rgba(244,239,228,.8); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer ul li a,
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 0; }
}


/* ─────────────────────────────────────────────────────────
   16. BACK TO TOP
───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bosque);
  color: var(--crema);
  border: 2px solid var(--crema);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .15s;
  z-index: 40;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--bosque-700); }
.back-to-top svg { width: 18px; height: 18px; }


/* ─────────────────────────────────────────────────────────
   17. ANIMACIONES
───────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
[data-stagger].in > *:nth-child(1)  { opacity:1; transform:none; transition-delay:.05s; }
[data-stagger].in > *:nth-child(2)  { opacity:1; transform:none; transition-delay:.12s; }
[data-stagger].in > *:nth-child(3)  { opacity:1; transform:none; transition-delay:.19s; }
[data-stagger].in > *:nth-child(4)  { opacity:1; transform:none; transition-delay:.26s; }
[data-stagger].in > *:nth-child(5)  { opacity:1; transform:none; transition-delay:.33s; }
[data-stagger].in > *:nth-child(6)  { opacity:1; transform:none; transition-delay:.40s; }


/* ─────────────────────────────────────────────────────────
   18. ACCESIBILIDAD
───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--hoja);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-text, .hero-visual { opacity:1 !important; transform:none !important; }
  .metric-pill { opacity:1 !important; transform:none !important; }
  [data-reveal], [data-stagger] > * { opacity:1 !important; transform:none !important; }
}

@media (hover: none) {
  .btn:hover,
  .card--service:hover,
  .project-card:hover,
  .resource-card:hover { transform: none; }
}

@media (max-width: 600px) {
  .field input,
  .field select,
  .field textarea { font-size: 1rem; }
  .footer-legal { width: 100%; flex-wrap: wrap; gap: .75rem 1.25rem; }
}

:focus-visible{outline:3px solid #d7a83b;outline-offset:3px;}
