/* ==========================================================
   Footer
   Cárgalo DESPUÉS de areas.css.
   ========================================================== */
.footer {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 7vh, 4rem) clamp(1.25rem, 5vw, 4rem);
  /* espacio extra abajo para que el botón de WhatsApp no tape el texto */
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  background: var(--ink, #0c1c26);
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__logo {
  width: clamp(150px, 40vw, 190px);
  height: auto;
}

/* ---------- Botones de redes ---------- */
.footer__social {
  display: flex;
  gap: 0.9rem;
}

.footer__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.footer__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .footer__btn:hover {
    background: #fff;
    color: var(--ink, #0c1c26);
    border-color: #fff;
    transform: translateY(-3px);
  }
}

.footer__btn:active {
  transform: scale(0.94);
}

.footer__btn:focus-visible {
  outline: 3px solid var(--signal, #7fd1c3);
  outline-offset: 3px;
}

/* ---------- Copyright ---------- */
.footer__legal {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Escritorio: logo a la izquierda, redes a la derecha ---------- */
@media (min-width: 700px) {
  .footer { padding-bottom: 4.5rem; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__btn { transition: none; }
  .footer__btn:hover { transform: none; }
}
