/* TecniDoctor · Interacciones v1 · Archivos locales, compatibles con CSP. */
.td-top {
  position: fixed; right: 30px; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 24; display: grid; place-items: center; width: 48px; height: 48px;
  padding: 0; border: 1px solid #bfd7e9; border-radius: 50%;
  color: #082b50; background: #fff; box-shadow: 0 8px 24px #082b5020;
  font: inherit; font-size: 24px; line-height: 1;
}
.td-top:hover { background: #e9f5ff; }
.td-top:focus-visible { outline: 3px solid #0088e6; outline-offset: 4px; }
.header.td-scrolled { box-shadow: 0 8px 30px #051b332e; }
.service-jump > a[aria-current="location"] {
  background: #082b50; border-color: #082b50; color: #fff;
}
.service-card:focus-within, .tip-card:focus-within {
  border-color: #82c9f5; box-shadow: 0 14px 36px #082b5018;
}
@media (prefers-reduced-motion: no-preference) {
  .header { transition: box-shadow .25s ease; }
  .button, .nav-contact, .menu-toggle, .social-row > a, .service-jump > a,
  .td-top, .copy-button {
    transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease;
  }
  .button .icon:last-child, .nav-contact .icon, .circle-arrow {
    transition: transform .22s ease, background-color .22s ease;
  }
  .button:hover .icon:last-child, .button:focus-visible .icon:last-child,
  .nav-contact:hover .icon { transform: translateX(3px); }
  .service-card:hover .circle-arrow, .service-card:focus-visible .circle-arrow {
    background: #d7efff; transform: rotate(-35deg);
  }
  .service-card, .tip-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .tip-image img { transition: transform .45s ease; }
  .tip-card:hover .tip-image img, .tip-card:focus-visible .tip-image img {
    transform: scale(1.025);
  }
  .td-pressed { transform: translateY(1px) scale(.975) !important; }
  .td-top { animation: td-top-in .2s ease both; }
  @media (hover: hover) and (pointer: fine) {
    .service-card.td-lean-left, .tip-card.td-lean-left {
      transform: perspective(900px) translateY(-6px) rotateY(-2deg) rotateX(1deg);
      box-shadow: 7px 16px 38px #082b501b;
    }
    .service-card.td-lean-right, .tip-card.td-lean-right {
      transform: perspective(900px) translateY(-6px) rotateY(2deg) rotateX(1deg);
      box-shadow: -7px 16px 38px #082b501b;
    }
    .social-row > a:hover { transform: translateY(-3px); background: #ffffff12; }
  }
}
@keyframes td-top-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  .td-top { right: 18px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover, .tip-card:hover, .primary:hover,
  .service-card.td-lean-left, .service-card.td-lean-right,
  .tip-card.td-lean-left, .tip-card.td-lean-right { transform: none; }
}
