/* Somalina Digital · capa extra de movimiento. Suma efectos sin tocar tus estilos actuales. */
html { scroll-behavior: smooth; }

/* Aparición al hacer scroll: solo opacidad y "translate" (no pisa los transform que ya usás) */
html.rv-on .rv { opacity: 0; translate: 0 26px; transition: opacity .8s cubic-bezier(.22,.7,.2,1), translate .8s cubic-bezier(.22,.7,.2,1); transition-delay: var(--rvd, 0ms); }
html.rv-on .rv.rv-in { opacity: 1; translate: 0 0; }

/* Barra de progreso de lectura */
.sd-progress { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #9b7fd1, #34264d); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Botón flotante para agendar */
.sd-float { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 100px; background: #34264d; color: #fff; font: 700 14px/1 Helvetica, Arial, sans-serif; letter-spacing: .2px; text-decoration: none; box-shadow: 0 10px 30px rgba(52,38,77,.35); opacity: 0; visibility: hidden; translate: 0 24px; pointer-events: none; transition: opacity .35s ease, translate .35s ease, background .2s ease; }
.sd-float.is-on { visibility: visible; opacity: 1; translate: 0 0; pointer-events: auto; }
.sd-float:hover { background: #4b3870; }
.sd-float:focus-visible { outline: 3px solid #9b7fd1; outline-offset: 3px; }
.sd-float::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #d6ecd8; box-shadow: 0 0 0 0 rgba(214,236,216,.7); }
html.rv-on .sd-float.is-on::before { animation: sd-ping 1.5s ease-out 2; }
@keyframes sd-ping { 70% { box-shadow: 0 0 0 10px rgba(214,236,216,0); } 100% { box-shadow: 0 0 0 0 rgba(214,236,216,0); } }

/* Detalles al pasar el mouse (con "scale" y "translate", sin pisar transform) */
.project .project-image { overflow: hidden; }
.project .project-image > img:first-child { transition: scale .9s cubic-bezier(.22,.7,.2,1); }
.project:hover .project-image > img:first-child { scale: 1.045; }
.brand-grid li { transition: translate .35s ease; }
.brand-grid li:hover { translate: 0 -5px; }
.service-list article { transition: translate .35s ease; }
.service-list article:hover { translate: 8px 0; }
.testimonial { transition: translate .35s ease; }
.testimonial:hover { translate: 0 -4px; }
.eter-photo img { transition: scale .9s cubic-bezier(.22,.7,.2,1); }
.eter-photo:hover img { scale: 1.04; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.rv-on .rv { opacity: 1; translate: 0 0; transition: none; }
  .sd-progress { display: none; }
  .sd-float, .project .project-image > img:first-child, .eter-photo img { transition: none; }
}
@media print { .sd-progress, .sd-float { display: none; } }

.sd-float { min-height: 48px; max-width: calc(100vw - 32px); line-height: 1.3; }
html.rv-on .rv:focus-within { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .sd-float::before { animation: none !important; }
  .brand-grid li, .service-list article, .testimonial { transition: none; }
  .project:hover .project-image > img:first-child, .eter-photo:hover img { scale: 1; }
  .brand-grid li:hover, .service-list article:hover, .testimonial:hover { translate: none; }
}
@media (max-width:720px) { .sd-float { font-size:13px; padding:12px 18px; } }
