.av-band { position: relative; padding: 10px 0 34px; background: var(--pradera) radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 3px) 0 0 / 40px 40px; }
.av {
  display: flex; align-items: flex-start; gap: 16px; max-width: 900px; margin-inline: auto; padding: 18px 24px 18px 18px;
  background: linear-gradient(180deg, #fffaea, var(--pergamino)); color: #3a2414; border: 3px solid var(--pergamino-borde); border-radius: 14px;
  box-shadow: 0 5px 0 #8a6a3c, 0 16px 24px rgba(0, 0, 0, 0.16);
}
.av__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cinta); border: 3px solid var(--cinta-hondo);
  color: #fff; box-shadow: 0 3px 0 var(--cinta-hondo);
}
.av__icon svg, .av-line__i svg { fill: currentColor; stroke: currentColor; stroke-linecap: round; }
.av__icon svg { width: 22px; height: 22px; stroke-width: 3; }
.av__body { min-width: 0; }
.av__body p { margin: 0 0 8px; font-size: 1rem; line-height: 1.55; }
.av__body p:last-child { margin-bottom: 0; }
.av__body .av__title { margin: 0 0 6px; font: 700 1.35rem/1.15 var(--f-display); color: var(--rosa-hondo); }
.av__more a { color: var(--rosa-hondo); font-weight: 800; text-decoration: underline; }
.av__more a:focus-visible, .av-line a:focus-visible, .nt a:focus-visible { outline: 3px solid var(--cinta-hondo); outline-offset: 2px; border-radius: 3px; }
.av--dark { max-width: none; margin: 0 0 28px; background: rgba(255, 255, 255, 0.06); color: var(--claro); border: 1px solid var(--linea); box-shadow: none; }
.av--dark .av__body .av__title { color: var(--oro); }
.av--dark .av__more a { color: #9fd8f7; }

.av-line {
  display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 14px; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: var(--apagado); font-size: 0.82rem; line-height: 1.4;
}
.av-line__i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cinta); border: 2px solid var(--cinta-hondo); color: #fff; }
.av-line__i svg { width: 12px; height: 12px; stroke-width: 3.2; }
.av-line a { color: #9fd8f7; font-weight: 700; text-decoration: underline; white-space: nowrap; }

.se-dialog .av-line { gap: 8px; margin: 6px 0 8px; padding: 0; border: 0; background: none; font-size: 0.78rem; line-height: 1.35; }
.se-dialog .av-line__i { width: 18px; height: 18px; margin-top: 1px; }
.se-dialog .av-line__i svg { width: 10px; height: 10px; }

.se-foot__notice a { color: inherit; text-decoration: underline; white-space: nowrap; }

.nt {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 320; width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--hdr-h, var(--header-h)) - 32px); overflow: auto; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: var(--tinta); color: var(--claro); border: 2px solid var(--oro); border-radius: 14px; box-shadow: 0 6px 0 var(--oro-borde), 0 18px 34px rgba(0, 0, 0, 0.45);
}
.nt[hidden] { display: none; }
.nt__body { min-width: 0; }
.nt__body p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; color: var(--claro); }
.nt__body .nt__title { margin: 0 0 8px; font: 700 1.25rem/1.15 var(--f-display); color: var(--oro); }
.nt__body .nt__beta { padding-top: 8px; border-top: 1px solid var(--linea); color: var(--oro-claro); }
.nt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.nt__more { color: #9fd8f7; font-size: 0.85rem; font-weight: 700; text-decoration: underline; }
body.ps-notice-open .rt { display: none; }

body:has(#ps-welcome) #notification-container { top: calc(var(--hdr-h, var(--header-h)) + 54px); }
#notification-container .bt-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
#notification-container a.bt-link { color: var(--oro-claro); font-weight: 800; text-decoration: underline; }
#notification-container a.bt-link:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 720px) {
  .av, .nt { display: block; }
  .av::after { content: ""; display: block; clear: both; }
  .av { padding: 14px 16px; }
  .av__icon, .nt > .av__icon { float: left; width: 34px; height: 34px; margin: 0 10px 0 0; }
  .av__icon svg { width: 16px; height: 16px; }
  .av__body .av__title, .nt__body .nt__title { display: flex; align-items: center; min-height: 34px; margin: 0 0 6px; }
  .av__body .av__title { font-size: 1.2rem; }
  .av__body p { font-size: 0.96rem; }
  .nt { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100dvh - var(--hdr-h, var(--header-h)) - 16px); padding: 14px; }
  .nt__body p { font-size: 0.88rem; line-height: 1.45; }
}

.nt__actions { position: sticky; bottom: -16px; z-index: 1; margin: 12px -18px -16px; padding: 10px 18px; background: var(--tinta); border-top: 1px solid var(--linea); }
@media (max-width: 720px) {
  .nt { padding: 12px; }
  .nt__body p { font-size: 0.8rem; line-height: 1.38; margin-bottom: 6px; }
  .nt__body .nt__title { font-size: 1.08rem; min-height: 28px; margin-bottom: 4px; }
  .nt > .av__icon { width: 28px; height: 28px; }
  .nt__actions { bottom: -12px; margin: 8px -12px -12px; padding: 8px 12px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .nt { left: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: min(232px, 34vw); max-height: calc(100dvh - var(--hdr-h, var(--header-h)) - 16px); padding: 8px 10px; }
  .nt__body p { font-size: 0.7rem; line-height: 1.3; margin-bottom: 4px; }
  .nt__body .nt__title { font-size: 0.95rem; min-height: 24px; margin-bottom: 2px; }
  .nt > .av__icon { width: 24px; height: 24px; margin-right: 6px; }
  .nt__actions { bottom: -8px; margin: 6px -10px -8px; padding: 6px 10px; }
  .nt .se-btn-sm { min-height: 36px; }
}
