/* tBubble · web pública. Mismos colores que la app; Tibi es la única nota de color. */
:root {
  --bg: #f5f5f7; --panel: #ffffff; --band: #ececf0; --line: rgba(20,22,40,.10);
  --fg: #1d1d1f; --fg2: #515157; --fg3: #6e6e73; --accent: #1d1d1f; --accent-fg: #ffffff;
  --ink: #1c1c1e; --up: #12964A; --down: #E0332A;
  --display: "Space Grotesk", Inter, system-ui, sans-serif; --body: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0f10; --panel: #17171a; --band: #141416; --line: rgba(255,255,255,.10);
    --fg: #f2f2f7; --fg2: #b4b4b9; --fg3: #8e8e93; --accent: #f2f2f7; --accent-fg: #0f0f10; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: -.04em; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--fg2); }
.nav nav a:not(.btn):hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 40px 80px; }
.pitch { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--fg2); }
.lead { font-size: 19px; color: var(--fg2); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--fg3); }
.stage { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.say { max-width: 34ch; min-height: 4.4em; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; font-size: 16px; box-shadow: 0 8px 24px rgba(20,22,40,.08); position: relative; }
.say::before { content: ""; position: absolute; left: 50%; top: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.say .who { display: block; font-size: 12px; color: var(--fg3); }
.band { background: var(--band); padding-block: 72px; }
section.wrap { padding-block: 72px; }
.sub { color: var(--fg2); font-size: 18px; max-width: 62ch; margin-top: 12px; }
.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 36px; }
.mood { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.mood p { font-size: 14px; color: var(--fg2); line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s); font: 600 15px/1 var(--display); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--fg); color: var(--bg); }
.steps p, .cols p, .cols li { color: var(--fg2); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.cols article { display: flex; flex-direction: column; gap: 10px; }
.cols ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.cols.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0 20px; }
.dl article { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.dl p { color: var(--fg2); font-size: 15px; }
.dl .btn { align-self: flex-start; margin-top: 6px; }
.dl .alt { font-size: 14px; color: var(--fg2); }
.dl details { margin-top: 4px; font-size: 14px; color: var(--fg2); }
.dl summary { cursor: pointer; color: var(--fg3); }
.dl details p { margin-top: 8px; font-size: 14px; }
.dl code { font-size: 13px; }
.soon { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--fg3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 32px 48px; font-size: 14px; color: var(--fg3); border-top: 1px solid var(--line); }

/* Tibi: esfera clara con aurora; las coordenadas de la cara son las de una esfera de 128 px */
.orb { position: relative; width: 128px; height: 128px; flex: none; }
.orb.big { width: 256px; height: 256px; }
.orb.big .sph { transform: scale(2); transform-origin: 0 0; }
.orb.sm { width: 112px; height: 112px; }
.orb.sm .sph { transform: scale(.875); transform-origin: 0 0; }
.sph { position: absolute; left: 0; top: 0; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #fcfcfe 22%, #f2f3f7 55%, #e3e5ed 85%, #d0d4df 100%);
  box-shadow: 0 0 30px rgba(var(--glow),.42), 0 0 80px rgba(var(--glow),.18), 0 3px 12px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.10), inset 0 -10px 30px rgba(0,0,0,.08);
  --glow: 130,120,255; --k1: 60,225,180; --k2: 255,105,200; --k3: 255,190,90; --k4: 105,130,255; transition: box-shadow .6s; }
