/* Lintac Admisiones — Widget de ayuda */
.lintac-help{
  --hp:#4C44C6; --hp2:#00B0D3; --hink:#0B2336; --hline:#D7DEE5; --hmuted:#6B7280;
  position:fixed; right:20px; bottom:20px; z-index:99998;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* Botón flotante redondo + caption arriba */
.lintac-help__cta{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.lintac-help__caption{
  pointer-events:none;
  background:#fff; color:var(--hp); border:1px solid var(--hline);
  font-size:12px; font-weight:800; padding:5px 11px; border-radius:999px; white-space:nowrap;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.lintac-help__launch{
  width:60px; height:60px; padding:0; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:#fff; background:var(--hp); border-radius:50%;
  box-shadow:0 10px 30px rgba(76,68,198,.4); transition:transform .15s ease, filter .15s ease;
}
.lintac-help__launch:hover{ filter:brightness(1.06); transform:translateY(-2px); }
.lintac-help__launch-ico{ font-size:30px; font-weight:900; line-height:1; }
.lintac-help.is-open .lintac-help__cta{ display:none; }

/* Panel */
.lintac-help__panel{
  width:min(380px, calc(100vw - 32px)); height:min(560px, calc(100vh - 40px));
  background:#fff; border:1px solid var(--hline); border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:0 24px 70px rgba(0,0,0,.22);
  animation:lintacHelpIn .18s ease;
}
/* El atributo hidden debe ganarle al display:flex de arriba, si no el panel nunca se cierra. */
.lintac-help__panel[hidden]{ display:none !important; }
@keyframes lintacHelpIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .lintac-help__panel{ animation:none; } }

.lintac-help__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; background:linear-gradient(120deg,var(--hp),var(--hp2)); color:#fff;
}
.lintac-help__title{ font-weight:800; font-size:16px; }
.lintac-help__close{ background:transparent; border:0; color:#fff; font-size:24px; line-height:1; cursor:pointer; opacity:.9; }
.lintac-help__close:hover{ opacity:1; }

.lintac-help__body{ flex:1 1 auto; overflow-y:auto; padding:16px; background:#f7f8fb; }
.lintac-help__messages{ display:flex; flex-direction:column; gap:12px; }

/* Burbujas */
.lintac-help__msg{ max-width:88%; padding:11px 13px; border-radius:14px; font-size:14px; line-height:1.45; }
.lintac-help__msg--bot{ align-self:flex-start; background:#fff; border:1px solid var(--hline); color:var(--hink); border-bottom-left-radius:4px; }
.lintac-help__msg--user{ align-self:flex-end; background:var(--hp); color:#fff; border-bottom-right-radius:4px; }
.lintac-help__msg ul{ margin:8px 0 0; padding-left:18px; }
.lintac-help__msg li{ margin:4px 0; }

/* Opciones / botones dentro del chat */
.lintac-help__options{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.lintac-help__opt{
  text-align:left; background:#fff; border:1.5px solid var(--hp); color:var(--hp);
  padding:10px 12px; border-radius:10px; font-weight:700; font-size:14px; cursor:pointer;
  transition:background .12s ease, color .12s ease;
}
.lintac-help__opt:hover{ background:var(--hp); color:#fff; }
.lintac-help__opt--ghost{ border-color:var(--hline); color:var(--hmuted); font-weight:600; }
.lintac-help__opt--ghost:hover{ background:#eef0f5; color:var(--hink); }

/* Pie con formulario/inputs */
.lintac-help__foot{ border-top:1px solid var(--hline); padding:12px 14px; background:#fff; }
.lintac-help__foot:empty{ display:none; }
.lintac-help__field{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.lintac-help__field label{ font-size:12px; font-weight:700; color:var(--hmuted); }
.lintac-help__field input, .lintac-help__field textarea{
  width:100%; box-sizing:border-box; border:1.5px solid var(--hline); border-radius:8px;
  padding:10px 12px; font-size:14px; color:var(--hink); outline:none; font-family:inherit;
}
.lintac-help__field input:focus, .lintac-help__field textarea:focus{ border-color:var(--hp); box-shadow:0 0 0 3px rgba(76,68,198,.12); }
.lintac-help__field .lintac-help__err{ color:#b3261e; font-size:12px; }
.lintac-help__foot .lintac-help__opt{ width:100%; box-sizing:border-box; text-align:center; background:var(--hp); color:#fff; }
.lintac-help__foot .lintac-help__opt:hover{ filter:brightness(1.07); }
.lintac-help__foot .lintac-help__opt[disabled]{ opacity:.6; cursor:wait; }

@media (max-width:480px){
  .lintac-help{ right:14px; bottom:14px; left:auto; }
  .lintac-help__launch{ width:52px; height:52px; }
  .lintac-help__launch-ico{ font-size:26px; }
  .lintac-help__caption{ font-size:11px; padding:4px 9px; }
  /* Panel compacto: no ocupa toda la pantalla */
  .lintac-help__panel{ width:min(300px, calc(100vw - 28px)); height:min(62vh, 440px); }
}
