/* La misma foto conserva su encuadre bajo la máscara gelatinosa. */
.hero-integrated {
  touch-action: pan-y pinch-zoom;
}

.mediakit-gel-reveal {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-integrated .hero-copy {
  position: relative;
  z-index: 1;
}

.mediakit-gel-ready .hero-visual > img {
  opacity: .84;
}

.mediakit-gel-ready .hero-copy h1 {
  text-shadow: 0 2px 14px #071725ad;
}

.hero-integrated .button,
#ecosistemas .ecosystem-tabs a {
  border-radius: 999px;
}

#ecosistemas .eco-card {
  background: #142c3f;
  border: 1px solid #ffffff14;
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 12px #020a1533, 0 13px 25px #020a1538;
  transition: transform .26s cubic-bezier(.2,.65,.35,1), box-shadow .26s ease, border-color .26s ease;
}

#ecosistemas .eco-card > img {
  display: block;
  height: 260px;
  flex: none;
  background: #254153;
}

#ecosistemas .eco-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 24px;
}

#ecosistemas .eco-card p {
  flex: 1;
  color: #b8c9d2;
}

#ecosistemas .eco-card .link-label {
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid #ffffff20;
  border-radius: 0;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  #ecosistemas .eco-card:hover {
    z-index: 1;
    transform: translateY(-5px) scale(1.018);
    border-color: #ffffff70;
  }

  #ecosistemas .eco-card:hover .link-label {
    color: #67d5d6;
  }

}

@media (prefers-reduced-motion: reduce) {
  #ecosistemas .eco-card,
  #ecosistemas .eco-card:hover,
  #ecosistemas .ecosystem-tabs a::before {
    animation: none;
  }
}

/* Contorno luminoso al explorar una implementación. */
#ecosistemas .eco-card{position:relative;isolation:isolate}
#ecosistemas .eco-card::after{
 content:'';position:absolute;inset:0;border-radius:inherit;padding:2px;z-index:2;
 pointer-events:none;opacity:0;background-size:250% 100%;
 background-image:linear-gradient(110deg,transparent 25%,var(--accent) 42%,#fff 50%,var(--accent) 58%,transparent 75%);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask-composite:exclude;
}
#ecosistemas .eco-card:focus-visible{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent),0 0 20px color-mix(in srgb,var(--accent) 25%,transparent)}
#ecosistemas .eco-card:focus-visible::after{animation:imu-card-border-shine .9s ease-out}
@media(hover:hover) and (pointer:fine){
 #ecosistemas .eco-card:hover{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent),0 8px 16px #020a154d,0 21px 36px #020a1566}
 #ecosistemas .eco-card:hover::after{animation:imu-card-border-shine .9s ease-out}
}
@keyframes imu-card-border-shine{
 0%{background-position:120% 0;opacity:0}
 15%,75%{opacity:1}
 100%{background-position:-120% 0;opacity:0}
}
@media(prefers-reduced-motion:reduce){#ecosistemas .eco-card::after{animation:none!important}}


.back-to-top {
  position: fixed;
  z-index: 19;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #54808a;
  border-radius: 999px;
  background: #0d2235;
  color: #fff;
  box-shadow: 0 6px 18px #05101a80;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.back-to-top svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #3dc5ca;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover {
  border-color: #3dc5ca;
  background: #153746;
}

.mediakit-waves {
  position: relative;
  height: clamp(96px, 12vw, 172px);
  margin-bottom: -24px;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side, #15394e80, transparent);
}
.mediakit-waves svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mediakit-waves path {
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}


.eco-card .card-arrow,
.format-card .card-arrow {
  flex: 0 0 auto;
  margin-inline-start: auto;
  color: currentColor;
  color: color-mix(in srgb, var(--accent, #48c6cb) 65%, white);
}
