/* =============================================================
   ACCOVANCE — réplica fiel de Minimal.dc.html
   HTML/CSS/JS estático, sin frameworks.
   Los valores provienen de la maqueta original (prioridad de fidelidad).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --ac: #8BE04E;              /* acento (default de la maqueta) */
  --color-forest: #22261F;
  --color-forest-soft: #2C3326;
  --color-olive: #37462B;
  --color-olive-hover: #2A3620;
  --color-accent: #8BE04E;
  --color-accent-soft: #B7C99D;
  --color-cream: #F6F4EC;
  --color-paper: #F4F6F1;
  --color-line: #D9DED3;
  --color-text: #22261F;
  --color-text-muted: #5B6355;
  --color-white: #FFFFFF;
  --color-yellow: #F2A900;
  --color-yellow-soft: #FFD166;
  --color-label: #2E7D32;

  --font-sans: 'Inter', sans-serif;
  --font-grotesk: 'Space Grotesk', 'Inter', sans-serif;
  --header-h: 102px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-olive); }
a:hover { color: var(--color-olive-hover); }

img { max-width: 100%; }

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

/* Salto al contenido (visible solo con foco) */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ac);
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 60;
  background: var(--ac);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: scrollProgress linear;
  animation-timeline: scroll(root block);
}
@keyframes scrollProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.no-scroll-timeline .scroll-progress {
  animation: none;
  transform: scaleX(var(--progress, 0));
}

/* =============================================================
   Secciones y contenedores
   Fiel a la maqueta: padding 10vw, interior margin:0 auto (sin max-width).
   ============================================================= */
.section { padding: 10vw; }
.section--paper { background: var(--color-paper); }
.section--white { background: var(--color-white); }
.section--olive { background: var(--color-olive); position: relative; overflow: hidden; }
.section--accent { background: var(--ac); position: relative; overflow: hidden; }
.section-title, .contact-title, .valor-title, .hero-title { text-wrap: balance; }
.split__col--body p, .hv-row p, .step p, .sc-col p { text-wrap: pretty; }

.container { margin: 0 auto; }

/* Etiqueta de sección */
.eyebrow {
  display: inline-block;
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--color-label);
}
.eyebrow--accent { color: var(--ac); }

/* Utilidades */
.layer { position: relative; z-index: 1; }
.mb-40 { margin-bottom: 40px !important; }

/* Título de sección */
.section-title {
  margin: 44px 0 0;
  max-width: 760px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-olive);
}

.section-title--wide { max-width: 780px; }
.section-title--light { color: var(--color-cream); }

/* Bajada / subtítulo de sección */
.section-lead {
  margin: 22px 0 0;
  max-width: 560px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--color-text-muted);
}
.section-lead--light { color: var(--color-accent-soft); }
.split__col--title .section-lead { max-width: 420px; }

/* =============================================================
   Animaciones del logo y los trazos SVG
   ============================================================= */
.ac-glow { animation: acGlow 6s ease-in-out infinite; }
@keyframes acGlow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }

.ac-float { animation: acFloat 11s ease-in-out infinite; }
@keyframes acFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.ac-reveal {
  -webkit-mask-image: linear-gradient(115deg, #000 55%, transparent 75%);
  mask-image: linear-gradient(115deg, #000 55%, transparent 75%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  animation: acMask 3.4s cubic-bezier(.4,.7,.3,1) .4s both;
}
@keyframes acMask { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

.ac-trace { animation: acDraw 2.4s ease-out both; stroke-dasharray: 1000; }
@keyframes acDraw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

.ac-flow { animation: acFlow 4.5s linear infinite backwards; filter: drop-shadow(0 0 5px var(--ac)); }
@keyframes acFlow { 0% { stroke-dashoffset: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -1000; opacity: 0; } }

.ac-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: acPulse 2.4s ease-in-out infinite;
}
@keyframes acPulse { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }

.ac-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: acRing 3.2s ease-out infinite;
}
@keyframes acRing { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(4.2); opacity: 0; } }

