/* ═══════════════════════════════════════════════════════════════════
   LS DOMÓTICA — footer.css
   ------------------------------------------------------------------
   Footer con 3 columnas + barra inferior. Stack en mobile.
═══════════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  margin-top: 60px;
  padding: 72px 20px 28px;
  background:
    linear-gradient(180deg,
      rgba(0, 149, 255, 0.02) 0%,
      rgba(0, 0, 0, 0.2) 100%),
    var(--bg-primary, #050810);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  font-family: var(--font-body, 'Inter', sans-serif);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.3) 30%,
    rgba(0, 149, 255, 0.3) 70%,
    transparent 100%);
  pointer-events: none;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* ─── Grid 3 columnas ─────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ─── COL 1: Brand ────────────────────────────────────────────── */
.footer-brand-col { gap: 18px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary, #fff);
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  width: fit-content;
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 149, 255, 0.18));
}

.footer-logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-logo-text strong {
  background: linear-gradient(135deg, #00d4ff 0%, #0095ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  margin-right: 2px;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  max-width: 340px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer-social-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  text-decoration: none;
  transition: all 180ms ease;
}

.footer-social-btn:hover {
  background: rgba(0, 149, 255, 0.1);
  border-color: rgba(0, 149, 255, 0.35);
  color: #00d4ff;
  transform: translateY(-2px);
}

.footer-social-emoji {
  font-size: 14px;
  line-height: 1;
}

/* ─── COL 2 + 3: títulos y links ──────────────────────────────── */
.footer-col-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary, #fff);
  margin: 0 0 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  text-decoration: none;
  font-size: 13.5px;
  transition: color 150ms ease, padding 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #00d4ff;
  padding-left: 4px;
}

/* ─── Contact mini (col 3) ────────────────────────────────────── */
.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  text-decoration: none;
  transition: color 150ms ease;
  word-break: break-all;
}

.footer-contact-link:hover {
  color: #00d4ff;
}

.footer-contact-link > span:first-child {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

/* ─── Barra inferior ──────────────────────────────────────────── */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.45));
}

.footer-bottom-left { font-size: 12px; }

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-right a {
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-bottom-right a:hover {
  color: #00d4ff;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
}

.footer-made {
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.footer-heart {
  color: #ef4444;
  animation: footerHeart 2s ease-in-out infinite;
}

@keyframes footerHeart {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer { padding: 56px 18px 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-heart, .footer-social-btn, .footer-links a { animation: none; transition: none; }
}
