/* Latitud Arquitectura y Construcción — estilos del sitio
   Tokens tomados del administrador de marca (manual 2025). */

@font-face { font-family: "Astoria Roman"; src: url("../fonts/astoria-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Osnova Pro"; src: url("../fonts/osnova-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Osnova Pro"; src: url("../fonts/osnova-pro-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Paleta oficial */
  --verde-bosque: #2E4039;
  --carbon: #383838;
  --piedra: #AFA9A1;
  --blanco-hueso: #F8F6F2;
  --terracota: #B08A5D;
  --verde-salvia: #B2B8A3;
  --oro-simbolo: #DEB171;
  /* Roles */
  --surface: var(--blanco-hueso);
  --surface-raised: #FFFFFF;
  --ink: var(--carbon);
  --ink-heading: var(--verde-bosque);
  --ink-muted: #66615B;
  --accent-text: #86673F;
  --line: var(--piedra);
  --line-strong: #8C857C;
  --band: var(--terracota);
  --scrim: rgba(56, 56, 56, 0.55);
  /* Tipografía */
  --font-display: "Astoria Roman", Optima, Candara, "Segoe UI", sans-serif;
  --font-text: "Osnova Pro", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  /* Espacio y forma */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 4px; --radius-md: 12px; --radius-lg: 24px; --radius-hoja: 40px;
  --shadow-card: 0 1px 2px rgba(56, 56, 56, 0.06), 0 8px 24px rgba(56, 56, 56, 0.08);
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 28px; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 4px; }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--verde-bosque); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--oro-simbolo); }

.skip-link { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--verde-bosque); color: var(--blanco-hueso); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-12); } }
.section { padding: var(--space-16) 0; }
@media (min-width: 900px) { .section { padding: var(--space-24) 0; } }

/* Tipografía */
.kicker { font-family: var(--font-text); font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-3); }
.h1, .h2 { font-family: var(--font-display); font-weight: 400; color: var(--ink-heading); }
.h2 { font-size: 30px; line-height: 38px; }
@media (min-width: 768px) { .h2 { font-size: 40px; line-height: 48px; } }
.h3 { font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 30px; color: var(--ink); }
.lead { font-size: 19px; line-height: 30px; margin-top: var(--space-4); }
@media (min-width: 768px) { .lead { font-size: 20px; line-height: 32px; } }
.muted { color: var(--ink-muted); }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { width: 64px; height: 2px; background: var(--band); border: 0; margin: var(--space-6) 0 0; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-text); font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--verde-bosque); color: var(--blanco-hueso); }
.btn--primary:hover { background: #243530; }
.btn--light { background: var(--blanco-hueso); color: var(--verde-bosque); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(248, 246, 242, .75); color: var(--blanco-hueso); background: transparent; }
.btn--outline-light:hover { background: rgba(248, 246, 242, .12); }
.btn--secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--secondary:hover { border-color: var(--verde-bosque); color: var(--verde-bosque); }

/* Encabezado */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s, box-shadow .3s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(28, 33, 31, .55), rgba(28, 33, 31, 0)); pointer-events: none; transition: opacity .3s; z-index: -1; }
.site-header.is-solid::before, .site-header.is-open::before { opacity: 0; }
.site-header.is-solid, .site-header.is-open { background: var(--verde-bosque); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand img { width: 150px; height: auto; }
@media (min-width: 1024px) { .brand img { width: 170px; } }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-top: var(--space-4); color: var(--blanco-hueso); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-decoration: none; border-radius: var(--radius-sm); }
.lang-switch:hover { color: var(--oro-simbolo); }
@media (min-width: 1024px) { .lang-switch { margin: 0 0 0 calc(-1 * var(--space-4)); } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--blanco-hueso); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.site-nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--verde-bosque); padding: var(--space-4) var(--space-4) var(--space-8); display: none; }
.site-header.is-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: var(--space-3) 0; color: var(--blanco-hueso); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(248, 246, 242, .12); }
.site-nav .btn { margin-top: var(--space-6); width: 100%; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: var(--space-8); background: none; padding: 0; }
  .site-nav ul { display: flex; gap: var(--space-6); }
  .site-nav a { padding: var(--space-2) 0; border: 0; font-size: 13px; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--oro-simbolo); transition: right .25s; }
  .site-nav a:hover::after, .site-nav a[aria-current="true"]::after { right: 0; }
  .site-nav .btn { margin: 0; width: auto; min-height: 42px; padding: var(--space-2) var(--space-6); }
}