/* =============================================================
   HERO + HEADER
   ============================================================= */
.hero {
  background: var(--color-olive);
  position: relative;
  overflow: hidden;
  /* El header (sticky) vive fuera del hero: se reserva su alto para
     mantener exactamente el mismo encuadre que cuando estaba dentro. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  min-height: auto;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  pointer-events: none;
}
.hero-a1 {
  width: 640px; height: 640px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(139,224,78,.36), rgba(139,224,78,0) 65%);
  animation: auroraA 16s ease-in-out infinite alternate;
}
.hero-a2 {
  width: 560px; height: 560px;
  right: -80px; bottom: -300px;
  background: radial-gradient(circle, rgba(95,211,141,.24), rgba(95,211,141,0) 65%);
  animation: auroraB 21s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translate(0,0) scale(1); } to { transform: translate(-100px,80px) scale(1.18); } }
@keyframes auroraB { from { transform: translate(0,0) scale(1); } to { transform: translate(120px,-70px) scale(1.22); } }

.hero-grid {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183,201,157,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183,201,157,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 85% at 82% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 85% at 82% 28%, #000 0%, transparent 78%);
  animation: gridIn 2.6s ease-out .2s both;
}
@keyframes gridIn { from { opacity: 0; } to { opacity: 1; } }

.hero-cursor {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx,72%) var(--my,28%), rgba(139,224,78,.17), rgba(139,224,78,0) 65%);
}

.hero-traces {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-logo {
  position: absolute;
  right: -90px; top: 50%; margin-top: -330px;
  width: 660px; height: 660px;
  pointer-events: none;
  transform: translate(var(--px,0px), var(--py,0px));
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.hero-logo__inner { position: relative; width: 100%; height: 100%; }
.hero-logo__img {
  width: 100%; height: 100%; display: block;
  opacity: 0.38;
  filter: drop-shadow(0 0 26px rgba(139,224,78,0.12));
}
.logo-sweep {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  -webkit-mask-image: url(../assets/logo.png);
  mask-image: url(../assets/logo.png);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background-image: linear-gradient(115deg, rgba(139,224,78,0) 42%, rgba(139,224,78,.5) 50%, rgba(139,224,78,0) 58%);
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: logoSweep 12s ease-in-out 4s infinite;
}
@keyframes logoSweep { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 auto;
  padding: 28px 10vw;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  transition: background-color .35s ease, padding .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(34, 38, 31, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: rgba(183, 201, 157, .18);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 40px; height: 40px;
  overflow: hidden; position: relative; flex: none;
}
.brand__mark img {
  position: absolute;
  width: 61px; max-width: none;
  left: -10px; top: -11px;
}
.brand__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--color-cream);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav__link {
  padding: 10px 0;
  text-decoration: none;
  color: #DDE9CB;
  transition: color .25s ease;
}
.nav__link.is-active { color: var(--ac); }
.nav__cta {
  text-decoration: none;
  background: var(--ac);
  color: var(--color-text);
  padding: 11px 22px;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .nav__link:hover { color: var(--ac); }
  .nav__cta:hover {
    background: #9BEA64;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(139, 224, 78, .22);
  }
}
.nav__cta:active { transform: translateY(0) scale(.97); }

/* Menú móvil (hamburguesa con <details>) */
.nav-menu { display: none; position: relative; }
.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  transition: background-color .25s ease;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.nav-menu > summary:hover { background: rgba(183, 201, 157, .12); }
.nav-menu__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
.nav-menu[open] .nav-menu__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu[open] .nav-menu__bar:nth-child(2) { opacity: 0; }
.nav-menu[open] .nav-menu__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 232px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--color-forest-soft);
  border: 1px solid rgba(183, 201, 157, .16);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  transform-origin: top right;
  animation: menuIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.nav-menu__link {
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-cream);
  transition: background-color .2s ease, color .2s ease;
}
.nav-menu__link.is-active { color: var(--ac); }
.nav-menu__link--cta {
  margin-top: 6px;
  text-align: center;
  background: var(--ac);
  color: var(--color-text);
  font-weight: 600;
}
@media (hover: hover) {
  .nav-menu__link:hover { background: rgba(183, 201, 157, .1); color: var(--ac); }
  .nav-menu__link--cta:hover { background: #9BEA64; color: var(--color-text); }
}

/* Contenido del hero */
.hero-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) 10vw clamp(88px, 12vw, 170px);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-eyebrow__line {
  width: 36px; height: 3px;
  background: var(--color-yellow);
}
.hero-eyebrow__text {
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--ac);
}
.hero-title {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}
.hero-title .accent-word { color: var(--ac); }
.hero-lead {
  margin: 36px 0 0;
  max-width: 620px;
  font-size: 20px;
  color: var(--color-accent-soft);
}
.hero-cta-row {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

/* Word-up (animación palabra por palabra) */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.hw > span {
  display: inline-block;
  animation: wordUp 1.05s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + var(--i) * .075s);
}
@keyframes wordUp { from { transform: translateY(115%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }

.hi-up { animation: hiUp .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hiUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hi-line { transform-origin: left center; animation: hiLine .9s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes hiLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hi-down { animation: hiDown .8s cubic-bezier(.2,.8,.2,1) .1s both; }
@keyframes hiDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* Botones */
.btn {
  display: inline-block;
  background: var(--ac);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 18px 44px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--dark { background: var(--color-olive); color: var(--color-white); }
.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border: 1.5px solid rgba(183, 201, 157, .5);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
  .btn--dark:hover { background: var(--color-forest-soft); color: var(--color-white); }
  .btn--ghost:hover { border-color: var(--ac); color: var(--ac); box-shadow: none; }
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-arrow { display: inline-block; margin-left: 10px; transition: transform .25s ease; }
a:hover .btn-arrow { transform: translateX(6px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: btnShine 5s ease-in-out infinite 3s;
}
@keyframes btnShine { 0% { left: -60%; } 35%, 100% { left: 140%; } }

/* =============================================================
   PROPUESTA DE VALOR
   ============================================================= */
.split {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 96px;
}
.split__col { min-width: 0; }
.split__col--title { flex: 1 1 380px; }
.split__col--body { flex: 1 1 420px; color: var(--color-text-muted); }

.valor-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-olive);
}
.split__col--body p { margin: 0 0 22px; }
.split__col--body p:last-child { margin-bottom: 0; }

.big-words-band {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(56px, 8vw, 110px) 10vw;
  background:
    radial-gradient(900px 460px at 88% -20%, rgba(139, 224, 78, .16), transparent 62%),
    radial-gradient(620px 420px at 0% 130%, rgba(95, 211, 141, .12), transparent 60%),
    var(--color-forest);
  border-top: 1px solid rgba(183, 201, 157, .16);
  border-bottom: 1px solid rgba(183, 201, 157, .16);
}
.big-words-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183, 201, 157, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 157, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 130% at 90% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 130% at 90% 0%, #000 0%, transparent 75%);
}
.big-words-band .big-words { position: relative; z-index: 1; }

.big-words {
  margin: clamp(56px, 7vw, 96px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 60px);
  letter-spacing: -0.02em;
  color: var(--color-olive);
}
.big-words-band .big-words {
  margin: 0;
  align-items: baseline;
  gap: 8px clamp(24px, 4vw, 56px);
  font-weight: 300;
  font-size: clamp(34px, 6vw, 82px);
  letter-spacing: -0.03em;
  color: var(--color-cream);
}
.big-words-band .big-words > span { position: relative; }
.big-words-band .big-words > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(12px, 2vw, 28px));
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(183, 201, 157, .55);
  transform: translateY(-50%);
}
.big-words .paint {
  background: none;
  padding: 0;
  border-radius: 0;
}
.big-words-band .paint {
  position: relative;
  color: var(--ac);
  font-weight: 300;
}
.big-words-band .paint::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 2px;
  background: var(--ac);
  border-radius: 2px;
  transform-origin: left center;
  animation: svPaint linear both;
  animation-timeline: view();
  animation-range: entry 30% entry 95%;
}
@keyframes svPaint { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Entrada palabra por palabra de la franja */
.big-words-band.sv-stag > .big-words > span,
.big-words-band .big-words > span {
  display: inline-block;
  animation: svWordUp .9s cubic-bezier(.2,.8,.2,1) both;
  animation-timeline: view();
  animation-range: entry 10% entry 45%;
}
.big-words-band .big-words > span:nth-child(2) { animation-range: entry 16% entry 51%; }
.big-words-band .big-words > span:nth-child(3) { animation-range: entry 22% entry 57%; }
@keyframes svWordUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* =============================================================
   Filas hover (servicios / diferencial)
   ============================================================= */
.rows { margin-top: 64px; }
.hv-row { position: relative; }
.hv-row h3 { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* Filas de Servicios (dos columnas: título + descripción) */
.hv-row--services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 64px;
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
}
.hv-row--services:last-child { border-bottom: 1px solid var(--color-line); }
.hv-row--services h3 {
  flex: 1 1 320px; min-width: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-olive);
}
.hv-row--services p {
  flex: 1 1 380px; min-width: 0;
  margin: 0;
  font-size: 17px;
  color: var(--color-text-muted);
}

