.tito-widget{color:#f8fbff;font:14px/1.5 Inter,system-ui,sans-serif;color-scheme:dark}
.tito-launcher{position:fixed;left:22px;bottom:max(24px,env(safe-area-inset-bottom));z-index:1250;display:flex;align-items:center;gap:10px;border:1px solid #31d7f4;border-radius:999px;background:linear-gradient(135deg,#07344c,#041927);color:#fff;padding:10px 16px 10px 10px;min-height:58px;box-shadow:0 18px 48px rgba(0,0,0,.3);font:inherit;cursor:pointer}
.tito-launcher strong,.tito-launcher small{display:block;text-align:left}.tito-launcher strong{font-size:14px;font-weight:850}.tito-launcher small{color:#c6dfe9;font-size:11px}
.tito-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#19d4ec;font-size:22px}
.tito-panel{position:fixed;left:22px;bottom:94px;z-index:1350;width:min(420px,calc(100vw - 28px));height:min(660px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#03111c;border:1px solid #2b8ca6;border-radius:21px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.45)}
.tito-panel[hidden]{display:none}
.tito-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:linear-gradient(135deg,#0b405b,#052033);border-bottom:1px solid #28556b;gap:12px}
.tito-identity{display:flex;align-items:center;gap:12px}.tito-identity strong,.tito-identity small{display:block}.tito-identity strong{font-size:17px}.tito-identity small{color:#bcd8e4;font-size:12px}
.tito-close{width:44px;height:44px;flex:none;border:0;border-radius:10px;background:#123c50;color:#fff;font-size:28px;cursor:pointer}
.tito-log{flex:1;min-height:120px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:16px;overscroll-behavior:contain}
.tito-message{max-width:96%;flex:none;border-radius:15px 15px 15px 5px;padding:12px 14px;background:#0b2b3e;color:#eef8ff;white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.tito-message.is-user{align-self:flex-end;background:#075f82;border-radius:15px 15px 5px 15px}
.tito-links,.tito-suggestions{display:grid;gap:8px;flex:none}
.tito-links a,.tito-suggestions button{min-height:44px;padding:11px 12px;border:1px solid #32738b;border-radius:10px;background:#082537;color:#85ebff;font:inherit;font-weight:750;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.tito-shortcuts{padding:10px 16px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #1c4157;background:#061a28}
.tito-shortcuts button{border:1px solid #326078;border-radius:10px;min-height:44px;padding:8px;color:#eaf5fb;background:#0b293b;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.tito-composer{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #24465b;background:#020b12}
.tito-composer textarea{width:100%;min-width:0;min-height:46px;max-height:116px;resize:vertical;border:1px solid #326078;border-radius:12px;background:#06131d;color:#fff;padding:11px 12px;font:16px/1.4 Inter,system-ui,sans-serif}
.tito-composer button{border:0;border-radius:10px;background:#19d4ec;color:#02212d;font:inherit;font-weight:850;min-height:46px;padding:10px;cursor:pointer}
.tito-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#04141f;border-top:1px solid #1d3e51}
.tito-footer button,.tito-footer a{font:inherit;font-size:12px;color:#b9d5e4;border:0;background:transparent;min-height:36px;display:inline-flex;align-items:center;padding:0;cursor:pointer}
.tito-footer .tito-human{color:#61e8a9;font-weight:800}
.tito-widget button:focus-visible,.tito-widget a:focus-visible,.tito-widget textarea:focus-visible{outline:3px solid #45e4f3;outline-offset:2px}
@media(max-width:640px){.tito-launcher{left:14px;bottom:max(18px,env(safe-area-inset-bottom));padding:8px 12px 8px 8px}.tito-launcher small{display:none}.tito-panel{left:14px;bottom:86px;height:min(640px,calc(100dvh - 104px));width:calc(100vw - 28px)}.tito-shortcuts{padding:8px 12px}.tito-log{padding:12px}.tito-footer{gap:8px}.tito-footer .tito-privacy{display:none}}
@media(prefers-reduced-motion:reduce){.tito-widget *{scroll-behavior:auto;transition:none}}
@media(max-height:540px){.tito-panel{top:12px;bottom:12px;height:calc(100dvh - 24px)}.tito-shortcuts{display:none}.tito-log{min-height:0}.tito-head{padding:8px 12px}.tito-footer{padding:6px 12px}}

/* V1.13: Tito con el personaje transparente y WhatsApp en el lado opuesto. */
.tito-avatar{background:transparent;border-radius:0;width:44px;height:48px;flex-basis:44px}
.tito-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.tito-launcher{left:18px;bottom:max(22px,env(safe-area-inset-bottom));gap:4px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-height:108px}
.tito-launcher .tito-avatar{position:relative;width:96px;height:108px;flex-basis:96px;animation:titoFloating 3.5s ease-in-out infinite;filter:drop-shadow(0 8px 7px rgba(0,16,30,.17));transform-origin:center}
.tito-launcher-label{padding:10px 14px;background:#07283b;border:1px solid #3288a3;border-radius:15px;color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.13)}
.tito-launcher:after{content:"";position:absolute;left:27px;bottom:-2px;width:46px;height:7px;border-radius:50%;background:rgba(0,16,30,.17);filter:blur(3px);animation:titoFloatingShadow 3.5s ease-in-out infinite}
.tito-panel{bottom:146px;height:min(650px,calc(100dvh - 170px))}
.whatsapp-float{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:1240;display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:#25d366;border:1px solid rgba(255,255,255,.5);box-shadow:0 10px 30px rgba(0,65,35,.26);transition:transform .18s ease}
.whatsapp-float img{width:52px;height:52px;object-fit:contain}
.whatsapp-float:hover{transform:translateY(-3px)}
.whatsapp-float:focus-visible{outline:3px solid #168ff0;outline-offset:4px}
@keyframes titoFloating{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}
@keyframes titoFloatingShadow{0%,100%{transform:scaleX(1);opacity:.75}50%{transform:scaleX(.78);opacity:.45}}
@media(max-width:640px){.tito-launcher{left:10px;bottom:max(18px,env(safe-area-inset-bottom));min-height:88px}.tito-launcher .tito-avatar{width:78px;height:88px;flex-basis:78px}.tito-launcher-label{padding:8px 11px}.tito-launcher strong{font-size:13px}.tito-launcher:after{left:22px;width:38px}.tito-panel{bottom:120px;height:min(620px,calc(100dvh - 140px))}.whatsapp-float{right:16px;bottom:max(20px,env(safe-area-inset-bottom));width:56px;height:56px}}
@media(max-height:540px){.tito-panel{top:12px;bottom:12px;height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.tito-launcher .tito-avatar,.tito-launcher:after{animation:none}.whatsapp-float{transition:none}}

@media(max-width:640px){.whatsapp-float img{width:48px;height:48px}}
