/* ===== Site footer — mockup reference (desktop columns + legal bar) ===== */
.site-footer {
  --footer-bg: #061526;
  --footer-line: rgba(244, 247, 251, 0.12);
  --footer-muted: rgba(196, 214, 230, 0.62);
  --footer-text: rgba(244, 247, 251, 0.92);
  --footer-accent: #3ec9b0;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 0;
  border-top: 0;
  font-family: var(--sans, "Source Sans 3", system-ui, sans-serif);
}
.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
}

.footer-inner {
  padding: 2rem 0 1.25rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.footer-logo { display: inline-flex; }
.footer-logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(210px, 78vw);
}
.footer-micro {
  margin: .55rem 0 0;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--footer-muted);
  line-height: 1.3;
}

.footer-contact-label {
  margin: 0 0 .4rem;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--footer-accent);
}
.footer-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff !important;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .65rem 1.1rem;
  border: 1px solid var(--footer-accent);
  border-radius: 2px;
  background: transparent;
  color: #fff !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  width: 100%;
  max-width: 18rem;
  transition: background .15s ease, color .15s ease;
}
.footer-wa:hover {
  background: rgba(62, 201, 176, 0.12);
  color: #fff !important;
}
.footer-wa-arrow { opacity: .85; font-weight: 400; }
.footer-mail {
  display: inline-block;
  margin-top: .75rem;
  font-size: .82rem;
  color: var(--footer-muted) !important;
  line-height: 1.4;
}
.footer-mail:hover { color: #fff !important; }

.footer-nav--desktop { display: none; }
.footer-nav--mobile { display: block; margin-top: .35rem; }

.footer-acc { border-bottom: 1px solid var(--footer-line); }
.footer-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: .7rem 0;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--footer-accent);
}
.footer-acc > summary::-webkit-details-marker { display: none; }
.footer-acc > summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 400;
  color: rgba(244, 247, 251, 0.45);
}
.footer-acc[open] > summary::after { content: "–"; }
.footer-acc ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.footer-acc a {
  display: block;
  padding: .45rem 0;
  font-size: .92rem;
}

.footer-legal-bar {
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
}
.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 0 1.25rem;
  font-size: .72rem;
  color: var(--footer-muted);
}
.footer-partner-block {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.footer-partner-label {
  margin: 0;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--footer-muted);
}
.footer-partner-link {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}
.footer-partner-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 168px;
  opacity: .9;
  filter: brightness(0) invert(1);
}
.footer-partner-link:hover .footer-partner-logo { opacity: 1; }
.footer-legal-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  align-items: center;
}
.footer-copy { margin: 0; color: var(--footer-muted); }
.footer-sep { opacity: .45; }
.footer-legal-links a { color: var(--footer-muted); }
.footer-legal-links a:hover { color: #fff; }

@media (min-width: 1100px) {
  .footer-inner { padding: 2.75rem 0 1.75rem; }
  .footer-main {
    display: grid;
    grid-template-columns:
      minmax(9.5rem, 12rem)
      minmax(0, 1fr)
      minmax(12.5rem, 15rem);
    gap: 1.75rem 1.5rem;
    align-items: start;
  }
  .footer-logo img {
    height: 42px;
    max-width: 230px;
  }
  .footer-nav--mobile { display: none; }
  .footer-nav--desktop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    min-width: 0;
  }
  .footer-col {
    padding: 0 1.15rem;
    border-left: 1px solid var(--footer-line);
  }
  .footer-col:first-child { padding-left: 1.25rem; }
  .footer-col-label {
    margin: 0 0 .95rem;
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--footer-accent);
  }
  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer-col li + li { margin-top: .55rem; }
  .footer-col a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9rem;
    line-height: 1.35;
    color: rgba(244, 247, 251, 0.88);
  }
  .footer-col a::after {
    content: "–";
    flex-shrink: 0;
    opacity: .45;
    font-weight: 400;
  }
  .footer-col a:hover { color: #fff; }
  .footer-col a:hover::after { opacity: .75; }

  .footer-contact {
    text-align: left;
    padding-left: 1.25rem;
    border-left: 1px solid var(--footer-line);
  }
  .footer-phone { font-size: 1.45rem; margin-bottom: .85rem; }
  .footer-wa {
    width: auto;
    max-width: none;
    padding-inline: 1.15rem;
  }
  .footer-mail { margin-top: .9rem; font-size: .8rem; }

  .footer-legal-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.05rem 0 1.2rem;
  }
  .footer-partner-block {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
  }
  .footer-partner-logo { max-width: 190px; }
  .footer-legal-links {
    gap: .65rem;
    flex-wrap: nowrap;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .footer-identity { grid-column: 1; }
  .footer-contact { grid-column: 2; justify-self: end; text-align: right; }
  .footer-wa { margin-left: auto; }
  .footer-nav--mobile { display: none; }
  .footer-nav--desktop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 1rem;
    border-top: 1px solid var(--footer-line);
    padding-top: 1.25rem;
  }
  .footer-col-label {
    margin: 0 0 .75rem;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--footer-accent);
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; }
  .footer-col li + li { margin-top: .4rem; }
  .footer-col a { font-size: .86rem; }
  .footer-legal-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-partner-block {
    flex-direction: row;
    align-items: center;
    gap: .65rem;
  }
}