/* Encabezado clicable (solo acordeón mobile) */
.hv-row__summary {
  display: contents;
  cursor: default;
  list-style: none;
}
.hv-row__summary::-webkit-details-marker { display: none; }
.hv-row__icon { display: none; }

.hv-row::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: var(--ac);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .hv-row:hover h3 { transform: translateX(12px); }
  .hv-row:hover::after { width: 100%; }
}

/* Filas del Diferencial (título y descripción apilados) */
.hv-row--stack { padding: 28px 0; border-top: 1px solid var(--color-line); }
.hv-row--stack:last-child { border-bottom: 1px solid var(--color-line); }
.hv-row--stack h3 {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  color: var(--color-olive);
}
.hv-row--stack p { margin: 0; font-size: 17px; color: var(--color-text-muted); }
.hv-col { flex: 2 1 480px; min-width: 0; }

.note {
  margin: 48px 0 0;
  max-width: 700px;
  font-size: 19px;
  font-weight: 500;
  color: var(--color-olive);
}

/* =============================================================
   MÉTODO
   ============================================================= */
.section--method {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(139, 224, 78, .14), transparent 62%),
    radial-gradient(620px 440px at 0% 120%, rgba(95, 211, 141, .12), transparent 60%),
    var(--color-forest);
  border-top: 1px solid rgba(183, 201, 157, .16);
  border-bottom: 1px solid rgba(183, 201, 157, .16);
}
.section--method::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183, 201, 157, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 157, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(85% 130% at 90% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(85% 130% at 90% 0%, #000 0%, transparent 75%);
}
.section--method > .container { position: relative; z-index: 1; }

.method { position: relative; margin-top: 64px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 44px 32px;
}
.step { position: relative; padding-top: 4px; }
.step__badge {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ac);
}
.step h3 {
  margin: 18px 0 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  color: var(--color-cream);
}
.step p { margin: 0; font-size: 16px; color: var(--color-accent-soft); }

