/* ============================================================
   ARSA Logística — Mejoras visuales e interactividad global
   css/arsa-enhance.css
   ============================================================ */

/* ── 1. Animaciones de entrada (scroll reveal) ───────────── */
.ae-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.ae-reveal--img {
  transform: translateY(20px) scale(0.97);
}

.ae-reveal.ae-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ae-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 2. Botones flotantes ────────────────────────────────── */
.ae-fabs {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* WhatsApp */
.ae-wa {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
  animation: aeWaPulse 2.8s ease-in-out infinite;
}

.ae-wa:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

@keyframes aeWaPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45),
                         0 0 0 12px rgba(37, 211, 102, 0.12); }
}

/* Volver arriba */
.ae-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #071E45;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(7, 30, 69, 0.4);
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.ae-top--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ae-top:hover {
  background: #1953A0;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .ae-fabs { right: 14px; bottom: 14px; }
  .ae-wa  { width: 50px; height: 50px; font-size: 1.5rem; }
  .ae-top { width: 40px; height: 40px; }
}

/* ── 3. Micro-interacciones en imágenes y tarjetas ───────── */
.benefit-image {
  overflow: hidden;
}

.benefit-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-image:hover img {
  transform: scale(1.04);
}

.aduana-intro__img,
.terrestre-intro__img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              opacity 0.6s ease;
}

.aduana-intro__img:hover,
.terrestre-intro__img:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(25, 83, 160, 0.22);
}

/* Tarjetas genéricas de páginas de servicios */
.feature-item {
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

/* Acordeón (consolidación China): transición más suave */
.accordion-item .accordion-content {
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.accordion-item .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.accordion-item.active .arrow {
  transform: rotate(180deg);
}

/* ── 4. Links "Saber más" con flecha animada ─────────────── */
.arsa-srv__link i,
.footer-link {
  transition: transform 0.2s ease, color 0.25s ease;
}

/* ── 5. Selección de texto con color de marca ────────────── */
::selection {
  background: rgba(245, 166, 0, 0.35);
  color: inherit;
}

/* ── 6. Scrollbar sutil (solo navegadores WebKit) ────────── */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: #f1f3f7;
}

::-webkit-scrollbar-thumb {
  background: #1953A0;
  border-radius: 6px;
  border: 2px solid #f1f3f7;
}

::-webkit-scrollbar-thumb:hover {
  background: #0D3B7A;
}
