/* ================================
   FOOTER PRO – Estilo empresarial dark
   Gradiente negro/blanco · textos blancos
   ================================ */

.footer-pro {
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;

  /* Gradiente negro → gris oscuro → gris medio (sensación b/n) */
  background: linear-gradient(
    180deg,
    #020617 0%,
    #050816 32%,
    #0b1120 70%,
    #111827 100%
  );

  color: #f9fafb;

  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

/* Se activa con JS cuando el footer entra en viewport */
.footer-pro.footer-pro--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Contenedor general */
.footer-pro__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ======================
   BLOQUE SUPERIOR
   ====================== */

.footer-pro__top {
  padding: 72px 0 54px;
}

/* Grid ocupa todo el ancho */
.footer-pro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px 32px;
}

/* Columnas base con animación suave */
.footer-pro__col {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer-pro.footer-pro--visible .footer-pro__col {
  opacity: 1;
  transform: translateY(0);
}

.footer-pro__col:nth-child(1) {
  transition-delay: 0.05s;
}
.footer-pro__col:nth-child(2) {
  transition-delay: 0.15s;
}
.footer-pro__col:nth-child(3) {
  transition-delay: 0.25s;
}
.footer-pro__col:nth-child(4) {
  transition-delay: 0.35s;
}

/* Marca / descripción */
.footer-pro__logo-row {
  margin-bottom: 12px;
}

.footer-pro__logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9));
}

.footer-pro__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #e5e7eb;
}

/* Palabras clave resaltadas sobre fondo oscuro */
.footer-pro__highlight {
  font-weight: 600;
  color: #ffffff;
  position: relative;
}
.footer-pro__highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.32em;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(249, 250, 251, 0.16),
    rgba(249, 250, 251, 0.02)
  );
  z-index: -1;
}
.footer-pro__highlight--inline::after {
  height: 0.25em;
}

/* Pills meta */
.footer-pro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-pro__meta-pill {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.footer-pro__meta-pill--outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

/* Encabezados sección (Integrantes, Docentes, Contacto) */
.footer-pro__section-heading {
  margin-bottom: 10px;
}

.footer-pro__title {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f9fafb;
}

.footer-pro__title-line {
  display: block;
  margin-top: 6px;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(249, 250, 251, 0.7),
    rgba(249, 250, 251, 0)
  );
}

/* Listas flotantes (sin cajas) */
.footer-pro__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-pro__list-item {
  margin-bottom: 6px;
}

.footer-pro__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-pro__link::before {
  content: '•';
  font-size: 0.8rem;
  color: #9ca3af;
  transform: translateY(-1px);
}

.footer-pro__link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Contacto */
.footer-pro__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-pro__contact-item {
  font-size: 0.9rem;
}

.footer-pro__contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.footer-pro__contact-text {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.7;
}

/* ======================
   BLOQUE INFERIOR
   ====================== */

.footer-pro__bottom {
  background: #020617; /* franja negra en la parte baja */
  color: #e5e7eb;
}

.footer-pro__bottom-inner {
  padding: 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-pro__copy {
  margin: 0;
  font-size: 0.84rem;
  color: #9ca3af;
}

.footer-pro__copy strong {
  color: #f9fafb;
}

/* Redes sociales con logos SVG blancos */
.footer-pro__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-pro__social a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.footer-pro__social img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Hover: se invierten (píldora blanca, icono oscuro) */
.footer-pro__social a:hover {
  transform: translateY(-2px);
  background: #f9fafb;
  border-color: #f9fafb;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
}

.footer-pro__social a:hover img {
  filter: invert(6%) sepia(9%) saturate(678%) hue-rotate(176deg) brightness(93%)
    contrast(93%);
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 992px) {
  .footer-pro__top {
    padding: 64px 0 48px;
  }

  .footer-pro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-pro__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-pro__top {
    padding: 52px 0 40px;
  }

  .footer-pro__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-pro__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-pro__social {
    justify-content: flex-start;
  }
}
