/* RescueMe · animaciones y bloques nuevos de la home (2026-11-27).
   Todo el movimiento es decorativo: si el visitante pide «reducir movimiento»
   en su teléfono o computador, se apaga y la página queda quieta y completa. */

@keyframes anim-subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes anim-telefono { from { opacity: 0; translate: 0 60px; rotate: 4deg; scale: .96; } to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; } }
@keyframes anim-flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes anim-aparece { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes anim-latido { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } }
@keyframes anim-pin-cae {
  0% { opacity: 0; transform: translate(-50%, -320%) scale(.6); }
  60% { opacity: 1; transform: translate(-50%, -100%) scale(1.08); }
  78% { transform: translate(-50%, -112%) scale(.97); }
  100% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
@keyframes anim-onda { 0% { transform: translate(-50%, -50%) scale(.5); opacity: .7; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
@keyframes anim-tarjeta { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   1. PORTADA
   ========================================================= */
.hero-grid > div:first-child > * { animation: anim-subir .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .3s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .45s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .6s; }
.hero-stats-inline strong { font-variant-numeric: tabular-nums; }

#heroPhone, .ap-phone {
  background: #10161F; padding: 11px; border-radius: 50px;
  box-shadow: 0 40px 80px -30px rgba(22, 50, 79, .55), inset 0 0 0 2px #2B3442;
}
#heroPhone {
  animation: anim-telefono 1s .2s cubic-bezier(.2, .8, .2, 1) both, anim-flotar 7s 1.4s ease-in-out infinite;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
#heroPhone::before, .ap-phone::before { /* isla del iPhone */
  top: 20px; width: 82px; height: 24px; border-radius: 14px; background: #000; z-index: 6;
}

/* ---------- pantalla de Servicios, como en la app ---------- */
.phone-screen.ap {
  background: #F3F6FA; border-radius: 40px; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #16324F; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.ap-top { background: #1E9FE3; color: #fff; padding: 0 12px 10px; flex: none; }
.ap-status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 12px 0 18px; font-size: .68rem; }
.ap-status b { font-weight: 700; color: #0D2236; }
.ap-status-ic { display: flex; gap: 3px; align-items: flex-end; }
.ap-status-ic i { width: 4px; height: 6px; border-radius: 1px; background: #0D2236; }
.ap-status-ic i:nth-child(2) { height: 8px; } .ap-status-ic i:nth-child(3) { width: 16px; height: 8px; border-radius: 3px; background: #4ED164; }
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ap-head strong { font-family: Fredoka, sans-serif; font-weight: 600; font-size: .98rem; letter-spacing: .01em; white-space: nowrap; }
.ap-round { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1683CB; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ap-round svg { width: 16px; height: 16px; }
.ap-round em { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; border-radius: 8px; background: #E8323C; border: 2px solid #fff; color: #fff; font: 800 .5rem/11px "Plus Jakarta Sans", sans-serif; text-align: center; font-style: normal; }

.ap-tools { display: flex; gap: 7px; padding: 9px 10px 6px; flex: none; }
.ap-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 11px; background: #E9EDF2; color: #9AA6B5; font-size: .62rem; white-space: nowrap; overflow: hidden; }
.ap-search svg { width: 13px; height: 13px; flex: none; color: #5D6B7E; }
.ap-toggle { position: relative; flex: none; height: 32px; padding: 0 11px; border: 0; border-radius: 11px; background: #163A5F; color: #fff; box-shadow: inset 0 -3px 0 #0C2440; font: 700 .64rem "Plus Jakarta Sans", sans-serif; cursor: pointer; overflow: hidden; min-width: 84px; }
.ap-toggle > span { display: flex; align-items: center; justify-content: center; gap: 5px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.ap-toggle svg { width: 12px; height: 12px; flex: none; }
.ap-toggle-b { position: absolute; inset: 0 0 3px; transform: translateY(110%); opacity: 0; }
.ap.is-list .ap-toggle-a { transform: translateY(-110%); opacity: 0; }
.ap.is-list .ap-toggle-b { transform: none; opacity: 1; }
.ap-toggle:hover { background: #1D4A78; }

.ap-chips { display: flex; gap: 6px; padding: 2px 10px 8px; overflow: hidden; flex: none; }
.ap-chip { flex: none; display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px 0 3px; border-radius: 999px; background: #E9EDF2; font-size: .62rem; font-weight: 600; white-space: nowrap; }
.ap-chip i { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #16324F; background: #fff; display: grid; place-items: center; }
.ap-chip svg { width: 11px; height: 11px; color: #1E9FE3; }

.ap-body { position: relative; flex: 1; min-height: 0; }
.ap-map, .ap-list { position: absolute; inset: 0; transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.ap-list { opacity: 0; transform: translateX(14%); pointer-events: none; }
.ap.is-list .ap-list { opacity: 1; transform: none; pointer-events: auto; }
.ap.is-list .ap-map { opacity: 0; transform: scale(1.06); }

/* mapa */
.ap-map { overflow: hidden; }
.ap-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-pin, .ap-cluster { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%); opacity: 0; }
.ap-pin { width: 30px; height: 30px; border-radius: 50%; background: #1F7CC3; border: 2.5px solid #fff; box-shadow: 0 4px 10px -3px rgba(13, 34, 54, .55); }
.ap-pin::before { /* huella blanca con corazón, como el pin de la app */
  content: ""; position: absolute; inset: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='white'%3E%3Cellipse cx='12' cy='15.5' rx='4.6' ry='3.8'/%3E%3Ccircle cx='6.2' cy='10' r='2'/%3E%3Ccircle cx='9.6' cy='6.4' r='2'/%3E%3Ccircle cx='14.4' cy='6.4' r='2'/%3E%3Ccircle cx='17.8' cy='10' r='2'/%3E%3C/g%3E%3Cpath d='M12 4.6s-1.6-1-2.1-2c-.3-.8.2-1.4.9-1.4.5 0 .9.3 1.2.7.3-.4.7-.7 1.2-.7.7 0 1.2.6.9 1.4-.5 1-2.1 2-2.1 2Z' fill='%23E8323C'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ap-pin::after { content: ""; position: absolute; left: 50%; top: calc(100% + 5px); width: 16px; height: 4px; border-radius: 50%; background: #1F7CC3; opacity: .45; transform: translateX(-50%); }
.ap-cluster { width: 30px; height: 30px; border-radius: 50%; background: #163A5F; border: 2.5px solid #fff; color: #fff; display: grid; place-items: center; font: 700 .78rem Fredoka, sans-serif; box-shadow: 0 4px 10px -3px rgba(13, 34, 54, .55); }
.ap-you { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ap-you i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #FFD23F; border: 2.5px solid #fff; box-shadow: 0 3px 8px -2px rgba(0, 0, 0, .35); }
.ap-you i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 210, 63, .55); animation: anim-onda 2.2s ease-out infinite; z-index: -1; }
.ap-you b { font-size: .56rem; font-weight: 700; color: #16324F; text-shadow: 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.ap-fab { position: absolute; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(13, 34, 54, .45); }
.ap-fab svg { width: 16px; height: 16px; }
.ap-fab--tree { bottom: 52px; color: #2E8B57; }
.ap-fab--loc { bottom: 12px; color: #1E9FE3; }
.ap.is-map-on .ap-pin, .ap.is-map-on .ap-cluster { animation: anim-pin-cae .8s var(--d, .5s) cubic-bezier(.3, .7, .3, 1) both; }

/* lista */
.ap-list { padding: 4px 10px 0; overflow: hidden; }
.ap-shop { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 13px; background: #EAF6EE; border: 1px solid #CDE9D5; }
.ap-shop-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #2E8B57; color: #fff; display: grid; place-items: center; }
.ap-shop-ic svg { width: 17px; height: 17px; }
.ap-shop b { display: block; font-family: Fredoka, sans-serif; font-weight: 600; font-size: .74rem; color: #163A5F; }
.ap-shop small { display: block; font-size: .55rem; color: #2E7D4F; line-height: 1.25; }
.ap-shop-go { width: 14px; height: 14px; margin-left: auto; color: #2E8B57; flex: none; }
.ap-results { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 7px; }
.ap-results > b { font-size: .7rem; }
.ap-results > span { display: flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: #E3E9F0; font-size: .58rem; font-weight: 700; }
.ap-results svg { width: 10px; height: 10px; }
.ap-card { background: #fff; border: 1px solid #E1EBF4; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 14px -10px rgba(22, 50, 79, .4); margin-bottom: 8px; }
.ap-card-img { position: relative; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ap-card-img span { font: 700 1.25rem Fredoka, sans-serif; letter-spacing: .02em; }
.ap-card-img small { font-size: .5rem; font-weight: 800; letter-spacing: .25em; margin-top: 3px; }
.ap-card-img--vet { background: #E8F4FC; color: #1E9FE3; }
.ap-card-img--vet small { color: #E8662E; }
.ap-card-img--cafe { background: #FFF4D6; color: #B4561F; height: 74px; }
.ap-card-img em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: .5rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #FFD23F; color: #16324F; }
.ap-heart { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #E8323C; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .3); }
.ap-heart svg { width: 12px; height: 12px; }
.ap-heart.is-on svg { animation: anim-latido 2.4s 1s ease-in-out infinite; }
.ap-card-txt { padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 4px; }
.ap-card-txt > b { font-size: .72rem; }
.ap-tags { display: flex; gap: 4px; }
.ap-tags span { font-size: .52rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #EEF3F8; }
.ap-dist { font-size: .55rem; color: #5D6B7E; } .ap-dist b { color: #16324F; }
.ap-open { display: flex; align-items: center; gap: 4px; font-size: .55rem; font-weight: 700; color: #1F7A4D; }
.ap-open i { width: 6px; height: 6px; border-radius: 50%; background: #1F7A4D; }
.ap.is-list .ap-shop, .ap.is-list .ap-results, .ap.is-list .ap-card { animation: anim-tarjeta .55s cubic-bezier(.2, .8, .2, 1) both; }
.ap.is-list .ap-results { animation-delay: .08s; }
.ap.is-list .ap-card { animation-delay: .16s; }
.ap.is-list .ap-card + .ap-card { animation-delay: .24s; }

/* barra de pestañas flotante */
.ap-tabs { flex: none; margin: 6px 8px 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px; border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 20px -12px rgba(13, 34, 54, .5); border: 1px solid #E1EBF4; position: relative; z-index: 3; }
.ap-tabs > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 4px; border-radius: 16px; font-size: .46rem; font-weight: 600; color: #16324F; white-space: nowrap; overflow: hidden; }
.ap-tabs svg { width: 17px; height: 17px; }
.ap-tabs .is-on { background: #E9EDF2; color: #1E9FE3; }


/* ---------- teléfono de Servicios (ahora en «Servicios y descuentos») ---------- */
.ap-phone { position: relative; width: min(300px, 78vw); margin: 0 auto; }
.v2-shot .ap-phone.rv.is-in { animation: rv-der 1s cubic-bezier(.2, .8, .2, 1) both, rv-flota 7s 1.2s ease-in-out infinite; }

/* =========================================================
   RECORRIDO CON REMI en el teléfono de la portada
   4 pantallas de la app (Servicios → Mis Mascotas → Social → Eventos), ~4 s cada una.
   Un dedo toca la pestaña siguiente; Remi dice en una frase qué pasa en cada pantalla.
   ========================================================= */
.phone-screen.tr { background: #F3F6FA; border-radius: 40px; display: flex; flex-direction: column; overflow: hidden; position: relative; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: #16324F; }
.tr-status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 22px 0 26px; font-size: .68rem; flex: none; position: relative; z-index: 3; }
.tr-status b { font-weight: 700; color: #0D2236; }
.tr-stage { position: relative; flex: 1; min-height: 0; }
.tr-esc { position: absolute; inset: 0; padding: 4px 12px 78px; opacity: 0; transform: translateX(10%) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tr-esc.is-on { opacity: 1; transform: none; }
.tr-esc.is-out { opacity: 0; transform: translateX(-10%) scale(.98); }
.tr-esc.is-on .tr-sube { animation: tr-sube .6s var(--d, .5s) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tr-sube { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.tr-top { margin: -38px -12px 10px; padding: 40px 12px 12px; background: #1E9FE3; color: #fff; text-align: center; font: 600 .95rem Fredoka, sans-serif; border-radius: 0 0 18px 18px; }
.tr-esc--serv .tr-top, .tr-esc--ev .tr-top { position: relative; z-index: 0; }

/* cada pantalla ocupa todo el alto: lo principal crece */
.tr-esc { display: flex; flex-direction: column; }
.tr-esc > * { flex: none; }
.tr-mapa { flex: 1 1 auto !important; height: auto !important; min-height: 120px; }
.tr-post { flex: 1 1 auto !important; display: flex; flex-direction: column; }
.tr-post img { flex: 1 1 auto; height: auto !important; min-height: 110px; }
.tr-ev-banner { flex: 1 1 auto !important; position: relative; min-height: 100px; margin-bottom: -26px; border-radius: 22px; background: #FDF4CC; overflow: hidden; }
.tr-ev-banner img { position: absolute; left: 50%; bottom: -14%; height: 105%; width: auto; transform: translateX(-50%); }
.tr-esc.is-on .tr-ev-banner img { animation: tj-saluda 1.6s .6s ease-in-out 2; transform-origin: 50% 100%; }
.tr-ev-banner .cf { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #1E9FE3; top: 18%; left: 14%; rotate: 20deg; }
.tr-ev-banner .c2 { background: #E8323C; left: 78%; top: 26%; rotate: -30deg; } .tr-ev-banner .c3 { background: #2E8B57; left: 22%; top: 62%; border-radius: 50%; } .tr-ev-banner .c4 { background: #FFB020; left: 84%; top: 64%; border-radius: 50%; }
.tr-esc.is-on .tr-ev-banner .cf { animation: tr-confeti 1.6s ease-in-out infinite alternate; }
@keyframes tr-confeti { to { translate: 0 -8px; rotate: 160deg; } }
.tr-ev { position: relative; margin: 0 8px; }
.tr-racha { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 10px 11px; border-radius: 15px; background: #fff; box-shadow: 0 6px 14px -12px rgba(22, 50, 79, .5); }
.tr-racha small { font-size: .6rem; font-weight: 700; color: #806300; white-space: nowrap; }
.tr-racha span { display: flex; gap: 4px; }
.tr-racha i { width: 13px; height: 13px; border-radius: 50%; background: #E9EDF2; }
.tr-esc.is-on .tr-racha i { animation: tr-dia .3s calc(1s + var(--k, 0) * 90ms) forwards; }
.tr-racha i:nth-child(2) { --k: 1; } .tr-racha i:nth-child(3) { --k: 2; } .tr-racha i:nth-child(4) { --k: 3; } .tr-racha i:nth-child(5) { --k: 4; } .tr-racha i:nth-child(6) { --k: 5; }
.tr-racha i.hoy { box-shadow: inset 0 0 0 2px #FFD23F; }
.tr-esc.is-on .tr-racha i.hoy { animation: tr-hoy .4s 1.8s forwards; }
@keyframes tr-dia { 50% { scale: 1.3; } to { background: #FFD23F; } }
@keyframes tr-hoy { 50% { scale: 1.35; } to { background: #FFD23F; box-shadow: none; } }
.tr-pet { padding: 4px 2px 10px; }
.tr-vac li { padding: 10px 11px; }

/* 1 · servicios */
.tr-mapa { position: relative; height: 52%; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(22, 50, 79, .06); }
.tr-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tr-pin { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; border-radius: 50%; background: #1F7CC3; border: 2.5px solid #fff; box-shadow: 0 4px 10px -3px rgba(13, 34, 54, .55); transform: translate(-50%, -100%); opacity: 0; }
.tr-pin::before { content: ""; position: absolute; inset: 4px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cellipse cx='12' cy='15.5' rx='4.6' ry='3.8'/%3E%3Ccircle cx='6.2' cy='10' r='2'/%3E%3Ccircle cx='9.6' cy='6.4' r='2'/%3E%3Ccircle cx='14.4' cy='6.4' r='2'/%3E%3Ccircle cx='17.8' cy='10' r='2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cellipse cx='12' cy='15.5' rx='4.6' ry='3.8'/%3E%3Ccircle cx='6.2' cy='10' r='2'/%3E%3Ccircle cx='9.6' cy='6.4' r='2'/%3E%3Ccircle cx='14.4' cy='6.4' r='2'/%3E%3Ccircle cx='17.8' cy='10' r='2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; background: #fff; }
.tr-esc.is-on .tr-pin { animation: anim-pin-cae .8s var(--d) cubic-bezier(.3, .7, .3, 1) both; }
.tr-esc.is-on .tr-pin--on { animation: anim-pin-cae .8s var(--d) cubic-bezier(.3, .7, .3, 1) both, tr-elegido .5s 1.3s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes tr-elegido { to { width: 34px; height: 34px; background: #E8323C; } }
.tr-tu { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; border-radius: 50%; background: #FFD23F; border: 2.5px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tr-tu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 210, 63, .55); animation: anim-onda 2.2s ease-out infinite; z-index: -1; }
.tr-card { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 9px; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -14px rgba(22, 50, 79, .45); --d: .9s; }
.tr-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #E8F4FC; color: #1E9FE3; display: grid; place-items: center; font: 700 .95rem Fredoka, sans-serif; }
.tr-card b { display: block; font-size: .72rem; }
.tr-card small { display: block; font-size: .58rem; color: #5D6B7E; }
.tr-verde { color: #1F7A4D; font-size: .5rem; }
.tr-desc { margin-left: auto; flex: none; font-style: normal; font-size: .6rem; font-weight: 800; padding: 5px 8px; border-radius: 999px; background: #FFD23F; color: #16324F; }
.tr-esc.is-on .tr-desc { animation: rv-pop .6s 1.5s cubic-bezier(.3, .7, .3, 1) both; }

/* 2 · mis mascotas */
.tr-pet { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.tr-ava { width: 46px; height: 46px; border-radius: 50%; background: #FDE7E9; color: #E8323C; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 14px -8px rgba(22, 50, 79, .5); }
.tr-ava svg { width: 24px; height: 24px; }
.tr-pet b { font: 600 1.15rem Fredoka, sans-serif; display: block; }
.tr-pet small { font-size: .6rem; color: #5D6B7E; }
.tr-vac { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tr-vac li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 15px; background: #fff; box-shadow: 0 6px 14px -12px rgba(22, 50, 79, .5); }
.tr-vac b { font-size: .72rem; }
.tr-vac small { margin-left: auto; font-size: .58rem; font-weight: 700; color: #1F7A4D; }
.tr-ok, .tr-campana { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tr-ok { background: #E3F1E9; color: #1F7A4D; }
.tr-ok svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; }
.tr-esc.is-on .tr-ok svg { animation: tr-check .45s calc(var(--d) + .25s) ease-out forwards; }
@keyframes tr-check { to { stroke-dashoffset: 0; } }
.tr-campana { background: #FFF4D6; color: #B4561F; }
.tr-campana svg { width: 14px; height: 14px; transform-origin: 50% 10%; }
.tr-esc.is-on .tr-campana svg { animation: tr-campana 1s 1.1s ease-in-out 2; }
@keyframes tr-campana { 0%, 100% { rotate: 0deg; } 20% { rotate: 18deg; } 40% { rotate: -14deg; } 60% { rotate: 8deg; } 80% { rotate: -4deg; } }
.tr-vac--pronto { box-shadow: 0 0 0 1.5px #FFD23F, 0 6px 14px -12px rgba(22, 50, 79, .5) !important; }
.tr-vac--pronto small { color: #B4561F; }
.tr-paseo { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 18px; background: #EDF3D6; }
.tr-anillo { position: relative; width: 44px; height: 44px; flex: none; }
.tr-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-anillo circle { fill: none; stroke: #fff; stroke-width: 5; }
.tr-anillo .tr-arco { stroke: #5B7A0C; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.tr-esc.is-on .tr-arco { animation: tr-arco 1.4s 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes tr-arco { to { stroke-dashoffset: 31; } }
.tr-paseo small { display: block; font-size: .58rem; color: #5B7A0C; font-weight: 700; }
.tr-paseo b { font: 600 1rem Fredoka, sans-serif; }

/* 3 · social */
.tr-post { position: relative; margin-top: 4px; border-radius: 20px; background: #fff; box-shadow: 0 12px 24px -16px rgba(22, 50, 79, .5); overflow: visible; }
.tr-post img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 20px 20px 0 0; }
.tr-etq { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: #E8323C; color: #fff; font-size: .55rem; font-weight: 800; letter-spacing: .08em; }
.tr-post-txt { padding: 9px 11px 4px; }
.tr-post-txt b { display: block; font: 600 .9rem Fredoka, sans-serif; }
.tr-post-txt small { font-size: .58rem; color: #5D6B7E; }
.tr-acciones { display: flex; align-items: center; gap: 12px; padding: 4px 11px 10px; color: #5D6B7E; }
.tr-acciones svg { width: 17px; height: 17px; }
.tr-cora { color: #9AA6B5; display: grid; }
.tr-esc.is-on .tr-cora { animation: tr-cora .5s .9s cubic-bezier(.3, .7, .3, 1) forwards; }
.tr-esc.is-on .tr-cora svg { animation: tr-relleno .01s 1s forwards; }
@keyframes tr-cora { 0% { color: #9AA6B5; scale: 1; } 50% { scale: 1.45; } 100% { color: #E8323C; scale: 1; } }
@keyframes tr-relleno { to { fill: #E8323C; } }
.tr-comp { display: flex; align-items: center; gap: 4px; font-size: .62rem; }
.tr-comp b { color: #16324F; }
.tr-flota { position: absolute; left: 14px; bottom: 16px; color: #E8323C; opacity: 0; }
.tr-flota svg { width: 14px; height: 14px; fill: currentColor; }
.tr-esc.is-on .tr-flota { animation: tr-flota 1.3s 1.05s ease-out forwards; }
.tr-esc.is-on .tr-flota.f2 { animation-delay: 1.2s; left: 22px; } .tr-esc.is-on .tr-flota.f3 { animation-delay: 1.35s; left: 8px; }
@keyframes tr-flota { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--fx, 8px), -70px) scale(1.2); } }
.tr-flota.f2 { --fx: 24px; } .tr-flota.f3 { --fx: -10px; }
.tr-aviso { position: absolute; left: 10px; right: 10px; top: 4px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #1F7A4D; color: #fff; box-shadow: 0 14px 26px -14px rgba(31, 122, 77, .8); opacity: 0; transform: translateY(-120%); }
.tr-aviso span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none; }
.tr-aviso svg { width: 13px; height: 13px; }
.tr-aviso b { font: 600 .8rem Fredoka, sans-serif; }
.tr-esc.is-on .tr-aviso { animation: tr-aviso .6s 2.1s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes tr-aviso { 60% { opacity: 1; transform: translateY(6%); } 100% { opacity: 1; transform: none; } }

/* 4 · eventos */
.tr-ev { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -14px rgba(22, 50, 79, .45); --d: .2s; }
.tr-fecha { flex: none; width: 50px; height: 54px; border-radius: 14px; background: #1E9FE3; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tr-fecha small { font-size: .52rem; font-weight: 800; letter-spacing: .1em; opacity: .9; }
.tr-fecha b { font: 700 1.35rem Fredoka, sans-serif; }
.tr-ev b { display: block; font: 600 .9rem Fredoka, sans-serif; }
.tr-ev small { font-size: .58rem; color: #5D6B7E; }
.tr-van { display: flex; align-items: center; margin: 12px 4px; }
.tr-cara { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #F3F6FA; margin-right: -8px; background: #FDE7E9; }
.tr-cara.c2 { background: #FFF4D6; } .tr-cara.c3 { background: #DDF0F5; }
.tr-van small { margin-left: 14px; font-size: .62rem; font-weight: 700; color: #5D6B7E; }
.tr-boton { position: relative; height: 42px; border-radius: 999px; background: #163A5F; color: #fff; font: 700 .76rem "Plus Jakarta Sans", sans-serif; overflow: hidden; }
.tr-boton > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .3s; }
.tr-boton svg { width: 15px; height: 15px; }
.tr-b2 { opacity: 0; background: #1F7A4D; }
.tr-esc.is-on .tr-boton { animation: tr-sube .6s .4s cubic-bezier(.2, .8, .2, 1) both, tr-presion .35s 1.7s ease-in-out; }
.tr-esc.is-on .tr-b2 { animation: tr-aparece .3s 1.85s forwards; }
@keyframes tr-presion { 50% { scale: .94; } }
@keyframes tr-aparece { to { opacity: 1; } }

/* Remi y su globo */
.tr-remi { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 6px; z-index: 4; }
.tr-remi img { width: 46px; height: auto; flex: none; filter: drop-shadow(0 4px 6px rgba(22, 50, 79, .25)); transform-origin: 50% 90%; }
.tr-remi p { margin: 0 0 8px; padding: 8px 11px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 10px 22px -12px rgba(22, 50, 79, .5); font: 700 .72rem/1.25 "Plus Jakarta Sans", sans-serif; color: #16324F; transform-origin: 0 100%; }
.tr-remi p span { display: none; }
.tr[data-n="0"] .tr-remi p span:nth-child(1), .tr[data-n="1"] .tr-remi p span:nth-child(2), .tr[data-n="2"] .tr-remi p span:nth-child(3), .tr[data-n="3"] .tr-remi p span:nth-child(4) { display: inline; }
.tr-remi.is-habla p { animation: rv-pop .5s .15s cubic-bezier(.3, .7, .3, 1) both; }
.tr-remi.is-habla img { animation: tj-saluda 1.2s .1s ease-in-out; }

/* pestañas: la activa se llena mientras dura su pantalla */
.tr-tabs { flex: none; margin: 0 8px 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px; border-radius: 22px; background: #fff; box-shadow: 0 8px 20px -12px rgba(13, 34, 54, .5); border: 1px solid #E1EBF4; position: relative; z-index: 5; }
.tr-tabs > button, .tr-aj { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 6px; border: 0; border-radius: 16px; background: none; font: 600 .46rem "Plus Jakarta Sans", sans-serif; color: #16324F; white-space: nowrap; overflow: hidden; cursor: pointer; transition: background .3s, color .3s; }
.tr-aj { cursor: default; }
.tr-tabs svg { width: 17px; height: 17px; }
.tr-tabs > button.is-on { background: #E9EDF2; color: #1E9FE3; }
.tr-tabs > button:focus-visible { outline: 2px solid #1E9FE3; outline-offset: 1px; }
.tr-tabs > button i { position: absolute; left: 22%; right: 22%; bottom: 2px; height: 2px; border-radius: 2px; background: #1E9FE3; transform: scaleX(0); transform-origin: 0 50%; }
.tr.is-auto .tr-tabs > button.is-on i { animation: tr-progreso var(--dur, 4s) linear forwards; }
@keyframes tr-progreso { to { transform: scaleX(1); } }

/* el dedo que toca la siguiente pestaña */
.tr-dedo { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(22, 58, 95, .22); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(22, 50, 79, .35); opacity: 0; z-index: 8; pointer-events: none; transform: translate(var(--dx, 50%), var(--dy, 0)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.tr-dedo.is-ve { opacity: 1; }
.tr-dedo.is-toca { animation: tr-toca .4s ease-out; }
@keyframes tr-toca { 50% { scale: .7; box-shadow: 0 0 0 10px rgba(30, 159, 227, .25); } }

/* ---------- tarjetas flotando junto al teléfono ---------- */
.anim-flota {
  position: absolute; z-index: 7; display: flex; align-items: center; gap: 10px;
  max-width: 270px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgba(22, 50, 79, .45);
  color: var(--ink); line-height: 1.25; pointer-events: none;
}
.anim-flota b { display: block; white-space: nowrap; font-family: var(--font-display, Fredoka), sans-serif; font-size: .9rem; font-weight: 600; }
.anim-flota small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.anim-flota-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--heart-soft); color: var(--heart); }
.anim-flota-ic svg { width: 19px; height: 19px; }
.anim-flota img { flex: none; width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.anim-flota--vacuna { left: -128px; top: 40%; animation: anim-aparece .7s 1.7s cubic-bezier(.2, .8, .2, 1) both, anim-flotar 6s 2.4s ease-in-out infinite; }
.anim-flota--sebusca { right: -112px; top: 70%; animation: anim-aparece .7s 2.1s cubic-bezier(.2, .8, .2, 1) both, anim-flotar 6.5s 2.8s ease-in-out infinite; }
@media (max-width: 980px) {
  .anim-flota--vacuna { left: -40px; }
  .anim-flota--sebusca { right: -30px; }
}
@media (max-width: 640px) {
  .anim-flota { display: none; }
}


/* =========================================================
   2. FRANJA DE FUNCIONES (accesos a cada sección)
   ========================================================= */
.feat-strip { padding: 22px 0 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.feat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.feat-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid var(--border); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s, box-shadow .25s;
}
.feat-pill i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--deep); transition: background .25s, color .25s; }
.feat-pill svg { width: 17px; height: 17px; }
.feat-pill:hover, .feat-pill:focus-visible { transform: translateY(-3px); border-color: var(--sky); background: #fff; box-shadow: 0 12px 24px -16px rgba(7, 114, 186, .6); }
.feat-pill:hover i, .feat-pill:focus-visible i { background: var(--deep); color: #fff; }
.feat-pill:nth-child(4) i, .feat-pill:nth-child(5) i { color: var(--heart); }
.feat-pill:nth-child(4):hover i, .feat-pill:nth-child(5):hover i { background: var(--heart); color: #fff; }
.js-anim .feat-strip .feat-pill { opacity: 0; }
.js-anim .feat-strip.is-in .feat-pill { opacity: 1; animation: anim-aparece .55s calc(var(--i) * 70ms) cubic-bezier(.2, .8, .2, 1) both; }
@media (max-width: 640px) {
  .feat-strip { padding: 16px 0; }
  .feat-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; scroll-snap-type: x proximity; }
  .feat-pills::-webkit-scrollbar { display: none; }
  .feat-pill { scroll-snap-align: start; font-size: .86rem; }
}

/* =========================================================
   3. TIENDA: Remi ve su juguete viejo y llega un carrito con uno nuevo
   Un ciclo de 10 s que solo corre cuando la escena se ve (.is-in).
   ========================================================= */
.tj-head { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.tj-head .h2 { margin: 10px 0 14px; }
.tj-ventajas { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tj-ventajas li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--border); font-weight: 700; font-size: .88rem; }
.tj-ventajas i { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--deep); }
.tj-ventajas svg { width: 16px; height: 16px; }

.tj-escena { position: relative; font-size: 10px; width: 52em; max-width: 100%; height: 32em; margin: 0 auto; border-radius: 40px; background: var(--bg-tint); overflow: hidden; }
.tj-escena::before { content: ""; position: absolute; width: 26em; height: 26em; border-radius: 50%; background: #E3F1FB; right: -6em; top: -9em; }
.tj-suelo { position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: #DCEBF7; }
.tj-remi { position: absolute; left: 3em; bottom: 3.2em; width: 17em; height: 24em; }
.tj-remi img { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; transform-origin: 50% 100%; }
.tj-feliz { opacity: 0; }
.tj-nube { position: absolute; left: 16em; top: 2.4em; width: 9em; height: 6.4em; border-radius: 3.2em; background: #fff; display: flex; align-items: center; justify-content: center; gap: .4em; box-shadow: 0 10px 24px -14px rgba(22, 50, 79, .5); opacity: 0; }
.tj-nube::before, .tj-nube::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.tj-nube::before { width: 1.8em; height: 1.8em; left: .6em; bottom: -1.6em; }
.tj-nube::after { width: 1em; height: 1em; left: -.4em; bottom: -2.8em; }
.tj-nube svg { width: 3.6em; height: 3.6em; }
.tj-nube b { font: 700 2.8em/1 Fredoka, sans-serif; color: var(--deep); }
.tj-viejo { position: absolute; left: 19em; bottom: 3em; width: 9em; transform-origin: 50% 100%; }
.tj-carrito { position: absolute; right: 2.5em; bottom: 3em; width: 17em; height: 13em; transform: translateX(26em); }
.tj-carro { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tj-rueda { transform-box: fill-box; transform-origin: center; }
.tj-nueva { position: absolute; left: 6.6em; top: -1.2em; width: 6em; height: 6em; }
.tj-brillo { position: absolute; width: 1.4em; height: 1.4em; background: #FFD23F; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.tj-brillo.b1 { left: 18em; bottom: 11em; } .tj-brillo.b2 { left: 28em; bottom: 9em; } .tj-brillo.b3 { left: 23em; bottom: 14em; }
.tj-corazon { position: absolute; left: 11em; top: 6em; color: var(--heart); font-size: 2.6em; line-height: 1; opacity: 0; }
.tj-corazon.c2 { left: 5.4em; top: 3.6em; font-size: 2em; } .tj-corazon.c3 { left: 7.4em; top: 2em; font-size: 1.6em; }

@keyframes tj-triste { 0%, 56% { opacity: 1; transform: none; } 20%, 30% { transform: rotate(-3deg); } 60%, 100% { opacity: 0; } }
@keyframes tj-feliz { 0%, 58% { opacity: 0; transform: scale(.92); } 64% { opacity: 1; transform: scale(1.04); } 68%, 92% { opacity: 1; transform: none; } 75% { transform: translateY(-.8em); } 80% { transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tj-nube { 0%, 8% { opacity: 0; transform: scale(.6); } 14%, 36% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes tj-viejo { 0%, 100% { opacity: 1; transform: none; } 10% { transform: rotate(-4deg) scaleY(.94); } 16% { transform: rotate(3deg); } 22% { transform: none; } 52% { opacity: 1; transform: none; } 58%, 96% { opacity: 0; transform: translateX(-4em) scale(.6); } }
@keyframes tj-polvo { 0%, 8% { opacity: 0; transform: none; } 14% { opacity: 1; } 30% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; } }
@keyframes tj-carrito { 0%, 34% { transform: translateX(26em); } 48% { transform: translateX(-.8em); } 52%, 88% { transform: none; } 97%, 100% { transform: translateX(26em); } }
@keyframes tj-rueda { 0%, 34% { transform: none; } 48% { transform: rotate(-540deg); } 100% { transform: rotate(-540deg); } }
@keyframes tj-nueva {
  0%, 52% { transform: none; opacity: 1; }
  56% { transform: translate(-8em, -7em) rotate(-120deg); }
  61% { transform: translate(-15em, 8.2em) rotate(-260deg); }
  65% { transform: translate(-16.5em, 5.6em) rotate(-300deg); }
  69%, 90% { transform: translate(-17.6em, 8.2em) rotate(-340deg); opacity: 1; }
  96%, 100% { transform: translate(-17.6em, 8.2em) rotate(-340deg); opacity: 0; }
}
@keyframes tj-brillo { 0%, 60% { opacity: 0; transform: scale(.2) rotate(0); } 66% { opacity: 1; transform: scale(1.2) rotate(45deg); } 74%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes tj-corazon { 0%, 64% { opacity: 0; transform: translateY(1em) scale(.6); } 70% { opacity: 1; transform: none; } 90% { opacity: 0; transform: translateY(-3em) scale(1.1); } 100% { opacity: 0; } }

.tj-escena.is-in .tj-triste { animation: tj-triste 10s ease-in-out infinite; }
.tj-escena.is-in .tj-feliz { animation: tj-feliz 10s ease-in-out infinite; }
.tj-escena.is-in .tj-nube { animation: tj-nube 10s cubic-bezier(.2, .8, .2, 1) infinite; }
.tj-escena.is-in .tj-viejo { animation: tj-viejo 10s ease-in-out infinite; }
.tj-escena.is-in .tj-polvo { animation: tj-polvo 10s ease-out infinite; }
.tj-escena.is-in .tj-carrito { animation: tj-carrito 10s cubic-bezier(.3, .7, .3, 1) infinite; }
.tj-escena.is-in .tj-rueda { animation: tj-rueda 10s cubic-bezier(.3, .7, .3, 1) infinite; }
.tj-escena.is-in .tj-nueva { animation: tj-nueva 10s linear infinite; }
.tj-escena.is-in .tj-brillo { animation: tj-brillo 10s ease-out infinite; }
.tj-escena.is-in .tj-brillo.b2 { animation-delay: .15s; } .tj-escena.is-in .tj-brillo.b3 { animation-delay: .3s; }
.tj-escena.is-in .tj-corazon { animation: tj-corazon 10s ease-out infinite; }
.tj-escena.is-in .tj-corazon.c2 { animation-delay: .3s; } .tj-escena.is-in .tj-corazon.c3 { animation-delay: .6s; }
.tj-escena:not(.is-in) .tj-carrito { transform: none; }
.tj-escena:not(.is-in) .tj-nube { opacity: 1; }

/* carrusel de productos */
.tj-fila { position: relative; margin-top: 44px; }
#tienda .store-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 20px) / 4)); grid-template-columns: none;
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 10px 4px 24px; margin: 0 -4px; overscroll-behavior-x: contain;
}
#tienda .store-grid::-webkit-scrollbar { display: none; }
#tienda .store-grid > .product-card { scroll-snap-align: start; border-radius: 28px; display: flex; flex-direction: column; }
#tienda .store-grid > .product-card .product-visual { border-radius: 20px; }
#tienda .store-grid > .product-card > a.btn { margin-top: auto; }
#tienda .store-grid > .product-card[hidden] { display: none; }
.tj-flecha { position: absolute; top: calc(50% - 26px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(22, 50, 79, .5); transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .25s, background .25s; z-index: 2; }
.tj-flecha svg { width: 22px; height: 22px; }
.tj-flecha:hover { transform: scale(1.08); background: var(--bg-tint); }
.tj-ant { left: -22px; } .tj-sig { right: -22px; }
.tj-flecha[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 980px) {
  .tj-head { grid-template-columns: 1fr; gap: 28px; }
  .tj-flecha { display: none; }
  #tienda .store-grid { grid-auto-columns: minmax(240px, 72%); }
}
@media (max-width: 560px) { .tj-escena { font-size: 6.4px; border-radius: 28px; } }

/* =========================================================
   4. BOTONES DE TIENDA, PIE CON REMI Y BORDES MÁS REDONDOS
   ========================================================= */
.lp-tiendas .tiendas { margin-top: 0; }
.hero .lp-tiendas { margin-top: 26px; }
.lp-centro .tiendas { justify-content: center; margin-top: 26px; }
.lp .tienda { text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.lp .tienda.is-secondary { background: #fff; color: var(--boton); box-shadow: inset 0 0 0 1.5px var(--linea); }
.hero-mas { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--deep); text-decoration: none; }
.hero-mas::after { content: "→"; transition: transform .25s; }
.hero-mas:hover::after { transform: translateX(4px); }
footer.con-remi { padding-top: 0; }
footer.con-remi .lp .pie-remi { margin-top: 0; max-width: 1000px; }
footer.con-remi .wrap { margin-top: -10px; }

:root { --radius-lg: 30px; --radius-md: 22px; --radius-sm: 16px; }
.product-card, .biz-benefit, .post-card, .faq-item, .plan-card, .guide-card, .testi-card { border-radius: 30px; }
.feat-icon { border-radius: 16px; }

/* =========================================================
   5. TODA LA HOME CON EL MISMO MOVIMIENTO DE LA APP
   Al bajar, cada bloque entra suave (sube y aparece), las tarjetas en cascada,
   los iconos «rebotan» como en la app, los teléfonos entran de lado y flotan,
   las fotos de Social se abren en abanico y los checks de Premium se marcan uno a uno.
   Se usan translate/scale/rotate sueltos para no pisar las transformaciones de cada tarjeta.
   ========================================================= */
@keyframes rv-sube { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-izq { from { opacity: 0; translate: -60px 20px; rotate: -4deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes rv-der { from { opacity: 0; translate: 60px 20px; rotate: 4deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes rv-pop { 0% { scale: .4; } 60% { scale: 1.15; } 80% { scale: .95; } 100% { scale: 1; } }
@keyframes rv-abanico { from { opacity: 0; translate: var(--fx, 0) 40px; rotate: var(--fr, 0deg); scale: .9; } to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; } }
@keyframes rv-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes rv-punto { 0% { box-shadow: 0 0 0 0 rgba(7, 114, 186, .45); } 70% { box-shadow: 0 0 0 8px rgba(7, 114, 186, 0); } 100% { box-shadow: 0 0 0 0 rgba(7, 114, 186, 0); } }

.js-anim .rv:not(.is-in) { opacity: 0; }
.rv.is-in { animation: rv-sube .8s calc(var(--rv-i, 0) * 90ms) cubic-bezier(.2, .8, .2, 1) both; }
.rv.rv--izq.is-in { animation-name: rv-izq; animation-duration: 1s; }
.rv.rv--der.is-in { animation-name: rv-der; animation-duration: 1s; }
.rv.rv--abanico.is-in { animation-name: rv-abanico; animation-duration: .9s; }
.wall .w1 { --fx: 120px; --fr: 6deg; } .wall .w2 { --fx: -60px; --fr: -4deg; } .wall .w3 { --fx: 80px; --fr: -3deg; }
/* iconos de tarjetas y checks: rebote al entrar */
.rv.is-in .v2-ic, .rv.is-in .feat-icon { animation: rv-pop .6s calc(var(--rv-i, 0) * 90ms + .25s) cubic-bezier(.3, .7, .3, 1) both; }
.v2-table tr.rv.is-in .v2-yes { animation: rv-pop .5s calc(var(--rv-i, 0) * 90ms + .2s) cubic-bezier(.3, .7, .3, 1) both; }
.v2-table tr.rv.is-in td + td .v2-yes { animation-delay: calc(var(--rv-i, 0) * 90ms + .35s); }
/* teléfonos de las secciones: después de entrar, flotan como el de la portada */
.v2-shot img.rv.is-in { animation: rv-der 1s calc(var(--rv-i, 0) * 150ms) cubic-bezier(.2, .8, .2, 1) both, rv-flota 7s calc(var(--rv-i, 0) * 150ms + 1.2s) ease-in-out infinite; }
.v2-split--rev .v2-shot img.rv.is-in { animation-name: rv-izq, rv-flota; }
/* el «eyebrow» de cada sección lleva el mismo punto que late de la app */
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: rv-punto 2.2s infinite; }
.hero .eyebrow::before { display: none; }
/* tarjetas más redondas y con un leve salto al pasar el ratón, como los botones de la app */
.v2-card, .v2-guide { border-radius: 26px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.v2-card:hover, .v2-guide:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(22, 50, 79, .45); }
.v2-guide:hover .v2-ic { animation: rv-pop .5s cubic-bezier(.3, .7, .3, 1); }
/* preguntas frecuentes: se abren y cierran con suavidad (navegadores que lo permiten) */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s cubic-bezier(.2, .8, .2, 1), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item summary::after { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
/* llamada final: Remi asoma y saluda */
.cta-remi { display: block; width: 110px; height: auto; margin: 0 auto 6px; transform-origin: 50% 90%; }
.cta-remi.is-in { animation: rv-pop .7s cubic-bezier(.3, .7, .3, 1) both, tj-saluda 2.6s 1s ease-in-out infinite; }
@keyframes tj-saluda { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -7deg; } 80% { rotate: 6deg; } 90% { rotate: -3deg; } }

/* =========================================================
   Reducir movimiento: todo quieto, todo visible
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child > *, #heroPhone, .anim-flota, .ap-pin, .ap-cluster, .ap-you i::after, .ap-heart svg,
  .ap.is-list .ap-shop, .ap.is-list .ap-results, .ap.is-list .ap-card, .feat-pill, .tj-escena *, .rv, .rv *, .eyebrow::before, .cta-remi, .tr * { animation: none !important; }
  .tr-esc { transition: none; } .tr-pin { opacity: 1; } .tr-aviso { opacity: 1; transform: none; } .tr-b2 { opacity: 1; } .tr-pin--on { background: #E8323C; } .tr-ok svg { stroke-dashoffset: 0; } .tr-racha i { background: #FFD23F; } .tr-arco { stroke-dashoffset: 31 !important; }
  .rv { opacity: 1 !important; }
  .faq-item::details-content { transition: none; }
  .tj-escena .tj-carrito { transform: none; } .tj-escena .tj-nube { opacity: 1; }
  .ap-pin, .ap-cluster { opacity: 1; }
  #heroPhone { transform: none; }
  .ap-map, .ap-list, .ap-toggle > span { transition: none; }
}
/* Mis Mascotas: el paseo de hoy ocupa el espacio libre, con el anillo más grande */
.tr-esc--pet .tr-paseo { flex: 1 1 auto; max-height: 150px; justify-content: center; gap: 14px; }
.tr-esc--pet .tr-anillo { width: 72px; height: 72px; }
.tr-esc--pet .tr-paseo b { font-size: 1.3rem; }

/* Comunidad: misma estructura que Servicios / Mis Mascotas (tarjetas de color + publicaciones de Social) */
.com .v2-card--ancha { grid-column: 1 / -1; }
.com-visual .wall { width: 420px; max-width: 100%; margin: 0 auto; }
.com .big-heart { animation: anim-latido 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
@media (max-width: 980px) {
  .com .v2-split--rev .com-visual { order: 2; }
  .com-visual .wall { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .com .big-heart { animation: none; } }

/* ===================== 7. Mis Mascotas: tarjetas que cambian la pantalla ===================== */
#mis-mascotas .mm-col { flex-direction: column; align-items: center; gap: 14px; }
.mm-escena { display: grid; width: 100%; max-width: 460px; place-items: center; }
.mm-pane {
  grid-area: 1 / 1; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; scale: .96; translate: 0 16px;
  transition: opacity .35s ease, scale .6s cubic-bezier(.2, .8, .2, 1), translate .6s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
}
.mm-pane.is-on { opacity: 1; visibility: visible; scale: 1; translate: 0 0; transition-delay: .08s, .08s, .08s, 0s; }
.mm-pane img { width: 100%; max-width: 250px; }
#mis-mascotas .mm-lp { gap: 12px; }
#mis-mascotas .mm-lp .stats-paseo { width: 100%; max-width: 440px; margin: 0; gap: 10px; }
#mis-mascotas .mm-lp .stats-paseo > div { padding: 12px 14px; }
#mis-mascotas .mm-lp .stats-paseo strong { font-size: 1.35rem; }
#mis-mascotas .mm-lp .mapa-tarjeta { width: 100%; max-width: 440px; }
#mis-mascotas .mm-lp .paseo-nota { margin: 0; max-width: 440px; text-align: center; font-size: .84rem; }
#mis-mascotas .mm-lp .ranking { width: 100%; max-width: 440px; margin: 0; padding: 22px; }
#mis-mascotas .mm-lp .ranking li { grid-template-columns: 30px 64px 1fr auto; padding: 4px 0; font-size: 1rem; }
.mm-reto { width: 100%; max-width: 440px; display: flex; gap: 14px; align-items: center; background: #FDF4CC; border-radius: 26px; padding: 18px 20px; border: 1px solid rgba(22, 50, 79, .06); }
.mm-reto-ic { width: 46px; height: 46px; flex: none; border-radius: 16px; background: #fff; color: #806300; display: grid; place-items: center; }
.mm-reto-ic svg { width: 24px; height: 24px; }
.mm-reto > div { flex: 1; min-width: 0; }
.mm-reto strong { display: block; font-family: Fredoka, sans-serif; font-size: 1.1rem; color: #16324F; }
.mm-reto small { display: block; color: #5D6B7E; font-weight: 600; font-size: .85rem; }
.mm-reto-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .8); margin-top: 8px; overflow: hidden; }
.mm-reto-bar i { display: block; height: 100%; width: 58%; border-radius: inherit; background: #E8A600; transform-origin: left; }
#mm-p-ranking.is-on .mm-reto-bar i { animation: mm-crece 1.4s .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mm-crece { from { scale: 0 1; } }
.mm-hint { margin: 0; font-size: .85rem; font-weight: 600; color: #5D6B7E; display: flex; align-items: center; gap: 8px; }
.mm-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0772BA; animation: rv-punto 2s ease-in-out infinite; }

/* tarjetas como pestañas */
#mis-mascotas .v2-card[role="tab"] { position: relative; overflow: hidden; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
#mis-mascotas .v2-card[role="tab"]:focus-visible { outline: 3px solid #0772BA; outline-offset: 3px; }
#mis-mascotas .v2-card[aria-selected="true"] { box-shadow: 0 0 0 2.5px #0772BA, 0 18px 34px -22px rgba(22, 50, 79, .5); }
#mis-mascotas .v2-card[role="tab"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #0772BA;
  transform-origin: left; scale: 0 1; opacity: 0;
}
#mis-mascotas .mm-auto .v2-card.is-on::after { opacity: 1; animation: mm-tiempo var(--mm-dur, 5200ms) linear both; }
@keyframes mm-tiempo { to { scale: 1 1; } }

@media (max-width: 900px) {
  #mis-mascotas .v2-split--rev .mm-col { order: 0; }
  .mm-pane img { max-width: 210px; }
}
/* en el celular las tarjetas van en una fila que se desliza, justo debajo de la pantalla */
@media (max-width: 600px) {
  #mis-mascotas .mm-tabs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 6px 20px 10px; scrollbar-width: none;
  }
  #mis-mascotas .mm-tabs::-webkit-scrollbar { display: none; }
  #mis-mascotas .mm-tabs .v2-card { flex: 0 0 76%; scroll-snap-align: center; }
  #mis-mascotas .mm-lp .stats-paseo strong { font-size: 1.15rem; }
  #mis-mascotas .mm-lp .mapa-panel { left: 10px; right: 10px; bottom: 10px; gap: 10px; padding: 10px; }
  #mis-mascotas .mm-lp .anillo-grande { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-pane, .mm-pane.is-on { transition: none; scale: 1; translate: none; }
  .mm-hint::before, #mm-p-ranking.is-on .mm-reto-bar i, #mis-mascotas .mm-auto .v2-card.is-on::after { animation: none; }
}

/* Isla Dinámica dentro de Mis Mascotas (fondo claro) */
#mm-p-isla { gap: 16px; }
#mm-p-isla .telefono-isla { width: 250px; }
#mm-p-isla .tabs { margin-top: 0; background: #fff; border: 1px solid rgba(22, 50, 79, .08); box-shadow: 0 10px 24px -20px rgba(18, 41, 59, .35); max-width: 100%; }
#mm-p-isla .tabs button { color: #16324F; padding: 8px 13px; font-size: .84rem; cursor: pointer; }
#mm-p-isla .tabs button[aria-selected="true"] { background: #16324F; color: #fff; }
#mm-p-isla .tabs button:focus-visible { outline: 3px solid #0772BA; outline-offset: 2px; }
@media (max-width: 600px) { #mm-p-isla .telefono-isla { width: 220px; } #mm-p-isla .tabs button { padding: 7px 10px; font-size: .78rem; } }
.mm-remi { width: 130px; height: auto; margin-bottom: -6px; }
#mm-p-ranking.is-on .mm-remi { animation: rv-pop .7s .15s cubic-bezier(.34, 1.56, .64, 1) both, rv-flota 5s 1s ease-in-out infinite; }
@media (max-width: 600px) { .mm-remi { width: 96px; } }
@media (prefers-reduced-motion: reduce) { #mm-p-ranking.is-on .mm-remi { animation: none; } }
#mm-p-ranking .mm-remi { width: 130px; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 600px) {
  #mm-p-ranking .mm-remi { width: 92px; }
  #mis-mascotas .mm-lp .mapa-panel strong { font-size: .98rem; line-height: 1.25; }
  #mis-mascotas .mm-lp .mapa-panel .lp-btn-chico { padding: 8px 12px; font-size: .82rem; }
}

/* Tarjeta del día de Remi junto a la pantalla de vacunas */
#mm-p-vac { position: relative; }
.mm-dia {
  position: absolute; z-index: 2; right: -24px; bottom: 9%; width: 272px;
  display: flex; gap: 10px; align-items: center; text-align: left;
  background: #fff; border: 1px solid #E1EBF4; border-radius: 20px; padding: 12px 14px;
  box-shadow: 0 18px 36px -18px rgba(22, 50, 79, .45);
}
#mm-p-vac .mm-dia img { width: 44px; max-width: none; height: 44px; flex: none; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.mm-dia small { display: block; font-size: .72rem; font-weight: 800; color: #0772BA; text-transform: uppercase; letter-spacing: .04em; }
.mm-dia strong { display: block; font-size: .84rem; line-height: 1.4; color: #16324F; font-weight: 700; }
#mm-p-vac.is-on .mm-dia { animation: mm-dia-entra .7s .45s cubic-bezier(.34, 1.56, .64, 1) both, rv-flota 6s 1.3s ease-in-out infinite; }
#mm-p-vac.is-on .mm-dia img { animation: ri-guino 3.2s 1.4s ease-in-out infinite; }
@keyframes mm-dia-entra { from { opacity: 0; translate: 24px 10px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ri-guino { 0%, 80%, 100% { rotate: 0deg; } 86% { rotate: -10deg; } 92% { rotate: 8deg; } }
@media (max-width: 600px) {
  .mm-dia { width: 190px; right: -4px; bottom: 12%; padding: 10px 12px; }
  .mm-dia strong { font-size: .78rem; }
  #mm-p-vac .mm-dia img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { #mm-p-vac.is-on .mm-dia, #mm-p-vac.is-on .mm-dia img { animation: none; } }
