/* ==========================================================================
   MYCLOUD.UNO — MINIMALIST WORDMARK FOOTER (CSS/FOOTER.CSS)
   Tipografía monumental "mycloud.uno" con interacción luminiscente.
   ========================================================================== */

.mc-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 11vw, 140px) 20px calc(clamp(70px, 11vw, 140px) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #1a1d49 0%, #12143a 100%);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-align: center;
  color: #fff;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wordmark Monumental */
.mc-wm {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: clamp(40px, 13vw, 210px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  user-select: none;
}

.mc-wm span {
  display: block;
}

/* Capa 1: contorno que "respira" suavemente */
.mc-l1 {
  color: rgba(79, 70, 229, .16);
  -webkit-text-stroke: 1.5px rgba(139, 147, 255, .34);
  animation: mc-breathe 4.5s ease-in-out infinite;
}

/* Capas 2 y 3: texto con gradiente brillante */
.mc-l2, .mc-l3 {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: linear-gradient(100deg, #6366f1 0%, #a78bfa 38%, #86efd0 72%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Capa 2: franja de luz que barre las letras periódicamente */
.mc-l2 {
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 50%, transparent 65%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 50%, transparent 65%);
  -webkit-mask-size: 300% 100%;
          mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: mc-sweep 6.5s ease-in-out infinite;
}

/* Capa 3: linterna radial interactiva que reacciona a la posición del cursor */
.mc-l3 {
  -webkit-mask-image: radial-gradient(clamp(140px, 20vw, 280px) circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.65) 42%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(clamp(140px, 20vw, 280px) circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.65) 42%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}

.mc-footer:hover .mc-l3 {
  opacity: 1;
}

/* Resplandor ambiental detrás del cursor */
.mc-glow {
  position: absolute;
  left: var(--sx, 50%);
  top: var(--sy, 50%);
  width: 580px;
  height: 580px;
  margin: -290px 0 0 -290px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(129, 140, 248, .35), rgba(129, 140, 248, 0));
  opacity: 0;
  transition: opacity .35s ease;
}

.mc-footer:hover .mc-glow {
  opacity: 1;
}

/* ==========================================================================
   Animaciones & Keyframes
   ========================================================================== */
@keyframes mc-breathe {
  0%, 100% {
    -webkit-text-stroke-color: rgba(139, 147, 255, .32);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }
  50% {
    -webkit-text-stroke-color: rgba(139, 147, 255, .62);
    filter: drop-shadow(0 0 28px rgba(99, 102, 241, .45));
  }
}

@keyframes mc-sweep {
  0% { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  35%, 100% { -webkit-mask-position: -40% 0; mask-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-l1, .mc-l2 { animation: none; }
}
