/* Movimiento de la tienda (con be-anim-v1.js). Todo cuelga de html.be-motion (completo) o html.be-calm (solo fundidos). */
html { --be-ease: cubic-bezier(.2, .8, .2, 1); --be-pop: cubic-bezier(.2, .9, .25, 1.35); }

/* ---------- sin movimiento de por medio: barra de lectura, cabecera, extras ---------- */
#be-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; height: 3px; background: linear-gradient(90deg, #fbbf24, #f59e0b); transform: scaleX(0); transform-origin: left; pointer-events: none; }
#be-route { position: fixed; top: 0; left: 0; right: 0; z-index: 10002; height: 3px; background: linear-gradient(90deg, #60a5fa, #2563eb); box-shadow: 0 0 10px rgba(37, 99, 235, .7); transform-origin: left; pointer-events: none; }
html.be-scrolled header.sticky { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .55); }
.be-fly { position: fixed; z-index: 10001; object-fit: contain; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .45); pointer-events: none; }

/* ---------- personalizacion ---------- */
.be-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.be-hello a { font-size: .92rem; font-weight: 600; color: #1d4ed8; text-decoration: underline; text-underline-offset: 4px; }
a[data-be-ini] { position: relative; }
a[data-be-ini] > svg { visibility: hidden; }
a[data-be-ini]::after { content: attr(data-be-ini); position: absolute; inset: 4px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #0e7490); color: #fff; font-size: .9rem; font-weight: 800; }
.be-again { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(360px, calc(100vw - 92px)); border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .45); transition: opacity .25s ease, visibility .25s; }
.be-again.be-away { opacity: 0 !important; visibility: hidden; }
.be-again > a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 40px 10px 10px; }
.be-again i { display: block; width: 76px; height: 76px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.be-again img { width: 100%; height: 100%; object-fit: contain; }
.be-again img.be-crop { object-fit: cover; }
.be-again a > span { display: grid; gap: 3px; min-width: 0; }
.be-again small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1d4ed8; }
.be-again b { display: -webkit-box; overflow: hidden; font-size: .86rem; line-height: 1.3; color: #0f172a; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.be-again em { font-size: .95rem; font-style: normal; font-weight: 800; color: #0f172a; }
.be-again button { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #64748b; font-size: 20px; line-height: 1; cursor: pointer; }
.be-again button:hover { background: #f1f5f9; color: #0f172a; }
.be-motion-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 auto 18px; padding: 0 16px; border: 1px solid rgba(148, 163, 184, .45); border-radius: 99px; background: transparent; color: inherit; font: 600 .82rem/1 inherit; cursor: pointer; }
.be-motion-toggle::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.be-motion-toggle[aria-pressed="true"]::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* ---------- nivel suave: solo fundidos, nada se desplaza ---------- */
html.be-calm .be-a { opacity: 0; transition: opacity .5s ease !important; }
html.be-calm .be-a.be-in { opacity: 1; }
html.be-calm #be-progress { display: none; }

/* ---------- entradas al llegar con el scroll ---------- */
html.be-motion .be-a { opacity: 0; translate: 0 44px; scale: .95; transition: opacity .65s ease, translate .9s var(--be-ease), scale .9s var(--be-ease), clip-path 1s var(--be-ease) !important; }
html.be-motion .be-a[data-be="heading"] { translate: 0 26px; scale: 1; clip-path: inset(0 0 100% 0); }
html.be-motion .be-a[data-be="side"] { translate: -48px 0; scale: 1; }
html.be-motion .be-a[data-be="band"] { translate: 0 64px; scale: .9; }
html.be-motion .be-a.be-in { opacity: 1; translate: 0 0; scale: 1; }
html.be-motion .be-a.be-in[data-be="heading"] { clip-path: inset(-20% -5% -25% -5%); }

/* ---------- portada: entrada coreografiada ---------- */
@keyframes be-rise { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes be-card-in { from { translate: 0 60px; scale: .9; } to { translate: 0 0; scale: 1; } }
@keyframes be-float { 50% { translate: 0 -10px; } }
html.be-motion .beh-hero .container-x > div:first-child > * { animation: be-rise .9s var(--be-ease) both; }
html.be-motion .beh-hero .container-x > div:first-child > *:nth-child(2) { animation-delay: .1s; }
html.be-motion .beh-hero .container-x > div:first-child > *:nth-child(3) { animation-delay: .2s; }
html.be-motion .beh-hero .container-x > div:first-child > *:nth-child(4) { animation-delay: .3s; }
html.be-motion .beh-hero .container-x > div:first-child > *:nth-child(5) { animation-delay: .4s; }
/* titular y fotos grandes se mueven sin llegar a ser invisibles: se pintan desde el primer instante */
html.be-motion .beh-hero h1 { animation-name: be-slide; }
@keyframes be-slide { from { translate: 0 34px; } to { translate: 0 0; } }
html.be-motion .beh-hero .container-x > div:last-child > * { animation: be-card-in 1s var(--be-pop) .2s both, be-float 7s ease-in-out 1.4s infinite; transition: transform .5s ease-out, box-shadow .3s ease; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); }
html.be-motion .beh-hero .container-x > div:last-child > *:nth-child(2) { animation-delay: .38s, 2.2s; transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px), 0); }
html.be-motion .beh-hero .container-x > div:last-child > *:nth-child(3) { animation-delay: .52s, 3.4s; transform: translate3d(calc(var(--px, 0) * 38px), calc(var(--py, 0) * 24px), 0); }
html.be-motion .beh-hero h1 svg path { stroke-dasharray: 220; animation: be-draw 1.2s .75s ease both; }
@keyframes be-draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
html.be-motion .be-again, html.be-motion .be-hello { animation: be-rise .7s var(--be-pop) both; }

