#simbi-demo-root{font-family:Outfit,system-ui,sans-serif;position:fixed;right:22px;bottom:22px;z-index:1000;color:#0b1730}#simbi-demo-root *{box-sizing:border-box}#simbi-demo-root button,#simbi-demo-root select,#simbi-demo-root textarea{font:inherit}#simbi-demo-root .sd-launch{border:0;border-radius:999px;background:#0b4aa7;color:white;padding:15px 20px;box-shadow:0 10px 35px #0b173033;cursor:pointer;font-weight:700}#simbi-demo-root .sd-panel{width:min(390px,calc(100vw - 24px));height:min(610px,calc(100dvh - 90px));background:#fff;border:1px solid #dce7f7;border-radius:20px;box-shadow:0 18px 65px #0b173035;display:none;flex-direction:column;overflow:hidden}#simbi-demo-root .sd-panel.sd-open{display:flex}#simbi-demo-root .sd-head{display:flex;align-items:center;justify-content:space-between;background:#0b4aa7;color:white;padding:14px 17px}#simbi-demo-root .sd-head strong{font-size:16px}#simbi-demo-root .sd-close{background:transparent;border:0;color:white;font-size:25px;cursor:pointer}#simbi-demo-root .sd-controls{padding:12px 14px;border-bottom:1px solid #e5edf7;display:grid;gap:9px}#simbi-demo-root .sd-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}#simbi-demo-root .sd-tab{border:1px solid #c9d8ed;border-radius:10px;padding:9px 5px;background:white;color:#0b4aa7;cursor:pointer;font-size:12px}#simbi-demo-root .sd-tab[aria-pressed=true]{background:#eaf3ff;border-color:#0b4aa7;font-weight:700}#simbi-demo-root select{width:100%;border:1px solid #c9d8ed;border-radius:9px;padding:9px;background:white;color:#0b1730}#simbi-demo-root .sd-messages{padding:14px;flex:1;overflow-y:auto;background:#f7faff;display:flex;flex-direction:column;gap:10px}#simbi-demo-root .sd-msg{max-width:88%;padding:10px 12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}#simbi-demo-root .sd-bot{align-self:flex-start;background:white;border:1px solid #e2ebf6}#simbi-demo-root .sd-user{align-self:flex-end;background:#0b4aa7;color:white}#simbi-demo-root .sd-form{display:flex;gap:7px;padding:12px;border-top:1px solid #e5edf7}#simbi-demo-root textarea{flex:1;min-width:0;resize:none;border:1px solid #c9d8ed;border-radius:10px;padding:10px;height:44px;color:#0b1730}#simbi-demo-root .sd-send{background:#0b4aa7;color:white;border:0;border-radius:10px;padding:0 13px;cursor:pointer}#simbi-demo-root .sd-send:disabled{opacity:.5;cursor:wait}#simbi-demo-root .sd-foot{padding:0 12px 10px;font-size:11px;color:#64748b;text-align:center}#simbi-demo-root .sd-link{color:#0b4aa7}#simbi-demo-root .sd-hidden{display:none!important}@media(max-width:480px){#simbi-demo-root{right:12px;bottom:12px}#simbi-demo-root .sd-panel{height:min(640px,calc(100dvh - 35px))}}

/* Simbi demo shop */
#simbi-demo-root .sd-shop{background:#f1f6ff;border:1px solid #cbdcf8;border-radius:13px;padding:11px;margin:8px 0;color:#0b1730}
#simbi-demo-root .sd-shop-title{font-weight:750;color:#0b4aa7;margin-bottom:8px}
#simbi-demo-root .sd-shop p{font-size:12px;line-height:1.5;margin:4px 0 10px}
#simbi-demo-root .sd-product{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #d9e5f7}
#simbi-demo-root .sd-product-pic{width:66px;height:66px;border-radius:9px;background:#fff;display:grid;place-items:center;font-size:38px;flex-shrink:0}
#simbi-demo-root .sd-product-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#simbi-demo-root .sd-product-info strong{font-size:13px}
#simbi-demo-root .sd-product-info small{font-size:11px;color:#58677e}
#simbi-demo-root .sd-product-info b{font-size:14px;color:#0b4aa7}
#simbi-demo-root .sd-shop-btn{display:block;width:100%;margin:6px 0 0;border:0;background:#0b4aa7;color:white;border-radius:8px;padding:9px 10px;font-size:12px;font-weight:650;cursor:pointer;text-align:center}
#simbi-demo-root .sd-shop-alt{background:#fff;color:#0b4aa7;border:1px solid #a7c3ec}

#simbi-demo-root .sd-product-pic img{width:100%;height:100%;object-fit:contain;display:block;border-radius:9px}
#simbi-demo-root .sd-product-pic{width:94px;height:86px;background:#f1f6fd}