/* Héroe */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--blanco-hueso); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(46, 64, 57, .88) 0%, rgba(56, 56, 56, .55) 50%, rgba(56, 56, 56, .3) 100%); }
.hero__body { position: relative; z-index: 2; padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: calc(16px + clamp(64px, 16vh, 200px)); }
.hero .kicker { color: var(--oro-simbolo); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 52px; color: var(--blanco-hueso); max-width: 12ch; }
@media (min-width: 768px) { .hero__title { font-size: 72px; line-height: 76px; } }
@media (min-width: 1200px) { .hero__title { font-size: 88px; line-height: 92px; } }
.hero__lead { font-size: 19px; line-height: 30px; max-width: 34ch; margin-top: var(--space-6); }
@media (min-width: 768px) { .hero__lead { font-size: 21px; line-height: 33px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.band { height: 16px; background: var(--band); }
.hero .band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

/* Historia */
.story { background: var(--surface) url("../img/textura-piedra.webp") center / 600px repeat; }
.story__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 5fr 6fr; gap: var(--space-16); } }
.story__media { position: relative; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-hoja) 0 0 0; }
.story__media::after { content: ""; position: absolute; right: calc(-1 * var(--space-4)); bottom: calc(-1 * var(--space-4)); width: 45%; height: 45%; border-right: 2px solid var(--band); border-bottom: 2px solid var(--band); z-index: -1; }
.story__text p + p { margin-top: var(--space-4); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: 48px; line-height: 52px; color: var(--verde-bosque); }
.stat__label { font-size: 14px; line-height: 22px; color: var(--ink-muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: var(--space-1); }

.values { list-style: none; padding: 0; margin-left: 0; margin-right: 0; display: grid; gap: var(--space-8) var(--space-6); margin-top: var(--space-16); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { border-top: 1px solid var(--line); padding-top: var(--space-4); position: relative; }
.value::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--band); transform: rotate(45deg); }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 30px; color: var(--ink-heading); margin: var(--space-2) 0; }
.value p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* El bosque (sección oscura) */
.forest { background: var(--verde-bosque); color: var(--blanco-hueso); }
.forest .h2 { color: var(--blanco-hueso); }
.forest .kicker { color: var(--oro-simbolo); }
.stages { display: grid; gap: var(--space-8); counter-reset: etapa; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); } .stage__media { aspect-ratio: 4 / 5; } }
.stage { counter-increment: etapa; }
.stage__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--carbon); }
.stage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.stage__media img.is-active { opacity: 1; }
.stage__caption { position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 2; background: rgba(56, 56, 56, .78); color: var(--blanco-hueso); font-size: 13px; line-height: 18px; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); }
.stage__body { padding-top: var(--space-6); }
.stage__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--blanco-hueso); display: flex; align-items: baseline; gap: var(--space-3); }
.stage__body h3::before { content: "0" counter(etapa); font-family: var(--font-text); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--oro-simbolo); }
.stage__body p { margin-top: var(--space-2); color: var(--blanco-hueso); opacity: .92; }

