#kreia-root,#kreia-root *{box-sizing:border-box}#kreia-root{--kreia-blue:#003b71;--kreia-blue-dark:#002a52;--kreia-bg:#f4f6f8;--kreia-text:#182230;--kreia-muted:#667085;--kreia-border:#e2e7ec;--kreia-success:#168653;font-family:Arial,Helvetica,sans-serif}.kreia-launcher{position:fixed;right:24px;bottom:24px;z-index:2147483000;width:66px;height:66px;padding:4px;border:0;border-radius:50%;background:#fff;box-shadow:0 14px 38px rgba(0,38,77,.30);cursor:pointer;transition:.18s ease}.kreia-launcher:hover{transform:translateY(-2px)}.kreia-launcher.pulse{animation:kreiaLauncherPulse 1.2s ease 2}@keyframes kreiaLauncherPulse{50%{box-shadow:0 14px 38px rgba(0,38,77,.30),0 0 0 10px rgba(0,59,113,.10)}}.kreia-launcher img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top;border-radius:50%}.kreia-invite{position:fixed;right:102px;bottom:34px;z-index:2147482999;max-width:230px;padding:11px 14px;border:1px solid #dce4ec;border-radius:14px 14px 4px 14px;background:#fff;color:var(--kreia-blue-dark);box-shadow:0 10px 30px rgba(0,38,77,.15);font-size:12px;line-height:1.35;font-weight:700;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s ease}.kreia-invite.is-visible{opacity:1;visibility:visible;transform:none}.kreia-panel{position:fixed;z-index:2147483001;right:24px;bottom:102px;width:min(405px,calc(100vw - 32px));height:min(690px,calc(100vh - 134px));background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:20px;box-shadow:0 24px 70px rgba(0,29,61,.24);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:.2s ease}.kreia-panel.is-open{opacity:1;visibility:visible;transform:none}.kreia-header{min-height:94px;padding:15px 16px;background:linear-gradient(135deg,var(--kreia-blue-dark),var(--kreia-blue));color:#fff;display:flex;align-items:center;gap:13px}.kreia-avatar{width:58px;height:58px;border-radius:50%;overflow:hidden;background:#fff;border:2px solid rgba(255,255,255,.85);flex:0 0 auto;box-shadow:0 3px 11px rgba(0,0,0,.12)}.kreia-avatar img,.kreia-mini-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.kreia-header-copy{min-width:0;flex:1}.kreia-name{font-size:18px;font-weight:800}.kreia-status{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:rgba(255,255,255,.84)}.kreia-online-dot{width:8px;height:8px;background:#56d68b;border-radius:50%}.kreia-close{width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.10);color:#fff;font-size:24px;cursor:pointer}.kreia-messages{flex:1;min-height:0;overflow-y:auto;padding:18px 14px 22px;background:radial-gradient(circle at top right,rgba(0,59,113,.035),transparent 34%),var(--kreia-bg);scroll-behavior:smooth}.kreia-row{display:flex;align-items:flex-end;gap:8px;margin:0 0 12px}.kreia-row.user{justify-content:flex-end}.kreia-mini-avatar{width:31px;height:31px;overflow:hidden;border-radius:50%;background:var(--kreia-blue);flex:0 0 auto}.kreia-bubble{max-width:84%;padding:11px 13px;border-radius:15px 15px 15px 5px;background:#fff;color:var(--kreia-text);font-size:14px;line-height:1.45;box-shadow:0 2px 9px rgba(15,23,42,.055);border:1px solid rgba(0,0,0,.035);overflow-wrap:anywhere}.kreia-row.user .kreia-bubble{color:#fff;background:var(--kreia-blue);border-radius:15px 15px 5px 15px;border:0}.kreia-bubble a{color:var(--kreia-blue);font-weight:700}.kreia-options{display:grid;gap:8px;margin:4px 0 14px 39px}.kreia-option{width:100%;border:1px solid #cbd6e1;background:#fff;color:var(--kreia-blue-dark);padding:11px 12px;border-radius:12px;text-align:left;cursor:pointer}.kreia-option:hover{background:#f9fbfd;border-color:#8ea7be}.kreia-option:disabled{opacity:.54;cursor:default}.kreia-option-title{display:block;font-size:13px;line-height:1.3;font-weight:800}.kreia-option-subtitle{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px;color:#748091;font-size:10.5px;line-height:1.35}.kreia-navigation{display:flex;gap:7px;flex-wrap:wrap;margin:3px 0 14px 39px}.kreia-back-button{border:0;padding:7px 9px;border-radius:8px;background:#e9eef3;color:#405064;font-size:10.5px;font-weight:700;cursor:pointer}.kreia-typing-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}.kreia-typing-wrap{display:flex;flex-direction:column;gap:4px}.kreia-typing-label{font-size:11px;color:var(--kreia-muted);padding-left:4px}.kreia-typing{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:15px 15px 15px 5px;padding:12px 14px;display:inline-flex;gap:5px}.kreia-typing span{width:7px;height:7px;border-radius:50%;background:#8b98a7;animation:kreiaDot 1.15s infinite ease-in-out}.kreia-typing span:nth-child(2){animation-delay:.14s}.kreia-typing span:nth-child(3){animation-delay:.28s}@keyframes kreiaDot{30%{transform:translateY(-4px);opacity:1}0%,60%,100%{transform:none;opacity:.42}}.kreia-form-card,.kreia-confirm-card{margin:5px 0 14px 39px;padding:14px;border-radius:14px;background:#fff;border:1px solid var(--kreia-border);box-shadow:0 3px 14px rgba(15,23,42,.055)}.kreia-field{margin-bottom:11px}.kreia-form-card label{display:block;font-size:12px;font-weight:700;color:#394455;margin:0 0 6px}.kreia-form-card input[type=text],.kreia-form-card input[type=email],.kreia-form-card input[type=tel]{width:100%;min-height:42px;border:1px solid #ccd5df;border-radius:9px;padding:0 10px;font:inherit}.kreia-privacy-check{display:flex!important;align-items:flex-start;gap:8px;margin:8px 0 12px!important;font-weight:400!important}.kreia-privacy-check input{margin-top:2px;width:17px;height:17px}.kreia-privacy-check span{font-size:11px;line-height:1.4;color:var(--kreia-muted)}.kreia-submit,.kreia-confirm-primary{width:100%;min-height:43px;border:0;border-radius:10px;background:var(--kreia-blue);color:#fff;font-weight:800;cursor:pointer}.kreia-form-secondary,.kreia-confirm-secondary{width:100%;min-height:37px;margin-top:7px;border:0;border-radius:9px;background:#edf1f5;color:#405064;font-size:11px;font-weight:700;cursor:pointer}.kreia-error{display:none;margin:0 0 10px;padding:9px 10px;border-radius:8px;color:#9b1c1c;background:#fff0f0;font-size:11px;line-height:1.35}.kreia-confirm-title{margin:0 0 11px;color:var(--kreia-blue-dark);font-size:13px}.kreia-confirm-list{margin:0 0 12px;display:grid;gap:7px}.kreia-confirm-item{padding-bottom:6px;border-bottom:1px solid #eef1f4}.kreia-confirm-label{display:block;color:#8792a2;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.kreia-confirm-value{display:block;margin-top:2px;color:#263446;font-size:11.5px;line-height:1.45;overflow-wrap:anywhere}.kreia-carousel{margin:5px 0 10px 39px;border-radius:15px;background:#fff;border:1px solid #d7e1ea;box-shadow:0 6px 18px rgba(15,23,42,.08);overflow:hidden}.kreia-carousel-counter{padding:8px 11px 0;color:#708094;font-size:9.5px;font-weight:800;text-align:right;text-transform:uppercase;letter-spacing:.04em}.kreia-carousel-viewport{min-height:185px}.kreia-promo-card{background:#fff}.kreia-promo-hero{display:block;width:100%;height:112px;object-fit:cover;background:#edf2f6}.kreia-promo-body{padding:11px 12px 12px}.kreia-promo-badge{display:inline-block;color:var(--kreia-blue);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.kreia-promo-title{margin:4px 0 0;color:var(--kreia-blue-dark);font-size:13.5px;line-height:1.3}.kreia-promo-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:5px 0 0;color:#687586;font-size:10.5px;line-height:1.4}.kreia-promo-vigencia{margin-top:6px;color:#8c96a3;font-size:9px}.kreia-promo-actions{display:flex;gap:7px;margin-top:10px}.kreia-promo-interest,.kreia-promo-link{min-height:35px;border-radius:8px;font-size:10.5px;font-weight:800}.kreia-promo-interest{flex:1;border:1px solid var(--kreia-blue);background:#fff;color:var(--kreia-blue);padding:0 9px;cursor:pointer}.kreia-promo-interest.is-selected{border-color:var(--kreia-success);background:#eaf7f0;color:var(--kreia-success)}.kreia-promo-link{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0 10px;background:#edf1f5;color:#405064!important;text-decoration:none}.kreia-carousel-nav{min-height:42px;padding:7px 10px 9px;border-top:1px solid #eef1f4;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px}.kreia-carousel-arrow{width:34px;height:30px;border:1px solid #d7e0e8;border-radius:8px;background:#f7f9fb;color:var(--kreia-blue-dark);font-size:22px;line-height:1;cursor:pointer}.kreia-carousel-dots{display:flex;align-items:center;justify-content:center;gap:6px}.kreia-carousel-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#c9d2dc;cursor:pointer}.kreia-carousel-dot.is-active{width:18px;border-radius:999px;background:var(--kreia-blue)}.kreia-whatsapp{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 39px);margin:2px 0 14px 39px;min-height:45px;border-radius:11px;background:#1f9d55;color:#fff!important;text-decoration:none;font-size:14px;font-weight:800}.kreia-system-note{margin:4px auto 12px;max-width:85%;text-align:center;font-size:11px;color:#7c8796}.kreia-footer{min-height:38px;padding:9px 14px;border-top:1px solid #e8ebef;background:#fff;color:#98a2b3;text-align:center;font-size:10px}@media(max-width:560px){.kreia-launcher{right:16px;bottom:16px}.kreia-invite{right:92px;bottom:27px;max-width:min(210px,calc(100vw - 120px))}.kreia-panel{right:8px;bottom:90px;width:calc(100vw - 16px);height:calc(100vh - 106px);border-radius:18px}}
.kreia-form-card textarea{width:100%;min-height:82px;resize:vertical;border:1px solid #ccd5df;border-radius:9px;padding:9px 10px;font:inherit;line-height:1.4;color:var(--kreia-text)}.kreia-form-card input:focus,.kreia-form-card textarea:focus{outline:2px solid rgba(0,59,113,.12);border-color:#7f9bb6}.kreia-optional{color:#8994a3;font-size:10px;font-weight:500}.kreia-field-help{margin-top:4px;color:#98a2b3;font-size:9.5px}


/* Paso 6.3 · UX comercial y presencia proactiva de KREIA */
.kreia-launcher{width:74px;height:74px;right:24px;bottom:24px;padding:4px;box-shadow:0 16px 42px rgba(0,38,77,.32)}
.kreia-launcher:hover{transform:translateY(-3px) scale(1.02)}
.kreia-invite{right:112px;bottom:39px;max-width:285px;padding:13px 16px;font-size:13px;line-height:1.42;cursor:pointer}
.kreia-invite:hover{border-color:#b9c9d8;box-shadow:0 13px 34px rgba(0,38,77,.18)}
.kreia-panel{bottom:112px}
.kreia-form-card textarea{width:100%;min-height:86px;resize:vertical;border:1px solid #ccd5df;border-radius:9px;padding:9px 10px;font:inherit;line-height:1.4;color:var(--kreia-text)}
.kreia-form-card input:focus,.kreia-form-card textarea:focus{outline:2px solid rgba(0,59,113,.12);border-color:#7f9bb6}
.kreia-optional{color:#8994a3;font-size:10px;font-weight:500}.kreia-field-help{margin-top:4px;color:#8792a2;font-size:9.5px;line-height:1.4}
@media(max-width:560px){.kreia-launcher{width:64px;height:64px;right:16px;bottom:16px}.kreia-invite{right:91px;bottom:28px;max-width:min(245px,calc(100vw - 116px));font-size:12px}.kreia-panel{bottom:94px}}


/* Paso 6.3.1 · Launcher más visible */
.kreia-launcher{width:82px;height:82px;right:24px;bottom:24px;padding:4px;box-shadow:0 18px 48px rgba(0,38,77,.34)}
.kreia-launcher:hover{transform:translateY(-3px) scale(1.025)}
.kreia-invite{right:116px;bottom:40px}
.kreia-panel{bottom:116px}
@media(max-width:560px){
  .kreia-launcher{width:70px;height:70px;right:16px;bottom:16px}
  .kreia-invite{right:98px;bottom:31px;max-width:min(245px,calc(100vw - 124px))}
  .kreia-panel{bottom:100px}
}


/* ============================================================
   PASO 7.1A · Texto libre + clasificación local
   ============================================================ */
.kreia-area-chooser{margin:0;padding:0}
.kreia-area-chooser.is-complete .kreia-intent-composer{opacity:.56}
.kreia-intent-composer{margin:4px 0 16px 39px;padding:12px;border:1px solid #d7e1ea;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.045)}
.kreia-intent-separator{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:#98a2b3;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.kreia-intent-separator:before,.kreia-intent-separator:after{content:"";height:1px;flex:1;background:#e8edf2}
.kreia-intent-label{display:block;margin:0 0 6px;color:#344054;font-size:11.5px;font-weight:800}
.kreia-intent-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.kreia-intent-input-row textarea{width:100%;min-height:48px;max-height:104px;resize:vertical;border:1px solid #cbd5df;border-radius:10px;padding:9px 10px;background:#fff;color:var(--kreia-text);font:inherit;font-size:12px;line-height:1.4}
.kreia-intent-input-row textarea:focus{outline:2px solid rgba(0,59,113,.12);border-color:#7f9bb6}
.kreia-intent-send{min-width:72px;border:0;border-radius:10px;background:var(--kreia-blue);color:#fff;font-size:11px;font-weight:800;padding:0 12px;cursor:pointer}
.kreia-intent-send:hover{background:var(--kreia-blue-dark)}
.kreia-intent-send:disabled,.kreia-intent-input-row textarea:disabled{opacity:.58;cursor:default}
.kreia-intent-help{margin-top:7px;color:#7f8b9a;font-size:9.5px;line-height:1.4}
.kreia-intent-error{display:none;margin-top:7px;padding:7px 8px;border-radius:8px;background:#fff1f1;color:#9b1c1c;font-size:10px;line-height:1.35}
@media(max-width:560px){
  .kreia-intent-composer{margin-left:0}
  .kreia-intent-input-row{grid-template-columns:1fr}
  .kreia-intent-send{min-height:40px;width:100%}
}


/* ============================================================
   PASO 7.1A.1 · Barra inferior de chat + clasificación local 1.1
   ============================================================ */
.kreia-chat-composer{flex:0 0 auto;padding:10px 11px 9px;border-top:1px solid #e5e9ee;background:#fff}
.kreia-chat-composer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.kreia-chat-composer textarea{width:100%;min-height:42px;max-height:92px;resize:none;overflow-y:auto;border:1px solid #cbd5df;border-radius:14px;padding:10px 12px;background:#f8fafc;color:var(--kreia-text);font:inherit;font-size:13px;line-height:1.35;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.kreia-chat-composer textarea:focus{outline:none;border-color:#7f9bb6;background:#fff;box-shadow:0 0 0 3px rgba(0,59,113,.09)}
.kreia-chat-composer button{min-width:72px;height:42px;border:0;border-radius:13px;background:var(--kreia-blue);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer;padding:0 13px;transition:.15s ease}
.kreia-chat-composer button:hover:not(:disabled){background:var(--kreia-blue-dark);transform:translateY(-1px)}
.kreia-chat-composer textarea:disabled{background:#f2f4f7;color:#98a2b3;cursor:not-allowed}
.kreia-chat-composer button:disabled{background:#c8d0d8;color:#fff;cursor:not-allowed}
.kreia-chat-composer.is-disabled{background:#fafbfc}
.kreia-chat-composer-error{display:none;margin:0 2px 7px;padding:6px 8px;border-radius:8px;background:#fff1f1;color:#9b1c1c;font-size:10px;line-height:1.35}
.kreia-chat-composer-error.is-visible{display:block}
/* El compositor anterior dentro del historial ya no se usa. */
.kreia-intent-composer{display:none!important}
@media(max-width:560px){
  .kreia-chat-composer{padding:9px 9px 8px}
  .kreia-chat-composer-row{gap:7px}
  .kreia-chat-composer textarea{font-size:16px;min-height:44px;border-radius:13px}
  .kreia-chat-composer button{min-width:66px;height:44px;border-radius:12px}
  .kreia-footer{min-height:30px;padding:6px 10px;font-size:9px}
}

.kreia-branch-chooser{
  margin:4px 0 11px 39px
}
.kreia-branch-chooser [hidden]{display:none!important}
.kreia-branch-featured{
  display:grid;
  gap:8px;
  padding:13px;
  border:1px solid #d7e1ea;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 15px rgba(15,23,42,.055);
  border-color:#b9daca;
  background:linear-gradient(180deg,#f5fcf8 0,#fff 48%)
}
.kreia-branch-badge{
  width:max-content;
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  background:#e2f4ea;
  color:#137548;
  font-size:10px;
  font-weight:800;
  line-height:1.2
}
.kreia-branch-name{
  color:var(--kreia-blue-dark);
  font-size:14.5px;
  line-height:1.3
}
.kreia-branch-address{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  color:#647386;
  font-size:11px;
  line-height:1.4
}
.kreia-branch-primary,.kreia-branch-secondary{
  width:100%;
  min-height:41px;
  border-radius:10px;
  font-size:11.5px;
  font-weight:800;
  cursor:pointer
}
.kreia-branch-primary{
  margin-top:2px;
  border:0;
  background:var(--kreia-blue);
  color:#fff
}
.kreia-branch-primary:hover{background:var(--kreia-blue-dark)}
.kreia-branch-secondary{
  border:0;
  background:#edf2f6;
  color:#40566c
}
.kreia-branch-secondary:hover{background:#e3eaf0}
.kreia-branch-alternatives{
  display:grid;
  gap:8px;
  margin-top:8px
}
.kreia-branch-grid-title{
  padding-left:2px;
  color:var(--kreia-blue-dark);
  font-size:11px;
  font-weight:800
}
.kreia-branch-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px
}
#kreia-root .kreia-branch-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  width:100%;
  min-height:54px;
  padding:8px 9px;
  border:1px solid #d7e1ea;
  border-radius:11px;
  background:#fff;
  color:var(--kreia-blue-dark);
  text-align:left;
  text-transform:none;
  letter-spacing:normal;
  cursor:pointer
}
.kreia-branch-row:hover{background:#f6f9fb;border-color:#9eb3c6}
.kreia-branch-row:focus-visible{outline:2px solid rgba(0,59,113,.18);outline-offset:1px}
.kreia-branch-row strong{font-size:11.5px;line-height:1.25;overflow-wrap:anywhere}
.kreia-branch-state{max-width:100%;color:#60758b;font-size:10px;line-height:1.2;font-weight:500;overflow-wrap:anywhere}
.kreia-branch-chooser button:disabled,.kreia-branch-chooser input:disabled{
  opacity:.58;
  cursor:default
}
@media(max-width:560px){
  .kreia-branch-grid{gap:6px}
  #kreia-root .kreia-branch-row{min-height:52px;padding:7px 8px}
}


/* ============================================================
   Invitaciones proactivas · atención visible sin movimiento constante
   ============================================================ */
#kreia-root .kreia-launcher{
  isolation:isolate;
  overflow:visible;
  padding:4px;
  border:2px solid #f6f5f1;
  background:#232b2e;
  box-shadow:0 0 0 1px #30383b,0 16px 36px rgba(27,34,37,.25);
  transition:transform .22s ease,box-shadow .22s ease
}
#kreia-root .kreia-launcher:hover{
  transform:translateY(-3px);
  box-shadow:0 0 0 1px #c81933,0 19px 40px rgba(27,34,37,.28)
}
.kreia-launcher img{
  position:relative;
  z-index:1
}
.kreia-launcher:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-6px;
  border-radius:50%;
  background:conic-gradient(from 215deg,#c81933 0 90deg,#e4e0d9 90deg 145deg,#273034 145deg 315deg,#c81933 315deg);
  opacity:.82;
  transform:scale(.96);
  box-shadow:0 0 0 1px rgba(39,48,52,.12)
}
.kreia-launcher:after{
  content:"↗";
  position:absolute;
  z-index:2;
  display:grid;
  place-items:center;
  right:-2px;
  bottom:-1px;
  width:23px;
  height:23px;
  border:2px solid #f6f5f1;
  border-radius:7px;
  background:#c81933;
  color:#fff;
  font:700 14px/1 Arial,sans-serif;
  box-shadow:0 3px 8px rgba(27,34,37,.2)
}
.kreia-launcher.is-inviting{
  animation:kreiaInviteNudge .85s ease-out 1
}
.kreia-launcher.is-inviting:before{
  animation:kreiaInviteHalo 1.8s ease-out 2
}
.kreia-launcher:focus-visible,
.kreia-invite:focus-visible{
  outline:3px solid rgba(200,25,51,.55);
  outline-offset:4px
}
#kreia-root .kreia-invite{
  overflow:hidden;
  padding:12px 15px 11px;
  border:1px solid #d7d5cf;
  border-left:4px solid #c81933;
  border-radius:12px 12px 4px 12px;
  background:#faf9f6;
  color:#242b2e;
  box-shadow:0 14px 34px rgba(27,34,37,.16);
  font-family:Arial,Helvetica,sans-serif;
  font-weight:400;
  text-transform:none;
  letter-spacing:normal
}
#kreia-root .kreia-invite-kicker{
  display:block;
  color:#4c5558;
  font-size:9px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase
}
#kreia-root .kreia-invite-kicker:before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:7px;
  background:#c81933;
  vertical-align:1px
}
#kreia-root .kreia-invite-message{
  display:block;
  margin-top:7px;
  color:#242b2e;
  font-size:13px;
  line-height:1.38;
  font-weight:600
}
#kreia-root .kreia-invite-action{
  display:block;
  margin-top:8px;
  color:#bd1730;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase
}
#kreia-root .kreia-invite:hover{
  border-color:#bcb9b2;
  border-left-color:#c81933;
  box-shadow:0 16px 37px rgba(27,34,37,.2)
}
.kreia-invite.is-visible{
  animation:kreiaInviteEnter .34s ease-out both
}
.kreia-invite:after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:3px;
  background:#c81933;
  transform:scaleX(0);
  transform-origin:left
}
.kreia-invite.is-visible:after{
  animation:kreiaInviteProgress var(--kreia-invite-duration,6500ms) linear forwards
}
@keyframes kreiaInviteEnter{
  from{opacity:0;transform:translateY(9px) scale(.98)}
  to{opacity:1;transform:none}
}
@keyframes kreiaInviteProgress{
  to{transform:scaleX(1)}
}
@keyframes kreiaInviteHalo{
  0%{opacity:.55;transform:scale(.96)}
  55%{opacity:.18;transform:scale(1.12)}
  100%{opacity:.5;transform:scale(.96)}
}
@keyframes kreiaInviteNudge{
  0%,100%{transform:none}
  45%{transform:translateY(-3px)}
}
@media(prefers-reduced-motion:reduce){
  .kreia-launcher,
  .kreia-launcher:before,
  .kreia-invite,
  .kreia-invite:after{
    animation:none!important;
    transition:none!important
  }
  .kreia-invite.is-visible:after{transform:scaleX(1)}
}

/* Contacto V2: la acción principal permanece visible mientras se exploran promociones. */
.kreia-panel.has-primary-action .kreia-chat-composer{display:none}
.kreia-contact-dock[hidden]{display:none}
.kreia-contact-dock{
  flex:0 0 auto;
  display:grid;
  gap:2px;
  padding:7px 12px 6px;
  border-top:1px solid #dce7e0;
  background:#fff;
  box-shadow:0 -5px 18px rgba(15,23,42,.06)
}
.kreia-contact-dock .kreia-whatsapp{
  width:100%;
  min-height:44px;
  margin:0;
  box-shadow:0 3px 9px rgba(31,157,85,.16)
}
.kreia-contact-dock .kreia-whatsapp:hover{background:#178947}
.kreia-contact-dock .kreia-whatsapp:focus-visible,
.kreia-contact-new:focus-visible{outline:3px solid #88b4d6;outline-offset:2px}
.kreia-contact-new{
  justify-self:center;
  min-height:26px;
  padding:2px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--kreia-blue);
  font-size:11px;
  font-weight:700;
  cursor:pointer
}
.kreia-contact-new:hover{background:#eef4f9}
.kreia-contact-new:disabled{opacity:.55;cursor:default}

.kreia-carousel-compact{
  margin-top:4px;
  margin-bottom:9px;
  border-color:#c9dfd2;
  background:#f6fbf8
}
.kreia-carousel-compact .kreia-promo-card{background:linear-gradient(180deg,#f5fbf7,#fff 72%)}
.kreia-carousel-compact .kreia-promo-badge{color:#18804c}
.kreia-carousel-compact .kreia-carousel-viewport{min-height:0}
.kreia-carousel-compact .kreia-promo-body{padding:10px 11px 9px}
.kreia-carousel-compact .kreia-promo-title{font-size:12.5px;line-height:1.25}
.kreia-carousel-compact .kreia-promo-description{-webkit-line-clamp:1;margin-top:3px}
.kreia-carousel-compact .kreia-promo-vigencia{margin-top:4px}
.kreia-carousel-compact .kreia-promo-actions{margin-top:7px}
.kreia-carousel-compact .kreia-carousel-nav{min-height:36px;padding:3px 10px 5px}
.kreia-carousel-single .kreia-carousel-counter,
.kreia-carousel-single .kreia-carousel-nav{display:none}

/* Aísla el pie del widget de reglas globales como footer{position:absolute}. */
#kreia-root .kreia-footer{
  position:static;
  bottom:auto!important;
  width:auto;
  z-index:auto;
  flex-shrink:0
}

/* Evita que el padding global de botones desplace la X del encabezado. */
#kreia-root .kreia-close{
  display:grid;
  place-items:center;
  flex:0 0 36px;
  padding:0;
  line-height:1
}

/* Protege la tarjeta de promociones de la tipografía global del sitio anfitrión. */
#kreia-root .kreia-promo-card{font-family:Arial,Helvetica,sans-serif}
#kreia-root .kreia-promo-title{
  font-weight:800;
  letter-spacing:normal;
  text-transform:none
}
#kreia-root .kreia-promo-description,
#kreia-root .kreia-promo-vigencia{
  font-weight:400;
  letter-spacing:normal;
  text-transform:none
}
#kreia-root .kreia-promo-interest,
#kreia-root .kreia-promo-link{
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.2;
  letter-spacing:normal;
  text-transform:none
}

/* Chat a pantalla completa en teléfonos y en orientación horizontal baja. */
@media (max-width:600px), (max-width:960px) and (max-height:500px){
  #kreia-root .kreia-panel{
    top:var(--kreia-visual-top,0px);
    right:0;
    bottom:auto;
    left:0;
    width:100%;
    max-width:none;
    height:100vh;
    height:var(--kreia-visual-height,100dvh);
    max-height:none;
    border:0;
    border-radius:0;
    overscroll-behavior:contain;
    transform-origin:center bottom
  }
  #kreia-root .kreia-panel.is-open{transform:none}
  #kreia-root.is-chat-open .kreia-launcher,
  #kreia-root.is-chat-open .kreia-invite{
    opacity:0;
    visibility:hidden;
    pointer-events:none
  }
  #kreia-root .kreia-launcher{
    right:calc(12px + env(safe-area-inset-right,0px));
    bottom:calc(12px + env(safe-area-inset-bottom,0px));
    width:64px;
    height:64px
  }
  #kreia-root .kreia-invite{
    right:calc(84px + env(safe-area-inset-right,0px));
    bottom:calc(18px + env(safe-area-inset-bottom,0px));
    max-width:min(245px,calc(100vw - 104px))
  }
  #kreia-root .kreia-header{
    flex:0 0 auto;
    min-height:calc(72px + env(safe-area-inset-top,0px));
    padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;
    gap:10px
  }
  #kreia-root .kreia-avatar{width:44px;height:44px;flex-basis:44px}
  #kreia-root .kreia-name{font-size:16px}
  #kreia-root .kreia-status{min-width:0;font-size:11px;white-space:nowrap}
  #kreia-root .kreia-status span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis
  }
  #kreia-root .kreia-close{width:44px;height:44px;flex-basis:44px}
  #kreia-root .kreia-messages{
    min-height:0;
    padding:12px 10px 14px;
    overscroll-behavior:contain
  }
  #kreia-root .kreia-bubble{max-width:calc(100% - 39px)}
  #kreia-root .kreia-option,
  #kreia-root .kreia-branch-row,
  #kreia-root .kreia-branch-primary,
  #kreia-root .kreia-branch-secondary{min-height:44px}
  #kreia-root .kreia-chat-composer{
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))
  }
  #kreia-root .kreia-chat-composer textarea{
    min-height:44px;
    font-size:16px
  }
  #kreia-root .kreia-chat-composer button{min-height:44px}
  #kreia-root .kreia-contact-dock{
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))
  }
  #kreia-root .kreia-contact-dock .kreia-whatsapp{min-height:48px}
  #kreia-root .kreia-promo-interest,
  #kreia-root .kreia-promo-link{
    min-height:44px;
    text-align:center;
    overflow-wrap:anywhere
  }
  #kreia-root .kreia-carousel-nav{
    min-height:52px;
    grid-template-columns:44px 1fr 44px
  }
  #kreia-root .kreia-carousel-arrow{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0
  }
  #kreia-root .kreia-carousel-dots{gap:2px}
  #kreia-root .kreia-carousel-dot,
  #kreia-root .kreia-carousel-dot.is-active{
    position:relative;
    width:40px;
    height:40px;
    border-radius:0;
    background:transparent
  }
  #kreia-root .kreia-carousel-dot:after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:7px;
    height:7px;
    border-radius:999px;
    background:#c9d2dc;
    transform:translate(-50%,-50%)
  }
  #kreia-root .kreia-carousel-dot.is-active:after{
    width:18px;
    background:var(--kreia-blue)
  }
  #kreia-root .kreia-footer{display:none}
}

