/* --- Footer Styles --- */
.main-footer {
  background-color: var(--accent-color);

  background-image: url("data:image/svg+xml,%3Csvg id='patternId' width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' patternUnits='userSpaceOnUse' width='32' height='32' patternTransform='scale(1) rotate(0)'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='%23ffffff00'/%3E%3Cpath d='M37.657 10.343l-4.243 4.243m-2.828 2.828l-4.243 4.243m11.314 0l-4.243-4.243m-2.828-2.828l-4.243-4.243m-20.686 0l-4.243 4.243m-2.828 2.828l-4.243 4.243m11.314 0l-4.243-4.243m-2.828-2.828l-4.243-4.243' stroke-linejoin='round' stroke-linecap='round' stroke-width='1' stroke='rgba(255,255,255,0.03)' fill='none'/%3E%3Cpath d='M16-8v6m0 4v6m8-8h-6m-4 0H8m8 24v6m0 4v6m8-8h-6m-4 0H8' stroke-linejoin='round' stroke-linecap='round' stroke-width='1' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800%25' height='800%25' transform='translate(-39,-64)' fill='url(%23a)'/%3E%3C/svg%3E");
  color: var(--white);
  padding: 60px 5% 40px;
  font-size: 15px;
  text-align: center;
  overflow-x: hidden;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-top h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.footer-top .nit {
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-top .tagline {
  font-size: 20px;
  margin-bottom: 30px;
}

.logo-nueva-eps {
  height: 120px; /* Tamaño original de la imagen */
  width: auto;
  display: inline-block;
  margin-bottom: 30px;
  transition: var(--transition);
}

.logo-nueva-eps:hover {
  transform: scale(1.1);
}

.email-bar {
  background: var(--white);
  color: var(--accent-color);
  padding: 12px 40px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 30px;
  text-decoration: none;
  transition: var(--transition);
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
}

.email-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.social-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.social-item img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.social-item span {
  font-size: 13px;
  background: var(--white);
  color: var(--accent-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.footer-divider {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  margin: 40px 0;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.info-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.info-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.info-content {
  text-align: center;
}

.info-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.info-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.info-content strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

/* --- WhatsApp Grid --- */
.footer-whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
}

.whatsapp-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.wa-number-bar {
  background: var(--white);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.wa-number-bar:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wa-number-bar img {
  width: 24px;
  height: 24px;
}

.whatsapp-col p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
  padding: 0 20px;
}

/* --- Institutional Links Row --- */
.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  align-items: center;
}

.institutional-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inst-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.inst-link:hover {
  opacity: 0.8;
  padding-left: 5px;
}

.inst-link img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.responsibility-section {
  display: block;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.responsibility-section:hover {
  opacity: 0.85;
}

.responsibility-logo {
  width: 80px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.responsibility-section p {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
}

/* --- Nuestras Sedes --- */
.footer-sedes {
  max-width: 1200px;
  margin: 40px auto;
}

.sedes-title {
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: 500;
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.sede-item {
  display: flex;
  gap: 15px;
}

.sede-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.sede-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.sede-info p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 3px;
  line-height: 1.3;
}

/* --- Footer Bottom Bar --- */
.footer-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto 20px;
}

.supersalud-logo img {
  height: 60px;
  width: auto;
}

.bottom-contact {
  text-align: right;
}

.bottom-contact p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

@media (max-width: 992px) {
  .main-footer {
    padding: 40px 4% 30px;
  }

  .footer-whatsapp-grid,
  .footer-info-grid,
  .footer-links-row,
  .sedes-grid,
  .sedes-cauca {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spacer-col {
    display: none;
  }

  .sede-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .bottom-contact {
    text-align: center;
  }

  .footer-links-row {
    gap: 40px;
    text-align: center;
  }

  .inst-link {
    justify-content: center;
  }

  .email-bar {
    padding: 10px 20px;
    font-size: 14px;
  }

  .supersalud-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
  }

  .footer-sedes,
  .footer-links-row,
  .footer-bottom-bar {
    width: 100%;
  }
}
