/* =========================
   VARIABLES DEL FOOTER
   ========================= */

:root {
  --footer-background: #ffffff;
  --footer-text: #1e293b;
  --footer-muted: #64748b;
  --footer-border: #e2e8f0;
  --footer-dark: #0b1727;
}

/* =========================
   FOOTER GENERAL
   ========================= */

.footer {
  padding: 6rem 0 2rem;
  color: var(--footer-text);
  background-color: var(--footer-background);
  border-top: 1px solid var(--footer-border);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer-title {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--footer-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================
   PARTE SUPERIOR
   ========================= */

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(160px, 0.7fr) minmax(260px, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: 4rem;
}

/* =========================
   MARCA Y LOGO
   ========================= */

.footer-brand {
  max-width: 420px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-description {
  max-width: 380px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--footer-muted);
}

/* =========================
   MENÚ DEL FOOTER
   ========================= */

.footer-navigation {
  min-width: 0;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.footer-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--footer-muted);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-menu a::before {
  width: 0;
  height: 1px;
  margin-right: 0;
  content: "";
  background-color: var(--footer-text);
  transition:
    width 0.25s ease,
    margin-right 0.25s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
  color: var(--footer-text);
  transform: translateX(3px);
}

.footer-menu a:hover::before,
.footer-menu a:focus-visible::before,
.footer-menu .current-menu-item > a::before,
.footer-menu .current_page_item > a::before {
  width: 18px;
  margin-right: 0.5rem;
}

/* =========================
   CONTACTO
   ========================= */

.footer-contact {
  min-width: 0;
  text-align: left;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-contact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--footer-text);
  background-color: #f8fafc;
  border: 1px solid var(--footer-border);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-list li > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.footer-contact-label {
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--footer-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact-list a,
.footer-contact-list address {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--footer-text);
  overflow-wrap: anywhere;
}

.footer-contact-list address {
  margin: 0;
  font-style: normal;
}

.footer-contact-list a {
  transition: color 0.25s ease;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--footer-muted);
}

/* =========================
   PARTE INFERIOR
   ========================= */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--footer-muted);
  border-top: 1px solid var(--footer-border);
}

.footer-copyright {
  margin: 0;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-legal a {
  position: relative;
  color: var(--footer-muted);
  transition: color 0.25s ease;
}

.footer-legal a:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.75rem;
  width: 1px;
  height: 12px;
  content: "";
  background-color: var(--footer-border);
  transform: translateY(-50%);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--footer-text);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 4rem 0 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;

  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    max-width: 160px;
    height: 50px;
  }

  .footer-contact-list li {
    gap: 0.75rem;
  }

  .footer-contact-icon {
    width: 38px;
    height: 38px;
  }

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra los elementos horizontalmente */
    gap: 0.75rem;
}

  .footer-legal a:not(:last-child)::after {
    display: none;
  }
}

/* =========================
   MOVIMIENTO REDUCIDO
   ========================= */

@media (prefers-reduced-motion: reduce) {
  .footer-logo,
  .footer-menu a,
  .footer-menu a::before,
  .footer-contact-list a,
  .footer-legal a {
    transition: none;
  }
}


/* ==========================
   MAPA FOOTER
========================== */

.footer-map {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 240px;
}