@media (max-width:359px){
  #kreia-root .kreia-branch-grid{grid-template-columns:1fr}
  #kreia-root .kreia-promo-actions{display:grid;grid-template-columns:1fr}
  #kreia-root .kreia-promo-link{width:100%}
}

/* Rescue stays independent of host styles and commercial promotions. */
#kreia-root .kreia-option.kreia-rescue-option{border:1px solid #e9bcb3;background:#fff5f1;border-left:4px solid #b83927;text-transform:none;letter-spacing:normal}
#kreia-root .kreia-rescue-option .kreia-option-title{color:#8a281e}
#kreia-root .kreia-rescue-option .kreia-option-subtitle{color:#795049}
#kreia-root .kreia-rescue-card{margin:12px 0;padding:18px;border:1px solid #e7c7be;border-radius:16px;background:#fffaf7;color:#223a50;box-shadow:0 4px 16px #21374c09}
#kreia-root .kreia-rescue-card h3{margin:0 0 10px;padding:0;color:#8a281e;font:700 17px/1.35 Arial,sans-serif;text-transform:none;letter-spacing:normal}
#kreia-root .kreia-rescue-card p{margin:0 0 12px;padding:0;color:#33475a;font:400 14px/1.55 Arial,sans-serif;text-transform:none;letter-spacing:normal}
#kreia-root .kreia-rescue-card .kreia-rescue-status{margin:0;padding-top:12px;border-top:1px solid #edd9d0;font-size:12px;color:#627182}
#kreia-root .kreia-rescue-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
#kreia-root .kreia-rescue-actions a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;margin:0;padding:12px 8px;border-radius:11px;border:1px solid transparent;font:700 14px/1.3 Arial,sans-serif;text-decoration:none;text-transform:none;letter-spacing:normal;box-sizing:border-box;cursor:pointer}
#kreia-root .kreia-rescue-actions .kreia-rescue-whatsapp{background:#168447;color:#fff}
#kreia-root .kreia-rescue-actions .kreia-rescue-call{background:#fff3ef;color:#8a281e;border-color:#d9a49a}
#kreia-root .kreia-rescue-actions a:hover{filter:brightness(.94)}
#kreia-root .kreia-rescue-actions a[aria-disabled="true"]{opacity:.55;cursor:wait;filter:none;animation:none}
#kreia-root .kreia-rescue-actions a:focus-visible,#kreia-root .kreia-rescue-option:focus-visible{outline:3px solid #296aac;outline-offset:2px}
#kreia-root .kreia-rescue-hours{margin:8px 0 0;text-align:center;color:#56677b;font:400 11px/1.45 Arial,sans-serif}
#kreia-root .kreia-area-chooser .kreia-options{gap:5px;margin:5px 0 0 39px}
#kreia-root .kreia-area-chooser .kreia-option{min-height:52px;padding:7px 10px;border-radius:11px;text-transform:none;letter-spacing:normal}
#kreia-root .kreia-area-chooser .kreia-option-title{font-size:13px;line-height:1.25}
#kreia-root .kreia-area-chooser .kreia-option-subtitle{margin-top:2px;font-size:10.5px;line-height:1.25}
#kreia-root .kreia-messages>.kreia-row:first-child{margin-bottom:8px}
#kreia-root .kreia-messages>.kreia-row:first-child .kreia-bubble{padding:10px 12px}
#kreia-root .kreia-rescue-card{animation:kreiaRescueReveal .42s cubic-bezier(.2,.8,.2,1) both}
#kreia-root .kreia-rescue-actions a{animation:kreiaRescueAction .4s ease-out both;transition:filter .18s ease,transform .18s ease}
#kreia-root .kreia-rescue-actions a:nth-child(2){animation-delay:.08s}
#kreia-root .kreia-rescue-actions a:hover{transform:translateY(-2px)}
@keyframes kreiaRescueReveal{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes kreiaRescueAction{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#kreia-root .kreia-rescue-card,#kreia-root .kreia-rescue-actions a{animation:none;transition:none}}
@media(max-width:300px){#kreia-root .kreia-rescue-actions{grid-template-columns:1fr}}
@media(max-width:359px){#kreia-root .kreia-messages{padding:8px 8px 6px}#kreia-root .kreia-area-chooser .kreia-options{gap:4px}}

@media (max-width:960px) and (max-height:500px){
  #kreia-root .kreia-area-chooser .kreia-options{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0}
  #kreia-root .kreia-area-chooser .kreia-option{min-height:44px;padding:6px 9px}
  #kreia-root .kreia-area-chooser .kreia-service-option{grid-column:1/-1}
  #kreia-root .kreia-header{
    min-height:calc(60px + env(safe-area-inset-top,0px));
    padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px
  }
  #kreia-root .kreia-avatar{width:38px;height:38px;flex-basis:38px}
  #kreia-root .kreia-messages{padding-top:8px;padding-bottom:8px}
}

#kreia-root .kreia-branch-attribution{display:block;margin:8px 0 0;color:#667085;font:400 10px/1.5 Arial,Helvetica,sans-serif;text-align:center;letter-spacing:0;text-transform:none}
#kreia-root .kreia-branch-attribution a{color:#52697c;font:inherit;letter-spacing:0;text-transform:none;text-decoration:underline;text-underline-offset:2px}
#kreia-root .kreia-branch-attribution a:focus-visible{outline:2px solid #003b71;outline-offset:3px;border-radius:2px}
#kreia-root .kreia-branch-primary,#kreia-root .kreia-branch-secondary{letter-spacing:0;text-transform:none}

/* Informational answers lead gently back to the current choices, never a new flow. */
#kreia-root .kreia-knowledge-greeting{display:block;margin:0 0 4px;color:var(--kreia-blue-dark);font:700 13px/1.4 Arial,Helvetica,sans-serif;letter-spacing:normal;text-transform:none}
#kreia-root .kreia-knowledge-content{display:block;white-space:pre-line}
#kreia-root .kreia-location-confirmation{
  display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px 39px;padding:0;
}
#kreia-root .kreia-location-confirmation .kreia-branch-secondary{
  display:block;width:auto;max-width:100%;min-height:44px;margin:0;padding:10px 14px;
  border:1px solid #b7ccdf;border-radius:12px;background:#edf4fa;color:#064476;
  font:700 13px/1.4 Arial,Helvetica,sans-serif;white-space:normal;overflow-wrap:anywhere;
  text-align:left;text-transform:none;letter-spacing:normal;cursor:pointer;
}
#kreia-root .kreia-location-confirmation .kreia-branch-secondary:hover{background:#deebf7}
#kreia-root .kreia-location-confirmation .kreia-branch-secondary:focus-visible{outline:3px solid #599ed0;outline-offset:2px}
#kreia-root .kreia-location-confirmation .kreia-branch-secondary:disabled{opacity:.55;cursor:default}
#kreia-root .kreia-knowledge-followup{
  margin:9px 0 10px 39px;
  padding:0 2px;
  color:#526579;
  font:400 12px/1.5 Arial,Helvetica,sans-serif;
  letter-spacing:normal;
  text-transform:none;
  overflow-wrap:anywhere
}
#kreia-root .kreia-response-reveal{animation:kreiaResponseReveal .28s ease-out both}
@keyframes kreiaResponseReveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  #kreia-root .kreia-response-reveal,
  #kreia-root .kreia-typing span{animation:none!important;transform:none}
  #kreia-root .kreia-messages{scroll-behavior:auto}
}
/* A compact schedule card, isolated from the embedding website's global styles. */
#kreia-root .kreia-hours-card{box-sizing:border-box;margin:12px 0;padding:15px 16px;border:1px solid #d4e2e9;border-radius:14px;background:#fff;color:#233f54;font-family:Arial,sans-serif;font-size:13px;line-height:1.55;max-width:100%;text-align:left}
#kreia-root .kreia-hours-card strong{display:block;margin:0 0 8px;font-size:13px;line-height:1.4;color:#133b51;font-weight:700}
#kreia-root .kreia-hours-card p{margin:0;white-space:pre-line;font-size:13px;line-height:1.6;color:#405e70}
#kreia-root .kreia-hours-card details{margin-top:10px;padding:0;border:0;background:transparent}
#kreia-root .kreia-hours-card summary{cursor:pointer;color:#07536e;font-size:12px;font-weight:600;line-height:1.5;padding:8px 0;min-height:24px;list-style-position:inside}
#kreia-root .kreia-hours-card dl{margin:8px 0 0;padding:0;font-size:11px}
#kreia-root .kreia-hours-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e8eef2}
#kreia-root .kreia-hours-card dt,#kreia-root .kreia-hours-card dd{margin:0;font-weight:400;line-height:1.5;color:#405e70}
#kreia-root .kreia-hours-card dd{text-align:right;overflow-wrap:anywhere}
#kreia-root .kreia-hours-closed{margin-top:10px}