/* Servicios */
.services { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__body { padding: var(--space-6); }
.service__body p { margin-top: var(--space-2); color: var(--ink-muted); }
.more-services { margin-top: var(--space-16); display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .more-services { grid-template-columns: 4fr 8fr; align-items: start; } }
.more-services__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--space-8); counter-reset: srv; }
@media (min-width: 640px) { .more-services__list { grid-template-columns: 1fr 1fr; } }
.more-services__list li { counter-increment: srv; display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.more-services__list li::before { content: counter(srv, decimal-leading-zero); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--accent-text); padding-top: 3px; }
.more-services__list strong { display: block; font-size: 18px; line-height: 26px; }
.more-services__list span { display: block; font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* Cita */
.quote { background: var(--verde-salvia); }
.quote blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote p { font-family: var(--font-display); font-size: 28px; line-height: 38px; color: var(--carbon); }
@media (min-width: 768px) { .quote p { font-size: 36px; line-height: 48px; } }
.quote footer { margin-top: var(--space-6); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-bosque); }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter { min-height: 44px; padding: var(--space-2) var(--space-6); border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.filter:hover { border-color: var(--verde-bosque); }
.filter[aria-pressed="true"] { background: var(--verde-bosque); border-color: var(--verde-bosque); color: var(--blanco-hueso); }
.projects { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project[hidden] { display: none; }
.project__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.project__media { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--piedra); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project__media .project__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease, transform .6s ease; }
.project__media .project__layer.is-in { opacity: 1; }
.project__btn:hover .project__media img, .project__btn:focus-visible .project__media img { transform: scale(1.04); }
.project__count { white-space: nowrap; position: absolute; right: var(--space-3); bottom: var(--space-3); background: rgba(56, 56, 56, .82); color: var(--blanco-hueso); font-size: 13px; line-height: 18px; padding: var(--space-1) var(--space-3); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.project__count svg { width: 14px; height: 14px; }
.project__title { display: block; font-family: var(--font-display); font-size: 26px; line-height: 32px; color: var(--ink-heading); margin-top: var(--space-4); }
.project__meta { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); margin-top: var(--space-1); }

/* Galería (lightbox) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1C211F; color: var(--blanco-hueso); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); }
.lightbox__title { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.lightbox__counter { font-size: 14px; opacity: .85; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--space-4); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(248, 246, 242, .4); background: rgba(56, 56, 56, .6); color: var(--blanco-hueso); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(56, 56, 56, .9); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--space-4); } .lb-next { right: var(--space-4); }
.lightbox__thumbs { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-4) var(--space-6); justify-content: safe center; }
.lightbox__thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--oro-simbolo); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Contacto */
.contact { background: var(--carbon); color: var(--blanco-hueso); }
.contact__grid { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: var(--space-16); } }
.contact .h2 { color: var(--blanco-hueso); }
.contact .kicker { color: var(--oro-simbolo); }
.contact-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--blanco-hueso); text-decoration: none; font-size: 18px; }
.contact-list a:hover { color: var(--oro-simbolo); }
.contact-list svg { width: 22px; height: 22px; color: var(--oro-simbolo); flex: none; }
.form-card { background: var(--blanco-hueso); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); }
@media (min-width: 768px) { .form-card { padding: var(--space-12); } }
.form-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; color: var(--ink-heading); }
.form-card > p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.form { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: 700; font-size: 14px; line-height: 20px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--verde-bosque); outline-offset: 1px; border-color: var(--verde-bosque); }
.field .error { color: #9B2C1F; font-size: 14px; line-height: 20px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: 15px; line-height: 24px; }
.form__status.is-ok { background: #E6ECDF; color: #2E4039; border: 1px solid var(--verde-salvia); }
.form__status.is-error { background: #F7E7E3; color: #8A2A1B; border: 1px solid #D9A99D; }
.form .btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.form .btn { justify-self: start; }

/* Pie */
.site-footer { background: var(--verde-bosque); color: var(--blanco-hueso); }
.site-footer .container { display: grid; gap: var(--space-8); padding-top: var(--space-12); padding-bottom: var(--space-12); }
@media (min-width: 900px) { .site-footer .container { grid-template-columns: 4fr 3fr 3fr; } }
.site-footer img { width: 170px; }
.site-footer p, .site-footer li { font-size: 15px; line-height: 24px; }
.site-footer h2 { font-family: var(--font-text); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-simbolo); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--blanco-hueso); text-decoration: none; }
.site-footer a:hover { color: var(--oro-simbolo); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(248, 246, 242, .15); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); font-size: 14px; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1F7A4D; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #18633E; }

/* Página simple (privacidad, 404) */
.page-simple .site-header { background: var(--verde-bosque); position: sticky; top: 0; }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 48px; color: var(--ink-heading); margin-bottom: var(--space-6); }
.prose h2 { font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 30px; margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose li { margin-top: var(--space-2); }

/* Movimiento */
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bandGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__img { animation: heroZoom 2.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__body > * { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__body > :nth-child(1) { animation-delay: .25s; }
.hero__body > :nth-child(2) { animation-delay: .4s; }
.hero__body > :nth-child(3) { animation-delay: .6s; }
.hero__body > :nth-child(4) { animation-delay: .8s; }
.hero .band { transform-origin: left; animation: bandGrow 1.2s .9s cubic-bezier(.2, .7, .2, 1) both; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* La línea terracota crece al aparecer su bloque */
.rule { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .35s; }
.section-head--center .rule { transform-origin: center; }
.is-visible .rule { transform: scaleX(1); }

/* La foto de la historia se descubre de abajo hacia arriba */
.img-reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1) .1s, transform 1.6s cubic-bezier(.2, .7, .2, 1) .1s; }
.img-reveal.is-visible img { clip-path: inset(0 0 0 0); transform: none; }
.img-reveal::after { transform: translate(12px, 12px); opacity: 0; transition: transform .8s 1s, opacity .8s 1s; }
.img-reveal.is-visible::after { transform: none; opacity: 1; }

/* Valores: el rombo gira al entrar */
.value::before { transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0s) + .3s); transform: rotate(-135deg) scale(0); }
.value.is-visible::before { transform: rotate(45deg) scale(1); }

/* Micro-interacciones */
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn:active { transform: translateY(0); box-shadow: none; }
.service { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(56, 56, 56, .06), 0 18px 40px rgba(56, 56, 56, .14); }
.service img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.service:hover img { transform: scale(1.05); }
.service { isolation: isolate; }
.more-services__list li { transition: padding-left .3s; }
.more-services__list li:hover { padding-left: var(--space-2); }
.project__title { transition: color .2s; }
.project__btn:hover .project__title { color: var(--accent-text); }
.project__count { transition: transform .3s; }
.project__btn:hover .project__count { transform: translateY(-3px); }
.wa-float { animation: heroIn .6s 1.4s both; transition: transform .2s, background-color .2s; }
.wa-float:hover { transform: scale(1.08); }
.contact-list a svg { transition: transform .25s; }
.contact-list a:hover svg { transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .img-reveal img, .rule, .value::before, .img-reveal::after { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .value::before { transform: rotate(45deg) !important; }
}
