/* CNA · Comercializadora Nacional de Activos
   Paleta y tipografías tomadas del portafolio de servicios:
   verde profundo 0F3A20, verde hoja 5C9C6F, dorado C2A26A, cremas FAF9F5 / F2F0E9. */

:root {
  --green: #0f3a20;
  --green-2: #1b5b36;
  --green-deep: #0a2a17;
  --leaf: #5c9c6f;
  --leaf-soft: #e7f0e8;
  --gold: #c2a26a;
  --gold-ink: #86672c;
  --cream: #faf9f5;
  --sand: #f4f2ec;
  --white: #ffffff;

  --ink: #13231a;
  --ink-2: #4c5a51;
  --ink-3: #7a857e;
  --line: rgba(15, 58, 32, 0.1);

  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 58, 32, 0.05),
    0 18px 44px -20px rgba(15, 58, 32, 0.3);
  --blur: blur(22px) saturate(170%);

  --shadow-card: 0 1px 2px rgba(15, 58, 32, 0.04), 0 22px 50px -28px rgba(15, 58, 32, 0.28);

  --r-xl: 40px;
  --r-lg: 30px;
  --r-md: 20px;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header: 82px;
  --section: clamp(4.5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--green); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 90;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
}
.skip:focus { top: 0.75rem; }

/* ------------------------------------------------------------ layout -- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { --wrap: 940px; }

.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* ------------------------------------------------------------- texto -- */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.display,
.h1,
.h2,
.h3 {
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.045em; }
.h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.08; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.18; letter-spacing: -0.025em; }

/* La palabra en serif cursiva recoge el Georgia del portafolio. */
.display em,
.h1 em,
.h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--leaf);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.prose { color: var(--ink-2); text-wrap: pretty; }
.prose + .prose { margin-top: 1rem; }

.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ----------------------------------------------------------- botones -- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.92rem; }

.btn--primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px -12px rgba(15, 58, 32, 0.7);
}
.btn--primary:hover { background: var(--green-2); }

.btn--glass {
  background: var(--glass);
  color: var(--green);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.btn--cream { background: var(--cream); color: var(--green); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--green);
}
.link-arrow .arrow { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow--gold { color: var(--gold); }

/* ------------------------------------------------------------ navbar -- */

.site-header {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  view-transition-name: cabecera;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  width: min(100%, 1120px);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 9px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.is-scrolled .nav-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 58, 32, 0.06),
    0 22px 48px -22px rgba(15, 58, 32, 0.42);
}
/* Hilo de progreso de lectura en el borde inferior del navbar. */
.nav-shell::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transform-origin: left;
  transform: scaleX(var(--scroll, 0));
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.16em; color: var(--green); }
.brand-text small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); }

.nav { margin-inline: auto; }
.nav ul { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--green); background: rgba(15, 58, 32, 0.05); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; background: rgba(15, 58, 32, 0.08); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 58, 32, 0.07);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 6px; justify-items: center; }
.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.35s var(--ease);
}
.nav-open .nav-toggle-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: rgba(250, 249, 245, 0.86);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-open .mobile-menu { opacity: 1; }
.mobile-menu li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(60ms * var(--i, 0) + 80ms);
}
.nav-open .mobile-menu li { opacity: 1; transform: none; }
.mobile-menu li a {
  display: block;
  padding: 0.55rem 0;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a[aria-current="page"] { color: var(--leaf); }
.mobile-menu-foot { color: var(--ink-2); font-size: 0.95rem; line-height: 1.9; }

@media (max-width: 1000px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none; }
}

/* ------------------------------------------------- auras y cristal -- */

.aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aura::before,
.aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.aura::before {
  width: min(62vw, 720px);
  aspect-ratio: 1;
  left: -12%;
  top: -18%;
  background: radial-gradient(circle, rgba(92, 156, 111, 0.36), rgba(92, 156, 111, 0) 68%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.aura::after {
  width: min(56vw, 640px);
  aspect-ratio: 1;
  right: -10%;
  top: 8%;
  background: radial-gradient(circle, rgba(194, 162, 106, 0.34), rgba(194, 162, 106, 0) 68%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9%, 12%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10%, 10%, 0) scale(0.92); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.float { animation: float 7s ease-in-out infinite; }
.float--slow { animation-duration: 9s; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(1.2deg); }
}

/* -------------------------------------------------------- hero inicio -- */

.hero {
  position: relative;
  padding-top: calc(var(--header) + clamp(2.5rem, 7vh, 5rem));
  padding-bottom: clamp(2rem, 6vw, 5rem);
  text-align: center;
  overflow: clip;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 78%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  opacity: calc(1 - var(--hp, 0) * 1.4);
  transform: translate3d(0, calc(var(--hp, 0) * -48px), 0);
}
.hero-copy .lead { max-width: 40rem; }
.hero-copy .actions { justify-content: center; margin-top: 0.4rem; }

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 720px);
  /* Sube un poco para que la casa ya se vea en la primera pantalla. */
  margin: clamp(-3.25rem, -3.5vw, -0.5rem) auto 0;
  perspective: 1400px;
}
.hero-object {
  transform: rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 7deg))
    scale(calc(1 - var(--hp, 0) * 0.14)) translate3d(0, calc(var(--hp, 0) * 40px), 0);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.hero-object img { width: 100%; filter: drop-shadow(0 40px 46px rgba(15, 58, 32, 0.2)); }
