/* Widget Toy · web v3 (25/10/2026): desfile de mascotas, Orbi, iconos animados de planes y brillos */

/* ---------- desfile de mascotas ---------- */
.v3-parade { padding: 70px 0 40px; position: relative; overflow: hidden; }
.v3-parade-head { text-align: center; margin-bottom: 26px; padding: 0 16px; }
.v3-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v3-track { display: flex; gap: 18px; width: max-content; animation: v3-scroll 70s linear infinite; padding: 14px 0 24px; }
.v3-marquee:hover .v3-track { animation-play-state: paused; }
@keyframes v3-scroll { to { transform: translateX(-50%); } }
.v3-m { width: 132px; flex: none; text-align: center; }
.v3-m-img { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 28px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  border: 1px solid var(--border-subtle); transition: transform .35s var(--transition-smooth), box-shadow .35s, border-color .35s; }
.v3-m-img img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.v3-m:hover .v3-m-img { transform: translateY(-8px) scale(1.06) rotate(-3deg); }
.v3-m span { font-size: .82rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.v3-free .v3-m-img:hover, .v3-free:hover .v3-m-img { border-color: var(--color-free); box-shadow: 0 10px 30px rgba(61, 220, 132, .25); }
.v3-season:hover .v3-m-img { border-color: var(--color-season); box-shadow: 0 10px 30px rgba(255, 122, 0, .28); }
.v3-pro:hover .v3-m-img { border-color: var(--color-pro); box-shadow: 0 10px 30px rgba(0, 229, 255, .25); }
.v3-leg .v3-m-img { border-color: rgba(255, 215, 0, .28); }
.v3-leg:hover .v3-m-img { border-color: var(--color-legend); box-shadow: 0 10px 34px rgba(255, 215, 0, .32); }

/* ---------- Misiones con Orbi ---------- */
.v3-quests { padding: 90px 0; position: relative; }
.v3-quests::before { content: ""; position: absolute; inset: 10% 0; background: radial-gradient(600px 300px at 70% 50%, rgba(124, 58, 237, .18), transparent 70%),
  radial-gradient(500px 260px at 20% 60%, rgba(0, 210, 160, .10), transparent 70%); pointer-events: none; }
.v3-quests-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.v3-quests-text .section-title, .v3-quests-text .section-subtitle, .v3-quests-text .section-tag { text-align: left; margin-left: 0; }
.v3-qlist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.v3-qlist li { display: flex; align-items: center; gap: 14px; color: var(--text-main); font-weight: 600; }
.v3-qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.v3-orbi-stage { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.v3-orbi { width: 100%; height: auto; overflow: visible; }
.v3-orbi-body { animation: v3-float 3.2s ease-in-out infinite; transform-origin: 160px 160px; }
@keyframes v3-float { 50% { transform: translateY(-10px); } }
.v3-o-shadow { fill: rgba(0, 0, 0, .35); animation: v3-shadow 3.2s ease-in-out infinite; transform-origin: 160px 292px; }
@keyframes v3-shadow { 50% { transform: scaleX(.82); opacity: .6; } }
.v3-arm { stroke: #9b7bff; stroke-width: 10; stroke-linecap: round; }
.v3-arm-l { animation: v3-wave .9s ease-in-out infinite alternate; transform-origin: 102px 165px; }
@keyframes v3-wave { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
.v3-orb-hold { animation: v3-beat 1.3s ease-in-out infinite; transform-origin: 256px 112px; filter: drop-shadow(0 0 10px #00e676); }
@keyframes v3-beat { 50% { transform: scale(1.18); } }
.v3-orb { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.v3-o-eyes { animation: v3-blink 4.2s infinite; transform-origin: 160px 152px; }
@keyframes v3-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.v3-pts, .v3-streak { position: absolute; display: flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 16px;
  background: var(--bg-surface-elevated); border: 1px solid var(--border-accent); backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-weight: 800; }
.v3-pts { left: -6%; bottom: 12%; color: #b9f6ca; font-size: 1.5rem; animation: v3-float 3.8s ease-in-out infinite; }
.v3-pts small, .v3-streak small { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.v3-gem { color: #00e676; }
.v3-streak { right: -4%; top: 10%; color: #ffb74d; font-size: 1.1rem; animation: v3-float 4.4s ease-in-out infinite .6s; }

/* ---------- iconos animados de los planes ---------- */
.v3-tier { width: 58px; height: 58px; margin: 0 0 12px; position: relative; display: grid; place-items: center; }
.v3-tier-free, .v3-tier-pro { grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px; }
.v3-tier-free i, .v3-tier-pro i { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; position: relative; }
.v3-tier-free i:nth-child(1) { background: #7c3aed; } .v3-tier-free i:nth-child(2) { background: #2f9bff; }
.v3-tier-free i:nth-child(3) { background: #ff8c00; } .v3-tier-free i:nth-child(4) { background: #00d2a0; }
.v3-tier-pro i { background: #00c853; animation: v3-lit 2s infinite; }
.v3-tier-pro i:nth-child(1) { background: #69f0ae; animation-delay: 0s; } .v3-tier-pro i:nth-child(2) { background: #00e676; animation-delay: .5s; }
.v3-tier-pro i:nth-child(4) { background: #1de9b6; animation-delay: 1s; } .v3-tier-pro i:nth-child(3) { animation-delay: 1.5s; }
@keyframes v3-lit { 0%, 30%, 100% { filter: brightness(1); transform: translateY(0); } 12% { filter: brightness(1.55); transform: translateY(-3px); } }
.v3-tier-free i::after, .v3-tier-pro i::after { content: ""; position: absolute; left: 16%; top: 12%; width: 34%; height: 16%; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.v3-tier-pro em { position: absolute; width: 8px; height: 8px; background: #b9f6ca; border-radius: 50%; box-shadow: 0 0 10px #69f0ae;
  animation: v3-spin 2.6s linear infinite; offset-path: circle(36px at 50% 50%); top: 0; left: 0; }
@keyframes v3-spin { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.v3-rays { position: absolute; inset: -14px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 213, 79, .35) 0 10deg, transparent 10deg 45deg); animation: v3-rot 9s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 32%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 32%, transparent 70%); }
@keyframes v3-rot { to { transform: rotate(360deg); } }
.v3-gemq { width: 38px; height: 38px; transform: rotate(45deg); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; position: relative; top: 4px; }
.v3-gemq i { border-radius: 4px; background: #ffb300; animation: v3-lit 2.4s infinite; }
.v3-gemq i:nth-child(1) { background: #ffe082; } .v3-gemq i:nth-child(2) { background: #ffca28; animation-delay: .6s; }
.v3-gemq i:nth-child(3) { background: #ff8f00; animation-delay: 1.8s; } .v3-gemq i:nth-child(4) { animation-delay: 1.2s; }
.v3-crown { position: absolute; top: -6px; width: 26px; height: 14px; background: #ffd54f;
  clip-path: polygon(0 100%, 0 30%, 25% 65%, 50% 0, 75% 65%, 100% 30%, 100% 100%); filter: drop-shadow(0 0 6px rgba(255, 213, 79, .7)); }

/* ---------- brillos y vida extra ---------- */
.pricing-card { transition: transform .4s var(--transition-smooth), box-shadow .4s; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--border-accent); }
.pricing-card.featured { position: relative; }
.pricing-card.featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--v3a, 0deg), #ffd700, #ff8a00, #8b3dff, #2f9bff, #00d2a0, #ffd700);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: v3-border 6s linear infinite; opacity: .85; }
.pricing-card.featured .featured-pill { z-index: 2; }   /* la píldora por encima del borde animado */
@property --v3a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes v3-border { to { --v3a: 360deg; } }
.section-title { background: linear-gradient(90deg, #fff 0%, #fff 55%, #c4b5fd 75%, #fff 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; animation: v3-shine 8s ease-in-out infinite; }
@keyframes v3-shine { 50% { background-position: 100% 0; } }

@media (max-width: 860px) {
  .v3-quests-in { grid-template-columns: 1fr; }
  .v3-quests-text .section-title, .v3-quests-text .section-subtitle, .v3-quests-text .section-tag { text-align: center; margin-left: auto; }
  .v3-qlist { max-width: 420px; margin: 22px auto 0; }
  .v3-pts { left: 0; } .v3-streak { right: 0; }
  .v3-m { width: 104px; } .v3-m-img { width: 88px; height: 88px; border-radius: 22px; } .v3-m-img img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-track, .v3-orbi-body, .v3-arm-l, .v3-orb-hold, .v3-pts, .v3-streak, .v3-rays, .v3-tier i, .v3-gemq i, .section-title, .pricing-card.featured::after { animation: none !important; }
}

/* ---- Selector de idioma desplegable (lang_menu.js), como el de la app ---- */
.lang-switcher { position: relative; }
.lang-switcher .lang-trigger { gap: 7px; padding: 6px 12px 6px 9px; color: #fff; }
.lang-switcher .lang-trigger:hover { background: rgba(255, 255, 255, 0.12); }
.lang-caret { font-size: 0.7rem; opacity: 0.7; transition: transform 0.2s ease; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000;
  width: min(500px, calc(100vw - 32px)); padding: 10px;
  background: #18181e; border: 1px solid #34343e; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease;
}
.lang-switcher.open .lang-pop { opacity: 1; transform: none; pointer-events: auto; }
.lang-pop-head { font-size: 0.68rem; letter-spacing: 0.08em; color: #8b8b96; padding: 2px 6px 8px; font-weight: 700; }
.lang-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.lang-opt {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 10px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: #fff; font: inherit; font-size: 0.9rem; font-weight: 600;
  text-align: left; cursor: pointer;
}
.lang-opt:hover { background: rgba(255, 255, 255, 0.07); }
.lang-opt.on { background: color-mix(in srgb, var(--theme-accent, #00d26a) 22%, transparent); border-color: var(--theme-accent, #00d26a); }
.lang-opt.off { color: #9a9aa4; cursor: default; }
.lang-opt.off:hover { background: transparent; }
.lang-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-soon { flex: none; font-size: 0.62rem; color: #8b8b96; background: #2a2a33; border-radius: 8px; padding: 2px 6px; }
@media (max-width: 560px) {
  .lang-pop-grid { grid-template-columns: 1fr; }
  .lang-pop { width: min(300px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; }
  .lang-switcher-mobile .lang-pop { right: auto; left: 0; transform-origin: top left; }
}
