/* Dirección de arte corporativa EVOLVVA v4. */


/* Accesibilidad: el texto auxiliar del botón móvil permanece visualmente oculto. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Logo */
.brand img { width: 118px; height: 70px; object-fit: contain; object-position: left center; border-radius: 0; }

/* HERO — escritorio: KPI ligeramente mayor, manteniendo una zona limpia para el mensaje. */
.hero {
  position: relative;
  min-height: 790px;
  background-color: #031021;
  background-image:
    linear-gradient(90deg, rgba(3,16,33,.98) 0%, rgba(3,16,33,.92) 34%, rgba(3,16,33,.45) 62%, rgba(3,16,33,.08) 100%),
    url('../assets/hero-executive-v3.png');
  background-repeat: no-repeat;
  background-position: center, right 44%;
  background-size: cover, min(70vw, 970px) auto;
}
.hero-grid { display: block; min-height: 540px; padding-top: 50px; }
.hero-copy { max-width: 680px; }
.hero h1 { max-width: 650px; font-size: clamp(51px,5.7vw,79px); }
.hero h1 em { display: block; color: #b7d2f5; }
.hero-text { max-width: 555px; font-size: 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }

/* Microinteracciones de las etiquetas/soluciones del Hero. */
.hero-proof span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(210,228,249,.42);
  padding: 7px 10px;
  color: #d9e8fa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  background: rgba(8,31,61,.14);
  box-shadow: inset 0 0 0 rgba(157,196,242,0);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease, color .28s ease;
}
.hero-proof span::after {
  content: "";
  position: absolute;
  left: -110%;
  top: 0;
  width: 70%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .55s ease;
}
.hero-proof span:hover,
.hero-proof span:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(183,210,245,.95);
  background: rgba(29,72,126,.34);
  color: #fff;
  box-shadow: 0 0 18px rgba(133,181,239,.22), inset 0 0 18px rgba(133,181,239,.06);
  outline: none;
}
.hero-proof span:hover::after,
.hero-proof span:focus-visible::after { left: 130%; }

.site-header { background: linear-gradient(to bottom, rgba(3,15,31,.56), transparent); }
.main-nav a { color: #f0f6ff; }
.main-nav .nav-cta { background: rgba(255,255,255,.08); }
.insights { background: #f8f7f3; border-top: 1px solid #d7e0eb; border-bottom: 1px solid #d7e0eb; }
.insights-grid { display: grid; grid-template-columns: 1.1fr .7fr; gap: 110px; align-items: end; }
.insights h2 { max-width: 620px; font-size: clamp(37px,4.2vw,57px); }
.insights-grid > div:last-child { color: #526377; font-size: 15px; }

/* Tablet: KPI un poco mayor que en v3, pero todavía contenida. */
@media (min-width: 601px) and (max-width: 1100px) {
  .hero {
    background-size: cover, min(66vw, 750px) auto;
    background-position: center, right 40%;
  }
  .hero-copy { max-width: 57%; }
  .hero h1 { font-size: clamp(47px, 5.8vw, 66px); }
  .hero-text { max-width: 500px; }
}

/* Celular: composición vertical separada de la imagen KPI de escritorio. */
@media (max-width: 600px) {
  .brand img { width: 92px; height: 55px; }
  .hero {
    min-height: 760px;
    background-color: #0b2d59;
    background-image: url('../assets/hero-mobile.png');
    background-repeat: no-repeat;
    background-position: center calc(100% + 72px);
    background-size: 88% auto;
  }
  .hero-grid { padding-top: 30px; }
  .hero h1 { font-size: 46px; }
  .hero-copy { max-width: 100%; }
  .hero-text { max-width: 560px; }
  .hero-proof { margin-top: 30px; }
  .insights-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .hero {
    min-height: 820px;
    background-size: 100% auto;
    background-position: center calc(100% + 72px);
  }
}

@media (max-width: 420px) {
  .hero-proof { gap: 8px; }
  .hero-proof span { transition-duration: .24s; }
}

/* Reduce motion for visitors who have requested less animation. */
@media (prefers-reduced-motion: reduce) {
  .hero-proof span,
  .hero-proof span::after { transition: none; }
}

/* ================================
   EVOLVVA V5 — refinamiento visual
   ================================ */

/* Encabezado: termina visualmente al nivel del logo y permanece visible al hacer scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 10px 0;
  background: rgba(3, 15, 31, .20);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, height .35s ease, padding .35s ease;
}
.site-header.is-scrolled {
  height: 78px;
  padding: 7px 0;
  background: rgba(4, 16, 34, .94);
  border-bottom-color: rgba(159, 190, 228, .16);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.site-header .brand img {
  transition: width .35s ease, height .35s ease, transform .35s ease;
}
.site-header.is-scrolled .brand img {
  width: 108px;
  height: 64px;
}

/* Navegación superior: mismo tratamiento visual para las cinco opciones.
   Ninguna queda "encendida" de forma permanente; el efecto aparece al pasar el cursor/foco. */
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f0f6ff;
  background: transparent;
  box-shadow: 0 0 0 rgba(126,171,229,0);
  transition: transform .28s ease, color .28s ease, background .28s ease,
              border-color .28s ease, box-shadow .28s ease, text-shadow .28s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(169,198,237,.13);
  border-color: rgba(195,217,244,.88);
  box-shadow: 0 0 20px rgba(126,171,229,.16),
              inset 0 0 14px rgba(169,198,237,.035);
  text-shadow: 0 0 12px rgba(169,198,237,.30);
  outline: none;
}

/* Pequeño brillo interno que refuerza el efecto ejecutivo al interactuar. */
.main-nav a::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.16) 48%, transparent 76%);
  transform: translateX(-115%);
  opacity: 0;
  pointer-events: none;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  animation: navShimmer .65s ease forwards;
}
@keyframes navShimmer {
  to { transform: translateX(115%); }
}

