/*
<footer class="footer" id="Datos">
  <div class="footer-container">

    <div class="footer-top">
      <div class="footer-block footer-map">
        <h4 class="footer-title">Dónde estamos</h4>
        <iframe ...></iframe>
        <a href="#" class="footer-a-Direccion">...</a>
      </div>

      <div class="footer-block footer-contact">
        <h4 class="footer-title">Contacto</h4>
        <a href="tel:+56900000000" class="footer-phone">📞 ...</a>
        <ul class="footer-social">...</ul>
      </div>

      <div class="footer-block footer-hours">
        <h4 class="footer-title">Horarios</h4>
        <ul class="footer-ul-horario">...</ul>
      </div>
    </div>

    <div class="footer-bottom">
      <p>© 2026 ...</p>
    </div>

  </div>
</footer>
*/

.footer {
  background-color: #d9c3c3;
  border-top: 1px solid #ddd;
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark .footer {
  background-color: #1e1e1e;
  border-top-color: #444;
}

.footer-container {
  max-width: 70rem;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer-block {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.footer-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.5rem;

  color: #222222;
}

body.dark .footer-title {
  color: #f0f0f0;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
}

body.dark .footer-title::after {
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

.footer-map iframe {
  width: min(100%, 26rem);
  height: 16rem;
  border: 0;
  border-radius: 1rem;

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.10),
    0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

body.dark .footer-map iframe {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.footer-a-Direccion {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;

  color: #4d3333;
  transition: transform 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
}

.footer-a-Direccion:hover {
  transform: translateY(-2px);
  text-decoration-color: currentColor;
}

body.dark .footer-a-Direccion {
  color: #a0a0a0;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;

  color: #e63946;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-phone:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(230, 57, 70, 0.18));
}

body.dark .footer-phone {
  color: #ef4444;
}

body.dark .footer-phone:hover {
  filter: drop-shadow(0 10px 18px rgba(239, 68, 68, 0.22));
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;

  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social li {
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  text-decoration: none;

  background-color: #dec4c4;
  border: 1px solid rgba(0, 0, 0, 0.08);

  font-size: 1.5rem;
  color: #e63946;

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.dark .footer-social a {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ef4444;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .footer-social a:hover {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-ul-horario {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.25rem;

  width: min(100%, 26rem);
  text-align: left;

  background-color: #dec4c4;
  border: 1px solid #ddd;
  border-radius: 1rem;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-ul-horario:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.dark .footer-ul-horario {
  background-color: #2a2a2a;
  border-color: #444;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .footer-ul-horario:hover {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-ul-horario li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  font-size: 1rem;
  color: #4d3333;
}

.footer-ul-horario li:last-child {
  border-bottom: 0;
}

body.dark .footer-ul-horario li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
}

.footer-ul-horario li strong {
  color: #222222;
  font-weight: 800;
}

body.dark .footer-ul-horario li strong {
  color: #f0f0f0;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

body.dark .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4d3333;
}

body.dark .footer-bottom p {
  color: #a0a0a0;
}

@media (min-width: 40rem) {
  .footer {
    padding: 4rem 1.5rem 3rem;
  }

  .footer-social a {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.65rem;
  }

  .footer-map iframe {
    height: 18rem;
  }

  .footer-phone {
    font-size: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .footer {
    padding: 5rem 1.5rem 4rem;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    text-align: left;
  }

  .footer-block {
    justify-items: start;
  }

  .footer-title::after {
    left: 0;
    transform: none;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

.footer a:focus-visible {
  outline: 2px solid #e63946;
  outline-offset: 3px;
  border-radius: 0.75rem;
}

body.dark .footer a:focus-visible {
  outline-color: #ef4444;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}