/**
 * Marítima Andina - Footer Widget CSS
 * Recreación fiel del footer oficial MTA con logo centrado, 5 oficinas y barra inferior FAM TEAM
 */

.mta-footer {
  background: #ffffff;
  color: #171c36;
  padding: 60px 0 0 0;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  overflow: hidden;
}

.mta-footer-wrap {
  width: min(1320px, 100% - 48px);
  margin: 0 auto;
}

/* 1. Logo Centrado */
.mta-footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}

.mta-footer-top .mta-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mta-footer-top .mta-footer-logo-link img {
  max-width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 2. Líneas Divisorias */
.mta-footer-divider {
  width: 100%;
  height: 1px;
  background-color: #2b334a;
  opacity: 0.85;
  border: none;
  margin: 0;
}

/* 3. Cuadrícula de 5 Ciudades / Oficinas */
.mta-footer-offices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 44px 0 48px 0;
}

.mta-footer-office-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #434c5c;
}

.mta-footer-office-city {
  font-size: 15px;
  font-weight: 800;
  color: #11162b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.mta-footer-office-phone {
  font-size: 13px;
  font-weight: 500;
  color: #434c5c;
  text-decoration: none;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.mta-footer-office-phone:hover {
  color: #0879d9;
}

.mta-footer-office-address {
  font-size: 12.5px;
  color: #4b5568;
  margin: 0;
}

.mta-footer-office-building {
  font-size: 12.5px;
  color: #4b5568;
  margin: 0;
}

.mta-footer-office-location {
  font-size: 12.5px;
  color: #4b5568;
  margin: 0;
}

/* 4. Barra Inferior Azul Oscura (FAM TEAM & Legal) */
.mta-footer-bottom {
  background: #17213c;
  color: #ffffff;
  padding: 18px 0;
  margin-top: 0;
}

.mta-footer-bottom-wrap {
  width: min(1320px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mta-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Botón Circular LinkedIn */
.mta-footer-linkedin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mta-footer-linkedin:hover {
  background: #ffffff;
  color: #17213c;
  transform: translateY(-2px);
}

.mta-footer-linkedin svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Badge FAM TEAM */
.mta-footer-fam-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mta-footer-fam-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.mta-footer-fam-badge img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Lado Derecho de la Barra */
.mta-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.mta-footer-copyright {
  margin: 0;
}

.mta-footer-icon-mark {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  display: inline-block;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1100px) {
  .mta-footer-offices {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .mta-footer {
    padding-top: 48px;
  }

  .mta-footer-offices {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0 36px 0;
  }

  .mta-footer-bottom-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mta-footer-bottom-right {
    font-size: 12px;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .mta-footer-offices {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
