/* El contorno sólo anima al abrir la guía. Sin librerías ni medios externos. */
.scai-tour-host { gap: 8px; flex-wrap: wrap; }
.scai-tour-launch { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; max-width: 100%; padding: 9px 12px; border: 1px solid #c5d2e3; border-radius: 8px; background: #fff; color: #1e3a5f; font: 600 14px/1.3 Roboto, Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.scai-tour-launch:hover { background: #edf3fa; border-color: #1e3a5f; }
.scai-tour-launch:focus-visible { outline: 3px solid #1e3a5f; outline-offset: 3px; }
.scai-tour-launch-short { display: none; }
dialog#scai-tour-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; color: #1e3a5f; background: transparent; overflow: hidden; overscroll-behavior: contain; }
/* Sin desenfoque: algunas apps difuminan el fondo de sus propios diálogos y la guía debe verse igual en todas. */
dialog#scai-tour-dialog::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
#scai-tour-dialog .scai-tour-veil { position: absolute; inset: 0; background: rgb(14 30 49 / 42%); }
#scai-tour-dialog .scai-tour-ring { position: fixed; z-index: 1; box-sizing: border-box; border: 3px solid #fff; border-radius: 10px; outline: 3px solid #c8413a; outline-offset: 0; box-shadow: 0 0 0 5px rgb(255 255 255 / 20%); pointer-events: none; animation: scai-tour-outline 1.8s ease-in-out 2; }
#scai-tour-dialog .scai-tour-ring[hidden] { display: none; }
#scai-tour-panel { position: fixed; z-index: 2; box-sizing: border-box; display: block; overflow: auto; overscroll-behavior: contain; border: 1px solid #b9cadf; border-radius: 14px; padding: 20px; background: #fff; color: #1e3a5f; box-shadow: 0 14px 40px rgb(14 30 49 / 22%); font: 400 16px/1.55 Roboto, Arial, sans-serif; text-align: left; }
#scai-tour-panel * { box-sizing: border-box; }
#scai-tour-panel [hidden] { display: none !important; }
#scai-tour-panel .scai-tour-panel-top { position: sticky; top: 0; z-index: 3; display: flex; gap: 12px; align-items: start; justify-content: space-between; margin: 0 0 10px; padding-bottom: 8px; background: #fff; }
#scai-tour-panel .scai-tour-progress { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: #4a5e76; }
#scai-tour-panel .scai-tour-title { margin: 0 0 12px; font: 700 23px/1.2 Roboto, Arial, sans-serif; letter-spacing: -.02em; color: #1e3a5f; overflow-wrap: anywhere; }
#scai-tour-panel .scai-tour-title:focus { outline: 0; }
#scai-tour-panel .scai-tour-description { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: #253e5e; }
#scai-tour-panel .scai-tour-target-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #4a5e76; }
#scai-tour-panel .scai-tour-safety { margin: 0 0 16px; border-left: 3px solid #c8413a; padding: 8px 10px; background: #f7f9fc; font-size: 13px; line-height: 1.5; color: #253e5e; }
#scai-tour-panel button { display: inline-flex; width: auto; min-height: 44px; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #bdcbde; border-radius: 7px; background: #fff; color: #1e3a5f; font: 600 14px/1.3 Roboto, Arial, sans-serif; text-align: center; cursor: pointer; white-space: normal; }
#scai-tour-panel button:hover:not(:disabled) { background: #edf3fa; }
#scai-tour-panel button:focus-visible { outline: 3px solid #1e3a5f; outline-offset: 3px; }
#scai-tour-panel button:disabled { cursor: default; opacity: .55; }
#scai-tour-panel .scai-tour-close { min-width: 44px; margin: 0 -7px 0 0; flex: 0 0 auto; border-color: transparent; background: transparent; font-size: 13px; }
#scai-tour-panel .scai-tour-motion { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
#scai-tour-panel .scai-tour-motion button { flex: 1 1 140px; background: #f7f9fc; font-size: 13px; }
#scai-tour-panel .scai-tour-actions { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid #d8e1ee; padding-top: 16px; background: #fff; box-shadow: 0 20px 0 #fff; }
#scai-tour-panel .scai-tour-next { margin-left: auto; background: #c8413a; border-color: #c8413a; color: #fff; }
#scai-tour-panel .scai-tour-next:hover { background: #a72e2a; border-color: #a72e2a; color: #fff; }
#scai-tour-panel.scai-tour-enter { animation: scai-tour-appear .2s ease-out; }
@keyframes scai-tour-appear { from { transform: translateY(5px); } to { transform: translateY(0); } }
@keyframes scai-tour-outline { 50% { outline-offset: 3px; } }
@media (max-width: 759px) {
  .scai-tour-launch { padding: 8px 10px; font-size: 14px; }
  .scai-tour-launch-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .scai-tour-launch-short { display: inline; }
  #scai-tour-panel { padding: 17px; }
  #scai-tour-panel .scai-tour-title { font-size: 21px; }
  #scai-tour-panel .scai-tour-motion { margin-bottom: 12px; }
  #scai-tour-panel .scai-tour-motion button { flex-basis: 120px; }
  .scai-tour-host:is(.scbp-topbar, .scld-topbar) > h2 { flex: 1 1 180px; }
}
@media (prefers-reduced-motion: reduce) {
  #scai-tour-dialog *, #scai-tour-dialog *::before, #scai-tour-dialog *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