/* Checkout integrado - ampliación dentro del chat, sin navegación */
#simbi-demo-root .sd-head-actions{display:flex;gap:10px;align-items:center}
#simbi-demo-root .sd-expand{background:transparent;border:0;color:white;cursor:pointer;font-size:22px;padding:2px 5px}
#simbi-demo-root .sd-panel.sd-expanded{width:min(740px,calc(100vw - 24px));height:min(790px,calc(100dvh - 40px))}
#simbi-demo-root .sd-messages{min-height:0}
#simbi-demo-root .sd-shop{flex-shrink:0;overflow-wrap:anywhere}
#simbi-demo-root .sd-shop button:disabled{opacity:.55;cursor:not-allowed}
#simbi-demo-root .sd-checkout-form{display:grid;gap:10px;margin-top:10px}
#simbi-demo-root .sd-field{display:grid;gap:5px;font-size:12px;font-weight:650}
#simbi-demo-root .sd-field input,#simbi-demo-root .sd-field textarea{width:100%;background:white;border:1px solid #c9d8ed;border-radius:8px;padding:10px;font:inherit;color:#0b1730;resize:vertical}
#simbi-demo-root .sd-order-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #dce6f4;font-size:12px}
#simbi-demo-root .sd-order-line span{color:#4a607e}
#simbi-demo-root .sd-order-line strong{text-align:right;max-width:60%;overflow-wrap:anywhere}
#simbi-demo-root .sd-methods{display:grid;gap:9px;margin:10px 0}
#simbi-demo-root .sd-methods label{display:flex;align-items:center;gap:7px;font-size:12px}
#simbi-demo-root .sd-notice{font-size:11px;color:#4d617d;background:#e8f0fc;padding:9px;border-radius:8px}
@media(max-width:480px){#simbi-demo-root{right:12px;bottom:12px}#simbi-demo-root .sd-panel.sd-expanded{width:calc(100vw - 24px);height:calc(100dvh - 24px)}}

/* V5: conversation and compact product cards */
#simbi-demo-root .sd-product-info .sd-shop-btn{margin-top:7px}
#simbi-demo-root .sd-shop{align-self:stretch}
#simbi-demo-root .sd-msg{flex-shrink:0}

/* V5.1 — lectura cómoda y método de pago integrado */
#simbi-demo-root .sd-msg {font-size:15px;line-height:1.6;padding:12px 14px;max-width:92%}
#simbi-demo-root .sd-messages {gap:12px;padding:16px}
#simbi-demo-root .sd-product-info strong {font-size:14px}
#simbi-demo-root .sd-shop p {font-size:13px}
#simbi-demo-root .sd-shop-btn {font-size:13px;padding:11px}
#simbi-demo-root .sd-payment-visual {display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #d5e3f5;border-radius:12px;padding:14px;margin:12px 0}
#simbi-demo-root .sd-payment-icon {width:50px;height:36px;border-radius:7px;background:#0b4aa7;color:white;display:grid;place-items:center;font-size:26px;flex-shrink:0}
#simbi-demo-root .sd-payment-visual div {display:flex;flex-direction:column;gap:5px}
#simbi-demo-root .sd-payment-visual small {font-size:11px;color:#60718b}


/* Correcciones V5.1 - checkout y legibilidad */
#simbi-demo-root .sd-product-fallback {font-size:42px;line-height:1}



/* SIMBI V5.1 ESTABLE — dimensiones y alineación únicas, sin saltos por contenido */
#simbi-demo-root {
  position:fixed;
  right:22px;
  bottom:22px;
  left:auto;
  top:auto;
}
#simbi-demo-root .sd-panel,
#simbi-demo-root .sd-panel:not(.sd-expanded) {
  width:min(560px,calc(100vw - 44px));
  height:min(720px,calc(100dvh - 44px));
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
  margin:0;
}
#simbi-demo-root .sd-panel.sd-expanded {
  width:min(740px,calc(100vw - 44px));
  height:min(790px,calc(100dvh - 44px));
  margin:0;
}
#simbi-demo-root .sd-head,
#simbi-demo-root .sd-controls,
#simbi-demo-root .sd-form,
#simbi-demo-root .sd-foot {flex-shrink:0}
#simbi-demo-root .sd-head {gap:10px;min-width:0}
#simbi-demo-root .sd-head strong {min-width:0;overflow-wrap:anywhere}
#simbi-demo-root .sd-head-actions {flex-shrink:0}
#simbi-demo-root .sd-messages {min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto}
#simbi-demo-root .sd-shop,
#simbi-demo-root .sd-product,
#simbi-demo-root .sd-checkout-form {min-width:0;max-width:100%}
#simbi-demo-root .sd-product-info {min-width:0;overflow-wrap:anywhere}
@media (max-width:599px) {
 #simbi-demo-root {right:12px;bottom:12px}
 #simbi-demo-root .sd-panel,
 #simbi-demo-root .sd-panel:not(.sd-expanded),
 #simbi-demo-root .sd-panel.sd-expanded {
   width:calc(100vw - 24px);
   height:min(720px,calc(100dvh - 24px));
   max-height:calc(100dvh - 24px);
 }
}
/* SOFIE VOZ — estilos adicionales */
#simbi-demo-root .sd-form .sd-voice-start {
  flex: 0 0 44px;
  border: 1px solid #bcd2f2;
  background: #fff;
  color: #0b4aa7;
  border-radius: 10px;
  cursor: pointer;
  font-size: 21px;
}

