html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

footer {
  background-color: white;
  color: #333333;
  font-size: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
}

.footer-top-bar {
  background-color: #0d3393;
  color: white;
  padding: 15px 0;
  text-align: center;
}

.footer-top-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  max-height: 50px;
  margin-right: 20px;
  margin-top: -10px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icons a {
  margin: 0;
  position: relative; /* Mantiene la posición relativa en el contenedor */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* Asegura que el contenedor tenga un ancho fijo */
  height: 30px; /* Asegura que el contenedor tenga una altura fija */
}

.footer-icons img {
  position: absolute; /* Cambiado a absolute */
  top: 0; /* Asegura que la imagen esté alineada arriba */
  left: 0; /* Asegura que la imagen esté alineada a la izquierda */
  width: 100%; /* Toma el ancho completo del contenedor */
  height: 100%; /* Toma la altura completa del contenedor */
  transition: opacity 0.3s ease;
}

.footer-icons img.red-icon {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.footer-icons a:hover img.normal-icon {
  opacity: 0;
}

.footer-icons a:hover img.red-icon {
  opacity: 1;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 160px;
  padding: 20px 0;
}

.footer-section {
  flex: 1 1 200px;
  max-width: 300px;
  text-align: left;
  margin: 0 10px;
}
.footer-section.products {
  transform: translateX(40px);
}
.footer-section h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-section ul li {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 10px;
  padding-left: 1.5em;
  position: relative;
}

.footer-section ul li::before {
  content: "•";
  color: #666666;
  position: absolute;
  left: 0;
}

.footer-section ul li a {
  text-decoration: none;
  color: #333333;
}

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

.footer-section p,
.footer-section a {
  font-size: 16px;
  line-height: 20px;
  margin-top: -11px;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  color: #333333;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: none;
}

.footer-section h4 {
  color: #333333;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  margin-block-end: 16px;
}

.footer-bottom {
  padding: 10px 0;
  font-weight: 300;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 200;
  color: #333333;
  background-color: #f3f3f3;
  text-align: center;
  margin-top: auto;
}

/* Estilos adicionales */

.footer-section.address p:last-of-type {
  margin-bottom: 20px;
}

.footer-section.legal ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.footer-section.legal ul li::before {
  content: "•";
  color: #666666;
  position: absolute;
  left: 0;
}

.footer-section.horario ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-section.horario ul li::before {
  content: "•";
  color: #666666;
  position: absolute;
  left: 0;
}

.footer-section ul li.no-bullet::before {
  content: none;
}

.footer-section i {
  margin-right: 10px;
  position: relative;
  left: -1.2em;
}

.footer-section ul li.no-bullet p {
  margin-top: -23px;
  margin-left: 4px;
  white-space: nowrap;
}
.footer-section ul li.no-bullet a:hover {
  text-decoration: underline;
}

.footer-section p,
.footer-section li,
.footer-section a {
  margin-bottom: 20px;
}

.footer-section ul li:last-child,
.footer-section p:last-child {
  margin-bottom: 0;
}
.address-link {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #333333;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  gap: 8px;
  transform: translateY(10px);
}

.address-link:hover {
  color: #0d3393;
  text-decoration: none;
}
.address-link:hover .address-text {
  text-decoration: underline;
  text-decoration-color: #666666;
}

.address-link:active .address-text {
  text-decoration: underline;
  text-decoration-color: #666666;
}
.address-link i {
  font-size: 16px;
  margin-top: 5px;
  min-width: 16px;
  margin-right: 0; /* Override cualquier margin-right previo */
  position: static; /* Override cualquier position previo */
  left: auto; /* Override cualquier left previo */
}

.address-text {
  flex: 1;
  line-height: 1.4;
  margin: 0;
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  transform: translateY(10px);
}

/* Responsive */
@media screen and (max-width: 1700px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .label {
    font-size: 11px;
  }
}

@media screen and (max-width: 1300px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .arriba {
    width: auto;
  }

  .label {
    font-size: 10px;
    padding: 4px 8px;
  }

  .main-content {
    padding: 15px;
  }
}
@media screen and (min-width: 751px) and (max-width: 1050px) {
  
  /* Footer principal */
  footer {
    min-height: 400px;
    font-size: 13px;
  }

  /* Barra superior del footer */
  .footer-top-bar {
    padding: 12px 20px;
  }

  .footer-top-content {
    max-width: 95%;
    padding: 0 15px;
    gap: 15px;
  }

  .footer-logo {
    max-height: 45px;
    margin-right: 15px;
  }

  .footer-icons {
    gap: 15px;
  }

  .footer-icons a {
    width: 28px;
    height: 28px;
  }

  /* Contenedor principal del footer */
  .footer-container {
    gap: 60px;
    padding: 15px 20px;
    max-width: 95%;
    margin: 0 auto;
    justify-content: space-between;
  }

  /* Secciones del footer */
  .footer-section {
    flex: 1 1 220px;
    max-width: 280px;
    margin: 0 5px;
  }

  .footer-section.products {
    transform: translateX(20px);
    flex: 1 1 200px;
  }

  .footer-section h3 {
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 700;
  }

  .footer-section h4 {
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 12px;
  }

  /* Listas y enlaces */
  .footer-section ul li {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 8px;
    padding-left: 1.3em;
  }

  .footer-section p,
  .footer-section a {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 15px;
  }

  /* Sección de atención al cliente */
  .footer-section.customer-service ul li.no-bullet {
    padding-left: 18px;
    margin-bottom: 8px;
  }

  .footer-section ul li.no-bullet i {
    margin-right: 8px;
    left: -1.1em;
    font-size: 14px;
  }

  .footer-section ul li.no-bullet p {
    margin-top: -20px;
    margin-left: 2px;
    font-size: 14px;
  }

  /* Horario */
  .horario {
    margin-top: 12px;
  }

  .horario h4 {
    margin-bottom: 10px;
  }

  .horario ul li {
    margin-bottom: 6px;
    font-size: 14px;
  }

  /* Sección de dirección */
  .footer-section.address {
    flex: 1 1 240px;
  }

  .address-link {
    gap: 6px;
    margin-bottom: 8px;
    transform: translateY(8px);
  }

  .address-link i {
    font-size: 15px;
    margin-top: 4px;
    min-width: 15px;
  }

  .address-text {
    font-size: 14px;
    line-height: 1.3;
    transform: translateY(8px);
  }

  /* Información legal */
  .legal {
    margin-top: 12px;
  }

  .legal h3 {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .footer-section.legal ul li {
    margin-bottom: 6px;
    font-size: 14px;
  }

  /* Footer inferior */
  .footer-bottom {
    padding: 8px 20px;
    font-size: 13px;
  }
}
@media (max-width: 750px) {
   .address-link {
    gap: 6px;
    margin-bottom: 8px;
  }

  .address-link i {
    font-size: 14px;
    min-width: 14px;
  }

  .address-text {
    font-size: 14px;
    line-height: 1.3;
    transform: translateY(0px);
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
  }

  .footer-section {
    max-width: 100%;
    margin: 0;
    text-align: left;
    padding: 0;
    transform: none;
  }

  .footer-section.products {
    transform: translateX(0);
  }

  .footer-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .footer-section ul {
    margin: 0;
  }

  .footer-section ul li {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    padding-left: 15px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 5px;
  }

  .footer-section.customer-service ul li.no-bullet {
    padding-left: 20px;
    margin-bottom: 5px;
  }

  .footer-section ul li.no-bullet i {
    margin-right: 8px;
    left: -15px;
  }

  .footer-section ul li.no-bullet p {
    margin: 0;
    margin-left: 0;
    display: inline;
  }

  .horario {
    margin-top: 15px;
  }

  .horario h4 {
    font-size: 14px;
    margin: 0;
    margin-bottom: 8px;
  }

  .horario ul li {
    margin-bottom: 5px;
  }

  .footer-section.address p {
    margin-bottom: 5px;
  }

  .legal {
    margin-top: 15px;
  }

  .legal h3 {
    margin-bottom: 8px;
  }

  .footer-section.legal ul li {
    margin-bottom: 5px;

  }
  /* parte azul del footer con el logo y los iconos*/
  .footer-top-bar {
    background-color: #0d3393;
    padding: 15px 20px;
  }
  
  .footer-top-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-logo {
    height: 60px;
    margin: 0;
  }
  
  .footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
  }
  
  .footer-icons a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