.hero-ground {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 1%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 58, 32, 0.24), rgba(15, 58, 32, 0));
  filter: blur(10px);
  animation: ground 7s ease-in-out infinite;
  z-index: -1;
}
@keyframes ground { 50% { transform: scale(0.86); opacity: 0.6; } }

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border-radius: 999px;
  text-align: left;
  transform: translate3d(calc(var(--mx, 0) * var(--d, 12) * 1px),
      calc(var(--my, 0) * var(--d, 12) * 1px + var(--hp, 0) * var(--s, -60) * 1px), 0);
  transition: transform 0.6s var(--ease), box-shadow 0.3s;
  will-change: transform;
}
.chip:hover { box-shadow: inset 0 1px 0 #fff, 0 26px 50px -20px rgba(15, 58, 32, 0.45); }
.chip img { width: 46px; height: 46px; object-fit: contain; }
.chip b { display: block; font-size: 0.92rem; font-weight: 650; letter-spacing: -0.015em; color: var(--green); line-height: 1.2; }
.chip span { display: block; font-size: 0.74rem; color: var(--ink-3); line-height: 1.3; }
.chip--a { left: -9%; top: 16%; --d: 22; --s: -110; }
.chip--b { right: -11%; top: 38%; --d: -18; --s: -70; }
.chip--c { left: -3%; bottom: 12%; --d: 14; --s: -150; }

@media (max-width: 1040px) {
  .chip--a { left: 0; top: 4%; }
  .chip--b { right: 0; top: 34%; }
  .chip--c { left: 2%; bottom: 4%; }
}
@media (max-width: 640px) {
  /* minmax(0, 1fr): sin esto la columna crece hasta el ancho real de la imagen. */
  .hero-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin-top: 0.5rem; }
  .hero-object-wrap { order: -1; }
  .chip { position: relative; inset: auto; width: 100%; transform: none; }
}

/* ------------------------------------------------- hero de página -- */

.page-hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--header) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.page-hero-copy { display: grid; gap: 1.35rem; justify-items: start; }
.page-hero-copy .lead { max-width: 34rem; }
.page-hero-media { position: relative; display: grid; place-items: center; perspective: 1200px; }
.page-hero-media img {
  width: min(100%, 460px);
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 34px 40px rgba(15, 58, 32, 0.2));
}
.page-hero-media .tilt {
  transform: rotateX(calc(var(--my, 0) * -6deg)) rotateY(calc(var(--mx, 0) * 9deg));
  transition: transform 0.5s var(--ease);
}
.halo {
  position: absolute;
  width: 108%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.95) 0%, rgba(236, 244, 237, 0.7) 42%, rgba(236, 244, 237, 0) 100%);
  z-index: -1;
}

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .page-hero-media img { width: min(64%, 300px); max-height: 300px; }
}

/* ------------------------------------------- texto que se "llena" -- */

