.site-footer {
  background: #475567;
  color: #ddd;
  padding: 40px 60px 20px;
  font-family: "Montserrat", sans-serif;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.left {
  flex: 1;
  margin: 10px;
}

.right {
  flex: 3;
  margin: 10px;
}

.footer-logo {
  max-width: 170px;
}

.footer-social {
  margin: 20px 0 15px 0;
}

.comInfo {
  margin: 13px 0;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  color: #a6c9e1;
}

.newsletter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 15px 0 30px 0;
}

.newsletter form {
  display: flex;
  flex: 1;
  min-width: 400px;
  max-width: 400px;
  margin: 0 0 0 20px;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 15px 0 0 15px;
  outline: none;
}

.news p {
  padding-right: 30px;
}

.newsletter button {
  padding: 10px 20px;
  border: none;
  background: #a6c9e1;
  color: #000;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.opcions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 30px 0;
}

.footer-links-payments {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.news ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.news li {
  margin: 0;
}

.news a {
  text-decoration: none;
  color: white;
  font-weight: 300;
  font-size: 15px;
}

.news a:hover {
  font-weight: 400;
}

.reg {
  align-items: center;
  text-align: center;
}

.news {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.tarjet {
  max-width: 200px;
  align-items: center;
}

.footer-payments img {
  height: 30px;
  margin-left: 10px;
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
}

.footer-bottom a {
  color: #a6c9e1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

.newsletter-wrapper {
  position: relative;
  display: inline-block;
}

.newsletter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #475567;
  color: #ddd;
  font-size: 14px;
  border-radius: 15px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.4s ease;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.newsletter-overlay.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* estados con transición suave */
.newsletter-overlay.success {
  background: #313b47;
  color: #ddd;
}

.newsletter-overlay.error {
  background: rgba(231, 76, 60, 0.9);
}

.newsletter-overlay.warning {
  background: rgba(243, 156, 18, 0.9);
}

.newsletter-overlay.loading {
  background: #313b47;
}

/* opcional: suavizar texto */
.newsletter-overlay span {
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.newsletter-overlay.show span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left,
  .right {
    flex: 1;
    width: 100%;
    margin: 10px 0;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .comInfo {
    text-align: center;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter form {
    margin: 15px auto 0 auto;
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  .newsletter-wrapper {
    display: flex;
    justify-content: center;
  }

  .news p {
    padding-right: 0;
  }

  .opcions {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .news ul {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .reg {
    text-align: center;
  }

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