/* Paleta: verde y negro tomados del logo. El verde solo se usa como acento. */
:root {
  --verde: #96BF31;
  --verde-texto: #55701A;
  --verde-suave: #EDF3DD;
  --tinta: #1D1D1B;
  --bosque: #17211B;
  --crema: #F6F5F0;
  --arena: #ECEAE1;
  --blanco: #FFFFFF;
  --gris: #5C5F58;
  --radio: 22px;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Figtree, system-ui, sans-serif; background: var(--crema); color: var(--tinta); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--blanco); padding: 10px 16px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.3rem; }
em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; font-size: 1.1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.lead { font-size: 1.2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 99px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--tinta); color: var(--blanco); }
.btn-dark span { color: var(--verde); }
.btn-light { background: var(--blanco); border-color: rgba(29,29,27,.12); }
.btn-accent { background: var(--verde); color: var(--tinta); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Navegación */
:root { --margen: clamp(22px, 6.5vw, 104px); }
.nav { position: fixed; inset: 14px 14px auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 20px; border-radius: 99px; border: 1px solid transparent; max-width: 1220px; margin-inline: auto; transition: background .25s, box-shadow .25s; }
/* El fondo aparece al hacer scroll (o al abrir el menú en celular). */
.nav.solid, .nav.open { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(23,33,27,.1); }
.nav-logo { display: grid; justify-items: start; align-items: center; }
.nav-logo img { grid-area: 1 / 1; height: auto; }
.logo-color { width: 116px; visibility: hidden; }
.logo-claro { width: 108px; margin-left: 4px; }
.nav.solid .logo-color, .nav.open .logo-color { visibility: visible; }
.nav.solid .logo-claro, .nav.open .logo-claro { visibility: hidden; }
.nav-menu { display: flex; gap: 6px; }
.nav-menu a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 99px; }
.nav-menu a:hover { background: var(--verde-suave); }
/* Arriba del todo, sobre el Hero: sin fondo, en blanco y alineado con los textos. */
.nav:not(.solid):not(.open) { color: #fff; max-width: none; padding-left: calc(var(--margen) - 19px); padding-right: calc(var(--margen) - 15px); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.nav:not(.solid):not(.open) .nav-menu a:hover { background: rgba(255,255,255,.18); }
.nav:not(.solid):not(.open) .nav-cta { background: var(--blanco); color: var(--tinta); text-shadow: none; }
.nav-toggle { display: none; }
.nav-cta { min-height: 44px; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; background: #17262A; }
#paisaje { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.marco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
@media (max-aspect-ratio: 1/1) { .marco img { object-fit: fill; } }
/* Cada capa del Hero se dibuja aparte para que el scroll no tenga que repintarlas. */
#paisaje, .marco img, .sombra, .hero-copy { will-change: transform; }
/* Oscurece las esquinas donde va el texto blanco para que se lea sobre cualquier parte del paisaje. */
.sombra { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(56% 46% at 6% 24%, rgba(9,16,17,.72), rgba(9,16,17,.44) 55%, transparent 100%),
  radial-gradient(62% 44% at 94% 74%, rgba(9,16,17,.62), rgba(9,16,17,.36) 55%, transparent 100%),
  linear-gradient(transparent 62%, rgba(9,16,17,.72)); }

.sombra::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(rgba(9,16,17,.66), rgba(9,16,17,.34) 55%, transparent); }

/* Composición tipográfica del Hero */
.hero-copy { position: absolute; inset: 0; color: #fff; }
.hero h1 { font-size: clamp(2.3rem, min(5.8vw, 10vh), 6.2rem); line-height: 1.02; letter-spacing: -0.025em; text-shadow: 0 2px 28px rgba(0,0,0,.35); }
.t-a, .t-b { position: absolute; white-space: nowrap; }
.t-a { left: var(--margen); top: 17%; }
.t-b { right: var(--margen); bottom: 118px; text-align: right; }
.hero-note { position: absolute; left: var(--margen); bottom: 34px; width: min(310px, 27vw); font-size: .9rem; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.note-title { font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin-bottom: 24px; position: relative; }
.note-title::after { content: ""; position: absolute; left: 0; bottom: -13px; width: 34px; height: 3px; background: var(--verde); }
.hero-foot { position: absolute; right: var(--margen); bottom: 34px; display: flex; align-items: center; gap: 28px; border-top: 1px solid rgba(255,255,255,.45); padding-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-foot a { text-decoration: none; white-space: nowrap; }
.hero-foot a:hover { color: var(--verde); }
.motion { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.55); cursor: pointer; }
.motion:hover { background: #fff; color: var(--tinta); }
.motion svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: currentColor; }
.motion .i-play, .motion.paused .i-pause { visibility: hidden; }
.motion.paused .i-play { visibility: visible; }

/* Pantallas medianas y celular: el texto se apila para no encimarse. */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(2rem, min(8.4vw, 8vh), 4.2rem); }
  .t-a { top: 15%; }
  .t-b { bottom: 238px; }
  .hero-note { bottom: 104px; width: min(360px, calc(100% - 2 * var(--margen))); }
  .hero-foot { left: var(--margen); bottom: 22px; }
  .motion { margin-left: auto; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: min(10.4vw, 6.8vh); }
  .t-b { bottom: 216px; }
  .note-title { display: none; }
  .hero-foot { gap: 16px; font-size: .7rem; letter-spacing: .04em; }
  .sombra { background: linear-gradient(rgba(9,16,17,.7), rgba(9,16,17,.38) 30%, transparent 44%, rgba(9,16,17,.5) 60%, rgba(9,16,17,.82)); }
}

@media (max-width: 360px) {
  .hero-foot { gap: 10px; font-size: .64rem; letter-spacing: .02em; }
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Entrada: el logo aparece, se levanta el telón y el Hero se acomoda. */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 50; background: var(--crema); clip-path: inset(0); animation: telon .9s cubic-bezier(.77,0,.18,1) 1.05s forwards; }
.intro div { overflow: hidden; }
.intro img { width: min(220px, 52vw); height: auto; animation: subir .8s cubic-bezier(.16,1,.3,1) .12s backwards; }
.l, .l > span { display: block; }
.intro-on #paisaje, .intro-on .marco img { animation: alejar 2.2s cubic-bezier(.16,1,.3,1) 1.05s backwards; }
.intro-on .l { animation: recorte 3.3s linear; }
.intro-on .l > span { animation: subir 1.1s cubic-bezier(.16,1,.3,1) backwards; }
.intro-on .t-a .l:nth-child(1) > span { animation-delay: 1.45s; }
.intro-on .t-a .l:nth-child(2) > span { animation-delay: 1.57s; }
.intro-on .t-b .l:nth-child(1) > span { animation-delay: 1.8s; }
.intro-on .t-b .l:nth-child(2) > span { animation-delay: 1.92s; }
.intro-on .nav { animation: bajar .9s cubic-bezier(.16,1,.3,1) 1.7s backwards; }
.intro-on .hero-note, .intro-on .hero-foot { animation: aparecer .9s cubic-bezier(.16,1,.3,1) 2.2s backwards; }
@keyframes telon { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes subir { from { transform: translateY(125%); } }
@keyframes recorte { from, to { clip-path: inset(-.15em -.3em -.22em); } }
@keyframes alejar { from { scale: 1.22; } }
@keyframes bajar { from { opacity: 0; translate: 0 -24px; } }
@keyframes aparecer { from { opacity: 0; translate: 0 18px; } }

/* Títulos y párrafos que suben línea por línea al entrar en pantalla (los prepara main.js). */
.w { display: inline-block; clip-path: inset(-.15em -.2em -.18em -.15em); }
.wi { display: inline-block; transform: translateY(125%); transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .9s ease; }
.reveal-soft .wi { transform: translateY(70%); opacity: 0; }
.reveal.in .wi { transform: none; opacity: 1; }
.reveal.done .w { clip-path: none; }

/* Secciones */
.section { padding-block: clamp(72px, 9vw, 128px); scroll-margin-top: 40px; }
.section + .section:not(.ink) { padding-top: clamp(32px, 4vw, 56px); }
.section.ink + .section { padding-top: clamp(72px, 9vw, 128px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-head > p { max-width: 360px; color: var(--gris); }

.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about-text .eyebrow { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .9rem; padding: 7px 14px; border-radius: 99px; background: var(--blanco); border: 1px solid var(--arena); }
.about-photo { position: relative; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 4.4; clip-path: inset(0 var(--recorte, 0px) round var(--radio)); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.about-photo figcaption { position: absolute; left: calc(14px + var(--recorte, 0px)); bottom: 14px; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.9); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; }
.stats > div { border-top: 1px solid #D5D3C8; padding-top: 20px; position: relative; }
.stats > div::before { content: ""; position: absolute; top: -2px; left: 0; width: 36px; height: 3px; background: var(--verde); }
.stats dt { font-weight: 600; }
.stats dt b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; }
.stats dd { color: var(--gris); font-size: .93rem; margin-top: 6px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--blanco); padding: 28px; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.card.wide { grid-column: span 2; }
.card p { margin-top: 10px; color: var(--gris); }
.card .num { font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--verde-texto); }
.card-ink { background: var(--bosque); color: var(--blanco); }
.card-ink p { color: #C5CDC6; }
.card-ink .num { color: var(--verde); }
.card-photo { justify-content: flex-end; color: var(--blanco); background: var(--bosque); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(13,20,16,.9)); }
.card-photo div { position: relative; z-index: 1; max-width: 520px; }
.card-photo p { color: #E4E8E4; }
/* Al pasar el cursor, la foto se acerca despacio dentro de su marco. */
@media (hover: hover) {
  .card-photo img { transition: transform 1s cubic-bezier(.4,0,.1,1); }
  .card-photo:hover img { transform: scale(1.04); }
}
.card:nth-child(2) { background: var(--arena); }

.ink { background: var(--bosque); color: var(--blanco); }
.business { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.business .lead { color: #C5CDC6; margin: 24px 0 32px; }
.steps { counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding-block: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li::before { content: counter(paso); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--verde); color: var(--verde); font-weight: 600; }
.steps p { color: #C5CDC6; margin-top: 6px; }

/* Carrusel */
.arrows { display: flex; gap: 10px; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #D5D3C8; background: var(--blanco); font-size: 1.2rem; cursor: pointer; color: var(--tinta); }
.arrows button:hover:not(:disabled) { background: var(--tinta); color: var(--verde); }
.arrows button:disabled { opacity: .35; cursor: default; }
.carousel { --lado: max(20px, (100% - 1180px) / 2); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--lado) 8px; scroll-padding-inline: var(--lado); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.project { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; }
.project img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radio); margin-bottom: 18px; background: var(--arena); }
.project .meta { font-size: .85rem; font-weight: 600; color: var(--verde-texto); margin-bottom: 8px; }
.project h3 { margin-bottom: 8px; }
.project p:last-child { color: var(--gris); }
.progress { height: 3px; background: #DDDBD1; margin-top: 32px; border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--verde); }
.allies { margin-top: 56px; text-align: center; }
.allies p { font-size: .9rem; color: var(--gris); margin-bottom: 18px; }
.allies ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; font-weight: 700; font-size: 1.1rem; color: #4A4D46; }

.cta { background: var(--blanco); border-radius: 32px; padding: clamp(48px, 7vw, 96px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { max-width: 760px; }
.cta p { color: var(--gris); }

/* Footer */
.footer { background: var(--tinta); color: #C9CAC5; padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { width: 190px; height: auto; margin-bottom: 18px; }
.footer h3 { color: var(--blanco); font-size: 1rem; margin-bottom: 14px; }
.footer nav, .footer address { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--verde); }
.bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; font-size: .85rem; color: #9A9C95; }

@media (max-width: 900px) {
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; }
  .nav-toggle svg { grid-area: 1 / 1; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
  .nav.solid .nav-toggle svg, .nav.open .nav-toggle svg { filter: none; }
  .nav-toggle .i-close, .nav.open .nav-toggle .i-menu { visibility: hidden; }
  .nav.open .nav-toggle .i-close { visibility: visible; }
  .nav-menu { display: none; width: 100%; flex-direction: column; padding-bottom: 6px; }
  .nav.open { background: #fff; }
  .nav.open .nav-menu { display: flex; }
  .about, .business { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
