.tg-chat{--tg:#12233f;--gold:#d5a84b;position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:1000;font-family:Inter,system-ui,sans-serif}.tg-chat *{box-sizing:border-box}.tg-chat__button{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:13px 18px;background:var(--tg);color:#fff;box-shadow:0 12px 34px #0b183044;cursor:pointer;font:700 14px inherit}.tg-chat__button:focus-visible,.tg-chat button:focus-visible,.tg-chat textarea:focus-visible{outline:3px solid #e5bd69;outline-offset:3px}.tg-chat__dot{width:9px;height:9px;border-radius:50%;background:#b7c0ce}.tg-chat[data-open=true] .tg-chat__dot{background:#48cb84;box-shadow:0 0 0 4px #48cb8428}.tg-chat__panel{position:absolute;right:0;bottom:62px;width:min(380px,calc(100vw - 28px));height:min(570px,calc(100dvh - 105px));display:none;grid-template-rows:auto 1fr auto;border:1px solid #dfe3e9;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 24px 70px #09183138;color:#17243a}.tg-chat[data-visible=true] .tg-chat__panel{display:grid}.tg-chat__head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:var(--tg);color:#fff}.tg-chat__head strong{display:block}.tg-chat__head small{display:block;margin-top:3px;color:#d6deeb}.tg-chat__close{border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer}.tg-chat__messages{overflow:auto;padding:18px;background:#f5f7fa}.tg-chat__welcome{margin:0 0 14px;color:#526177;font-size:14px;line-height:1.5}.tg-chat__message{width:fit-content;max-width:86%;margin:8px 0;padding:10px 13px;border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 2px 8px #13213b10;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}.tg-chat__message--you{margin-left:auto;border-radius:15px 15px 4px 15px;background:var(--tg);color:#fff}.tg-chat__notice{margin:12px 0;padding:11px;border-radius:10px;background:#fff3d6;color:#6c5118;font-size:13px}.tg-chat__notice a{color:inherit;font-weight:700}.tg-chat__composer{padding:12px;border-top:1px solid #e7eaf0;background:#fff}.tg-chat__row{display:flex;align-items:flex-end;gap:8px}.tg-chat textarea{width:100%;max-height:110px;resize:none;border:1px solid #cbd2dc;border-radius:12px;padding:11px;font:14px/1.35 inherit}.tg-chat__send{min-width:44px;height:42px;border:0;border-radius:12px;background:var(--gold);color:#182236;font-weight:800;cursor:pointer}.tg-chat__help{margin:7px 3px 0;color:#778296;font-size:11px}.tg-chat__closed{padding:18px;color:#526177;font-size:14px;line-height:1.5}.tg-chat__actions{display:flex;gap:8px;margin-top:13px}.tg-chat__actions a{padding:9px 11px;border-radius:9px;background:var(--tg);color:#fff;text-decoration:none;font-weight:700}.tg-chat__trap{position:absolute!important;left:-10000px!important}@media(max-width:520px){.tg-chat{right:14px;bottom:14px}.tg-chat__panel{position:fixed;inset:10px;width:auto;height:auto;border-radius:17px}.tg-chat__button{padding:13px}.tg-chat__button-label{display:none}}
@media(prefers-reduced-motion:no-preference){.tg-chat__panel{animation:tg-in .18s ease-out}@keyframes tg-in{from{opacity:0;transform:translateY(8px)}}}

/* CTA de chat: alto contraste sobre fondos claros y oscuros */
.tg-chat__button{gap:11px;min-height:64px;border:1px solid #e0e4e9;border-radius:18px;padding:8px 15px 8px 9px;background:#fff;color:var(--tg);box-shadow:0 14px 38px #06142c38,0 2px 8px #06142c20;font:inherit;text-align:left;transition:transform .18s ease,box-shadow .18s ease}.tg-chat__button:hover{transform:translateY(-2px);box-shadow:0 18px 44px #06142c45,0 3px 10px #06142c25}.tg-chat__icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:13px;background:var(--gold);color:#13213a}.tg-chat__icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.tg-chat__copy{display:grid;gap:3px}.tg-chat__copy strong{font-size:14px;line-height:1.1;white-space:nowrap}.tg-chat__copy small{display:flex;align-items:center;gap:7px;color:#657083;font-size:12px;font-weight:600}.tg-chat__dot{display:inline-block;flex:0 0 auto}.tg-chat[data-open=true] .tg-chat__dot{background:#18b967;box-shadow:0 0 0 4px #18b96720}.tg-chat__panel{bottom:76px;height:min(570px,calc(100dvh - 118px))}
@media(max-width:520px){.tg-chat__button{width:58px;height:58px;min-height:58px;padding:6px;border-radius:18px}.tg-chat__icon{width:44px;height:44px;flex-basis:44px}.tg-chat__copy{display:none}}
@media(prefers-reduced-motion:no-preference){.tg-chat:not([data-visible=true]) .tg-chat__icon{animation:tg-chat-pulse 3.2s ease-in-out infinite}@keyframes tg-chat-pulse{0%,58%,100%{background:#d5a84b;box-shadow:0 0 0 0 #d5a84b00;transform:scale(1)}70%{background:#edc565;box-shadow:0 0 0 9px #d5a84b22,0 0 24px #e3b54f70;transform:scale(1.04)}82%{background:#d5a84b;box-shadow:0 0 0 0 #d5a84b00;transform:scale(1)}}}

/* Identificación del visitante antes del primer mensaje */
.tg-chat__name{display:grid;gap:6px;margin-bottom:10px;color:#526177;font-size:12px;font-weight:600}.tg-chat__name input{width:100%;border:1px solid #cbd2dc;border-radius:12px;padding:10px 11px;font:14px/1.35 inherit;color:#17243a}.tg-chat__name input:focus-visible{outline:3px solid #e5bd69;outline-offset:2px}
