/* CAME — acceso de atención y avisos de la prueba 9. */
html.came-intro-active { overflow: hidden; }

.came-assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1025;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  width: min(292px, calc(100vw - 32px));
  min-height: 82px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #ddd7e8;
  border-left: 4px solid #492f7b;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(37 23 62 / 16%);
  color: #30283e;
  font-family: 'Open Sans', Arial, sans-serif;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.came-assistant-launcher:hover {
  border-color: #492f7b;
  box-shadow: 0 10px 32px rgb(37 23 62 / 20%);
  color: #30283e;
  text-decoration: none;
  transform: translateY(-2px);
}
.came-assistant-brand { display: flex; align-items: center; }
.came-assistant-brand img { display: block; width: 64px; height: auto; }
.came-assistant-copy { display: grid; gap: 5px; min-width: 0; }
.came-assistant-copy strong { font-size: 14px; font-weight: 700; line-height: 1.35; }
.came-assistant-copy > span { display: inline-flex; align-items: center; gap: 5px; color: #b30012; font-size: 13px; font-weight: 600; line-height: 1.4; }
.came-assistant-copy svg { width: 14px; height: 14px; flex-shrink: 0; }
.came-assistant-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e30613;
  color: #fff;
}
.came-assistant-icon svg { display: block; width: 27px; height: 27px; }
.came-assistant-launcher:focus-visible,
.came-dismiss:focus-visible,
.came-continue:focus-visible { outline: 3px solid #492f7b; outline-offset: 4px; }
.came-intro-active .came-assistant-launcher { visibility: hidden; }
.came-home .back-to-top { right: 28px; bottom: 130px; }

.came-welcome-dialog,
.came-notice-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #e1dce8;
  border-radius: 16px;
  background: #fff;
  color: #30283e;
  box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}
.came-welcome-dialog:not([open]),
.came-notice-dialog:not([open]) { display: none; }
.came-welcome-dialog::backdrop,
.came-notice-dialog::backdrop { background: rgb(23 18 31 / 65%); }
.came-welcome-dialog { width: min(600px, calc(100vw - 32px)); }
.came-welcome-content { position: relative; }
.came-welcome-dialog .banner-image-came {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 136px);
  max-height: calc(100dvh - 136px);
  object-fit: contain;
  background: #fff;
}
.came-welcome-dialog .came-dismiss { position: absolute; top: 12px; right: 12px; box-shadow: 0 2px 12px rgb(0 0 0 / 14%); }
.came-welcome-actions { display: flex; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid #e8e3ec; background: #fff; }

.came-notice-dialog { width: min(800px, calc(100vw - 32px)); }
.came-notice-dialog .modal-dialog {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  transform: none;
  pointer-events: auto;
}
.came-notice-dialog .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 42px);
  max-height: calc(100dvh - 42px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.came-notice-dialog .modal-header {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e8e3ec;
  background: #fff;
  text-align: left;
}
.came-notice-dialog #avisoInicialLabel { margin: 0; color: #492f7b; font: 600 18px/1.45 'Jost', Arial, sans-serif; }
.came-notice-dialog .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 24px;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.came-notice-dialog .modal-footer {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e8e3ec;
  background: #fff;
}
.came-notice-dialog .modal-footer > * { margin: 0; }
.came-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cdc4da;
  border-radius: 9px;
  background: #fff;
  color: #492f7b;
  font: 600 14px/20px 'Open Sans', Arial, sans-serif;
  cursor: pointer;
}
.came-dismiss svg { width: 18px; height: 18px; flex-shrink: 0; }
.came-dismiss:hover { border-color: #492f7b; background: #f4f0f8; }
.came-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 22px;
  border: 1px solid #e30613;
  border-radius: 9px;
  background: #e30613;
  color: #fff;
  font: 600 15px/22px 'Open Sans', Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.came-continue:hover { border-color: #bd0010; background: #bd0010; }

@media (max-width: 575.98px) {
  .came-assistant-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: min(264px, calc(100vw - 32px)); min-height: 74px; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 12px; padding: 12px; }
  .came-assistant-brand img { width: 56px; }
  .came-assistant-copy strong { font-size: 13px; }
  .came-assistant-icon { width: 44px; height: 44px; }
  .came-home .back-to-top { right: 20px; bottom: 112px; }
  .came-notice-dialog .modal-header { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .came-notice-dialog #avisoInicialLabel { order: 2; flex-basis: 100%; font-size: 16px; }
  .came-notice-dialog .modal-header .came-dismiss { order: 1; margin-left: auto; }
  .came-notice-dialog .modal-body { padding: 16px; }
  .came-notice-dialog .modal-footer,
  .came-welcome-actions { padding: 14px 16px; }
  .came-notice-dialog .came-continue,
  .came-welcome-actions .came-continue { width: 100%; }
}
@media (max-height: 550px) and (min-width: 576px) {
  .came-notice-dialog .modal-header { padding: 12px 20px; }
  .came-notice-dialog #avisoInicialLabel { font-size: 16px; }
  .came-notice-dialog .modal-footer { padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .came-assistant-launcher { transition: none; }
  .came-assistant-launcher:hover { transform: none; }
}
