/* ============================================================
   V64 — FOOTER GLOBAL REALMENTE IDÉNTICO
   Exacto al footer del Home + shader Molten local en cada HTML.
   ============================================================ */
.footer-modern.footer-v55{
  position:relative;
  z-index:30;
  isolation:isolate;
  overflow:hidden;
  margin-top:-1px;
  border-top:0!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}

/* Capa de oscurecimiento: casi transparente arriba y navy abajo.
   El WebGL permanece visible debajo y hace la transición orgánica. */
.footer-modern.footer-v55::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 13% -8%,rgba(67,183,235,.085),transparent 34%),
    radial-gradient(ellipse at 82% 10%,rgba(35,118,170,.055),transparent 31%),
    linear-gradient(
      180deg,
      rgba(1,8,15,.06) 0%,
      rgba(1,8,15,.16) 11%,
      rgba(1,8,15,.36) 31%,
      rgba(1,7,14,.67) 65%,
      rgba(1,6,12,.90) 100%
    );
}

/* Partículas del footer: menos patrón y más atmósfera. */
.footer-modern.footer-v55::before{
  z-index:1;
  opacity:.07;
  background-size:31px 31px;
  -webkit-mask-image:linear-gradient(90deg,#000 0 8%,transparent 22% 78%,#000 92% 100%);
  mask-image:linear-gradient(90deg,#000 0 8%,transparent 22% 78%,#000 92% 100%);
}

.footer-modern.footer-v55 .footer-modern-inner{
  position:relative;
  z-index:3;
  padding-top:clamp(62px,6vw,86px);
  padding-bottom:28px;
}

/* Un halo superior muy discreto sustituye la antigua línea divisoria. */
.footer-modern.footer-v55 .footer-modern-inner::before{
  content:"";
  position:absolute;
  top:0;
  left:3%;
  right:3%;
  height:1px;
  opacity:.38;
  background:linear-gradient(90deg,transparent,rgba(107,211,255,.20) 30%,rgba(137,223,255,.12) 68%,transparent);
  box-shadow:0 -18px 46px rgba(49,147,206,.055);
  pointer-events:none;
}

/* ------------------------------------------------------------
   2) DECORACIÓN: CURVAS MÁS FINAS, NO COMPITEN CON EL SHADER
   ------------------------------------------------------------ */
.footer-v55 .footer-decor{
  z-index:1;
  border-color:rgba(123,208,255,.075);
  opacity:.72;
  box-shadow:none;
}

.footer-v55 .footer-decor-a{
  width:500px;
  height:500px;
  left:-322px;
  top:-295px;
  box-shadow:
    0 0 0 46px rgba(88,187,242,.008),
    0 0 0 92px rgba(88,187,242,.005);
}

.footer-v55 .footer-decor-b{
  width:440px;
  height:440px;
  right:-285px;
  bottom:-330px;
  opacity:.54;
}

/* ------------------------------------------------------------
   3) GRID / BALANCE VISUAL
   ------------------------------------------------------------ */
.footer-v55 .footer-modern-grid{
  grid-template-columns:minmax(285px,1.42fr) .72fr .72fr 1.12fr;
  gap:clamp(36px,4.4vw,76px);
  align-items:start;
}

.footer-v55 .footer-modern-brand{
  max-width:395px;
}

.footer-v55 .footer-logo{
  gap:13px;
  margin-bottom:19px;
  text-decoration:none;
}

.footer-v55 .footer-logo img{
  width:54px;
  height:54px;
  object-fit:contain;
  filter:
    drop-shadow(0 0 11px rgba(78,182,255,.17))
    drop-shadow(0 12px 24px rgba(0,0,0,.22));
  transition:transform .38s cubic-bezier(.2,.8,.2,1),filter .38s ease;
}

.footer-v55 .footer-logo span{
  color:rgba(244,250,255,.96)!important;
  font-size:clamp(20px,1.35vw,23px);
  font-weight:780;
  letter-spacing:-.035em;
  text-shadow:0 6px 22px rgba(0,0,0,.35);
}

.footer-v55 .footer-logo:hover img{
  transform:translateY(-2px) rotate(-1.5deg) scale(1.035);
  filter:
    drop-shadow(0 0 16px rgba(86,195,255,.28))
    drop-shadow(0 14px 28px rgba(0,0,0,.24));
}

.footer-v55 .footer-modern-brand>p{
  max-width:380px;
  margin:0;
  color:rgba(218,233,247,.72)!important;
  font-size:14px;
  line-height:1.72;
  letter-spacing:.002em;
  text-shadow:0 4px 18px rgba(0,0,0,.30);
}

/* ------------------------------------------------------------
   4) CTA GLASS PREMIUM
   ------------------------------------------------------------ */
.footer-v55 .footer-cta{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:44px;
  margin-top:24px;
  padding:0 18px 0 19px;
  gap:13px;
  border:1px solid rgba(118,210,255,.24);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(29,69,94,.36),rgba(6,23,37,.38));
  color:rgba(241,249,255,.94)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 30px rgba(0,0,0,.15),
    0 0 0 1px rgba(61,160,216,.025);
  backdrop-filter:blur(14px) saturate(125%);
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.footer-v55 .footer-cta::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-80%;
  bottom:-80%;
  left:-42%;
  width:34%;
  opacity:0;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(197,241,255,.16),transparent);
  transition:left .55s cubic-bezier(.2,.8,.2,1),opacity .2s ease;
}