.statement {
  font-size: clamp(1.7rem, 4.3vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 650;
  color: var(--green);
  text-wrap: pretty;
}
.statement .w { opacity: 0.14; transition: opacity 0.3s linear; }
.statement-block { display: grid; gap: 1.75rem; justify-items: start; }

/* ------------------------------------------------ historia fijada -- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.story-stage {
  position: sticky;
  top: calc(50vh - min(40vh, 290px) + var(--header) / 2 - 12px);
  height: min(80vh, 580px);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--leaf-soft) 55%, #dfeadf 100%);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-card);
  overflow: hidden;
}
.story-visual {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 14%;
  opacity: 0;
  transform: scale(0.82) translate3d(0, 34px, 0) rotate(-6deg);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.story-visual.is-active { opacity: 1; transform: none; }
.story-visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(15, 58, 32, 0.22)); }
.story-count {
  position: absolute;
  left: 1.5rem;
  top: 1.4rem;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.story-dots { position: absolute; right: 1.5rem; top: 50%; z-index: 2; display: grid; gap: 0.5rem; transform: translateY(-50%); }
.story-dots i {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgba(15, 58, 32, 0.2);
  transition: height 0.5s var(--ease), background-color 0.4s;
}
.story-dots i.is-active { height: 26px; background: var(--green); }

.story-step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.1rem;
  opacity: 0.25;
  transition: opacity 0.6s ease;
}
.story-step.is-active { opacity: 1; }
.story-step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-ink);
}
.story-step-media { display: none; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding-block: 2rem; border-top: 1px solid var(--line); }
  .story-step:first-child { border-top: 0; padding-top: 0; }
  .story-step-media {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    width: 100%;
    height: 250px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--r-lg);
    background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--leaf-soft) 60%, #dfeadf 100%);
  }
  .story-step-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(15, 58, 32, 0.2)); }
}

/* -------------------------------------------------- tarjetas / bento -- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.bento > * { grid-column: span 6; }
.bento > .span-7 { grid-column: span 7; }
.bento > .span-5 { grid-column: span 5; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-12 { grid-column: span 12; }

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 380px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--sand);
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.section--sand .tile { background: var(--white); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tile-num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-ink); }
.tile p { color: var(--ink-2); max-width: min(30ch, 56%); text-wrap: pretty; }
.tile-media {
  position: absolute;
  right: -3%;
  bottom: -5%;
  width: 46%;
  max-width: 290px;
  z-index: -1;
  transition: transform 0.9s var(--ease);
}
.tile-media img { width: 100%; filter: drop-shadow(0 22px 24px rgba(15, 58, 32, 0.2)); }
.tile:hover .tile-media { transform: translate3d(-3%, -5%, 0) rotate(-4deg) scale(1.06); }
.tile--leaf { background: linear-gradient(160deg, #f1f6f1 0%, var(--leaf-soft) 100%); }
.tile--gold { background: linear-gradient(160deg, #faf5ea 0%, #f1e8d6 100%); }

@media (max-width: 860px) {
  .bento > *,
  .bento > .span-7,
  .bento > .span-5,
  .bento > .span-4 { grid-column: span 12; }
  .tile { min-height: 0; padding-bottom: 190px; }
  .tile p { max-width: 34ch; }
  .tile-media { width: 180px; right: 0; bottom: -8px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease);
}
.card:hover { transform: translateY(-6px); }
.card p { color: var(--ink-2); text-wrap: pretty; }
.card-num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--leaf-soft);
  font-family: var(--serif);
  font-style: italic;
  color: var(--green);
}

/* ----------------------------------------------- filas alternadas -- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature--flip .feature-media { order: 2; }
.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--leaf-soft) 58%, #dfeadf 100%);
  box-shadow: inset 0 1px 0 #fff;
  overflow: hidden;
}
.feature-media--gold { background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #f6efe0 58%, #ecdfc6 100%); }
.feature-media img { width: 62%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 30px 32px rgba(15, 58, 32, 0.22)); }
.feature-copy { display: grid; gap: 1.1rem; justify-items: start; }
.feature-copy .prose { font-size: 1.12rem; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature-media { aspect-ratio: 1 / 0.7; }
  .feature-media img { width: 46%; }
}

/* --------------------------------------------------- bloque verde -- */

.deep {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--r-xl);
  color: var(--cream);
  background: radial-gradient(110% 130% at 88% 8%, var(--green-2) 0%, var(--green) 52%, var(--green-deep) 100%);
  box-shadow: 0 40px 80px -40px rgba(15, 58, 32, 0.7);
  isolation: isolate;
}
.deep::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -14%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 162, 106, 0.3), rgba(194, 162, 106, 0) 66%);
  z-index: -1;
}
.deep-copy { display: grid; gap: 1.2rem; justify-items: start; }
.deep .eyebrow { color: var(--gold); }
.deep .h1, .deep .h2 { color: var(--cream); }
.deep .prose { color: rgba(250, 249, 245, 0.78); }
.deep-media { display: grid; place-items: center; }
.deep-media img { width: min(100%, 300px); filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.45)); }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote--big { font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.25; }

@media (max-width: 860px) {
  .deep { grid-template-columns: 1fr; }
  .deep-media { order: -1; justify-items: start; }
  .deep-media img { width: 150px; }
}

