/**
 * MOVIMIENTO.CSS — microanimaciones comunes a todo el sitio.
 * Solo anima transform, opacity y filter (no recalcula el diseño ni
 * afecta la velocidad de carga). Nada de esto oculta contenido: todo el
 * texto está en la página desde el primer momento. Quien tenga activado
 * "reducir movimiento" en su equipo, o el modo accesible, no ve nada de esto.
 */

/* Cambio suave entre páginas del sitio (Chrome, Edge y Android). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(.22,1,.36,1);
}

/* Logo: aparece con un brillo suave al cargar y responde al pasar el mouse. */
.logo-symbol, .logo-mark img {
  animation: logoEntrada 1.1s cubic-bezier(.22,1,.36,1) backwards; /* backwards: al terminar no pisa el efecto del mouse */
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), filter 0.4s;
}
@keyframes logoEntrada {
  0%   { transform: scale(0.86) rotate(-10deg); filter: drop-shadow(0 0 0 rgba(126,214,228,0)); }
  55%  { filter: drop-shadow(0 0 10px rgba(126,214,228,0.85)); }
  100% { transform: none; filter: drop-shadow(0 0 0 rgba(126,214,228,0)); }
}
@media (hover: hover) {
  a:hover > .logo-symbol, a:hover .logo-mark img {
    transform: rotate(-6deg) scale(1.06);
    filter: drop-shadow(0 0 8px rgba(126,214,228,0.6));
  }
}

/* Botones principales: se "hunden" un poco al tocarlos. */
:is(.btn-hero-main, .btn-hero-ghost, .nav-cta, .svc-btn-main, .svc-btn-ghost, .fab, .cq-enviar) {
  -webkit-tap-highlight-color: transparent;
}
:is(.btn-hero-main, .btn-hero-ghost, .svc-btn-main, .svc-btn-ghost, .fab):active { transform: scale(0.97); }
:is(.btn-hero-main, .svc-btn-main, .cq-enviar) .arrow { display: inline-block; transition: transform 0.25s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  :is(.btn-hero-main, .svc-btn-main, .cq-enviar):hover .arrow { transform: translateX(4px); }
}

/* Fotos: al entrar en pantalla pasan de tenues a nítidas. Solo en los
   navegadores que lo soportan; en el resto se ven normal. */
@supports (animation-timeline: view()) {
  figure img { animation: fotoAparece linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes fotoAparece { from { opacity: 0.35; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .logo-symbol, .logo-mark img, figure img { animation: none !important; }
  :is(.btn-hero-main, .btn-hero-ghost, .svc-btn-main, .svc-btn-ghost, .fab, .cq-enviar):active { transform: none; }
}
.modo-accesible .logo-symbol, .modo-accesible .logo-mark img, .modo-accesible figure img { animation: none !important; }