.footer-v55 .footer-cta:hover{
  transform:translateY(-3px);
  border-color:rgba(126,218,255,.42);
  background:linear-gradient(135deg,rgba(38,90,121,.44),rgba(7,27,43,.46));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 15px 38px rgba(0,0,0,.20),
    0 0 24px rgba(49,163,222,.08);
}

.footer-v55 .footer-cta:hover::before{
  left:112%;
  opacity:1;
}

.footer-v55 .footer-cta span{
  color:#9ce7ff!important;
  font-size:17px;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),color .28s ease;
}

.footer-v55 .footer-cta:hover span{
  transform:translateX(4px);
  color:#d9f7ff!important;
}

/* ------------------------------------------------------------
   5) TÍTULOS Y ENLACES
   ------------------------------------------------------------ */
.footer-v55 .footer-modern-label{
  display:block;
  margin-bottom:18px;
  color:rgba(132,214,255,.92)!important;
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.055em;
  text-shadow:0 0 18px rgba(74,181,235,.10);
}

.footer-v55 .footer-modern-col>a:not(.footer-contact-item){
  position:relative;
  display:block;
  width:fit-content;
  margin:10px 0;
  color:rgba(220,233,246,.71)!important;
  font-size:13.7px;
  text-decoration:none;
  transition:color .24s ease,transform .24s cubic-bezier(.2,.8,.2,1);
}

