/* ═══════════════════════════════════════════════════════════════
   Animaciones de scroll del sitio público (Elite Cleaners CR)
   Se aplican sobre los elementos que cada página ya marca para
   aparecer (.reveal / .reveal-ready). Al terminar, se quita el
   estilo para que los efectos de hover de cada tarjeta sigan iguales.
   ═══════════════════════════════════════════════════════════════ */
html.mx [data-mx] {
  --mx-ease: cubic-bezier(.16, 1, .3, 1);
  transition:
    opacity .9s var(--mx-ease) var(--mx-d, 0ms),
    transform 1.05s var(--mx-ease) var(--mx-d, 0ms),
    filter .9s var(--mx-ease) var(--mx-d, 0ms),
    clip-path 1.15s var(--mx-ease) var(--mx-d, 0ms) !important;
  will-change: opacity, transform;
}

/* Tarjetas: suben, se enfocan y crecen un poco */
html.mx [data-mx="card"]:not(.mx-in) { opacity: 0 !important; transform: translate3d(0, 42px, 0) scale(.96) !important; filter: blur(8px) !important; }

/* Títulos: suben desde un desenfoque suave; la línea decorativa crece */
html.mx [data-mx="title"]:not(.mx-in) { opacity: 0 !important; transform: translate3d(0, 28px, 0) !important; filter: blur(10px) !important; }
html.mx [data-mx="title"] .divider { transform-origin: center; transition: transform 1s var(--mx-ease, ease) calc(var(--mx-d, 0ms) + 250ms); }
html.mx [data-mx="title"]:not(.mx-in) .divider { transform: scaleX(0); }

/* Imágenes: se descubren como un telón y hacen un zoom suave */
html.mx [data-mx="img"]:not(.mx-in) { opacity: 0 !important; clip-path: inset(18% 0 0 0 round 22px) !important; transform: translate3d(0, 30px, 0) !important; }
html.mx [data-mx="img"] img { transition: transform 1.6s var(--mx-ease, ease) var(--mx-d, 0ms); }
html.mx [data-mx="img"]:not(.mx-in) img { transform: scale(1.14); }

/* Entradas laterales (textos junto a una imagen) */
html.mx [data-mx="left"]:not(.mx-in)  { opacity: 0 !important; transform: translate3d(-48px, 0, 0) !important; filter: blur(6px) !important; }
html.mx [data-mx="right"]:not(.mx-in) { opacity: 0 !important; transform: translate3d(48px, 0, 0) !important; filter: blur(6px) !important; }

/* Bloques grandes (llamado a la acción, pie de página) */
html.mx [data-mx="fade"]:not(.mx-in) { opacity: 0 !important; transform: translate3d(0, 24px, 0) !important; }

/* Estado final */
html.mx [data-mx].mx-in { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: inset(0 0 0 0 round 0) !important; }

/* Barra de progreso de lectura (arriba de la página) */
.mx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #38bdf8, #0284c7); box-shadow: 0 0 10px rgba(14,165,233,.5); }

@media (prefers-reduced-motion: reduce) {
  html.mx [data-mx] { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  html.mx [data-mx] img { transform: none !important; }
  .mx-progress { display: none; }
}

/* ═══ Botón «Reservar ahora» del menú
       · Al entrar el mouse, un azul océano lo rellena naciendo justo desde el punto de entrada
         (y se retira por donde sale), con el centro más luminoso donde está el cursor
       · Una luz suave sigue al mouse por dentro del botón
       · La flecha entra deslizando y al tocarlo sale una onda ═══ */
.btn-nav.bn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex !important; align-items: center;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -6px rgba(2,132,199,.55) !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, filter .2s ease !important;
  -webkit-tap-highlight-color: transparent; }
/* relleno: círculo que crece desde donde entró el mouse */
.btn-nav.bn::before { content: ''; position: absolute; z-index: -2; pointer-events: none; border-radius: 50%;
  left: var(--bx, 50%); top: var(--by, 50%); width: 0; height: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #0ea5e9 0%, #0369a1 16%, #075985 34%, #0c4a6e 60%);
  transition: width .65s cubic-bezier(.16,1,.3,1), height .65s cubic-bezier(.16,1,.3,1); }
/* luz que sigue al cursor */
.btn-nav.bn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(70px circle at var(--gx, 50%) var(--gy, 50%), rgba(186,230,253,.45), transparent 70%);
  transition: opacity .4s ease; }
.btn-nav.bn .bn-t { display: inline-block; transition: letter-spacing .45s cubic-bezier(.16,1,.3,1); }
.btn-nav.bn .bn-ic { display: inline-block; overflow: hidden; width: 0; margin-left: 0; opacity: 0; transform: translateX(-8px);
  font-size: 17px; line-height: 1; color: #bae6fd; font-variation-settings: 'FILL' 0, 'wght' 600;
  transition: width .45s cubic-bezier(.16,1,.3,1), margin .45s cubic-bezier(.16,1,.3,1), opacity .3s ease .05s, transform .5s cubic-bezier(.34,1.56,.64,1) .05s; }
.btn-nav.bn.fill::before { width: 320px; height: 320px; }
.btn-nav.bn.fill::after { opacity: 1; }
.btn-nav.bn.fill { transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 4px rgba(14,165,233,.14), 0 14px 30px -10px rgba(7,89,133,.75) !important; }
.btn-nav.bn.fill .bn-ic { width: 17px; margin-left: 6px; opacity: 1; transform: none; }
.btn-nav.bn:active { transform: translateY(0) scale(.96) !important; filter: brightness(.96); }
.btn-nav.bn:focus { outline: none; }
.btn-nav.bn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0ea5e9, 0 10px 22px -10px rgba(2,132,199,.7) !important; }
.bn-rip { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.4);
  transform: translate(-50%, -50%) scale(0); animation: bnRip .6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes bnRip { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-nav.bn::before, .btn-nav.bn::after, .btn-nav.bn .bn-ic { transition: none !important; } .bn-rip { display: none; } }