/* franja de ventajas: un brillo lento recorre el azul y los iconos asoman en orden */
html.be-motion main .beh-trust { animation: be-shine 9s ease-in-out infinite alternate; }
@keyframes be-shine { from { background-position: 0 0; } to { background-position: 100% 0; } }
html.be-motion .beh-trust li.be-in svg { animation: be-pop .6s var(--be-pop) .25s both; }

/* ---------- pasos: iconos en orden y linea que se dibuja al bajar ---------- */
@keyframes be-pop { from { scale: .3; rotate: -14deg; } to { scale: 1; rotate: 0deg; } }
html.be-motion .beh-steps > li.be-in .beh-step-ico { animation: be-pop .6s var(--be-pop) both; }
html.be-motion .beh-steps > li:nth-child(2).be-in .beh-step-ico { animation-delay: .18s; }
html.be-motion .beh-steps > li:nth-child(3).be-in .beh-step-ico { animation-delay: .34s; }
html.be-motion .beh-steps > li:nth-child(4).be-in .beh-step-ico { animation-delay: .5s; }
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) { html.be-motion main:has(.beh-hero) .beh-steps::before { transform-origin: left; animation: be-line linear both; animation-timeline: view(); animation-range: entry 100% cover 52%; } }
  /* las fotos grandes se asientan mientras se baja */
  html.be-motion .beh-cats [data-cat-card] img, html.be-motion .beh-need-img img { animation: be-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}
@keyframes be-line { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes be-settle { from { transform: scale(1.22); } to { transform: scale(1); } }

/* resenas: las estrellas se van llenando */
html.be-motion [data-be="band"].be-in p:nth-of-type(1) { animation: be-stars 1s .35s ease-out both; }
@keyframes be-stars { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- raton: inclinacion, foco de luz y foto que se acerca ---------- */
@media (hover: hover) and (pointer: fine) {
  html.be-motion :is(.beh-need, .beh-brand, .beh-cats [data-cat-card], article.be-card, a.be-card, .fam .card) { transition: transform .35s var(--be-ease), box-shadow .35s ease, border-color .35s ease; }
  html.be-motion .be-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) !important; border-color: #93c5fd !important; box-shadow: 0 34px 48px -30px rgba(15, 23, 42, .42) !important; transition: transform .12s ease-out, box-shadow .35s ease !important; }
  .be-tilt { background-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .11), transparent 70%) !important; }
  html.be-motion .be-tilt img { scale: 1.09; }
  html.be-motion :is(.beh-need, .beh-cats [data-cat-card], article.be-card, a.be-card, .fam .card) img { transition: scale .6s var(--be-ease); }
}

/* ---------- botones, enlaces y campos ---------- */
html.be-motion :is(.beh-auth-card button[type=submit], [data-beh-buy], .beh-now, .beh-nl-btn, .beh-ctas > a, .fam .btn) { position: relative; overflow: hidden; }
html.be-motion :is(.beh-auth-card button[type=submit], [data-beh-buy], .beh-nl-btn, .fam .btn)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); transition: left .7s var(--be-ease); pointer-events: none; }
html.be-motion :is(.beh-auth-card button[type=submit], [data-beh-buy], .beh-nl-btn, .fam .btn):hover::after { left: 130%; }
html.be-motion :is(.beh-ctas > a, .beh-now, .beh-nl-btn, article.be-card button, [data-beh-buy], .fam .btn):active { scale: .96; }
html.be-motion .beh-ctas > a svg, html.be-motion .beh-need-p { transition: translate .25s var(--be-ease); }
html.be-motion .beh-ctas > a:hover svg { translate: 5px 0; }
html.be-motion .beh-need:hover .beh-need-p { translate: 6px 0; }
html.be-motion :is(input, select, textarea) { transition: border-color .2s ease, box-shadow .25s ease; }
html.be-motion .beh-steps li .beh-step-ico { transition: translate .3s var(--be-pop), rotate .3s var(--be-pop); }
html.be-motion .beh-steps li:hover .beh-step-ico { translate: 0 -6px; rotate: -7deg; }

/* ---------- carrito ---------- */
.be-bump { animation: be-bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes be-bump { 30% { scale: 1.35; rotate: -10deg; } 60% { scale: .92; rotate: 6deg; } }

/* ---------- auditoria 2026-11-26: precio tachado legible y zonas de toque de 24 px como minimo ---------- */
#be-bf-home .was, main .line-through, main s, main del { color: #64748b !important; }
main nav a { display: inline-block; min-height: 24px; line-height: 24px; }
footer a[href*="wa.me"] { min-height: 24px; }
#be-bf a, #be-bf-home a.all { display: inline-block; min-height: 24px; line-height: 24px; }
