/* CURA — asistente virtual */
.cura { --c-navy:#0b347d; --c-navy2:#07224f; --c-blue:#0069c9; --c-sky:#11a8ea; --c-line:#e1e6ef; --c-text:#1b2233; --c-muted:#566273; font-family: inherit; }
.cura [hidden] { display: none !important; }
.cura-launch { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; gap: 10px; padding: 5px 20px 5px 5px; border: 2px solid #5fb4ff; border-radius: 999px; background: #fff; color: var(--c-navy); cursor: pointer; box-shadow: 0 10px 30px rgba(7,34,79,.30), 0 0 0 4px rgba(255,255,255,.25); text-align: left; transition: transform .2s, box-shadow .2s; }
.cura-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7,34,79,.36), 0 0 0 5px rgba(95,180,255,.30); }
.cura-launch:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; }
.cura-launch img { width: 46px; height: 46px; border-radius: 50%; background: #eaf3ff; }
.cura-launch__txt strong { display: block; font-size: 1rem; letter-spacing: .04em; color: var(--c-navy); }
.cura-launch__txt small { display: block; font-size: .78rem; color: var(--c-blue); font-weight: 600; }
.cura-dot { position: absolute; top: 2px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #f04438; border: 2px solid #fff; }
.cura.is-seen .cura-dot { display: none; }
.cura-panel { position: fixed; right: 20px; bottom: 20px; z-index: 160; width: 410px; max-width: calc(100vw - 24px); height: min(680px, calc(100vh - 40px)); height: min(680px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: #f5f8fc; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(7,34,79,.35); color: var(--c-text); }
.cura-head { position: relative; flex: none; display: grid; grid-template-columns: 96px 1fr auto; column-gap: 10px; padding: 14px 14px 14px 10px; background: radial-gradient(120% 140% at 0% 0%, #1d63c4 0%, var(--c-navy) 55%, var(--c-navy2) 100%); color: #fff; }
.cura-head__bot { grid-row: 1 / span 2; width: 96px; height: 96px; align-self: end; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.cura-head__txt p { margin: 0; }
.cura-head__name { font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; line-height: 1.05; }
.cura-head__role { font-size: .98rem; }
.cura-head__org { font-size: .78rem; opacity: .85; }
.cura-head__btns { display: flex; gap: 4px; align-self: start; }
.cura-icon { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cura-icon:hover { background: rgba(255,255,255,.25); }
.cura-icon .ic { width: 16px; height: 16px; }
.cura-bubble { grid-column: 2 / span 2; margin: 10px 0 0; background: #fff; color: var(--c-text); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: .9rem; line-height: 1.45; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.cura-body { flex: 1 1 auto; overflow-y: auto; padding: 14px; scroll-behavior: smooth; }
.cura-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cura-tile { display: flex; align-items: center; gap: 10px; padding: 12px 10px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; cursor: pointer; text-align: left; color: var(--c-text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.cura-tile:hover, .cura-tile:focus-visible { border-color: var(--c-blue); box-shadow: 0 4px 14px rgba(0,105,201,.12); outline: none; }
.cura-tile__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cura-tile__ic .ic { width: 20px; height: 20px; }
.cura-tile__txt { flex: 1; min-width: 0; }
.cura-tile__txt strong { display: block; font-size: .86rem; color: var(--c-navy); }
.cura-tile__txt small { display: block; font-size: .72rem; color: var(--c-muted); line-height: 1.3; }
.cura-tile__go { flex: none; color: var(--c-navy); transform: rotate(-90deg); width: 14px; height: 14px; }
.t-amber { background: #fff1d6; color: #b45309; } .t-blue { background: #e3efff; color: #1d5fbf; } .t-green { background: #e2f6e9; color: #15803d; }
.t-red { background: #fde4e4; color: #c0262d; } .t-violet { background: #efe7ff; color: #6d3fd1; } .t-teal { background: #ddf5f3; color: #0f766e; }
.t-slate { background: #e6ebf2; color: #334155; } .t-indigo { background: #e5e9ff; color: #3949ab; }
.cura-msg { display: flex; margin-top: 12px; }
.cura-msg--user { justify-content: flex-end; }
.cura-msg__b { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.cura-msg--user .cura-msg__b { background: var(--c-blue); color: #fff; border-bottom-right-radius: 4px; }
.cura-msg--bot .cura-msg__b { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.cura-msg--bot img.cura-av { width: 30px; height: 30px; border-radius: 50%; background: #eaf3ff; margin-right: 6px; flex: none; align-self: flex-end; }
.cura-msg__b p { margin: 0 0 8px; } .cura-msg__b p:last-child { margin-bottom: 0; }
.cura-msg__b h4 { margin: 10px 0 4px; font-size: .86rem; color: var(--c-navy); }
.cura-msg__b ul, .cura-msg__b ol { margin: 0 0 8px; padding-left: 20px; }
.cura-msg__b li { margin: 2px 0; }
.cura-msg__b a { color: var(--c-blue); font-weight: 600; }
.cura-msg__b .cura-na { color: #8a5a00; background: #fff8e6; border-radius: 8px; padding: 6px 8px; font-size: .8rem; }
.cura-msg__b .cura-src { color: var(--c-muted); font-size: .74rem; }
.cura-msg__b .cura-t { font-size: .98rem; }
.cura-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 36px; }
.cura-chip { border: 1px solid #c9d8ee; background: #fff; color: var(--c-navy); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: left; }
.cura-chip:hover, .cura-chip:focus-visible { background: #eaf3ff; border-color: var(--c-blue); outline: none; }
.cura-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.cura-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb6d8; animation: cura-b 1s infinite ease-in-out; }
.cura-typing i:nth-child(2) { animation-delay: .15s; } .cura-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cura-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.cura-input { flex: none; display: flex; gap: 8px; padding: 10px 12px 6px; background: #f5f8fc; border-top: 1px solid var(--c-line); }
.cura-input input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid #cfd8e6; border-radius: 999px; padding: 0 16px; font: inherit; font-size: .9rem; background: #fff; color: var(--c-text); }
.cura-input input:focus { border-color: var(--c-blue); outline: 2px solid rgba(0,105,201,.15); }
.cura-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cura-send:hover { background: var(--c-blue); }
.cura-send .ic { width: 20px; height: 20px; }
.cura-legal { flex: none; margin: 0; padding: 0 14px 10px; font-size: .68rem; color: var(--c-muted); background: #f5f8fc; text-align: center; }
@media (max-width: 600px) {
  .cura-launch { right: 14px; bottom: 14px; padding: 4px; }
  .cura-launch__txt { display: none; }
  .cura-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .cura-head { grid-template-columns: 72px 1fr auto; }
  .cura-head__bot { width: 72px; height: 72px; }
  .cura-head__name { font-size: 1.4rem; }
  .cura-tile__txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cura-typing i { animation: none; } .cura-launch { transition: none; } }
@media print { .cura { display: none !important; } }
.cura-panel.is-chat .cura-bubble, .cura-panel.is-chat .cura-head__org { display: none; }
.cura-panel.is-chat .cura-head { grid-template-columns: 52px 1fr auto; padding: 10px 12px; align-items: center; }
.cura-panel.is-chat .cura-head__bot { grid-row: auto; width: 52px; height: 52px; align-self: center; }
.cura-panel.is-chat .cura-head__name { font-size: 1.3rem; }
.cura-msg__b .checklist, .cura-msg__b .steps { padding-left: 20px; margin: 0 0 8px; }
.cura-msg__b .checklist { list-style: disc; }
.cura-msg__b .checklist li { display: list-item; padding: 1px 0; }
.cura-msg__b .steps { list-style: none; padding-left: 0; counter-reset: s; }
.cura-msg__b .steps li { display: block; position: relative; padding: 1px 0 7px 30px; }
.cura-msg__b .steps li::before { left: 0; top: 1px; width: 21px; height: 21px; font-size: .72rem; line-height: 1; }
.cura-msg__b .sheet__sub { font-size: .84rem; margin: 8px 0 2px; color: var(--c-navy); font-weight: 700; }

/* Saludo, salto y punto «en línea» del botón de CURA (02/11/2026) */
@keyframes cura-salto{0%,100%{transform:translateY(0)}18%{transform:translateY(-10px)}36%{transform:translateY(0)}52%{transform:translateY(-4px)}68%{transform:translateY(0)}}
@keyframes cura-saluda{0%,100%{transform:rotate(0)}20%{transform:rotate(-10deg)}40%{transform:rotate(8deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(4deg)}}
.cura-launch.is-salta{animation:cura-salto 1.1s ease}
.cura-launch.is-salta img{animation:cura-saluda 1.1s ease;transform-origin:50% 85%}
@keyframes cura-pulso{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.cura-launch::after{content:'';position:absolute;left:41px;bottom:6px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #fff;animation:cura-pulso 2.2s infinite}
.cura-saludo{position:fixed;right:20px;bottom:94px;z-index:151;max-width:270px;display:flex;align-items:flex-start;gap:4px;background:#fff;color:var(--c-navy,#0b3c7d);border-radius:16px 16px 4px 16px;box-shadow:0 12px 30px rgba(7,34,79,.28);padding:10px 8px 10px 14px;font-size:.9rem;line-height:1.35;opacity:0;transform:translateY(8px) scale(.96);transition:opacity .25s,transform .25s}
.cura-saludo.is-on{opacity:1;transform:none}
.cura-saludo__txt{all:unset;cursor:pointer;flex:1}
.cura-saludo__txt strong{color:var(--c-blue,#1f6fd1)}
.cura-saludo__x{all:unset;cursor:pointer;width:22px;height:22px;flex:none;text-align:center;border-radius:50%;color:#5a6270;font-size:1.15rem;line-height:22px}
.cura-saludo__x:hover{background:#eef2f7}
.cura-saludo__txt:focus-visible,.cura-saludo__x:focus-visible{outline:2px solid #5fb4ff;outline-offset:2px}
@media (max-width:600px){.cura-saludo{right:14px;bottom:80px;max-width:230px;font-size:.85rem}.cura-launch::after{left:39px;bottom:4px}}
@media (prefers-reduced-motion:reduce){.cura-launch.is-salta,.cura-launch.is-salta img,.cura-launch::after{animation:none}.cura-saludo{transition:none}}

/* Avatar del encabezado del chat: circular con aro blanco (02/11/2026) */
.cura-head__bot{width:88px!important;height:88px!important;border-radius:50%;border:3px solid #fff;background:#DCEBFF;box-shadow:0 8px 22px rgba(4,22,56,.35);object-fit:cover;flex:none}
@media (max-width:600px){.cura-head__bot{width:68px!important;height:68px!important}}

/* Celular: el chat queda ajustado a la pantalla (02/11/2026).
   iPhone hace zoom al escribir si el campo tiene letra menor a 16px; por eso se fija en 16px. */
.cura-panel{box-sizing:border-box;overscroll-behavior:contain}
.cura-panel *{box-sizing:border-box}
.cura-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
.cura-tile{min-width:0}
.cura-tile__txt{min-width:0;overflow-wrap:break-word}
@media (max-width:600px),(pointer:coarse){
  .cura-input input{font-size:16px}
}
@media (max-width:600px){
  .cura-panel{left:0;right:0;width:100%;max-width:100%}
  .cura-head{padding-left:12px;padding-right:12px}
  .cura-menu{gap:8px}
  .cura-tile{padding:10px 8px;gap:8px}
  .cura-tile__txt strong{font-size:.86rem;line-height:1.2}
  .cura-tile__ic{flex:none;width:32px!important;height:32px!important}
  .cura-tile__ic svg{width:17px;height:17px}
  .cura-tile>svg:last-child,.cura-tile__go{width:12px;flex:none}
  .cura-input{padding-left:10px;padding-right:10px}
}
@media (max-width:400px){.cura-tile{padding:9px 6px;gap:6px}.cura-tile__txt strong{font-size:.8rem}.cura-menu{gap:6px}}

/* Halo suave que «respira» alrededor del botón (reemplaza el salto periódico) */
@keyframes cura-halo{0%,100%{box-shadow:0 10px 26px rgba(7,34,79,.28),0 0 0 0 rgba(95,180,255,.0)}50%{box-shadow:0 10px 26px rgba(7,34,79,.28),0 0 0 9px rgba(95,180,255,.28)}}
.cura-launch.is-halo:not([aria-expanded="true"]){animation:cura-halo 3.2s ease-in-out infinite}
.cura-launch.is-halo.is-salta{animation:cura-salto 1.1s ease}
@media (prefers-reduced-motion:reduce){.cura-launch.is-halo{animation:none!important}}

/* Con la conversación iniciada el encabezado se compacta: avatar redondo de 52 px */
.cura-panel.is-chat .cura-head__bot{width:52px!important;height:52px!important;min-width:52px;aspect-ratio:1/1;border-width:2px;box-shadow:0 4px 12px rgba(4,22,56,.3)}
