/* ============================================================
   fernansmotion — Footer Minimalista (Inspirado en estilo Fargo)
   ============================================================ */

.fm-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 16px 20px;
  border-radius: 32px;
  background-color: #07060d;
  background-image: 
    radial-gradient(ellipse 90% 80% at 85% 15%, rgba(100, 68, 196, 0.25) 0%, rgba(45, 28, 92, 0.12) 45%, transparent 75%),
    radial-gradient(ellipse 60% 60% at 20% 90%, rgba(68, 40, 140, 0.15) 0%, transparent 60%);
  color: #f5f3ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Efecto haz de luz suave diagonal como la imagen Fargo */
.fm-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(142, 102, 255, 0.08) 45%,
    rgba(168, 130, 255, 0.12) 50%,
    rgba(110, 70, 215, 0.06) 56%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

/* Contenedor del contenido principal */
.fm-footer-inner {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4.5vw, 56px) clamp(24px, 5vw, 64px) 0;
}

/* ── Barra superior: Tag a la izquierda y Redes en esquina superior derecha ── */
.fm-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-top-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a498bf;
  font-weight: 500;
}

.fm-spark {
  color: #bd9bff;
  font-size: 18px;
  line-height: 1;
}

/* Grid de 3 columnas estilo Fargo */
.fm-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 70px);
}

/* Cada columna con su línea superior sutil */
.fm-col {
  display: flex;
  flex-direction: column;
}

.fm-col-header {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #7b7396;
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

/* ── Botón CTA que redirige a WhatsApp ── */
.fm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  margin: 16px 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(147, 51, 234, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: fit-content;
}

.fm-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(168, 85, 247, 0.7);
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
  color: #ffffff !important;
}

/* Indicador luminoso pulsante dentro del CTA */
.fm-cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  position: relative;
  flex-shrink: 0;
}

.fm-cta-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: fm-pulse-ring 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes fm-pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.fm-cta-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.fm-cta-btn:hover .fm-cta-arrow {
  transform: translate(2px, -2px);
}

/* ── Iconos de redes sociales ── */
.fm-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.fm-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c4b5e2;
  text-decoration: none;
  transition: all 0.22s ease;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.fm-social-btn:hover {
  background: rgba(157, 114, 255, 0.16);
  border-color: rgba(180, 142, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

/* SVG centrado perfecto */
.fm-social-btn svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  margin: auto;
  pointer-events: none;
}

/* Textos informativos de la primera columna */
.fm-col-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #8379a0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.fm-col-desc strong {
  color: #cdc1ea;
  font-weight: 500;
}

.fm-col-desc a {
  color: #cdc1ea;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fm-col-desc a:hover {
  color: #ffffff;
}

/* Enlaces de las columnas de navegación */
.fm-link-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-link-list a,
.fm-link-list span {
  font-size: 13.5px;
  color: #b7a9d6;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.015em;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.2;
}

.fm-link-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.fm-link-list span {
  color: #8c82a8;
}

/* ── Wordmark gigante inferior estilo Fargo ── */
.fm-giant-wordmark-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0.78;
}

.fm-giant-wordmark {
  font-size: clamp(64px, 15.5vw, 240px);
  font-weight: 700;
  letter-spacing: -0.065em;
  margin: 0;
  padding: 0 0 4px;
  text-align: center;
  white-space: nowrap;
  /* Efecto azul/violeta oscuro emergente como "Fargo" */
  background: linear-gradient(
    180deg,
    rgba(148, 112, 235, 0.45) 0%,
    rgba(84, 52, 168, 0.28) 45%,
    rgba(38, 22, 92, 0.18) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Barra inferior muy sutil ── */
.fm-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px clamp(24px, 5vw, 64px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #6d6487;
  position: relative;
  z-index: 1;
}

.fm-sub-bar a {
  color: #9f91c4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fm-sub-bar a:hover {
  color: #ffffff;
}

/* Focus visible para accesibilidad */
.fm-footer a:focus-visible {
  outline: 2px solid #a882ff;
  outline-offset: 4px;
  border-radius: 6px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .fm-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .fm-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .fm-footer {
    margin: 0 10px 14px;
    border-radius: 24px;
  }
  .fm-footer-inner {
    padding: 32px 20px 0;
  }
  .fm-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }
  .fm-col-header {
    margin-bottom: 18px;
    padding-top: 10px;
  }
  .fm-top-bar {
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .fm-giant-wordmark {
    font-size: 16vw;
  }
  .fm-sub-bar {
    padding: 16px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-social-btn,
  .fm-link-list a,
  .fm-sub-bar a {
    transition: none;
  }
}
