/*******************************
 * Footer – Versión Final Profesional
 *******************************/
.site-footer {
  background: var(--gray-800);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
  font-family: inherit;
  line-height: 1.6;
  font-style: normal;
}

/* === GRID PRINCIPAL === */
.footer-container {
  display: grid;
  grid-template-columns:
    minmax(260px, 320px)   /* Logo */
    minmax(280px, 1fr)     /* Navegación */
    minmax(260px, 1fr)     /* Contacto */
    minmax(220px, 1fr);    /* Oficinas */
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  align-items: start;
}

/* === LOGO === */
.footer-logo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem 0;
}

.footer-logo .logo-link {
  display: inline-block;
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo .logo-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.footer-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

/* === TITULOS === */
.footer-links h2,
.footer-contact h2,
.footer-locations h2 {
  display: block;
  width: 100%;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  position: relative;
  line-height: 1.25;
  font-style: normal;
}

.footer-links h2::after,
.footer-contact h2::after,
.footer-locations h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* === SUBTITULO PLLC === */
.footer-locations .pllc-subtitle {
  display: block;
  color: var(--gray-400);
  margin: 0.5rem 0 1.25rem 0;
  letter-spacing: 0.02em;
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem; /* tamaño base de “Quiroga Law Office” */
}

/* SOLO las 4 letras “PLLC” más pequeñas */
.footer-locations .pllc-subtitle .pllc,
.footer-locations .pllc-subtitle span.pllc,
.footer-locations .pllc-subtitle abbr[title="PLLC"] {
  font-size: 0.85em !important;   /* p.ej. 10 si el resto fuera 12 */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Compatibilidad si usaste <strong> + <span> anteriormente */
.footer-locations .pllc-subtitle strong { font-size: 1em; font-weight: 600; color: var(--gray-200); }
.footer-locations .pllc-subtitle strong + span { font-size: 0.85em; text-transform: uppercase; }

/* === SECCIONES (estructura vertical estricta) === */
.footer-links,
.footer-contact,
.footer-locations {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: min-content;
  row-gap: 1rem;
  align-content: start;
}

.footer-links > h2,
.footer-links > ul,
.footer-contact > h2,
.footer-contact > p,
.footer-contact > .social-icons,
.footer-locations > h2,
.footer-locations > .pllc-subtitle,
.footer-locations > ul {
  grid-column: 1 / -1 !important;
  display: block !important;
  float: none !important;
  clear: both !important;
}

/* === LISTAS === */
.footer-links ul,
.footer-locations ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li,
.footer-locations li {
  display: block !important;
  margin: 0;
  font-size: 0.95rem;
  font-style: normal;
}

.footer-links a,
.footer-locations a {
  color: var(--gray-300);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.25s ease, transform 0.25s ease;
  font-style: normal;
}

.footer-links a:hover,
.footer-locations a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* === CONTACTO === */
.footer-contact p {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.5;
  font-style: normal;
}

.footer-contact i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.25s ease;
  font-style: normal;
}

.footer-contact a:hover {
  color: var(--primary);
}

/* === DIRECCIÓN === */
.footer-contact p:last-of-type {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* === REDES SOCIALES: una sola fila horizontal (solo íconos) === */
.footer-contact .social-icons {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;     /* no saltar de línea */
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow-x: auto;                  /* scroll si no caben */
  scrollbar-width: thin;
}

.footer-contact .social-icons a {
  flex: 0 0 auto;
  color: var(--gray-300);
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex !important;   /* asegura fila */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-style: normal;
}

/* Si tus enlaces de redes traen contadores/etiquetas, ocúltalos (deja solo el ícono) */
.footer-contact .social-icons a > span,
.footer-contact .social-icons a > small,
.footer-contact .social-icons a > strong,
.footer-contact .social-icons a > em {
  display: none !important;
}

.footer-contact .social-icons a:hover {
  color: var(--white);
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* === PIE INFERIOR === */
.footer-bottom {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-400);
  font-style: normal;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  padding: 0.25rem;
  transition: color 0.25s ease;
  font-style: normal;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns:
      minmax(260px, 320px)
      1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links ul,
  .footer-locations ul {
    align-items: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-contact .social-icons {
    justify-content: center;   /* centrados en móvil */
  }

  .footer-links h2::after,
  .footer-contact h2::after,
  .footer-locations h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a:hover,
  .footer-locations a:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  .footer-container {
    gap: 2rem;
  }

  .footer-logo img {
    height: 100px;
  }
}