/* EcanWest — estilos del sitio.
   Colores y tipos: ECANWEST Master Brand Book (nov. 2026).
   Dirección: propuesta de consultoría, alineada a la izquierda; lo único llamativo son las franjas de la portada. */

:root {
  --navy: #0B1E3A;
  --navy-deep: #081629;
  --graphite: #1F2A36;
  --ivory: #F5F5F2;
  --white: #FFFFFF;
  --gold: #C8A55A;
  --gold-hover: #D6B76F;
  --gold-ink: #85692C;          /* dorado legible sobre marfil */
  --teal: #0E6B6B;
  --muted: #55606B;             /* texto secundario sobre claro */
  --on-navy: rgba(245, 245, 242, .78);
  --rule-light: rgba(31, 42, 54, .16);
  --rule-dark: rgba(245, 245, 242, .16);

  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 82px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */
*, *::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: 400 1rem/1.6 var(--text);
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.white :focus-visible, .ivory :focus-visible, .form :focus-visible { outline-color: var(--teal); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 4px; border: 0;
  font: 600 .9375rem/1.2 var(--display); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-block { width: 100%; }

.link-light {
  font: 600 .9375rem/1.2 var(--display); color: var(--ivory);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.link-light:hover { color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-solid { border-bottom-color: var(--rule-dark); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a:not(.btn) { color: var(--on-navy); text-decoration: none; font: 500 .9375rem/1 var(--text); padding: 8px 0; }
.nav a:not(.btn):hover { color: var(--white); }
.nav-cta { padding: 11px 18px; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  font: 600 .8125rem/1 var(--display); color: var(--ivory);
  background: transparent; border: 1px solid rgba(245, 245, 242, .32); border-radius: 4px;
  padding: 8px 10px; cursor: pointer;
}
.lang:hover { border-color: var(--gold); color: var(--white); }
.menu { display: none; width: 44px; height: 44px; padding: 12px 10px; background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu span { display: block; height: 2px; background: var(--ivory); border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu span:nth-child(2) { opacity: 0; }
.menu-open .menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--ivory); overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 70% 30%; }
/* Velo azul: oscuro a la izquierda para el texto y abajo para las franjas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 30, 58, 0) 45%, rgba(11, 30, 58, .85) 100%),
    linear-gradient(90deg, rgba(11, 30, 58, .94) 0%, rgba(11, 30, 58, .78) 40%, rgba(11, 30, 58, .38) 100%);
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(11, 30, 58, .72) 0%, rgba(11, 30, 58, .86) 60%, rgba(11, 30, 58, .95) 100%); }
}
.hero-text { padding-top: clamp(56px, 8vw, 104px); }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 1.02; letter-spacing: -.035em;
  color: var(--white);
}
.hero-kicker { margin-bottom: 18px; font: 600 1rem/1.3 var(--display); letter-spacing: .01em; color: var(--gold); }
.hero h1 .gold { color: var(--gold); }
.hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: clamp(24px, 3vw, 36px); }
.hero-lead { font-size: 1.1875rem; line-height: 1.55; color: var(--on-navy); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.ascent { margin: clamp(8px, 2vw, 24px) 0 0; }
.ascent-stage { position: relative; aspect-ratio: 1440 / 330; }
.ascent-bands { position: absolute; inset: 0; width: 100%; height: 100%; }
.band { fill: url(#g-band); }
.band-2 { opacity: .7; }
.band-3 { opacity: .42; }

.ascent-points li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.ascent-points li::before {
  content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--white);
}
.ascent-points span {
  position: absolute; right: 14px; bottom: 12px; white-space: nowrap;
  font: 500 .9375rem/1.2 var(--text); color: var(--white);
}

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 40px;
  padding-block: 20px 28px;
  font-size: .875rem; color: var(--on-navy);
  border-top: 1px solid var(--rule-dark);
}

/* Una sola animación en toda la página: la carga de la portada */
@media (prefers-reduced-motion: no-preference) {
  .js .ascent-bands { animation: sweep 1.5s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .js .ascent-points li { animation: appear .45s ease-out both; animation-delay: calc(.45s + var(--i) * .3s); }
}
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Destellos al pasar el ratón: responden a la persona, no se reproducen solos */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 235, .75) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-22deg); pointer-events: none; opacity: 0;
}

.link-light {
  text-decoration: none; padding-bottom: 7px;
  background: linear-gradient(90deg, var(--gold) 0 40%, #FFFFFF 50%, var(--gold) 60% 100%) no-repeat;
  background-size: 260% 2px; background-position: 100% 100%;
}

.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }

.ascent-points li::before { transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.ascent-points span { transition: color .2s ease; }
.ascent-points li:hover::before { border-color: #FFF8E6; background: var(--gold); transform: scale(1.35); }
.ascent-points li:hover span { color: #F1DDA8; }
.ascent-points li::after {
  content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  pointer-events: none; opacity: 0;
}
/* Zona de ratón más amplia que el punto de 12 px */
.ascent-points span { padding: 6px 0 6px 6px; margin: -6px 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn-gold:hover::after, .btn-gold:focus-visible::after { animation: glint .7s ease-out; }
  .link-light:hover, .link-light:focus-visible { animation: shimmer .8s ease-out; }
  .ascent-points li:hover::after { animation: flare .9s ease-out; }
}
@keyframes glint { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@keyframes shimmer { from { background-position: 100% 100%; } to { background-position: 0% 100%; } }
@keyframes flare {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 248, 230, .95), 0 0 0 0 rgba(255, 236, 190, .7); }
  100% { opacity: 1; box-shadow: 0 0 0 20px rgba(255, 248, 230, 0), 0 0 28px 12px rgba(255, 236, 190, 0); }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.ivory { background: var(--ivory); }
.white { background: var(--white); }
.navy { background: var(--navy); color: var(--ivory); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-head h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); line-height: 1.15; color: var(--navy); }
.navy .split-head h2 { color: var(--white); }
.lead { margin-top: 20px; font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.navy .lead { color: var(--on-navy); }

@media (min-width: 1000px) {
  .split-head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Lo que frena / lo que cambiamos */
.fixes-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 40px; padding-block: 28px; border-top: 1px solid var(--rule-light); }
.fixes-row:last-child { border-bottom: 1px solid var(--rule-light); }
.fixes-cols { padding-block: 0 14px; border-top: 0; font: 600 .875rem/1.3 var(--text); color: var(--teal); }
.fixes h3 { font-size: 1.1875rem; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.fixes-row p { margin-top: 8px; color: var(--muted); }
.fixes-row .fix {
  margin-top: 0; align-self: start;
  padding-left: 18px; border-left: 2px solid var(--gold);
  font: 600 1.0625rem/1.45 var(--display); letter-spacing: -.01em; color: var(--navy);
}

/* Capacidades */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.cap { padding-block: 36px 40px; border-top: 1px solid var(--rule-dark); }
.cap:nth-child(-n+2) { border-top-color: rgba(245, 245, 242, .36); }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .accent { stroke: var(--gold); }
.cap h3 { margin-top: 20px; font-size: 1.3125rem; line-height: 1.25; color: var(--white); }
.cap p { margin-top: 10px; color: var(--on-navy); }
.cap ul { margin-top: 18px; display: grid; gap: 6px; font-size: .9375rem; color: rgba(245, 245, 242, .62); }

/* Principio */
.principle { position: relative; isolation: isolate; color: var(--white); padding-block: clamp(96px, 14vw, 176px); }
.principle-photo, .principle-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.principle::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 30, 58, .94) 0%, rgba(11, 30, 58, .82) 55%, rgba(11, 30, 58, .55) 100%); }
.principle-mark { width: 120px; height: auto; }
.principle blockquote { margin: 28px 0 0; }
.principle blockquote p { font: 600 clamp(1.75rem, 3.6vw, 3rem)/1.18 var(--display); letter-spacing: -.025em; max-width: 21ch; text-wrap: balance; }

/* Método: cuatro pasos que suben, como las franjas */
.approach-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--navy); max-width: 20ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.steps li { border-top: 2px solid var(--teal); padding-top: 20px; }
.step-n { display: block; font: 700 2.25rem/1 var(--display); color: var(--teal); letter-spacing: -.03em; }
.steps h3 { margin-top: 18px; font-size: 1.1875rem; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (min-width: 1000px) {
  .steps li:nth-child(1) { margin-top: 96px; }
  .steps li:nth-child(2) { margin-top: 64px; }
  .steps li:nth-child(3) { margin-top: 32px; }
}

/* Formas de trabajar: tres etapas en una línea */
.engage { margin-top: clamp(80px, 10vw, 128px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule-light); }
.engage-title { font-size: 1.5rem; line-height: 1.25; color: var(--navy); }
.engage-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.engage-track::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: var(--rule-light); }
.engage-track li { position: relative; padding-top: 32px; }
.engage-track li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); }
.engage-track li:first-child::before { background: var(--gold); }
.engage-tag { font: 600 .875rem/1.3 var(--text); color: var(--gold-ink); }
.engage h4 { margin-top: 6px; font-size: 1.1875rem; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.engage-track li p:last-child { margin-top: 8px; color: var(--muted); max-width: 38ch; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.values li { padding-block: 24px 28px; border-top: 1px solid var(--rule-light); }
.values h3 { font-size: 1.0625rem; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.values p { margin-top: 6px; color: var(--muted); }

/* Contacto */
.contact-data { margin: 36px 0 0; display: grid; gap: 14px; }
.contact-data div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--rule-dark); }
.contact-data dt { font: 500 .875rem/1.6 var(--text); color: var(--gold); }
.contact-data dd { margin: 0; color: var(--ivory); }
.contact-data a { text-decoration-color: rgba(200, 165, 90, .6); text-underline-offset: 4px; }

.form { background: var(--ivory); color: var(--graphite); border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.hp { display: none; }   /* trampa para robots de spam */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 .875rem/1.3 var(--text); color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--graphite);
  background: var(--white); border: 1px solid #C5CBD2; border-radius: 4px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field.has-error input { border-color: #B3261E; }
.form-status { min-height: 1.4em; font-size: .9375rem; color: var(--teal); }
.form-status.is-error { color: #B3261E; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding-block: 56px 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.brand-logo-footer { height: 80px; }
.footer-tag { margin-top: 14px; font: 600 .9375rem/1.4 var(--display); color: var(--ivory); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: .8125rem; color: rgba(245, 245, 242, .6); }

/* ---------- Adaptación ---------- */
@media (max-width: 1000px) {
  .menu { display: flex; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--navy); border-bottom: 1px solid var(--rule-dark);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { font-size: 1.125rem; padding: 12px 0; }
  .nav-cta { margin-top: 12px; }

  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}

@media (max-width: 760px) {
  .ascent-points span { font-size: .75rem; right: 10px; bottom: 9px; }
  .ascent-points li::before { left: -5px; top: -5px; width: 10px; height: 10px; }
  .caps { grid-template-columns: 1fr; }
  .cap:nth-child(2) { border-top-color: var(--rule-dark); }
  .fixes-row { grid-template-columns: 1fr; }
  .fixes-cols { display: none; }
  .engage-track { grid-template-columns: 1fr; gap: 28px; }
  .engage-track::before { left: 6px; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; }
  .engage-track li { padding: 0 0 0 32px; }
}

@media (max-width: 560px) {
  .brand-logo { height: 50px; }
  .ascent-points { display: none; }
  .ascent-stage { aspect-ratio: 1440 / 420; }
  .steps, .values, .field-row { grid-template-columns: 1fr; }
  .contact-data div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
