#ag-boletin-portada {
  --ancho-aviso: 660px;
  --alto-aviso: 516px;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(var(--ancho-aviso), calc(var(--ag-ancho-visible, 100vw) - 48px));
  height: min(var(--alto-aviso), 79vh);
  height: min(var(--alto-aviso), calc(var(--ag-alto-visible, 100dvh) * .79));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 22px;
  overflow: hidden;
  background: rgb(248 251 250 / 91%);
  box-shadow: inset 0 1px 1px #fff, 0 20px 60px rgb(23 32 59 / 24%), 0 2px 6px rgb(29 44 66 / 12%);
}
#ag-boletin-portada[data-area-visible] {
  inset: var(--ag-centro-y) auto auto var(--ag-centro-x);
  margin: 0;
  transform: translate(-50%, -50%);
}
#ag-boletin-portada[data-vista="general"] { --ancho-aviso: 550px; --alto-aviso: 512px; }
#ag-boletin-portada[data-vista="confirmacion"] { --ancho-aviso: 480px; --alto-aviso: 396px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #ag-boletin-portada {
    background: rgb(248 251 250 / 54%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
  }
}
#ag-boletin-portada:not([open]) { display: none; }
#ag-boletin-portada::backdrop {
  background: rgb(16 23 42 / 53%);
  animation: ag-boletin-oscurecer 180ms ease-out;
}
@keyframes ag-boletin-oscurecer {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #ag-boletin-portada::backdrop { animation: none; }
}
html[data-ag-boletin-scroll] {
  overscroll-behavior: none !important;
  scroll-behavior: auto !important;
}
html[data-ag-boletin-scroll]:not([data-ag-boletin-scroll="barra-nativa"]) {
  overflow: hidden !important;
}
html[data-ag-boletin-scroll="reservar"] { scrollbar-gutter: stable !important; }
#ag-boletin-portada iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
}
@media (max-width: 600px) {
  #ag-boletin-portada {
    --alto-movil: 535px;
    width: min(380px, calc(var(--ag-ancho-visible, 100vw) - 28px));
    height: min(var(--alto-movil), calc(100vh - 24px));
    height: min(var(--alto-movil), calc(var(--ag-alto-visible, 100dvh) - 24px));
    border-radius: 19px;
  }
  #ag-boletin-portada[data-vista="confirmacion"] { --alto-movil: 380px; }
}
@media (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  html:not([data-ag-ventana="normal"]) #ag-boletin-portada {
    --tope-horizontal: 405px;
    --ancho-horizontal: 720px;
    width: min(var(--ancho-horizontal), calc(var(--ag-ancho-visible, 100vw) - 28px));
    height: min(var(--tope-horizontal), calc(100vh - 20px));
    height: min(var(--tope-horizontal), calc(var(--ag-alto-visible, 100dvh) - 20px));
    border-radius: 19px;
  }
  html:not([data-ag-ventana="normal"]) #ag-boletin-portada[data-vista="confirmacion"] {
    --ancho-horizontal: 480px; --tope-horizontal: 360px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  #ag-boletin-portada { background: #f8fbfa; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