#simbi-demo-root .sd-panel {
  position: relative;
}

#simbi-demo-root .sd-voice-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: #0b1730;
  text-align: center;
}

#simbi-demo-root .sd-voice-overlay.sd-hidden {
  display: none !important;
}

#simbi-demo-root .sd-voice-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #0b4aa7;
}

#simbi-demo-root .sd-voice-stop {
  border: 0;
  background: transparent;
  color: #0b4aa7;
  font-size: 30px;
  cursor: pointer;
}

#simbi-demo-root .sd-voice-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
}

#simbi-demo-root .sd-voice-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

#simbi-demo-root .sd-voice-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #cfe6ff,
    #0b4aa7
  );
  box-shadow: 0 0 0 14px #e9f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#simbi-demo-root .sd-voice-orb span {
  width: 7px;
  height: 28px;
  background: #fff;
  border-radius: 9px;
  animation: simbi-voice-wave 1s ease-in-out infinite alternate;
}

#simbi-demo-root .sd-voice-orb span:nth-child(2) {
  animation-delay: .2s;
}

#simbi-demo-root .sd-voice-orb span:nth-child(3) {
  animation-delay: .4s;
}

#simbi-demo-root .sd-voice-transcript {
  font-size: 14px;
  line-height: 1.5;
  max-width: 350px;
  max-height: 110px;
  overflow: auto;
  overflow-wrap: anywhere;
}

#simbi-demo-root .sd-voice-mute {
  border: 1px solid #0b4aa7;
  background: #0b4aa7;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

#simbi-demo-root .sd-voice-overlay small {
  font-size: 11px;
  color: #64748b;
  margin-top: 12px;
}

@keyframes simbi-voice-wave {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  #simbi-demo-root .sd-voice-orb span {
    animation: none;
  }
}

/* SIMBI — SOFIE VOZ: COMPLEMENTO VISUAL */

#simbi-demo-root .sv-start {
  flex: 0 0 44px;
  border: 1px solid #c9d8ed;
  border-radius: 10px;
  background: #fff;
  color: #0b4aa7;
  cursor: pointer;
  font-size: 20px;
}

#simbi-demo-root .sd-panel {
  position: relative;
}

#simbi-demo-root .sv-hidden {
  display: none !important;
}

#simbi-demo-root .sv-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #fff;
  color: #0b1730;
  display: flex;
  flex-direction: column;
  text-align: center;
}

#simbi-demo-root .sv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  color: #0b4aa7;
  border-bottom: 1px solid #e5edf7;
}

#simbi-demo-root .sv-close {
  background: transparent;
  border: 0;
  color: #0b4aa7;
  font-size: 28px;
  cursor: pointer;
}

#simbi-demo-root .sv-center {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

#simbi-demo-root .sv-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

#simbi-demo-root .sv-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: radial-gradient(
    circle at 30% 25%,
    #cfe7ff,
    #0b4aa7
  );
  box-shadow: 0 0 0 14px #eaf3ff;
}

#simbi-demo-root .sv-orb span {
  width: 7px;
  height: 28px;
  background: white;
  border-radius: 8px;
  animation: sofieWave 1s ease-in-out infinite alternate;
}

#simbi-demo-root .sv-orb span:nth-child(2) {
  animation-delay: .2s;
}

#simbi-demo-root .sv-orb span:nth-child(3) {
  animation-delay: .4s;
}

#simbi-demo-root #sofie-voice-transcript {
  font-size: 14px;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

#simbi-demo-root .sv-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid #e5edf7;
}

#simbi-demo-root #sofie-voice-mute {
  background: #0b4aa7;
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
}

#simbi-demo-root .sv-bottom small {
  color: #64748b;
  font-size: 11px;
}

@keyframes sofieWave {
  from { transform: scaleY(.4); }
  to { transform: scaleY(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  #simbi-demo-root .sv-orb span {
    animation: none;
  }
}