.orb[data-aura="ok"] .sph { --glow: 60,200,130; --k1: 60,230,150; --k2: 60,210,190; --k3: 170,240,140; --k4: 70,190,255; }
.orb[data-aura="warn"] .sph { --glow: 255,160,60; --k1: 255,175,70; --k2: 255,130,60; --k3: 255,210,120; --k4: 255,150,90; }
.orb[data-aura="calm"] .sph { --glow: 120,140,255; --k1: 110,150,255; --k2: 150,130,255; --k3: 120,200,255; --k4: 170,160,255; }
.blob { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .62; animation: drift 9s ease-in-out infinite; }
.b0 { width: 100px; height: 100px; left: -22px; top: 44px; background: radial-gradient(circle, rgb(var(--k1)) 0%, rgba(var(--k1),.6) 35%, transparent 70%); }
.b1 { width: 92px; height: 92px; right: -24px; top: -12px; background: radial-gradient(circle, rgb(var(--k2)) 0%, rgba(var(--k2),.6) 35%, transparent 70%); animation-direction: reverse; animation-delay: -3s; }
.b2 { width: 80px; height: 80px; left: 40px; bottom: -30px; background: radial-gradient(circle, rgb(var(--k3)) 0%, rgba(var(--k3),.55) 35%, transparent 70%); animation-delay: -6s; }
.b3 { width: 84px; height: 84px; left: -8px; top: -30px; background: radial-gradient(circle, rgb(var(--k4)) 0%, rgba(var(--k4),.6) 35%, transparent 70%); animation-direction: reverse; animation-delay: -4.5s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(10px, -8px); } 66% { transform: translate(-8px, 6px); } }
.tibi { position: absolute; inset: 0; color: var(--ink); }
.tf { position: absolute; inset: 0; display: none; }
.orb[data-face="reposo"] .tf[data-f="reposo"], .orb[data-face="mensaje"] .tf[data-f="mensaje"],
.orb[data-face="pregunta"] .tf[data-f="pregunta"], .orb[data-face="recomendacion"] .tf[data-f="recomendacion"],
.orb[data-face="aviso"] .tf[data-f="aviso"], .orb[data-face="gano"] .tf[data-f="gano"],
.orb[data-face="perdio"] .tf[data-f="perdio"] { display: block; }
.tf > div { position: absolute; inset: 0; }
.te, .tm { position: absolute; display: block; color: inherit; }
.te { top: 40px; width: 10px; height: 26px; transform-origin: 50% 60%; }
.tm { width: 7px; }
.te::before, .tm::before { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; top: -6px; bottom: -5px; border-radius: 1px; background: currentColor; }
.tm::before { top: -3px; bottom: -3px; }
.te::after, .tm::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: currentColor; }
.tm::after { border-radius: 3px; }
.te.up { color: var(--up); }
.te.down { color: var(--down); }
.t-ohh { position: absolute; left: 58px; top: 82px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid currentColor; box-sizing: border-box; animation: t-ohh 2.8s ease-in-out infinite; }
.t-flat { position: absolute; left: 54px; top: 86px; width: 20px; height: 4px; border-radius: 2px; background: currentColor; }
.t-flat.t-tilted { left: 55px; top: 88px; width: 18px; transform: rotate(-12deg); }
.t-blink { animation: t-blink 4.6s infinite; }
@keyframes t-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.t-glance { animation: t-glance 9s ease-in-out infinite; }
@keyframes t-glance { 0%, 30%, 100% { transform: translateX(0); } 38%, 52% { transform: translateX(-5px); } 60%, 72% { transform: translateX(4px); } 80% { transform: translateX(0); } }
.t-talk { animation: t-talk .9s ease-in-out infinite; }
.t-talk.m1 { animation-delay: .12s; } .t-talk.m2 { animation-delay: .24s; } .t-talk.m3 { animation-delay: .36s; } .t-talk.m4 { animation-delay: .48s; }
@keyframes t-talk { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.25); } }
.t-tilt { transform-origin: 50% 70%; animation: t-tilt 2.8s ease-in-out infinite; }
@keyframes t-tilt { 0%, 100% { transform: rotate(0); } 25%, 75% { transform: rotate(-11deg); } }
.t-raise { animation: t-raise 2.8s ease-in-out infinite; }
@keyframes t-raise { 0%, 100% { transform: translateY(0) scaleY(1); } 25%, 75% { transform: translateY(-5px) scaleY(1.2); } }
@keyframes t-ohh { 0%, 100% { transform: scale(.7); } 25%, 75% { transform: scale(1.1); } }
.t-hop { animation: t-hop 1.6s ease-in-out infinite; }
@keyframes t-hop { 0%, 100% { transform: translateY(0); } 20% { transform: translateY(-6px); } 35% { transform: translateY(0); } 45% { transform: translateY(-3px); } 55% { transform: translateY(0); } }
.t-wink { animation: t-wink 3.2s infinite; }
@keyframes t-wink { 0%, 55%, 75%, 100% { transform: scaleY(1); } 60%, 70% { transform: scaleY(.12); } }
.t-lid { transform: scaleY(.55); transform-origin: 50% 100%; }
.t-grow { transform-origin: 50% 100%; animation: t-grow 1.6s ease-in-out infinite; }
@keyframes t-grow { 0%, 100% { transform: scaleY(.9); } 25% { transform: scaleY(1.3); } }
.t-sheep { animation: t-sheep 3.4s ease-in-out infinite; }
@keyframes t-sheep { 0%, 100% { transform: translateY(3px) rotate(0); } 50% { transform: translateY(5px) rotate(6deg); } }
.t-drop { transform-origin: 50% 0; animation: t-drop 3.4s ease-in-out infinite; }
.t-drop.t-late { animation-delay: .15s; }
@keyframes t-drop { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(.95); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 560px) { .nav nav a:not(.btn) { display: none; } .orb.big { width: 192px; height: 192px; } .orb.big .sph { transform: scale(1.5); } .hero { padding-block: 16px 56px; } }
