/* Asistente de Embargo 1.0.1 */
.cea-assistant,
.cea-assistant *{box-sizing:border-box}
.cea-assistant{
  --cea-blue:#155eef;
  --cea-blue-dark:#0d43b5;
  --cea-ink:#10244c;
  --cea-muted:#60718a;
  --cea-border:#d8e4f3;
  --cea-bg:#f6f9ff;
  color:var(--cea-ink);
  font-family:inherit;
}
.cea-shell{
  overflow:hidden;
  width:100%;
  border:1px solid #c9d9f2;
  border-radius:24px;
  background:#fff;
  box-shadow:0 22px 58px rgba(22,51,101,.14);
}
.cea-assistant-inline{
  width:100%;
  max-width:900px;
  margin:28px auto;
}
.cea-header{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:76px;
  padding:15px 18px;
  border-bottom:1px solid #e1e8f2;
  background:linear-gradient(135deg,#eef5ff,#fff);
}
.cea-logo{
  display:flex;
  flex:0 0 46px;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:15px;
  background:linear-gradient(145deg,var(--cea-blue),var(--cea-blue-dark));
  color:#fff;
  font-size:22px;
  font-weight:950;
  box-shadow:0 10px 24px rgba(21,94,239,.22);
}
.cea-header-copy{
  min-width:0;
  flex:1;
}
.cea-header-copy strong,
.cea-header-copy small{display:block}
.cea-header-copy strong{
  color:var(--cea-ink);
  font-size:17px;
  line-height:1.25;
}
.cea-header-copy small{
  margin-top:2px;
  color:var(--cea-muted);
  font-size:12px;
}
.cea-close{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:12px;
  background:#eef3fb;
  color:#41536d;
  font-size:24px;
  line-height:1;
  box-shadow:none;
}
.cea-close:hover{background:#e2ebf8;color:#10244c}
.cea-progress{
  height:4px;
  background:#edf2f8;
}
.cea-progress span{
  display:block;
  width:12%;
  height:100%;
  background:linear-gradient(90deg,var(--cea-blue),#38bdf8);
  transition:width .25s ease;
}
.cea-conversation{
  min-height:390px;
  max-height:620px;
  overflow-y:auto;
  padding:22px;
  background:
    radial-gradient(circle at 100% 0%,rgba(56,189,248,.08),transparent 28%),
    var(--cea-bg);
  scroll-behavior:smooth;
}
.cea-message{
  display:flex;
  gap:10px;
  margin-bottom:15px;
  animation:ceaAppear .18s ease-out both;
}
.cea-message-user{justify-content:flex-end}
.cea-avatar{
  display:flex;
  flex:0 0 34px;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:#e5efff;
  color:var(--cea-blue);
  font-size:14px;
  font-weight:950;
}
.cea-bubble{
  max-width:min(690px,88%);
  padding:13px 15px;
  border:1px solid var(--cea-border);
  border-radius:17px 17px 17px 5px;
  background:#fff;
  color:#213452;
  font-size:14px;
  line-height:1.58;
  box-shadow:0 7px 20px rgba(24,50,91,.045);
}
.cea-message-user .cea-bubble{
  border-color:#155eef;
  border-radius:17px 17px 5px 17px;
  background:linear-gradient(135deg,#155eef,#0d43b5);
  color:#fff;
}
.cea-bubble p{margin:0 0 8px}
.cea-bubble p:last-child{margin-bottom:0}
.cea-bubble strong{color:inherit}
.cea-bubble ul{
  margin:8px 0 0;
  padding-left:19px;
}
.cea-bubble li{margin-bottom:5px}
.cea-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:3px 0 18px 44px;
  animation:ceaAppear .18s ease-out both;
}
.cea-options button{
  min-height:58px;
  padding:12px 14px;
  border:1px solid #cfdcf0;
  border-radius:15px;
  background:#fff;
  color:#17345f;
  font:inherit;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(24,50,91,.04);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.cea-options button:hover,
.cea-options button:focus{
  transform:translateY(-2px);
  border-color:#8db4ff;
  outline:0;
  box-shadow:0 12px 26px rgba(21,94,239,.11);
}
.cea-input-card{
  margin:3px 0 18px 44px;
  padding:15px;
  border:1px solid #cfddf0;
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 22px rgba(24,50,91,.045);
}
.cea-input-card label{
  display:block;
  margin-bottom:8px;
  color:#1b2e4d;
  font-size:13px;
  font-weight:850;
}
.cea-input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
}
.cea-input-wrap{position:relative}
.cea-input-wrap input{
  width:100%;
  min-height:48px;
  margin:0;
  padding:10px 42px 10px 12px;
  border:1px solid #cbd8e9;
  border-radius:13px;
  background:#fff;
  color:#10244c;
  font:inherit;
  font-size:15px;
  box-shadow:none;
}
.cea-input-wrap::after{
  content:"€";
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  color:#64748b;
  font-weight:850;
  pointer-events:none;
}
.cea-input-row button,
.cea-action{
  min-height:48px;
  padding:10px 17px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,var(--cea-blue),var(--cea-blue-dark));
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(21,94,239,.18);
}
.cea-input-row button:hover,
.cea-action:hover{filter:brightness(.96)}
.cea-input-help{
  display:block;
  margin-top:7px;
  color:#718096;
  font-size:11px;
  line-height:1.45;
}
.cea-result{
  margin:4px 0 18px 44px;
  padding:18px;
  border:1px solid #bfd4fa;
  border-radius:20px;
  background:linear-gradient(145deg,#fff,#f4f8ff);
  box-shadow:0 14px 32px rgba(23,52,102,.08);
  animation:ceaAppear .22s ease-out both;
}
.cea-result-eyebrow{
  display:block;
  margin-bottom:5px;
  color:#155eef;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.cea-result h3{
  margin:0 0 7px;
  color:#10244c;
  font-size:22px;
  line-height:1.18;
}
.cea-result>p{
  margin:0;
  color:#4e627e;
  font-size:13px;
  line-height:1.6;
}
.cea-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}
.cea-metrics>div{
  padding:11px;
  border:1px solid #dce6f3;
  border-radius:13px;
  background:#fff;
}
.cea-metrics span,
.cea-metrics strong{display:block}
.cea-metrics span{
  color:#6b7c92;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.cea-metrics strong{
  margin-top:3px;
  color:#10244c;
  font-size:17px;
}
.cea-breakdown{
  display:grid;
  gap:6px;
  margin-top:14px;
}
.cea-breakdown-row{
  display:grid;
  grid-template-columns:1fr 1fr 58px 1fr;
  gap:7px;
  padding:8px 10px;
  border:1px solid #dce6f3;
  border-radius:11px;
  background:#fff;
  color:#465a76;
  font-size:11px;
}
.cea-breakdown-row strong{color:#10244c}
.cea-breakdown-row b{color:#155eef;text-align:center}
.cea-breakdown-row em{
  color:#10244c;
  text-align:right;
  font-style:normal;
  font-weight:850;
}
.cea-breakdown-row.is-protected{
  border-color:#cbe9da;
  background:#effaf5;
}
.cea-breakdown-row.is-protected b,
.cea-breakdown-row.is-protected em{color:#087a4b}
.cea-status{
  margin-top:13px;
  padding:11px 12px;
  border-radius:12px;
  background:#eef5ff;
  color:#315075;
  font-size:12px;
  line-height:1.55;
}
.cea-status.is-warning{
  border:1px solid #f1cc8e;
  background:#fff8ed;
  color:#744d15;
}
.cea-status.is-good{
  border:1px solid #bee3d0;
  background:#effaf5;
  color:#17613f;
}
.cea-checklist{
  display:grid;
  gap:8px;
  margin-top:14px;
}
.cea-checklist>div{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:9px;
  align-items:start;
  padding:10px;
  border:1px solid #dce6f3;
  border-radius:12px;
  background:#fff;
}
.cea-checklist span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:9px;
  background:#eaf2ff;
  color:#155eef;
  font-size:12px;
  font-weight:950;
}
.cea-checklist strong,
.cea-checklist small{display:block}
.cea-checklist strong{font-size:12px}
.cea-checklist small{
  margin-top:2px;
  color:#66788f;
  font-size:11px;
  line-height:1.45;
}
.cea-result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}
.cea-result-actions a,
.cea-result-actions button{
  display:inline-flex;
  min-height:39px;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid #cbdaf0;
  border-radius:11px;
  background:#fff;
  color:#174590;
  font:inherit;
  font-size:11px;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
  box-shadow:none;
}
.cea-result-actions a:first-child{
  border-color:#155eef;
  background:#155eef;
  color:#fff;
}
.cea-sources{
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid #dce6f3;
  color:#6b7b91;
  font-size:10px;
  line-height:1.5;
}
.cea-sources a{font-weight:750}
.cea-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:10px 16px;
  border-top:1px solid #e1e8f2;
  background:#fff;
  color:#6b7c91;
  font-size:10px;
}
.cea-footer button{
  padding:4px 0;
  border:0;
  background:transparent;
  color:#155eef;
  font:inherit;
  font-weight:850;
  cursor:pointer;
  box-shadow:none;
}
.cea-floating-wrap{
  position:fixed;
  z-index:999999;
  bottom:20px;
}
.cea-floating-right{right:20px}
.cea-floating-left{left:20px}
.cea-launcher{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:7px 15px 7px 7px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#155eef,#0d43b5);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 18px 42px rgba(13,67,181,.32);
}
.cea-launcher-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  font-size:18px;
  font-weight:950;
}
.cea-assistant-floating{
  position:absolute;
  bottom:64px;
  width:min(430px,calc(100vw - 28px));
}
.cea-floating-right .cea-assistant-floating{right:0}
.cea-floating-left .cea-assistant-floating{left:0}
.cea-assistant-floating .cea-conversation{
  min-height:380px;
  max-height:min(62vh,570px);
}
.cea-assistant-floating[hidden]{display:none!important}
body.cea-dialog-open{overflow:hidden}
@keyframes ceaAppear{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:none}
}
@media(max-width:700px){
  .cea-assistant-inline{margin:18px auto}
  .cea-options{grid-template-columns:1fr;margin-left:0}
  .cea-input-card,.cea-result{margin-left:0}
  .cea-bubble{max-width:92%}
  .cea-conversation{padding:16px}
  .cea-floating-wrap{right:12px!important;left:12px!important;bottom:12px}
  .cea-launcher{margin-left:auto}
  .cea-assistant-floating{
    position:fixed;
    inset:8px;
    width:auto;
  }
  .cea-assistant-floating .cea-shell{
    display:flex;
    height:calc(100vh - 16px);
    flex-direction:column;
  }
  .cea-assistant-floating .cea-conversation{
    min-height:0;
    max-height:none;
    flex:1;
  }
  .cea-metrics{grid-template-columns:1fr}
  .cea-breakdown-row{grid-template-columns:1fr 1fr}
  .cea-breakdown-row b,.cea-breakdown-row em{text-align:left}
}
@media print{
  .cea-floating-wrap,.cea-header,.cea-footer,.cea-options,.cea-input-card,.cea-result-actions{display:none!important}
  .cea-assistant-inline .cea-shell{border:0;box-shadow:none}
  .cea-conversation{max-height:none;overflow:visible;background:#fff}
}