.footer-v55 .footer-modern-col>a:not(.footer-contact-item)::before{
  content:"";
  position:absolute;
  top:50%;
  left:-13px;
  width:0;
  height:1px;
  border-radius:999px;
  opacity:0;
  background:linear-gradient(90deg,#55bfff,#a5ecff);
  transform:translateY(-50%);
  transition:width .24s ease,opacity .24s ease;
}

.footer-v55 .footer-modern-col>a:not(.footer-contact-item):hover{
  color:#f4fbff!important;
  transform:translateX(9px);
}

.footer-v55 .footer-modern-col>a:not(.footer-contact-item):hover::before{
  width:7px;
  opacity:.88;
}

/* ------------------------------------------------------------
   6) CONTACTO
   ------------------------------------------------------------ */
.footer-v55 .footer-contact-item{
  color:rgba(220,233,246,.74)!important;
  font-size:13.7px;
  line-height:1.55;
  text-decoration:none;
  transition:color .24s ease,transform .24s cubic-bezier(.2,.8,.2,1);
}

.footer-v55 a.footer-contact-item:hover{
  color:#f2fbff!important;
  transform:translateX(3px);
}

.footer-v55 .footer-contact-dot{
  width:5px;
  height:5px;
  margin-top:8px;
  background:#66cfff;
  box-shadow:
    0 0 0 4px rgba(80,185,238,.055),
    0 0 11px rgba(79,190,244,.30);
}

/* ------------------------------------------------------------
   7) CIERRE INFERIOR
   ------------------------------------------------------------ */
.footer-v55 .footer-modern-bottom{
  margin-top:clamp(43px,4vw,58px);
  padding-top:20px;
  border-top:1px solid rgba(151,210,241,.075);
  color:rgba(202,220,237,.46)!important;
  font-size:11px;
  letter-spacing:.005em;
}

.footer-v55 .footer-modern-bottom span{
  color:inherit!important;
}

/* ------------------------------------------------------------
   8) RESPONSIVE
   ------------------------------------------------------------ */
@media(max-width:1050px){
  .footer-v55 .footer-modern-grid{
    grid-template-columns:1.28fr 1fr 1fr;
    gap:38px 34px;
  }

  .footer-v55 .footer-contact-col{
    grid-column:1/-1;
    padding-top:16px;
    border-top:1px solid rgba(140,206,240,.07);
  }
}

@media(max-width:700px){
  .footer-modern.footer-v55 .footer-modern-inner{
    padding-top:56px;
    padding-bottom:24px;
  }

  .footer-v55 .footer-modern-grid{
    grid-template-columns:1fr 1fr;
    gap:34px 24px;
  }

  .footer-v55 .footer-modern-brand{
    grid-column:1/-1;
  }

  .footer-v55 .footer-logo img{
    width:52px;
    height:52px;
  }
}

@media(max-width:480px){
  .footer-v55 .footer-modern-grid{
    grid-template-columns:1fr;
  }

  .footer-v55 .footer-modern-brand,
  .footer-v55 .footer-contact-col{
    grid-column:auto;
  }

  .footer-v55 .footer-modern-bottom{
    gap:8px;
  }
}

@media(prefers-reduced-motion:reduce){
  .footer-v55 .footer-logo img,
  .footer-v55 .footer-cta,
  .footer-v55 .footer-cta span,
  .footer-v55 .footer-modern-col>a,
  .footer-v55 .footer-contact-item{
    transition:none!important;
  }

  .footer-v55 .footer-cta::before{
    display:none!important;
  }
}

/* El shader local hace que el footer ya no dependa del fondo de la página. */
.footer.footer-modern.footer-v55{
  min-height:590px;
  background:#01070d!important;
  isolation:isolate!important;
}
.footer-v55 .footer-molten-canvas{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
}
.footer.footer-modern.footer-v55::after{z-index:1!important;}
.footer.footer-modern.footer-v55::before{z-index:2!important;}
.footer-v55 .footer-decor{z-index:2!important;}
.footer.footer-modern.footer-v55 .footer-modern-inner{z-index:3!important;}

/* Misma altura/ritmo visual en todas las páginas. */
.footer-v55 .footer-modern-grid{min-height:315px;}
@media(max-width:1050px){
  .footer.footer-modern.footer-v55{min-height:650px;}
  .footer-v55 .footer-modern-grid{min-height:auto;}
}
@media(max-width:700px){
  .footer.footer-modern.footer-v55{min-height:auto;}
}


/* ============================================================
   V65 — FOOTER COMPACTO
   Mantiene exactamente el mismo look V64, eliminando el alto forzado.
   ============================================================ */
body .footer.footer-modern.footer-v55{
  min-height:0!important;
  height:auto!important;
}
body .footer-modern.footer-v55 .footer-modern-inner,
body.home-v42 .footer-modern.footer-v55 .footer-modern-inner{
  padding-top:clamp(46px,4.1vw,58px)!important;
  padding-bottom:20px!important;
}
body .footer-v55 .footer-modern-grid,
body.home-v42 .footer-v55 .footer-modern-grid{
  min-height:0!important;
}
body .footer-v55 .footer-modern-bottom,
body.home-v42 .footer-v55 .footer-modern-bottom{
  margin-top:30px!important;
  padding-top:17px!important;
}
@media(max-width:1050px){
  body .footer.footer-modern.footer-v55{min-height:0!important;}
}
@media(max-width:700px){
  body .footer-modern.footer-v55 .footer-modern-inner,
  body.home-v42 .footer-modern.footer-v55 .footer-modern-inner{
    padding-top:42px!important;
    padding-bottom:18px!important;
  }
  body .footer-v55 .footer-modern-bottom,
  body.home-v42 .footer-v55 .footer-modern-bottom{
    margin-top:26px!important;
  }
}

/* GPovC V110 — enlace legal en el cierre inferior de todos los footers */
.footer-v55 .footer-modern-bottom .footer-privacy-link{
  color:inherit!important;
  text-decoration:none;
  transition:color .22s ease,text-shadow .22s ease;
}
.footer-v55 .footer-modern-bottom .footer-privacy-link:hover,
.footer-v55 .footer-modern-bottom .footer-privacy-link:focus-visible{
  color:rgba(126,222,255,.88)!important;
  text-shadow:0 0 14px rgba(77,195,255,.20);
  outline:none;
}