/* El CTA se comporta igual que las demás opciones hasta que se interactúa con él. */
.main-nav .nav-cta {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: rgba(169,198,237,.13);
  border-color: rgba(195,217,244,.88);
  box-shadow: 0 0 20px rgba(126,171,229,.16),
              inset 0 0 14px rgba(169,198,237,.035);
}
.main-nav .nav-cta span {
  display: inline-block;
  transition: transform .28s ease;
}
.main-nav .nav-cta:hover span,
.main-nav .nav-cta:focus-visible span {
  transform: translate(2px,-2px);
}

/* KPI desktop: aumento muy leve respecto a V4. */
@media (min-width: 1101px) {
  .hero {
    /* V8: único ajuste respecto a V7 — reducir el espacio superior del Hero. */
    padding-top: 70px;
    background-size: cover, min(73vw, 1040px) auto;
  }
}

/* Mobile: separar por completo la composición visual del contenido interactivo. */
@media (max-width: 780px) {
  .site-header {
    height: 78px;
    padding: 7px 0;
  }
  .site-header.is-scrolled {
    height: 68px;
    padding: 4px 0;
  }
  .site-header.is-scrolled .brand img {
    width: 102px;
    height: 58px;
  }

  .hero {
    min-height: 1080px;
    padding-top: 112px;
    padding-bottom: 90px;
    background-size: 100% auto;
    background-position: center bottom;
  }
  .hero-grid {
    min-height: 0;
  }
  .hero-copy {
    position: relative;
    z-index: 3;
  }
  .hero-actions,
  .hero-proof {
    position: relative;
    z-index: 4;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .hero-proof {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 1120px;
    background-size: 100% auto;
    background-position: center bottom;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 1140px;
    background-position: center bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .brand img,
  .main-nav a,
  .main-nav a::after,
  .main-nav .nav-cta,
  .main-nav .nav-cta span,
  .main-nav a::after {
    transition: none;
    animation: none;
  }
}

/* ================================
   EVOLVVA — pasarela de organizaciones
   ================================ */
.clients-strip {
  position: relative;
  padding: 86px 0 82px;
  overflow: hidden;
  background: #f7faff;
  border-top: 1px solid rgba(21, 59, 112, .07);
  border-bottom: 1px solid rgba(21, 59, 112, .07);
}

.clients-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.clients-heading h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: #06152c;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.clients-heading > p:last-child {
  max-width: 390px;
  margin: 0 0 3px auto;
  color: #60708a;
  font-size: 1rem;
  line-height: 1.75;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clientsMarquee 62s linear infinite;
  will-change: transform;
}

.clients-set {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

.client-logo {
  flex: 0 0 184px;
  width: 184px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid rgba(22, 62, 110, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 8px 28px rgba(6, 21, 44, .055);
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.client-logo:focus-visible {
  outline: 2px solid rgba(21, 77, 132, .45);
  outline-offset: 4px;
}

.client-logo img {
  display: block;
  width: 148px;
  height: 58px;
  max-width: 148px;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1) saturate(.35) contrast(.88);
  opacity: .72;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}

.client-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 77, 132, .18);
  box-shadow: 0 14px 34px rgba(6, 21, 44, .09);
}

.client-logo:hover img {
  filter: grayscale(0) saturate(1) contrast(1);
  opacity: 1;
  transform: scale(1.035);
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-edge {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
}

.clients-edge-left {
  left: 0;
  background: linear-gradient(90deg, #f7faff 12%, rgba(247, 250, 255, 0));
}

.clients-edge-right {
  right: 0;
  background: linear-gradient(270deg, #f7faff 12%, rgba(247, 250, 255, 0));
}

@keyframes clientsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .clients-strip {
    padding: 70px 0 68px;
  }

  .clients-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .clients-heading > p:last-child {
    margin-left: 0;
  }

  .clients-track {
    animation-duration: 52s;
  }
}

@media (max-width: 600px) {
  .clients-strip {
    padding: 62px 0 60px;
  }

  .clients-heading {
    gap: 14px;
    margin-bottom: 30px;
  }

  .clients-heading h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
  }

  .clients-heading > p:last-child {
    font-size: .94rem;
    line-height: 1.65;
  }

  .clients-set {
    gap: 12px;
    padding-right: 12px;
  }

  .client-logo {
    flex-basis: 150px;
    width: 150px;
    height: 78px;
    padding: 11px 13px;
    border-radius: 12px;
  }

  .client-logo img {
    width: 122px;
    height: 49px;
    max-width: 122px;
    max-height: 49px;
  }

  .clients-edge {
    width: 56px;
  }

  .clients-track {
    animation-duration: 46s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }

  .client-logo,
  .client-logo img {
    transition: none;
  }
}


/* V23 — datos de contacto visibles y accionables */
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: #b8d4f5;
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.contact-detail:hover,
.contact-detail:focus-visible {
  color: #fff;
  transform: translateX(3px);
}
.contact-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  opacity: .95;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.contact-detail:focus-visible {
  outline: 2px solid rgba(184,212,245,.65);
  outline-offset: 5px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .contact-details {
    margin-top: 20px;
    gap: 10px;
  }
  .contact-detail {
    font-size: .92rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-detail {
    transition: none;
  }
}




/* V25 — composición final del footer */
.footer-center .footer-email {
  display: block;
  width: fit-content;
  margin: 3px auto 0;
  color: #9fc1e8;
  font-size: .78rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .25s ease;
}
.footer-center .footer-email:hover,
.footer-center .footer-email:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.footer-center .footer-email:focus-visible,
.footer-top:focus-visible {
  outline: 2px solid rgba(159,193,232,.65);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (max-width: 700px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer-brand,
  .footer-center,
  .footer-actions {
    justify-self: center;
  }
  .footer-actions {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-center .footer-email {
    transition: none;
  }
}


/* V26 — trust bar superior: recordación discreta y corporativa */
.trust-bar {
  position: relative;
  overflow: hidden;
  padding: 18px 0 20px;
  background: #fff;
  border-top: 1px solid rgba(21, 59, 112, .055);
  border-bottom: 1px solid rgba(21, 59, 112, .07);
}
.trust-bar-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.trust-label {
  margin: 0 0 11px;
  color: #7890ad;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}
.trust-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.trust-track {
  display: flex;
  width: max-content;
  animation: trustMarquee 58s linear infinite;
  will-change: transform;
}
.trust-set {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}
.trust-logo {
  flex: 0 0 104px;
  width: 104px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.trust-logo img {
  display: block;
  width: 92px;
  height: 34px;
  max-width: 92px;
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1) saturate(.25) contrast(.82);
  opacity: .58;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.trust-logo:hover img,
.trust-logo:focus-visible img {
  filter: grayscale(0) saturate(1) contrast(1);
  opacity: .95;
  transform: scale(1.04);
}
.trust-logo:focus-visible {
  outline: 2px solid rgba(21, 77, 132, .35);
  outline-offset: 5px;
  border-radius: 5px;
}
.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}
@keyframes trustMarquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@media (max-width: 700px) {
  .trust-bar {
    padding: 15px 0 17px;
  }
  .trust-bar-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
  }
  .trust-label {
    margin-bottom: 9px;
    font-size: .56rem;
    letter-spacing: .14em;
  }
  .trust-set {
    gap: 26px;
    padding-right: 26px;
  }
  .trust-logo {
    flex-basis: 82px;
    width: 82px;
    height: 31px;
  }
  .trust-logo img {
    width: 74px;
    height: 28px;
    max-width: 74px;
    max-height: 28px;
  }
  .trust-track {
    animation-duration: 46s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
  .trust-logo img { transition: none; }
}


/* V27 — mostrar copyright también en móvil */
@media (max-width: 700px) {
  .footer-center p {
    display: block !important;
    margin: 0;
    color: inherit;
  }
}


/* V30 — refinamiento responsive para portafolio ampliado */
@media (max-width: 700px) {
  .service-card h3 {
    max-width: 88%;
  }
  .service-card p {
    max-width: 94%;
  }
}



/* V36 — servicios compactos, inspirados en la escala del carrusel de organizaciones */
.services-marquee{
  position:relative;width:100%;overflow:hidden;margin-top:34px;
}
.services-marquee-track{
  display:flex;width:max-content;animation:servicesMarqueeV36 54s linear infinite;will-change:transform;
}
.services-set{
  display:flex;align-items:stretch;gap:18px;padding-right:18px;
}
.service-mini-card{
  flex:0 0 184px;width:184px;min-height:306px;
  border:1px solid rgba(22,62,110,.10);border-radius:14px;
  background:rgba(255,255,255,.94);box-shadow:0 8px 26px rgba(6,21,44,.055);
  overflow:hidden;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.service-mini-card>a{
  display:flex;flex-direction:column;height:100%;padding:0 15px 15px;
  color:inherit;text-decoration:none;
}
.service-mini-art{
  height:112px;margin:0 -15px 13px;display:grid;place-items:center;
  position:relative;background:#f4f7fb;color:#929aa4;overflow:hidden;
}
.service-mini-art:before{
  content:"";position:absolute;inset:12px;border:1px solid rgba(111,143,178,.11);border-radius:10px;
}
.service-mini-art img{
  position:relative;z-index:1;width:142px;height:82px;object-fit:contain;
  filter:grayscale(1) saturate(.08);opacity:.56;
  transition:filter .4s ease,opacity .4s ease,transform .4s cubic-bezier(.22,.7,.2,1);
}
.service-mini-meta{
  display:flex;justify-content:space-between;gap:5px;color:#82a0c2;
  font-size:6.5px;font-weight:800;line-height:1.25;letter-spacing:.11em;
}
.service-mini-meta span:last-child{opacity:.82}
.service-mini-card h3{
  margin:9px 0 7px;color:#071a34;font-family:"Playfair Display",Georgia,serif;
  font-size:18px;line-height:1.08;letter-spacing:-.02em;
}
.service-mini-card p{
  margin:0;color:#6c7e95;font-size:9.5px;line-height:1.5;
}
.service-mini-link{
  display:inline-flex;align-items:center;gap:6px;align-self:flex-start;
  margin-top:auto;padding-top:12px;padding-bottom:4px;color:#315f91;
  font-size:8px;font-weight:800;border-bottom:1px solid rgba(49,95,145,.22);
  transition:color .25s ease,gap .25s ease,border-color .25s ease;
}
.service-mini-link b{font-size:11px;font-weight:400;line-height:1}
.service-mini-card:hover{
  transform:translateY(-4px);border-color:rgba(49,95,145,.20);
  box-shadow:0 13px 31px rgba(6,21,44,.095);
}
.service-mini-card:hover .service-mini-art{color:#3976ae}
.service-mini-card:hover .service-mini-art img{
  filter:grayscale(0) saturate(.88);opacity:.95;transform:scale(1.055);
}
.service-mini-card:hover .service-mini-link{gap:9px;color:#123f70;border-color:rgba(49,95,145,.45)}
.services-edge{
  position:absolute;z-index:2;top:0;bottom:0;width:82px;pointer-events:none;
}
.services-edge-left{left:0;background:linear-gradient(90deg,#071d3b 8%,rgba(7,29,59,0))}
.services-edge-right{right:0;background:linear-gradient(270deg,#071d3b 8%,rgba(7,29,59,0))}
@keyframes servicesMarqueeV36{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
.services-marquee:hover .services-marquee-track{animation-play-state:paused}
@media(max-width:760px){
  .services-marquee{margin-top:25px}
  .services-set{gap:12px;padding-right:12px}
  .service-mini-card{flex-basis:164px;width:164px;min-height:292px;border-radius:12px}
  .service-mini-card>a{padding:0 12px 13px}
  .service-mini-art{height:101px;margin:0 -12px 11px}
  .service-mini-art img{width:128px;height:74px}
  .service-mini-card h3{font-size:17px}
  .service-mini-card p{font-size:9px}
  .services-edge{width:40px}
  .services-marquee-track{animation-duration:45s}
}
@media(prefers-reduced-motion:reduce){
  .services-marquee-track{animation:none}
  .service-mini-card,.service-mini-art img,.service-mini-link{transition:none}
}