/* =============================================================
   SECTORES
   ============================================================= */
.sectores-intro {
  max-width: 640px;
}
.sectores-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 48px 40px;
}
.sc-col { position: relative; padding-top: 24px; }
.sc-col::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ac);
  transform-origin: left center;
}
.sc-col h3 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-cream);
}
.sc-col p { margin: 0; font-size: 16px; color: var(--color-accent-soft); }

/* =============================================================
   INSTITUCIONAL (Accovance) + marquesina
   ============================================================= */
.quote-divider { width: 36px; height: 3px; background: var(--color-yellow); margin-bottom: 20px; }
.quote {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.45;
  color: var(--color-olive);
}
.split__col--body .quote-divider { margin-top: 40px; }

.mq {
  overflow: hidden;
  margin: clamp(56px, 7vw, 96px) -10vw 0;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 34s linear infinite;
}
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  color: var(--color-olive);
}
.mq-track span::after {
  content: "";
  width: 12px; height: 12px;
  margin: 0 clamp(28px, 3.5vw, 52px);
  background: var(--ac);
  border-radius: 3px;
  transform: rotate(45deg);
}
@keyframes mq { to { transform: translateX(-50%); } }

/* =============================================================
   CONTACTO
   ============================================================= */
.section--contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 90% 12%, rgba(139, 224, 78, .16), transparent 62%),
    radial-gradient(680px 560px at 4% 110%, rgba(95, 211, 141, .12), transparent 62%),
    var(--color-forest);
  border-top: 1px solid rgba(183, 201, 157, .16);
}
.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183, 201, 157, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 157, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(85% 130% at 90% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(85% 130% at 90% 0%, #000 0%, transparent 75%);
}
.contact-deco {
  position: absolute;
  right: -140px; bottom: -230px;
  width: 760px; max-width: none;
  opacity: 0.10;
  mix-blend-mode: screen;
  filter: saturate(1.3);
  pointer-events: none;
  z-index: 0;
}
.contact-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 56px 96px;
  align-items: flex-end;
}
.contact-main { flex: 1 1 100%; max-width: 720px; min-width: 0; }
.contact-main .eyebrow { margin-bottom: 20px; }
.contact-title {
  margin: 0 0 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}
