/* Botiquito — movimiento del sitio público. Solo CSS: la CSP del sitio no permite scripts.
   Lo que depende del scroll usa animation-timeline; si el navegador no lo soporta, o la persona
   pidió "reducir movimiento", todo queda quieto y la página se ve completa y normal.
   Se carga después de botiquito.css y solo en las páginas de botiquito.app (hosting/landing). */
body{overflow-x:clip}

/* ---------- Portada: composición estática ---------- */
.hero-art{min-height:22rem}
.hero-art .waves{position:absolute;inset:auto 0 0 0;width:100%}
.hero-art .heart{z-index:2}
.hero-phone{position:absolute;left:50%;top:1.2rem;width:12.5rem;aspect-ratio:1206/2622;margin-left:-6.25rem;border-radius:2rem;background:#0F3D46;padding:.4rem;box-shadow:0 2rem 3.5rem rgba(15,61,70,.3);transform:rotate(-4deg);z-index:1}
.hero-phone .scr{width:100%;height:100%;border-radius:1.65rem;overflow:hidden;background:var(--bg)}
.hero-phone img{display:block;width:100%;height:100%}
.hero-art .note{z-index:3;left:auto;right:.5rem;bottom:2.2rem;max-width:17rem}
.dot{position:absolute;border-radius:50%;z-index:0}
.d1{width:2.2rem;height:2.2rem;background:var(--sun);left:8%;top:18%;opacity:.85}
.d2{width:1.3rem;height:1.3rem;background:var(--coral);left:20%;top:62%;opacity:.8}
.d3{width:1.7rem;height:1.7rem;background:var(--sky);right:12%;top:46%;opacity:.9}

/* Cinta de funciones */
.ribbon{padding:1rem 0;display:grid;gap:.7rem;overflow:hidden}
.row{display:flex;flex-wrap:wrap;gap:.7rem;padding-right:.7rem}
.chip{display:inline-flex;align-items:center;gap:.5rem;background:var(--card);border:1px solid var(--line);border-radius:2rem;padding:.5rem 1rem;font-weight:800;color:var(--primary);white-space:nowrap}
.chip i{width:.7rem;height:.7rem;border-radius:50%;background:var(--teal)}
.chip:nth-child(3n+2) i{background:var(--coral)}
.chip:nth-child(3n) i{background:var(--sun)}
.row .dup{display:none}

/* Un día con Botiquito */
.timeline{position:relative;list-style:none;margin:0;padding:0 0 0 2.4rem;display:grid;gap:1.5rem;max-width:40rem}
.timeline::before,.timeline::after{content:"";position:absolute;left:.8rem;top:.4rem;bottom:.4rem;width:4px;border-radius:2px}
.timeline::before{background:var(--line)}
.timeline::after{background:linear-gradient(var(--teal),var(--sage));transform-origin:50% 0}
.moment{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.2rem}
.moment::before{content:"";position:absolute;box-sizing:border-box;left:calc(-2.25rem + 1px);top:1.1rem;width:1.3rem;height:1.3rem;border-radius:50%;background:var(--bg);border:4px solid var(--teal);z-index:1}
.moment time{font-weight:800;color:var(--accent);font-size:.95rem}
.moment h3{font-size:1.15rem;margin:.1rem 0 .2rem}
.moment p{margin:0;color:var(--muted)}
.moment .ok{margin-left:.4rem;color:#0F7A41;font-weight:800}
@media (prefers-color-scheme:dark){.moment .ok{color:#9FE3C8}}

/* Conversación de ejemplo en «Cuidar en equipo» */
.chat{display:grid;gap:.8rem;max-width:30rem;margin:1rem 0 1.5rem}
.msg{display:flex;gap:.7rem;align-items:flex-end}
.msg.r{flex-direction:row-reverse}
.av{flex:none;width:2.4rem;height:2.4rem;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff}
.av.a{background:var(--accent)}
.av.b{background:#B93F3C}
.bub{margin:0;background:var(--card);border-radius:1.2rem 1.2rem 1.2rem .3rem;padding:.7rem 1rem;box-shadow:0 .3rem 1rem rgba(15,61,70,.08)}
.bub.q{text-decoration:line-through;text-decoration-color:var(--coral);color:var(--muted)}
.bub.done{background:#E3F1E8;color:#1D4A33;font-weight:800;border-radius:1.2rem 1.2rem .3rem 1.2rem}
@media (prefers-color-scheme:dark){.bub.done{background:#1F4950;color:#BFE9DA}}

.android .btn.wa{position:relative}

/* ---------- Movimiento (solo si no se pidió reducirlo) ---------- */
@media (prefers-reduced-motion:no-preference){
  /* Entrada del encabezado de cada página */
  .hero .tag li{animation:up .6s cubic-bezier(.2,.8,.2,1) both}
  .hero .tag li:nth-child(2){animation-delay:.08s}
  .hero .tag li:nth-child(3){animation-delay:.16s}
  .hero h1{animation:up .7s .15s cubic-bezier(.2,.8,.2,1) both}
  .hero h1 .soft{animation:up .7s .3s cubic-bezier(.2,.8,.2,1) both}
  .hero .lead{animation:up .7s .45s both}
  .hero .cta{animation:up .7s .6s both}
  /* Portada: corazón que se dibuja y late, celular y aviso que flotan, ondas que se mecen */
  .heart path{stroke-dasharray:240;stroke-dashoffset:240;transform-origin:50% 55%;animation:draw 1.6s .5s ease-out forwards,beat 2.8s 2.3s ease-in-out infinite}
  .hero-phone{animation:rise-phone .9s .35s cubic-bezier(.2,.8,.2,1) both,bob 7s 1.3s ease-in-out infinite}
  .hero-art .note{animation:pop .7s 1.1s cubic-bezier(.3,1.5,.5,1) both,bob2 6s 1.8s ease-in-out infinite}
  .waves path:nth-child(1){animation:drift 14s ease-in-out infinite alternate}
  .waves path:nth-child(2){animation:drift 11s ease-in-out infinite alternate-reverse}
  .waves path:nth-child(3){animation:drift 9s ease-in-out infinite alternate}
  .dot{animation:bob 5s ease-in-out infinite}
  .d2{animation-delay:-2s}
  .d3{animation-delay:-3.5s}
  /* Cinta que corre sola (se frena al pasar el mouse) */
  .ribbon{mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
  .row{flex-wrap:nowrap;width:max-content;animation:run 40s linear infinite}
  .row.rev{animation-direction:reverse;animation-duration:48s}
  .row .dup{display:inline-flex}
  .ribbon:hover .row{animation-play-state:paused}
  /* Botón de WhatsApp: un latido suave */
  .android .btn.wa::after{content:"";position:absolute;inset:-4px;border-radius:2rem;border:2px solid #0F7A41;opacity:0;animation:ring 3.2s 1s ease-out infinite}
  /* Tarjetas */
  .cards .card{transition:transform .25s ease,box-shadow .25s ease}
  .cards .card:hover{transform:translateY(-.3rem);box-shadow:0 1rem 2rem rgba(15,61,70,.12)}
  .cards .card:hover .ico{animation:wiggle .5s ease}
}

@supports (animation-timeline:scroll()){
@media (prefers-reduced-motion:no-preference){
  /* Barra de progreso y cabecera que se pega al bajar */
  body::before{content:"";position:fixed;left:0;top:0;width:100%;height:4px;background:var(--teal);transform:scaleX(0);transform-origin:0 50%;z-index:20;animation:grow linear both;animation-timeline:scroll(root)}
  .top{position:sticky;top:0;z-index:10}
  .top::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;z-index:-1;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);opacity:0;animation:fade linear both;animation-timeline:scroll(root);animation-range:0 120px}
  /* Paralaje del encabezado de la portada */
  .hero-art .waves{animation:par-waves linear both;animation-timeline:scroll(root);animation-range:0 700px}
  .hero-art .heart{animation:par-heart linear both;animation-timeline:scroll(root);animation-range:0 700px}
  /* Cada bloque aparece al entrar en pantalla */
  .sec-h,.team,.notice,.android,.tbl,.get .cta,.timeline{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 65%}
  .cards .card{animation:rise linear both;animation-timeline:view();animation-range:entry calc(0% + var(--d,0%)) entry calc(60% + var(--d,0%))}
  .cards .card:nth-child(3n+2){--d:6%}
  .cards .card:nth-child(3n){--d:12%}
  .cards .card .ico{animation:icopop linear both;animation-timeline:view();animation-range:entry 20% entry 90%}
  /* Línea de tiempo que se dibuja mientras bajás */
  .timeline{animation:none}
  .timeline::after{animation:growY linear both;animation-timeline:view();animation-range:entry 25% cover 70%}
  .moment{animation:slide linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
  .moment:nth-child(even){--from:2.5rem}
  .moment:nth-child(odd){--from:-2.5rem}
  /* La conversación se cuenta sola */
  .msg:not(.r){animation:rise linear both;animation-timeline:view();animation-range:entry 20% entry 60%}
  .msg:not(.r) .bub{animation:strike linear both;animation-timeline:view();animation-range:entry 70% entry 100%}
  .msg.r{animation:pop2 linear both;animation-timeline:view();animation-range:entry 85% cover 20%}
}}

@keyframes up{from{opacity:0;transform:translateY(1.2rem)}to{opacity:1;transform:none}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes beat{0%,100%{transform:scale(1)}8%{transform:scale(1.08)}16%{transform:scale(1)}24%{transform:scale(1.06)}32%{transform:scale(1)}}
@keyframes rise-phone{from{opacity:0;transform:translateY(3rem) rotate(-8deg)}to{opacity:1;transform:rotate(-4deg)}}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -.7rem}}
@keyframes bob2{0%,100%{translate:0 0}50%{translate:0 .5rem}}
@keyframes pop{from{opacity:0;scale:.6;transform:translateY(1rem)}to{opacity:1;scale:1}}
@keyframes drift{from{translate:-2.5% 0}to{translate:2.5% 0}}
@keyframes run{to{transform:translateX(-50%)}}
@keyframes ring{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.25,1.5)}}
@keyframes wiggle{0%,100%{transform:none}30%{transform:rotate(-12deg) scale(1.1)}60%{transform:rotate(8deg) scale(1.1)}}
@keyframes grow{to{transform:scaleX(1)}}
@keyframes fade{to{opacity:1}}
@keyframes par-waves{to{transform:translateY(5rem)}}
@keyframes par-heart{to{transform:translateY(-3rem) rotate(8deg)}}
@keyframes rise{from{opacity:0;transform:translateY(2.5rem) scale(.97)}to{opacity:1;transform:none}}
@keyframes icopop{0%{transform:scale(.3) rotate(-25deg)}70%{transform:scale(1.15) rotate(6deg)}100%{transform:none}}
@keyframes growY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes slide{from{opacity:0;transform:translateX(var(--from,0))}to{opacity:1;transform:none}}
@keyframes strike{from{text-decoration-color:transparent;opacity:1}to{text-decoration-color:var(--coral);opacity:.55}}
@keyframes pop2{from{opacity:0;transform:scale(.6) translateY(1rem)}to{opacity:1;transform:none}}
