/* static/css/footer.css — pie: marca, redes oficiales y enlaces legales */

.footer-app {
  padding: 0;
  text-align: left;
  color: #fff;
  background: #1e222b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contenido {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.2fr;
  gap: 1.75rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.2rem 1.75rem 1rem;
}

/* ---------- Marca ---------- */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.footer-logo:hover { color: #fff; }

.footer-logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.footer-logo-nombre {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.footer-logo-canal {
  color: var(--color-acento);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-marca p {
  margin: 0.6rem 0 0.75rem;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-btn-vivo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-btn-vivo:hover { background: #b91c1c; color: #fff; }

.footer-punto {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: parpadeo-footer 1.2s infinite;
}

@keyframes parpadeo-footer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- Redes: tarjetas horizontales con el color de cada marca ---------- */
.footer-redes h3 {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.red-card {
  --red: #555;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.red-card:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); }

.red-facebook { --red: #1877F2; }
.red-youtube  { --red: #FF0000; }
.red-tiktok   { --red: #FE2C55; }

.red-perfil {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.red-perfil:hover { color: #fff; }

/* Logo de la red en su color, en un cuadro redondeado */
.red-icono {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.red-tiktok .red-icono { background: #fff; color: #000; }
.red-card:hover .red-icono { transform: scale(1.05); }

.red-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.red-info strong { font-size: 0.98rem; }

.red-info span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.red-seguir {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.red-tiktok .red-seguir { border-color: rgba(255, 255, 255, 0.4); }
.red-seguir:hover { background: var(--red); color: #fff; }
.red-tiktok .red-seguir:hover { background: #fff; color: #000; }
.red-seguir:active { transform: scale(0.97); }

/* Ya la sigue: queda gris, con tilde */
.red-seguir.siguiendo {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  animation: confirmar-seguir 0.35s ease;
}

.red-seguir.siguiendo:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

@keyframes confirmar-seguir {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.red-perfil:focus-visible,
.red-seguir:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

/* ---------- Franja final ---------- */
.footer-base {
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 4px;
}

.footer-legal a,
.footer-legal button {
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal button:hover { color: #fff; text-decoration: underline; }

/* Enlace al sitio institucional del canal (tv.upea.bo), junto al copyright */
.footer-separador { margin: 0 6px; opacity: 0.6; }

.footer-sitio {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
}

.footer-sitio:hover { color: #fff; text-decoration: underline; }

@media (max-width: 576px) {
  .footer-separador { display: none; }
  .footer-sitio { display: block; margin-top: 2px; }
}

/* ---------- Responsive ---------- */
/* Laptops: la marca en una fila arriba y las tres redes a lo ancho debajo */
@media (max-width: 1440px) {
  .footer-contenido {
    grid-template-columns: minmax(0, 1fr);   /* que un @usuario largo no ensanche la columna */
    gap: 0.95rem;
  }

  .footer-marca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
  }

  .footer-marca p { flex: 1; min-width: 240px; max-width: none; margin: 0; }
}

@media (max-width: 860px) {
  .footer-contenido { text-align: center; }
  .footer-marca { flex-direction: column; }
  .footer-marca p { min-width: 0; }
  .footer-redes h3 { text-align: center; }
  .redes-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; gap: 0.55rem; }
  .red-card { text-align: left; }
}

@media (max-width: 640px) {
  .footer-contenido { padding: 1rem 1rem 0.85rem; }
}
