.ev-site-footer {
  --ev-footer-bg: #134632;
  --ev-footer-ink: #fffaf0;
  --ev-footer-muted: #d9e8dc;
  --ev-footer-accent: #f4db9b;
  --ev-footer-width: min(1140px, calc(100% - 48px));
  background: var(--ev-footer-bg);
  color: var(--ev-footer-ink);
  padding: 0;
  text-align: left;
  font-size: .875rem;
  line-height: 1.45;
}

.ev-site-footer--huevos {
  --ev-footer-bg: #512d1b;
  --ev-footer-muted: #f4e4d4;
}

.ev-site-footer--home {
  --ev-footer-width: var(--container);
}

/* Los accesos flotan durante el recorrido y se detienen encima del pie. */
.ev-footer-float {
  position: sticky;
  bottom: 0;
  z-index: 70;
  height: 0;
}

.ev-footer-float > .floating-whatsapp,
.ev-footer-float > .floating-taconachos {
  position: absolute;
}

.ev-legal-inner, .ev-footer-meta {
  width: var(--ev-footer-width);
  margin-inline: auto;
}

.ev-legal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(270px, 330px);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding-block: 24px;
  color: var(--ev-footer-muted);
}

.ev-legal-inner p {
  margin: 0;
  overflow-wrap: anywhere;
}

.ev-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--ev-footer-ink);
  font: 700 1.35rem/1.12 Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.ev-legal-brand img {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 50%;
  background: #fffaf0;
  object-fit: contain;
}

.ev-legal-contact .ev-legal-label {
  margin-bottom: 4px;
  color: var(--ev-footer-accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ev-legal-contact a, .ev-footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 3px;
}

.ev-legal-book {
  display: grid;
  grid-template-columns: minmax(100px, 142px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  background: #faf5e8;
  color: #234635;
  text-decoration: none;
}

.ev-site-footer--huevos .ev-legal-book {
  color: #512d1b;
}

.ev-legal-book img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.ev-legal-book-copy {
  display: grid;
  gap: 4px;
  line-height: 1.25;
}

.ev-legal-book-copy strong {
  font: 700 1.05rem/1.1 Georgia, "Times New Roman", serif;
}

.ev-legal-book-copy > span {
  font-size: .75rem;
  font-weight: 600;
}

.ev-legal-book:hover .ev-legal-book-copy > span,
.ev-legal-brand:hover > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ev-site-footer a:focus-visible {
  outline: 3px solid var(--ev-footer-accent);
  outline-offset: 4px;
}

.ev-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding-block: 10px 14px;
  border-top: 1px solid rgb(255 255 255 / .18);
  color: var(--ev-footer-muted);
  font-size: .75rem;
}

.ev-footer-meta nav, .ev-footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.ev-footer-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 5px;
}

.ev-footer-shortcuts .icon,
.ev-footer-float .floating-whatsapp .icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .ev-site-footer:not(.ev-site-footer--home) {
    --ev-footer-width: calc(100% - 32px);
  }

  .ev-legal-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 13px;
    padding-block: 17px;
  }

  .ev-legal-brand {
    gap: 7px;
    font-size: 1.12rem;
  }

  .ev-legal-brand img {
    width: 34px;
    height: 34px;
  }

  .ev-legal-book {
    grid-column: 1 / -1;
    grid-template-columns: clamp(100px, 30vw, 142px) minmax(0, 1fr);
    max-width: 420px;
  }
}

@media (max-width: 380px) {
  .ev-legal-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
