@import url('hwm-patterns.css');

:root {
  --hwm-blue: #38b6ff;
  --hwm-yellow: #ffde59;
  --hwm-black: #000000;
  --hwm-white: #ffffff;
  --line-blue: #d7edf9;
}

.footer,
.cleanFooter {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #050505 0%, #0f5575 52%, var(--hwm-blue) 100%);
  color: var(--hwm-white);
  border-top: 5px solid var(--hwm-yellow);
}

.footer::before,
.cleanFooter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  background-image:
    var(--hwm-honeycomb-dark),
    radial-gradient(circle at 8% 10%, rgba(255, 222, 89, .20), transparent 16rem);
  background-size: var(--hwm-panal-size), auto;
  background-position: center top, center;
}

.footer > *,
.cleanFooter > * {
  position: relative;
  z-index: 1;
}

.footer.cleanFooter.homeFooterCorp {
  max-width: none;
  margin-top: 0;
  padding: 0;
  background: var(--hwm-blue);
  color: var(--hwm-black);
  border-top: 4px solid var(--hwm-yellow);
  display: block;
}

.footer.cleanFooter.homeFooterCorp::before {
  background-image:
    var(--hwm-honeycomb-dark),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .25), transparent 18rem),
    radial-gradient(circle at 88% 10%, rgba(255, 222, 89, .22), transparent 16rem);
  background-size: var(--hwm-panal-size), auto, auto;
  background-position: center top, center, center;
}

.footer.cleanFooter.homeFooterCorp img {
  background: var(--hwm-white);
  border-radius: .75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line-blue);
}

.footer.cleanFooter.homeFooterCorp p,
.footer.cleanFooter.homeFooterCorp b {
  color: #1e293b;
}

.footer.cleanFooter.homeFooterCorp a {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.footer.cleanFooter.homeFooterCorp a:hover {
  color: var(--hwm-white);
}

.homeFooterLinks,
.homeFooterList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.homeFooterCompact .homeFooterShell {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) minmax(14rem, 1.35fr) minmax(16rem, 1fr);
  align-items: start;
  column-gap: clamp(1.25rem, 3.5vw, 3rem);
  row-gap: 1rem;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.1rem, 2.5vw, 1.6rem) clamp(0.35rem, 1.2vw, 0.75rem);
  text-align: left;
}

.homeFooterCompact .homeFooterCol--brand {
  justify-self: start;
  align-self: start;
  max-width: 14.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.homeFooterCompact .homeFooterCol--links {
  justify-self: center;
  width: min(100%, 36rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: 1.5rem clamp(2rem, 4vw, 3.5rem);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.homeFooterCompact .homeFooterCol--card {
  justify-self: end;
  width: 100%;
  max-width: 21rem;
  margin-left: auto;
}

.footer.cleanFooter.homeFooterCorp.homeFooterCompact .homeFooterHwmLogo {
  width: auto;
  height: 3.5rem;
  max-width: 11rem;
  object-fit: contain;
  background: var(--hwm-white);
  border-radius: .6rem;
  padding: .5rem .85rem;
  border: 1px solid var(--line-blue);
  margin-bottom: .85rem;
}

.homeFooterCompact .homeFooterBrandName {
  margin: 0 0 .65rem;
  font-size: .92rem;
  line-height: 1.2;
  text-align: left;
}

.homeFooterCompact .homeFooterTagline {
  margin: .35rem 0 0;
  padding-top: .15rem;
  font-size: .74rem;
  line-height: 1.5;
  font-weight: 600;
  color: #334155;
  text-align: left;
}

.footer.cleanFooter.homeFooterCorp.homeFooterCompact .homeFooterCol--links h4,
.homeFooterCompact .homeFooterCol--links h4 {
  margin: 0 0 .5rem;
  padding-bottom: .4rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--hwm-black);
  border-bottom: 2px solid rgba(0, 0, 0, .22);
}

.homeFooterCompact .homeFooterLinks li,
.homeFooterCompact .homeFooterList li {
  margin-bottom: .48rem;
  font-size: .74rem;
  line-height: 1.45;
  font-weight: 700;
  color: #1e293b;
}

.homeFooterCompact .homeFooterCard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: #f5fafd;
  border: 1px solid var(--line-blue);
  border-radius: .85rem;
  box-shadow: 0 8px 22px rgba(15, 50, 80, .08);
}

.homeFooterCompact .homeFooterBrand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .85rem;
}

.homeFooterCompact .homeFooterAlmatodoLogo {
  width: 3.75rem;
  height: 3.75rem;
  padding: .2rem;
  background: var(--hwm-white);
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  object-fit: contain;
}

.homeFooterCompact .homeFooterBrand strong {
  display: block;
  font-size: .78rem;
  text-align: left;
  color: #0f172a;
}

.homeFooterCompact .homeFooterBrand span {
  display: block;
  font-size: .64rem;
  text-align: left;
  color: #334155;
}

.homeFooterCompact .homeFooterContacts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  width: 100%;
}

.homeFooterCompact .homeFooterContacts span {
  padding: .42rem .65rem;
  font-size: .68rem;
  line-height: 1.4;
  border-radius: .55rem;
  text-align: left;
  color: #1e293b;
}

.homeFooterCompact .homeFooterCopy {
  max-width: 88rem;
  margin: 0 auto;
  padding: .75rem clamp(0.75rem, 2vw, 1.25rem) .95rem;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  color: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

@media (max-width: 900px) {
  .homeFooterCompact .homeFooterShell {
    grid-template-columns: 1fr;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }

  .homeFooterCompact .homeFooterCol--brand,
  .homeFooterCompact .homeFooterCol--links,
  .homeFooterCompact .homeFooterCol--card {
    justify-self: stretch;
    max-width: none;
    margin-left: 0;
  }

  .homeFooterCompact .homeFooterCol--links {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .homeFooterCompact .homeFooterCol--links {
    grid-template-columns: 1fr;
  }
}
