/* Footer — mapa + contacto, columnas y barra legal */

.eda-footer {
  margin-top: 0;
}

.eda-footer a {
  color: inherit;
  text-decoration: none;
}

.eda-footer a:hover {
  text-decoration: underline;
}

/* —— Mapa + panel azul (mapa a ancho completo; hueco ~14% a la izda del panel) —— */
.eda-footer__location {
  position: relative;
  background: #e8e8e8;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.eda-footer__map {
  grid-area: 1 / 1;
  min-width: 0;
  z-index: 1;
}

.eda-footer__map iframe {
  display: block;
  width: 100%;
  height: 450px;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
}

.eda-footer__panel {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: stretch;
  z-index: 2;
  background: #006d95;
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.eda-footer__panel h3 {
  font-family: var(--eda-font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.eda-footer__panel h3:not(:first-child) {
  margin-top: 1.75rem;
}

.eda-footer__hours p {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.55;
}

.eda-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eda-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.eda-footer__contact-icon {
  flex-shrink: 0;
  width: 1.1rem;
  margin-top: 0.15rem;
  text-align: center;
  opacity: 0.95;
}

.eda-footer__contact-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (min-width: 901px) {
  .eda-footer__location {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .eda-footer__panel {
    /* Columna vacía del original Elementor (~14,3%) + ancho del panel (~28,5%) */
    margin-left: 14.337%;
    width: clamp(280px, 28.527%, 420px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .eda-footer__location {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .eda-footer__panel {
    order: 1;
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
  }

  .eda-footer__map {
    order: 2;
  }

  .eda-footer__map iframe {
    height: 320px;
  }
}

/* —— Tres columnas (fondo texturizado) —— */
.eda-footer__main {
  background: #006d95 url("../img/fondo-footer.jpg") no-repeat center / cover;
  color: #fff;
  padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(1.25rem, 3vw, 1.25rem);
}

.eda-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.eda-footer__col h4 {
  font-family: var(--eda-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  letter-spacing: 0;
}

.eda-footer__rule {
  display: block;
  width: 70px;
  height: 3px;
  background: var(--eda-navy);
  margin: 0 0 1rem;
  border: 0;
}

.eda-footer__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.eda-footer__item img {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.eda-footer__item h5 {
  font-family: var(--eda-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
  letter-spacing: 0.02em;
}

.eda-footer__item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.eda-footer__tagline {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
}

.eda-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eda-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #006d95;
  background: #fff;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  transition: opacity 0.2s;
}

.eda-footer__social a:hover {
  opacity: 0.88;
  text-decoration: none;
}

.eda-footer__social svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.eda-footer__booking {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 300px;
}

.eda-footer__booking a {
  display: block;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}

.eda-footer__booking img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .eda-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .eda-footer__booking {
    max-width: 100%;
  }
}

/* —— Barra inferior (logo + legales + 3 columnas tratamientos) —— */
.eda-footer__bar {
  background: var(--eda-navy);
  color: #fff;
  padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.eda-footer__bar a {
  color: #fff;
  text-decoration: none;
}

.eda-footer__bar a:hover {
  color: var(--eda-teal, #4ab7c3);
  text-decoration: none;
}

.eda-footer__bar-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.eda-footer__bar-col--logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.eda-footer__bar-legal {
  width: 100%;
}

.eda-footer__logo img {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.eda-footer__logo--white img {
  filter: brightness(0) invert(1);
}

.eda-footer__bar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eda-footer__bar-links li {
  margin: 0 0 0.5rem;
}

.eda-footer__bar-links a {
  font-family: var(--eda-font-heading);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.eda-footer__bar-link--active {
  color: var(--eda-teal, #4ab7c3);
  font-weight: 700;
}

.eda-footer__bar-links--legal a {
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .eda-footer__bar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }

  .eda-footer__bar-col--logo {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
  }

  .eda-footer__bar-legal {
    flex: 1 1 220px;
  }
}

@media (max-width: 520px) {
  .eda-footer__bar-grid {
    grid-template-columns: 1fr;
  }

  .eda-footer__bar-col--logo {
    flex-direction: column;
    align-items: flex-start;
  }
}
