:root{--pg-blue:var(--pgw-acento,#2563eb);--pg-blue-2:var(--pgw-acento-hover,#1d4ed8);--pg-cyan:var(--pgw-acento-claro,#3b82f6);--pg-cyan-soft:var(--pgw-acento-suave,#eff6ff);--pg-navy:var(--pgw-texto, #1f2937);--pg-ink:var(--pgw-texto, #1f2937);--pg-muted:var(--pgw-texto-suave, #6b7280);--pg-soft:var(--pgw-superficie-suave, #f8fafc);--pg-line:var(--pgw-borde, #e5e7eb);--pg-line-strong:var(--pgw-acento-borde,#bfdbfe);--pg-green:#1fbd78}
.infoser-chat-root,.infoser-chat-root *{box-sizing:border-box}
.infoser-chat-root{position:fixed;bottom:24px;z-index:999999;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--pg-ink);line-height:1.35;-webkit-font-smoothing:antialiased}
.infoser-chat-root button,.infoser-chat-root input,.infoser-chat-root textarea{font:inherit;box-shadow:none}
.infoser-chat-root button{-webkit-appearance:none!important;appearance:none!important;text-transform:none!important;letter-spacing:normal!important}
.infoser-chat-root.infoser-right{right:24px}.infoser-chat-root.infoser-left{left:24px}

.infoser-chat-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:80px;height:80px;padding:0!important;border:0!important;border-radius:999px!important;background:linear-gradient(145deg,var(--pgw-superficie, #fff),var(--pgw-acento-suave,#eff6ff))!important;cursor:pointer;box-shadow:0 18px 45px rgba(15,23,42,.28),0 0 0 1px color-mix(in srgb,var(--pgw-acento,#2563eb) 10%,transparent)!important;overflow:visible!important;transition:transform .22s ease,box-shadow .22s ease}
.infoser-chat-toggle::before{content:"";position:absolute;inset:-7px;border-radius:999px;background:linear-gradient(135deg,color-mix(in srgb,var(--pgw-acento-claro,#3b82f6) 20%,transparent),color-mix(in srgb,var(--pgw-acento,#2563eb) 5%,transparent));z-index:-1;filter:blur(.2px);transition:transform .22s ease,opacity .22s ease}
.infoser-chat-toggle::after{content:"";position:absolute;right:5px;bottom:8px;width:15px;height:15px;border-radius:50%;background:var(--pg-green);border:3px solid var(--pgw-superficie, #fff);box-shadow:0 2px 5px rgba(0,0,0,.08)}
.infoser-chat-toggle:hover{transform:translateY(calc(-4px * var(--pgw-mov, 1))) scale(calc(1 + .035 * var(--pgw-mov, 1)));box-shadow:0 22px 52px rgba(15,23,42,.34),0 0 0 1px color-mix(in srgb,var(--pgw-acento,#2563eb) 11%,transparent)!important}
.infoser-chat-toggle:hover::before{transform:scale(1.08);opacity:.9}
.infoser-chat-toggle:focus-visible{outline:none!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--pgw-acento-claro,#3b82f6) 22%,transparent),0 18px 45px rgba(15,23,42,.28)!important}
.infoser-chat-toggle img{width:66px;height:66px;display:block;object-fit:cover;border-radius:50%!important;clip-path:circle(50% at 50% 50%);background:#fff}
.infoser-chat-toggle .infoser-toggle-tail{position:absolute;right:5px;bottom:1px;width:20px;height:20px;background:var(--pgw-superficie, #fff);border-radius:0 0 18px 0;transform:rotate(32deg);z-index:-1;box-shadow:6px 5px 10px rgba(15,23,42,.05)}

.infoser-chat-panel{display:none;position:absolute;bottom:104px;width:min(430px,calc(100vw - 28px));height:min(700px,calc(100vh - 145px));background:color-mix(in srgb, var(--pgw-superficie, #fff) 98%, transparent);border:1px solid rgba(15,23,42,.08);border-radius:calc(26px*var(--pgw-factor,1));box-shadow:0 30px 80px rgba(15,23,42,.28),0 4px 18px rgba(15,23,42,.08);overflow:hidden;transform-origin:bottom right;backdrop-filter:blur(12px)}
.infoser-right .infoser-chat-panel{right:0}.infoser-left .infoser-chat-panel{left:0;transform-origin:bottom left}
.infoser-chat-panel.is-open{display:flex;flex-direction:column;animation:infoserChatIn calc(.25s * var(--pgw-mov, 1)) cubic-bezier(.2,.8,.2,1)}
@keyframes infoserChatIn{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:none}}

.infoser-chat-header{padding:20px 20px 17px;background:linear-gradient(135deg,var(--pgw-acento-claro,#3b82f6) 0%,var(--pgw-acento-claro,#3b82f6) 46%,var(--pgw-acento-hover,#1d4ed8) 100%);color:var(--pgw-sobre-acento,#fff);position:relative;overflow:hidden}
.infoser-chat-header::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.08);right:-80px;top:-115px}
.infoser-chat-header::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.05);left:-65px;bottom:-95px}
.infoser-chat-headline{position:relative;z-index:2;display:grid;grid-template-columns:54px 1fr 38px;gap:12px;align-items:center}
.infoser-chat-avatar{width:54px;height:54px;border-radius:50%;background:#fff;border:2px solid rgba(255,255,255,.9);overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.20)}
.infoser-chat-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.infoser-chat-title-wrap{min-width:0}.infoser-chat-title{display:block;font-size:19px;line-height:1.12;font-weight:800;letter-spacing:-.25px;color:var(--pgw-sobre-acento,#fff)}.infoser-chat-subtitle{margin-top:4px;font-size:12.5px;line-height:1.4;color:color-mix(in srgb,var(--pgw-sobre-acento,#fff) 92%,transparent)}
.infoser-chat-status{display:inline-flex;align-items:center;gap:6px;margin-top:7px;font-size:10.5px;font-weight:700;color:color-mix(in srgb,var(--pgw-sobre-acento,#fff) 94%,transparent)}
.infoser-chat-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#46e39e;box-shadow:0 0 0 3px rgba(70,227,158,.16)}
.infoser-chat-close{position:relative;z-index:2;display:flex!important;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;border:1px solid color-mix(in srgb,var(--pgw-sobre-acento,#fff) 30%,transparent)!important;background:color-mix(in srgb,var(--pgw-sobre-acento,#fff) 14%,transparent)!important;color:var(--pgw-sobre-acento,#fff)!important;border-radius:calc(12px*var(--pgw-factor,1))!important;font-size:0!important;line-height:1;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.infoser-chat-close::before,.infoser-chat-close::after{content:"";position:absolute;width:16px;height:2px;border-radius:2px;background:var(--pgw-sobre-acento,#fff)}.infoser-chat-close::before{transform:rotate(45deg)}.infoser-chat-close::after{transform:rotate(-45deg)}
.infoser-chat-close:hover{background:color-mix(in srgb,var(--pgw-sobre-acento,#fff) 23%,transparent)!important;border-color:color-mix(in srgb,var(--pgw-sobre-acento,#fff) 48%,transparent)!important;transform:rotate(2deg)}
.infoser-chat-contact-btn{position:relative;z-index:2;margin-top:15px;width:100%;min-height:50px;padding:0 16px!important;border:1px solid rgba(255,255,255,.84)!important;background:rgba(255,255,255,.96)!important;color:var(--pgw-acento-tinta,#1d4ed8)!important;font-weight:800!important;font-size:14px!important;border-radius:calc(15px*var(--pgw-factor,1))!important;cursor:pointer;box-shadow:0 8px 24px rgba(15,23,42,.13)!important;transition:transform .18s,background .18s,color .18s,box-shadow .18s;display:flex!important;align-items:center;justify-content:center;gap:9px}
.infoser-chat-contact-btn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.infoser-chat-contact-btn .infoser-contact-arrow{margin-left:auto;width:18px;height:18px}
.infoser-chat-contact-btn:hover{transform:translateY(-1px);background:#fff!important;color:var(--pgw-acento-tinta,#1d4ed8)!important;box-shadow:0 10px 28px rgba(15,23,42,.16)!important}

.infoser-chat-messages{flex:1;overflow-y:auto;padding:18px 17px 14px;background:linear-gradient(180deg,var(--pgw-superficie-suave, #f8fafc) 0%,var(--pgw-superficie-suave, #f8fafc) 100%);scrollbar-width:thin;scrollbar-color:var(--pgw-borde-fuerte, #d1d5db) transparent}
.infoser-chat-row{display:flex;flex-direction:column;margin:10px 0}.infoser-chat-row.user{align-items:flex-end}.infoser-chat-row.assistant{align-items:flex-start;position:relative;padding-left:39px}
.infoser-chat-row.assistant::before{content:"";position:absolute;left:0;top:2px;width:30px;height:30px;border-radius:50%;background:#fff var(--infoser-robot-url) center/cover no-repeat;border:1px solid #e5e7eb;box-shadow:0 4px 12px rgba(15,23,42,.10)}
.infoser-chat-bubble{max-width:86%;padding:12px 14px;border-radius:calc(17px*var(--pgw-factor,1));white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.52}
.infoser-chat-row.assistant .infoser-chat-bubble{background:var(--pgw-superficie, #fff);border:1px solid var(--pg-line);color:var(--pgw-texto, #1f2937);border-top-left-radius:calc(7px*var(--pgw-factor,1));box-shadow:0 6px 18px rgba(15,23,42,.055)}
.infoser-chat-row.user .infoser-chat-bubble{background:linear-gradient(135deg,var(--pgw-acento-claro,#3b82f6),var(--pgw-acento-hover,#1d4ed8));color:var(--pgw-sobre-acento,#fff);border-bottom-right-radius:calc(7px*var(--pgw-factor,1));box-shadow:0 9px 20px color-mix(in srgb,var(--pgw-acento,#2563eb) 20%,transparent)}
.infoser-chat-bubble a{color:var(--pgw-acento-tinta,#2563eb);text-decoration:underline;text-underline-offset:2px;word-break:break-all}.infoser-chat-row.user .infoser-chat-bubble a{color:var(--pgw-sobre-acento,#fff)}
.infoser-chat-links{list-style:none;margin:8px 0 0;padding:0;max-width:86%;display:flex;flex-direction:column;gap:6px}.infoser-chat-links a{display:block;background:var(--pgw-superficie, #fff);border:1px solid var(--pg-line);border-radius:calc(12px*var(--pgw-factor,1));padding:9px 11px;font-size:12px;line-height:1.35;color:var(--pgw-acento-tinta,#2563eb);text-decoration:none;word-break:break-all}.infoser-chat-links a:hover{border-color:var(--pgw-acento-claro,#3b82f6);background:var(--pgw-superficie-suave, #f8fafc)}

.infoser-chat-quick{display:flex;gap:7px;overflow-x:auto;padding:9px 14px 8px;background:var(--pgw-superficie, #fff);border-top:1px solid var(--pgw-hundido, #f1f5f9);scrollbar-width:none}.infoser-chat-quick::-webkit-scrollbar{display:none}
.infoser-chat-chip{display:flex!important;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:34px;width:auto;padding:6px 10px!important;border:1px solid var(--pg-line-strong)!important;background:var(--pgw-superficie, #fff)!important;color:var(--pgw-acento-tinta,#2563eb)!important;font-size:11.5px!important;font-weight:800!important;text-align:center;border-radius:calc(999px*var(--pgw-factor,1))!important;cursor:pointer;transition:all .17s;white-space:nowrap;line-height:1.15;box-shadow:none!important}
.infoser-chat-chip svg{width:14px;height:14px;flex:0 0 14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.infoser-chat-chip:hover{background:var(--pg-cyan-soft)!important;border-color:var(--pgw-acento-claro,#3b82f6)!important;color:var(--pgw-acento-tinta,#1d4ed8)!important;transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.07)!important}
.infoser-chat-chip:focus-visible{outline:none!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--pgw-acento-claro,#3b82f6) 12%,transparent)!important}

.infoser-chat-form{padding:12px 14px 8px;background:var(--pgw-superficie, #fff);border-top:1px solid var(--pgw-hundido, #f1f5f9)}
.infoser-chat-compose{display:flex;align-items:flex-end;gap:10px;padding:7px 7px 7px 12px;border:1px solid var(--pgw-borde, #e5e7eb);border-radius:calc(17px*var(--pgw-factor,1));background:var(--pgw-superficie, #fff);box-shadow:0 7px 22px rgba(15,23,42,.05);transition:border-color .18s,box-shadow .18s}
.infoser-chat-compose:focus-within{border-color:var(--pgw-acento-claro,#3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--pgw-acento-claro,#3b82f6) 10%,transparent),0 8px 24px rgba(15,23,42,.055)}
.infoser-chat-input{flex:1;width:100%;min-height:30px;max-height:110px;resize:none;border:0!important;border-radius:0!important;padding:8px 6px!important;font-size:14px!important;line-height:1.45;color:var(--pgw-texto, #1f2937)!important;background:transparent!important;outline:none!important;box-shadow:none!important;margin:0!important}
.infoser-chat-input::placeholder{color:var(--pgw-texto-suave, #6b7280)}
.infoser-chat-send{display:grid!important;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0!important;border:0!important;border-radius:calc(13px*var(--pgw-factor,1))!important;background:linear-gradient(135deg,var(--pgw-acento-claro,#3b82f6),var(--pgw-acento,#2563eb))!important;color:var(--pgw-sobre-acento,#fff)!important;cursor:pointer;box-shadow:0 8px 20px color-mix(in srgb,var(--pgw-acento,#2563eb) 22%,transparent)!important;transition:transform .17s,filter .17s,box-shadow .17s}
.infoser-chat-send svg{width:19px;height:19px;stroke:var(--pgw-sobre-acento,#fff);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.infoser-chat-send::before{content:none!important}
.infoser-chat-send:hover{transform:translateY(-1px);filter:brightness(1.03);box-shadow:0 10px 24px color-mix(in srgb,var(--pgw-acento,#2563eb) 26%,transparent)!important}.infoser-chat-send:disabled{opacity:.55;cursor:default;transform:none}.infoser-chat-send.is-loading svg{display:none}.infoser-chat-send.is-loading::after{content:"";width:17px;height:17px;border:2px solid color-mix(in srgb,var(--pgw-sobre-acento,#fff) 45%,transparent);border-top-color:var(--pgw-sobre-acento,#fff);border-radius:50%;animation:infoserSpin .7s linear infinite}
@keyframes infoserSpin{to{transform:rotate(360deg)}}
.infoser-chat-footer-note{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 13px 13px;background:var(--pgw-superficie, #fff);color:var(--pgw-texto-suave, #6b7280);font-size:10.5px}.infoser-chat-footer-note::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pg-green);box-shadow:0 0 0 3px rgba(31,189,120,.08)}

.infoser-chat-contact{margin:10px 0;padding:15px;background:var(--pgw-superficie, #fff);border:1px solid var(--pg-line);border-radius:calc(17px*var(--pgw-factor,1));display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 28px rgba(15,23,42,.07)}
.infoser-chat-contact-title{font-size:15px;color:var(--pg-navy)}
.infoser-chat-field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--pgw-texto-secundario, #4b5563)}
.infoser-chat-field input,.infoser-chat-field textarea{border:1px solid var(--pgw-borde, #e5e7eb)!important;border-radius:calc(11px*var(--pgw-factor,1))!important;padding:10px 11px!important;font-size:14px!important;color:var(--pgw-texto, #1f2937)!important;resize:vertical;outline:none!important;background:var(--pgw-superficie, #fff)!important;box-shadow:none!important;margin:0!important}
.infoser-chat-field input:focus,.infoser-chat-field textarea:focus{border-color:var(--pgw-acento-claro,#3b82f6)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--pgw-acento-claro,#3b82f6) 10%,transparent)!important}
.infoser-chat-consent{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;line-height:1.4;color:var(--pgw-texto-secundario, #4b5563)}.infoser-chat-consent input{margin-top:2px;flex:0 0 auto}
.infoser-chat-contact-msg{font-size:12px;line-height:1.4;color:var(--pgw-peligro-texto, #b42318)}.infoser-chat-contact-msg:empty{display:none}
.infoser-chat-contact-buttons{display:flex;gap:8px}.infoser-chat-contact-buttons .infoser-chat-send{width:auto;flex:1;font-size:13px!important;height:42px;display:flex!important;align-items:center;justify-content:center}.infoser-chat-contact-buttons .infoser-chat-send svg{display:none}.infoser-chat-contact-buttons .infoser-chat-send.is-loading::after{display:none}
.infoser-chat-cancel{border:1px solid var(--pgw-borde, #e5e7eb)!important;border-radius:calc(11px*var(--pgw-factor,1))!important;background:var(--pgw-superficie, #fff)!important;color:var(--pgw-texto-secundario, #4b5563)!important;padding:0 14px!important;min-height:42px;font-size:13px!important;cursor:pointer}.infoser-chat-cancel:hover{border-color:var(--pgw-acento-claro,#3b82f6)!important;color:var(--pgw-acento-tinta,#2563eb)!important;background:var(--pgw-superficie-suave, #f8fafc)!important}

.infoser-chat-contact-cta{margin:10px 0 10px 39px;padding:13px 14px;background:linear-gradient(135deg,var(--pgw-acento-suave,#eff6ff) 0%,var(--pgw-superficie-suave, #f8fafc) 100%);border:1px solid var(--pgw-acento-borde,#bfdbfe);border-radius:calc(16px*var(--pgw-factor,1));box-shadow:0 7px 20px rgba(15,23,42,.07);display:flex;align-items:center;gap:12px}
.infoser-chat-contact-cta-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;color:var(--pgw-texto, #1f2937)}
.infoser-chat-contact-cta-copy strong{font-size:13.5px;line-height:1.3;color:var(--pgw-texto, #1f2937)}
.infoser-chat-contact-cta-copy span{font-size:11.5px;line-height:1.35;color:var(--pgw-texto-secundario, #4b5563)}
.infoser-chat-contact-cta-btn{flex:0 0 auto;min-height:38px;padding:0 13px!important;border:0!important;border-radius:calc(11px*var(--pgw-factor,1))!important;background:linear-gradient(135deg,var(--pgw-acento-claro,#3b82f6),var(--pgw-acento,#2563eb))!important;color:var(--pgw-sobre-acento,#fff)!important;font-size:12px!important;font-weight:800!important;cursor:pointer;box-shadow:0 7px 16px color-mix(in srgb,var(--pgw-acento,#2563eb) 18%,transparent)!important;white-space:nowrap}
.infoser-chat-contact-cta-btn:hover{filter:brightness(1.03);transform:translateY(-1px)}

/* Respuestas enriquecidas: Markdown y tablas del ERP */
.infoser-chat-row.assistant .infoser-chat-bubble:has(.infoser-chat-data-cards){max-width:100%;width:100%;padding:11px}
.infoser-chat-md-p{margin:0 0 9px}.infoser-chat-md-p:last-child{margin-bottom:0}
.infoser-chat-md-heading{display:block;margin:2px 0 8px;font-size:14px;color:var(--pg-navy)}
.infoser-chat-md-list{margin:5px 0 8px;padding-left:19px}.infoser-chat-md-list:last-child{margin-bottom:0}.infoser-chat-md-list li{margin:4px 0}
.infoser-chat-data-cards{display:flex;flex-direction:column;gap:8px;width:100%}
.infoser-chat-data-card{padding:11px 12px;border:1px solid var(--pgw-borde, #e5e7eb);border-radius:calc(13px*var(--pgw-factor,1));background:linear-gradient(180deg,var(--pgw-superficie, #fff) 0%,var(--pgw-superficie-suave, #f8fafc) 100%);box-shadow:0 3px 10px rgba(15,23,42,.045)}
.infoser-chat-data-card-title{font-size:13.5px;font-weight:800;color:var(--pgw-acento-tinta,#2563eb);margin-bottom:7px}
.infoser-chat-data-item{display:grid;grid-template-columns:minmax(72px,.8fr) minmax(0,1.4fr);gap:8px;padding:4px 0;border-top:1px solid var(--pgw-hundido, #f1f5f9);font-size:11.5px;line-height:1.35}
.infoser-chat-data-item:first-of-type{border-top:0}.infoser-chat-data-label{color:var(--pgw-texto-suave, #6b7280);font-weight:700}.infoser-chat-data-value{color:var(--pgw-texto, #1f2937);min-width:0;word-break:break-word}
.infoser-chat-data-value strong,.infoser-chat-data-card-title strong{font-weight:800}

.infoser-typing .infoser-chat-bubble{color:var(--pgw-texto-suave, #6b7280);font-style:italic}

@media(max-width:480px){.infoser-chat-root{bottom:14px}.infoser-chat-root.infoser-right{right:14px}.infoser-chat-root.infoser-left{left:14px}.infoser-chat-toggle{width:72px;height:72px}.infoser-chat-toggle img{width:60px;height:60px}.infoser-chat-panel{position:fixed;left:10px!important;right:10px!important;bottom:96px;width:auto;height:min(79vh,650px);border-radius:calc(22px*var(--pgw-factor,1))}.infoser-chat-title{font-size:17px}.infoser-chat-subtitle{font-size:11.5px}.infoser-chat-header{padding:16px 14px 13px}.infoser-chat-headline{grid-template-columns:48px 1fr 36px;gap:10px}.infoser-chat-avatar{width:48px;height:48px}.infoser-chat-messages{padding:14px 12px}.infoser-chat-quick{padding:8px 12px 7px;gap:6px}.infoser-chat-chip{min-height:32px;padding:5px 9px!important;font-size:11px!important}.infoser-chat-form{padding:10px 12px 8px}.infoser-chat-compose{gap:8px;padding:6px 6px 6px 10px}.infoser-chat-input{padding:8px 4px!important}.infoser-chat-send{width:42px;height:42px;flex-basis:42px}.infoser-chat-footer-note{padding-bottom:11px}.infoser-chat-contact-cta{margin-left:39px;display:block}.infoser-chat-contact-cta-btn{width:100%;margin-top:9px}}
/* El logo de la empresa en lugar del robot (ajustes → Aspecto): entero dentro del circulo, con margen y fondo blanco,
   para que un logo ancho o con texto no se corte. */
.infoser-chat--logo .infoser-chat-toggle img,.infoser-chat--logo .infoser-chat-avatar img{object-fit:contain;padding:9px;box-sizing:border-box;background:#fff}
.infoser-chat--logo .infoser-chat-row.assistant::before{background-size:72% auto}

/* ── Movimiento (plugin) ─────────────────────────────────────────────────────────────
   Todo va multiplicado por --pgw-mov: 1 con movimiento; 0 sin él (ajuste «Movimiento» del plugin o «reducir el
   movimiento» del sistema). Con 0 las duraciones son 0 y los crecimientos, 1: nada se mueve ni se esconde. */
@media (prefers-reduced-motion: reduce) { :root { --pgw-mov: 0; } }
@keyframes pgw-subir { from { opacity: 0; transform: translateY(22px); } }
@keyframes pgw-aparecer { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes pgw-pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* «Aparecer al llegar»: el JS pone esta clase al bloque que aun no se ve, y la quita al llegar con el scroll. */
.pgw-espera, .pgw-espera * { animation-play-state: paused !important; }

/* Cada mensaje nuevo entra subiendo; los botones crecen un poco con el raton (el robot ya lo hacia) */
.infoser-chat-row { animation: pgw-aparecer calc(.3s * var(--pgw-mov, 1)) ease-out backwards; }
.infoser-chat-send, .infoser-chat-contact-btn, .infoser-chat-close, .infoser-chat-contact-cta-btn {
  transition: transform calc(.18s * var(--pgw-mov, 1)) cubic-bezier(.2, .7, .2, 1), background .18s, box-shadow .18s, color .18s !important;
}
.infoser-chat-send:hover, .infoser-chat-contact-cta-btn:hover { transform: scale(calc(1 + .06 * var(--pgw-mov, 1))); }
.infoser-chat-contact-btn:hover { transform: translateY(calc(-1px * var(--pgw-mov, 1))) scale(calc(1 + .015 * var(--pgw-mov, 1))); }
.infoser-chat-close:hover { transform: rotate(calc(90deg * var(--pgw-mov, 1))); }

/* «Chatbot»: etiqueta sobre el borde de abajo del circulo del chat, con el color de la marca (por debajo del punto verde) */
.infoser-chat-toggle .infoser-chat-etiqueta {
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); z-index: 1;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--pgw-acento, #2563eb); color: var(--pgw-sobre-acento, #fff);
  font-family: inherit; font-size: 11px !important; font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
}
