body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #000;
}

.center-image {
  max-width: 300px;
  height: auto;
  margin-top: 8%;
  margin-bottom: 5%;
}

.country-info {
  width: 100%;
  justify-content: center;
  display: flex;
  gap: 12%;
  color: #000 !important;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  font-family: "Work Sans", sans-serif !important;
  margin-bottom: 5%;
}

.country-info div {
  text-align: center;
}

.banderas {
  box-shadow: 0 2px 4px rgb(0 0 0 / 18%);
  transition: transform 0.3s ease;
}

.top-bar {
  background-color: #da251e;
  color: #fff;
  font-size: 12px;
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 55px;
  justify-content: center;
  width: 100%;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.pipe {
  margin: 0 10px;
}

footer {
  background: #333;
  color: #d6d6d6;
  font-family: "Work Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  width: 100%;
}

.container-footer {
  padding: 2rem 7%;
}

.content-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 15px;
  margin-bottom: 25px;
}

.column {
  flex: 1;
  min-width: 200px;
}

.title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

ul li a {
  color: #d6d6d6;
  text-decoration: none;
}

ul li a:hover {
  text-decoration: underline;
}

.icon-redes {
  width: 24px;
  height: auto;
  object-fit: cover;
}

.country-info-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #d6d6d6;
}

p {
  color: #6d6d6d;
}

/* Oculta el footer mobile por defecto */
.footer-mobile {
  display: none;
}

/* FOOTER MOBILE ESTILOS */
.footer-mobile-content {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.mobile-columns .column {
  flex: 1;
  min-width: 130px;
}

.mobile-columns h4.title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mobile-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.mobile-columns ul li a {
  color: #d6d6d6;
  text-decoration: none;
}

.mobile-columns ul li a:hover {
  text-decoration: underline;
}

.footer-mobile-divider {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  padding: 16px 0;
  flex-wrap: wrap;
  text-align: center;
  align-items: anchor-center;
}

.mobile-ayuda {
  flex: 1;
}

.mobile-ayuda a {
  color: #d6d6d6;
  font-weight: 500;
}

.mobile-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: right;
  gap: 4px;
}

.mobile-contacto a {
  color: #d6d6d6;
  text-decoration: none;
}

.mobile-contacto a:hover {
  text-decoration: underline;
}

.mobile-redes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.mobile-redes img {
  width: 24px;
  height: auto;
}

/* Muestra el footer mobile y oculta el de desktop en pantallas chicas */
@media (max-width: 767px) {
  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: block;
  }
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .top-bar {
    height: 4px;
    min-height: 4px;
    overflow: hidden;
    padding: 0;
    gap: 0;
  }

  .top-bar a,
  .top-bar .pipe {
    display: none !important;
  }

  .country-info {
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 32px;
    justify-content: center;
  }

  .country-info > div {
    width: 40%;
  }

  .center-image {
    margin-top: 20%;
    margin-bottom: 20%;
  }

  .country-info {
    margin-bottom: 20%;
  }

  .content-columns {
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }

  .nosotros,
  .comunidad {
    width: 48%;
    box-sizing: border-box;
    padding: 0 5px;
  }

  .contacto,
  .redes {
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 420px) {
  .nosotros,
  .comunidad {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 576px) {
  .content-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .nosotros {
    order: 1;
  }

  .comunidad {
    order: 2;
  }

  .contacto {
    order: 3;
    grid-column: span 2;
  }

  .redes {
    order: 4;
    grid-column: span 2;
  }
}
