[hidden] { display: none !important; }
body:has(dialog[open]) { overflow: hidden; }

.mobile-nav { max-height: 75dvh; overflow: auto; padding-bottom: 1rem; }
.mobile-nav a { display: block; padding: .75rem 0; color: #fff5df; }
.mobile-nav a:hover { color: #ffd444; }

.siareg-post-cover { aspect-ratio: 16 / 10; overflow: hidden; }
.siareg-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.siareg-float {
  display: grid; place-items: center; position: fixed; z-index: 45; bottom: 1.25rem;
  width: 3.125rem; height: 3.125rem; border-radius: 50%; box-shadow: 0 4px 12px #0004;
}
.siareg-float:focus-visible { outline: 3px solid #eeb000; outline-offset: 3px; }
.siareg-whatsapp { left: 1.25rem; background: #147747; color: #fff; }
.siareg-top { right: 1.25rem; background: #392218; color: #fff; font-size: 1.4rem; }
[data-carousel] [aria-current="true"] > span { background: #ffd444; width: 1.4rem; }
[data-carousel] [aria-current="false"] > span { background: #fffc; width: .5rem; }
@media (max-width: 639px) { .siareg-raised { bottom: 6rem; } }
@media (max-width: 1023px) {
  .siareg-home-float { display: none; }
  body:has(.siareg-home-float) .siareg-top { bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-carousel] * { transition-duration: 0s !important; }
}

.siareg-promo { margin: auto; max-width: min(28rem, calc(100% - 2rem)); }
.siareg-promo::backdrop { background: #19120dd1; }
.siareg-promo-close {
  position: absolute; right: .5rem; top: .5rem; min-width: 2.75rem; min-height: 2.75rem;
  border-radius: 50%; color: #fff5df; font-size: 1.6rem;
}
.siareg-promo-close:focus-visible { outline: 2px solid #ffd444; }

.siareg-whatsapp { width: 3.75rem; height: 3.75rem; }
.siareg-whatsapp svg { width: 1.75rem; height: 1.75rem; }

.region-carousel { display: flex; align-items: center; gap: .5rem; }
.region-tabs {
  display: flex; flex: 1; min-width: 0; gap: .25rem; overflow-x: auto;
  padding: .4rem .4rem; scrollbar-width: none;
}
.region-tabs::-webkit-scrollbar { display: none; }
.region-arrow {
  display: grid; flex: 0 0 2.5rem; height: 2.5rem; place-items: center;
  border-radius: 50%; color: #fff5df; background: #fff2;
}
.region-arrow:hover:not(:disabled) { color: #2a160c; background: #ffd444; }
.region-arrow:disabled { opacity: .28; }
.region-arrow:focus-visible { outline: 2px solid #ffd444; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .siareg-whatsapp { animation: whatsapp-beat 2.1s ease-in-out infinite; }
  .siareg-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #36ce7f;
    border-radius: inherit;
    pointer-events: none;
    animation: whatsapp-pulse 2.1s ease-out infinite;
  }

  .siareg-reveal-pending:not(:focus-within) { opacity: 0; }
  .siareg-reveal { animation: siareg-enter 780ms cubic-bezier(.2, .65, .3, 1) var(--reveal-delay, 0ms) backwards; }
  .siareg-reveal:focus-within { animation: none; }

  @keyframes whatsapp-beat {
    0%, 40%, 100% { transform: scale(1); }
    18% { transform: scale(1.16); }
  }

  @keyframes whatsapp-pulse {
    0% { opacity: .85; transform: scale(1); }
    68%, 100% { opacity: 0; transform: scale(1.48); }
  }

  @keyframes siareg-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .siareg-reveal-pending, .siareg-reveal { opacity: 1 !important; animation: none !important; }
}

.mobile-products-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-products-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: .75rem 0; color: #fff5df;
}
.mobile-products-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-products-toggle:focus-visible { outline: 2px solid #ffd444; border-radius: .25rem; }
.mobile-products-submenu { padding-left: 1rem; border-left: 2px solid #ffd444; margin-bottom: .5rem; }

.region-tabs [role="tab"]:hover,
.region-tabs [role="tab"]:active,
.region-tabs [role="tab"][aria-selected="true"] {
  background-color: #ffe600;
  color: #2a160c;
}
.region-tabs [role="tab"]:focus-visible { outline: 2px solid #ffe600; outline-offset: 2px; }

@media (max-width: 1023px) {
  body.has-mobile-bar,
  body:has(.siareg-mobile-bar) {
    padding-bottom: 0 !important;
    background-color: #2a160c;
  }
  body.has-mobile-bar > footer,
  body:has(.siareg-mobile-bar) > footer {
    margin-bottom: 0 !important;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
  .siareg-mobile-bar { background-color: #fff; }
}