/* ------------------------------------------------------------ datos -- */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.fact { display: grid; gap: 0.35rem; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2vw, 2rem); background: var(--white); }
.section--sand .fact { background: var(--sand); }
.fact b { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------- misión y visión -- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.panel {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: clamp(1.8rem, 3.6vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--sand);
}
.panel .prose { font-size: 1.12rem; }
.panel--glassy { background: linear-gradient(160deg, #f1f6f1 0%, var(--leaf-soft) 100%); }
.panel-mark {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 58, 32, 0.22);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- valores -- */

.values { display: grid; }
.value {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 150px;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3.4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value-num { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--gold-ink); }
.value-copy { display: grid; gap: 0.5rem; }
.value-copy p { color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.value img { width: 150px; height: 130px; object-fit: contain; transition: transform 0.8s var(--ease); filter: drop-shadow(0 16px 18px rgba(15, 58, 32, 0.18)); }
.value:hover img { transform: scale(1.1) rotate(-5deg); }
@media (max-width: 700px) {
  .value { grid-template-columns: 2.6rem minmax(0, 1fr) 84px; align-items: start; }
  .value-num { line-height: 1.15; }
  .value img { width: 84px; height: 84px; }
}

/* -------------------------------------------------------- etiquetas -- */

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--green);
}

/* -------------------------------------------------------------- cta -- */

.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  text-align: center;
  background: var(--sand);
  isolation: isolate;
}
.section--sand .cta-card { background: var(--white); }
.cta-card .lead { max-width: 34rem; }
.cta-card .actions { justify-content: center; margin-top: 0.5rem; }
.cta-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48% 70% at 12% 0%, rgba(92, 156, 111, 0.28), transparent 70%),
    radial-gradient(46% 70% at 92% 100%, rgba(194, 162, 106, 0.3), transparent 70%);
}

/* ---------------------------------------------------------- contacto -- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.channels { display: grid; gap: 0.8rem; }
.channel {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.channel:hover { transform: translateX(6px); }
.channel-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--leaf-soft); color: var(--green); }
.channel-icon svg { width: 1.35rem; height: 1.35rem; }
.channel small { display: block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.channel b { display: block; font-weight: 600; letter-spacing: -0.01em; color: var(--green); overflow-wrap: anywhere; line-height: 1.35; }
.channel .arrow { width: 1.1rem; height: 1.1rem; color: var(--ink-3); }

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border-radius: var(--r-xl);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 58, 32, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(92, 156, 111, 0.22); }
.form-note { font-size: 0.85rem; color: var(--ink-3); }
.form .btn { justify-self: start; }
.btn svg { width: 1.2rem; height: 1.2rem; }

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

/* ------------------------------------------------------------ footer -- */

.site-footer { background: var(--sand); padding-top: clamp(3rem, 6vw, 5rem); font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.8fr 0.9fr 1.65fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer-brand p { max-width: 26ch; }
.site-footer h2 { margin-bottom: 0.9rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer li a { overflow-wrap: anywhere; transition: color 0.2s; }
.site-footer li a:hover { color: var(--green); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-3);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- whatsapp -- */

.wa {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -8px 16px -10px rgba(37, 211, 102, 0.35),
    0 18px 40px -16px rgba(15, 58, 32, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  view-transition-name: whatsapp;
}
.wa:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px -10px rgba(37, 211, 102, 0.5), 0 26px 50px -18px rgba(15, 58, 32, 0.55); }
.wa-copy {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0b5c37;
  opacity: 0;
  transition: max-width 0.55s var(--ease), opacity 0.35s, padding 0.55s var(--ease);
}
.wa:hover .wa-copy,
.wa:focus-visible .wa-copy,
.wa.is-open .wa-copy { max-width: 9rem; opacity: 1; padding-inline: 0.9rem 0.6rem; }
.wa-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 18%, #5ff09a 0%, #25d366 45%, #12b354 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 10px -4px rgba(0, 0, 0, 0.18),
    0 8px 18px -6px rgba(37, 211, 102, 0.7);
}
.wa-mark svg { position: relative; z-index: 1; width: 29px; height: 29px; animation: wa-bob 3.2s ease-in-out infinite; }
.wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-ring-2 { animation-delay: 0.9s; }
@keyframes wa-bob {
  0%, 60%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-4px) rotate(-8deg); }
  40% { transform: translateY(0) rotate(6deg); }
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
body.nav-open .wa { visibility: hidden; }

/* --------------------------------------------- animación al bajar -- */

/* Solo se define el estado oculto. Al entrar en pantalla el elemento vuelve a sus
   propios estilos, y main.js retira data-reveal al terminar para que el hover y
   el parallax de cada componente no hereden esta transición ni su retraso. */
.js [data-reveal] {
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 34px, 0); }
.js [data-reveal="scale"]:not(.is-in) { transform: scale(0.9) translate3d(0, 24px, 0); }
.js [data-reveal="left"]:not(.is-in) { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"]:not(.is-in) { transform: translate3d(48px, 0, 0); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }

[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* --------------------------------------- transición entre páginas -- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s ease both page-out; }
::view-transition-new(root) { animation: 0.5s var(--ease) both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

/* --------------------------------------------------------------- 404 -- */

.missing { min-height: 78vh; display: grid; place-items: center; text-align: center; padding-top: var(--header); }
.missing-inner { display: grid; justify-items: center; gap: 1.2rem; }
.missing img { width: 180px; }

/* ----------------------------------------------- menos movimiento -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  [data-parallax] { transform: none; }
  .statement .w { opacity: 1; }
  .story-step { opacity: 1; }
  @view-transition { navigation: none; }
}