/* ===== WhatsApp FAB — brand ink, all pages, dismissible + draggable ===== */
.wa-fab-wrap {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 2.85rem;
  height: 2.85rem;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.wa-fab-wrap.is-dismissed,
.wa-fab-wrap[hidden] {
  display: none !important;
}
.wa-fab-wrap--above-sticky {
  bottom: max(4.75rem, calc(3.75rem + env(safe-area-inset-bottom, 0px)));
}
.wa-fab-wrap--moved {
  /* left/top set inline after drag */
}
.wa-fab-wrap.is-dragging {
  cursor: grabbing;
}
.wa-fab-wrap.is-dragging .wa-fab {
  transition: none;
  transform: none;
  box-shadow:
    0 2px 6px rgba(7, 22, 40, 0.28),
    0 12px 28px rgba(7, 22, 40, 0.32);
}
.wa-fab {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b1f3a;
  color: #f4f7fb;
  border: 1px solid rgba(244, 247, 251, 0.14);
  box-shadow:
    0 1px 2px rgba(7, 22, 40, 0.18),
    0 8px 22px rgba(7, 22, 40, 0.22);
  text-decoration: none;
  cursor: grab;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.wa-fab:hover {
  background: #132a4a;
  border-color: rgba(244, 247, 251, 0.28);
  box-shadow:
    0 2px 4px rgba(7, 22, 40, 0.2),
    0 10px 26px rgba(7, 22, 40, 0.28);
  transform: translateY(-1px);
  color: #fff;
}
/* Negativo: fondo claro + icono navy cuando el backdrop es oscuro */
.wa-fab-wrap--on-dark .wa-fab {
  background: #f4f7fb;
  color: #0b1f3a;
  border-color: rgba(11, 31, 58, 0.14);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.28);
}
.wa-fab-wrap--on-dark .wa-fab:hover {
  background: #fff;
  color: #071628;
  border-color: rgba(11, 31, 58, 0.22);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.24),
    0 10px 26px rgba(0, 0, 0, 0.32);
}
.wa-fab-wrap--on-dark .wa-fab-close {
  background: #f4f7fb;
  color: #0b1f3a;
  border-color: rgba(11, 31, 58, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.wa-fab-wrap--on-dark .wa-fab-close:hover {
  background: #fff;
  color: #071628;
}
.wa-fab:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.55);
  outline-offset: 3px;
}
.wa-fab:active {
  transform: translateY(0);
  cursor: grabbing;
}
.wa-fab-icon {
  display: block;
  opacity: 0.92;
  pointer-events: none;
}
.wa-fab-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 247, 251, 0.22);
  background: #0b1f3a;
  color: rgba(244, 247, 251, 0.88);
  font: 600 0.78rem/1 "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(7, 22, 40, 0.28);
  touch-action: manipulation;
}
.wa-fab-close:hover {
  color: #fff;
  background: #132a4a;
}
.wa-fab-close:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.55);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .wa-fab-wrap {
    width: 2.65rem;
    height: 2.65rem;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }
  .wa-fab-wrap--above-sticky {
    bottom: max(4.6rem, calc(3.6rem + env(safe-area-inset-bottom, 0px)));
  }
  .wa-fab-icon {
    width: 20px;
    height: 20px;
  }
  .wa-fab-close {
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }
  .wa-fab:hover {
    transform: none;
  }
}