.contact-lead { margin: 0 0 16px; font-size: 21px; font-weight: 500; color: var(--color-cream); }
.contact-text { margin: 0 0 40px; color: var(--color-accent-soft); }
.contact-side { flex: 1 1 320px; min-width: 0; color: var(--color-cream); }
.contact-side__head { font-family: var(--font-sans); font-weight: 600; font-size: 18px; color: var(--color-cream); }
.contact-side__place { margin-top: 4px; color: var(--color-accent-soft); }
.contact-side__note { margin-top: 6px; font-size: 15px; color: var(--color-accent-soft); }
.contact-links {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(183, 201, 157, .22);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 16px;
  font-weight: 600;
}
.contact-links a { color: var(--color-cream); }
.contact-side__map {
  display: inline-block;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-cream);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(183, 201, 157, .4);
  padding-bottom: 2px;
  transition: border-color .25s ease, color .25s ease;
}
@media (hover: hover) {
  .contact-links a:hover, .contact-side__map:hover { color: var(--ac); }
  .contact-side__map:hover { border-color: var(--ac); }
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(139, 224, 78, .05), transparent 62%),
    var(--color-forest);
  border-top: 1px solid rgba(183, 201, 157, .16);
  padding: clamp(64px, 7vw, 96px) 10vw 32px;
}
.site-footer__grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px 48px;
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid rgba(183, 201, 157, .14);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand__mark { width: 48px; height: 48px; overflow: hidden; position: relative; flex: none; }
.footer-brand__mark img { position: absolute; width: 73px; max-width: none; left: -12px; top: -13px; }
.footer-brand__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-cream);
}
.footer-brand__tag { font-size: 15px; color: var(--color-accent-soft); }
.footer-brand__desc {
  margin: 24px 0 0;
  max-width: 265px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-accent-soft);
}
.footer-heading {
  margin: 6px 0 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-list li { margin: 0; font-size: 15px; color: var(--color-accent-soft); }
.footer-list a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #d4e1bd;
  text-decoration: none;
  transition: color .25s ease;
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.footer-list a:hover { color: var(--ac); }
.footer-list--contact .footer-list__title { font-weight: 600; color: var(--color-cream); }
.footer-contact { display: flex; flex-direction: column; gap: 22px; }
.footer-contact__group { display: flex; flex-direction: column; gap: 6px; }
.footer-contact__label {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-cream);
}
.footer-contact__value { font-size: 15px; color: var(--color-accent-soft); }
.footer-contact__group--links {
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(183, 201, 157, .14);
  font-weight: 600;
}
.footer-contact__group--links a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-cream);
  text-decoration: none;
  transition: color .25s ease;
}
.footer-contact__group--links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .footer-contact__group--links a:hover { color: var(--ac); }
  .footer-contact__group--links a:hover::after { transform: scaleX(1); }
}
.site-footer__bottom {
  margin: 0 auto;
  padding-top: clamp(24px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--color-accent-soft);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a {
  color: var(--color-accent-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color .25s ease;
}
@media (hover: hover) {
  .site-footer__legal a:hover { color: var(--ac); }
}

/* =============================================================
   Animaciones de scroll (animation-timeline: view())
   Fallback: la clase .reveal-fallback activa .is-in-view desde JS.
   ============================================================= */
@keyframes svUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes svReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes svGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sv-reveal { animation: svReveal linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }

@supports (animation-timeline: view()) {
  .sv-up,
  .sv-stag > * { animation: svUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .sv-stag > *:nth-child(2) { animation-range: entry 6% entry 51%; }
  .sv-stag > *:nth-child(3) { animation-range: entry 12% entry 57%; }
  .sv-stag > *:nth-child(4) { animation-range: entry 18% entry 63%; }
  .sv-stag > *:nth-child(5) { animation-range: entry 24% entry 69%; }
  .sc-col::before { animation: svGrow linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }
}

/* Fallback para navegadores sin animation-timeline (activado por main.js) */
.no-timeline .sv-reveal,
.no-timeline .sv-up,
.no-timeline .sv-stag > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.no-timeline .sv-stag > *:nth-child(2) { transition-delay: .06s; }
.no-timeline .sv-stag > *:nth-child(3) { transition-delay: .12s; }
.no-timeline .sv-stag > *:nth-child(4) { transition-delay: .18s; }
.no-timeline .sv-stag > *:nth-child(5) { transition-delay: .24s; }
.no-timeline .sv-reveal.is-in-view,
.no-timeline .sv-up.is-in-view,
.no-timeline .sv-stag > *.is-in-view {
  opacity: 1;
  transform: none;
}
.no-timeline .big-words-band .paint::after { transform: scaleX(1); }

/* =============================================================
   Responsive
   ============================================================= */
/* El nav lineal no cabe con holgura por debajo de ~940px:
   se reemplaza por el menú hamburguesa. */
@media (max-width: 940px) {
  .nav { display: none; }
  .nav-menu { display: block; }
}

/* Acordeón de Servicios y Diferencial (solo mobile) */
@media (max-width: 760px) {
  .accordion .hv-row {
    display: block;
    padding: 0;
  }
  .accordion .hv-row__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
  }
  .accordion .hv-row__summary h3 {
    flex: 1 1 auto;
    font-size: 20px;
    transition: color .25s ease;
  }
  .accordion .hv-row__icon {
    display: block;
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
  }
  .accordion .hv-row__icon::before,
  .accordion .hv-row__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-olive);
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .accordion .hv-row__icon::after { transform: rotate(90deg); }
  .accordion .hv-row[open] .hv-row__icon::after { transform: rotate(0deg); }

  .accordion .hv-row p {
    margin: 0;
    padding: 0 0 22px;
    font-size: 16px;
    animation: accOpen .3s ease;
  }
  .accordion .hv-row:hover h3 { transform: none; }
  .accordion .hv-row::after { display: none; }

  /* La descripción no se muestra colapsada */
  .accordion .hv-row:not([open]) p { display: none; }
}
@keyframes accOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* Ajuste mínimo: la maqueta solo está definida a 1440px. En pantallas
   angostas se reduce el logo decorativo (absoluto) para que no domine. */
@media (max-width: 700px) {
  .hero-logo { width: 420px; height: 420px; right: -150px; margin-top: -210px; }
}
@media (max-width: 480px) {
  .hero-logo { width: 320px; height: 320px; right: -140px; margin-top: -160px; }
  .big-words-band .big-words { font-size: clamp(28px, 10vw, 38px); }
}

/* =============================================================
   Pulido mobile (layout limpio)
   ============================================================= */
@media (max-width: 760px) {
  .section { padding: clamp(56px, 12vw, 72px) 22px; }
  .section-title { font-size: clamp(26px, 7.5vw, 34px); }
  .valor-title { font-size: clamp(26px, 7.5vw, 34px); }
  .section-lead { font-size: 16px; }
  .eyebrow { font-size: 16px; }

  .split { gap: 32px; }
  .split__col--title,
  .split__col--body,
  .hv-col { flex: 1 1 100%; }

  .container { max-width: 100%; }

  .hero-inner { padding-left: 22px; padding-right: 22px; }
  .hero-title { font-size: clamp(32px, 9vw, 46px); }
  .hero-lead { font-size: 16px; }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta-row .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .big-words-band { padding: clamp(40px, 10vw, 64px) 22px; }
  .big-words-band .big-words {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: clamp(34px, 12vw, 35px);
    line-height: 1.08;
    justify-content: center;
    text-align: center;
  }
  .big-words-band .big-words > span:not(:last-child)::after { display: none; }

  /* Animación de entrada propia de la franja en mobile */
  .big-words-band .big-words > span {
    animation: bwIn .7s cubic-bezier(.2,.8,.2,1) both;
    animation-timeline: auto;
  }
  .big-words-band .big-words > span:nth-child(1) { animation-delay: .05s; }
  .big-words-band .big-words > span:nth-child(2) { animation-delay: .18s; }
  .big-words-band .big-words > span:nth-child(3) { animation-delay: .31s; }

  .note { margin-top: 36px; font-size: 17px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }

  .sectores-grid { margin-top: 40px; grid-template-columns: 1fr; gap: 32px; }

  .contact-inner { gap: 40px; }
  .contact-title { font-size: clamp(30px, 8vw, 40px); }
  .contact-lead { font-size: 19px; }
  .contact-text { margin-bottom: 28px; }
  .contact-deco { opacity: 0.07; }

  .site-header { padding-left: 22px; padding-right: 22px; }
  .site-footer { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 380px) {
  .btn { width: 100%; justify-content: center; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
}

/* =============================================================
   Animaciones más leves en mobile
   ============================================================= */
@media (max-width: 760px) {
  /* Hero decorativo en mobile: se saca el logo, las auroras, la grilla y
     la luz del cursor. Solo quedan los trazos SVG con sus puntos. */
  .hero-logo,
  .hero-aurora,
  .hero-grid,
  .hero-cursor { display: none; }

  /* Trazos SVG: se mantienen las líneas y los puntos animados. */
  .hero-traces { opacity: .7; }

  /* Entradas del hero: recorridos más chicos. */
  .hw > span {
    animation-duration: .55s;
    animation-delay: calc(.12s + var(--i) * .05s);
  }
  .hi-up { animation-duration: .5s; }
  .hi-down { animation-duration: .5s; }

  /* Barrido del botón: menos frecuente. */
  .btn-shine::after { animation-duration: 8s; animation-delay: 4s; }

  /* Apertura del acordeón más sutil. */
  .accordion .hv-row p { animation-duration: .22s; }
}

/* Keyframes alternativos (recorridos reducidos) para mobile */
@media (max-width: 760px) {
  @keyframes acFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  @keyframes wordUp { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes hiUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes hiDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes bwIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ac-glow, .ac-float, .ac-reveal, .ac-trace, .ac-flow, .ac-pulse, .ac-ring,
  .hero-aurora, .hero-grid, .logo-sweep,
  .hw > span, .hi-up, .hi-line, .hi-down,
  .sv-up, .sv-stag > *, .sv-paint, .big-words-band .paint::after,
  .big-words-band .big-words > span, .sv-reveal, .sc-col::before,
  .btn-shine::after, .mq-track, .nav-menu__panel {
    animation: none !important;
  }
  .hero-logo { transition: none; }
  .site-header, .btn, .nav-menu__link, .nav-menu > summary { transition: none; }
  .no-timeline .sv-reveal,
  .no-timeline .sv-up,
  .no-timeline .sv-stag > * { opacity: 1 !important; transform: none !important; }
}
