/* Shared behavior styles. Page geometry lives in src/pages/<route>/layout.css. */
:root {
  --wame-navy: #002837;
  --wame-green: #8cff3c;
  --100dvh: 100dvh;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
a {
  text-decoration: none;
}
button,
[role="button"] {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #0cc3f6;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.mobile-navigation {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  color: var(--wame-navy);
  box-shadow: 0 10px 30px #0003;
  z-index: 100;
  display: grid;
  gap: 18px;
  font:
    600 16px "Manrope",
    sans-serif;
}
.form-status {
  color: #b91c1c;
  padding-top: 12px;
  font:
    14px/1.4 "Manrope",
    sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.mobile-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 100001;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: #0006;
  backdrop-filter: blur(4px);
}
.mobile-menu-layer [data-wame-menu] {
  color: white;
  font-family: "Manrope", sans-serif;
}
.marquee-container {
  display: flex;
  overflow: hidden;
}
.marquee {
  display: flex;
  flex-shrink: 0;
  min-width: var(--min-width, 100%);
  animation: marquee-scroll var(--duration, 45s) linear infinite;
}
.marquee-initial-child-container,
.marquee-child {
  display: flex;
  flex-shrink: 0;
}
.marquee-container:hover .marquee {
  animation-play-state: var(--pause-on-hover, running);
}
.marquee-container:active .marquee {
  animation-play-state: var(--pause-on-click, running);
}
@keyframes marquee-scroll {
  to {
    transform: translateX(-100%);
  }
}
.mobile-menu-layer ul {
  padding: 0 16px 32px;
  margin: 0;
  list-style: none;
}
.mobile-menu-layer ul a {
  color: white;
}
.mobile-menu-layer ul li:last-child a {
  color: black;
}
.mobile-menu-layer [aria-label="Cerrar menú"] {
  width: 32px;
  height: 32px;
  background: #ffffff1a;
  border-radius: 50%;
}
.mobile-menu-layer [data-wame-menu] > div:first-child > div {
  width: 40px;
  height: 4px;
  background: #fff6;
  border-radius: 999px;
}

/* Empty feedback must not add spacing to the authored registration card. */
.form-status:empty {
  display: none;
}

.registration-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #002837;
  border-top-color: transparent;
  border-radius: 50%;
  animation: registration-spin 1s linear infinite;
}
@keyframes registration-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Store artwork scales as one unit within each original responsive badge size. */
#container [data-store-badge] {
  container-type: inline-size;
  display: flex;
  align-items: center;
  padding: 0;
  border: 1.5px solid #a6a6a6;
  overflow: hidden;
  color: #fff;
}
#container [data-store-badge] .store-badge-icon {
  display: block;
  position: static;
  flex: 0 0 18cqw;
  width: 18cqw;
  height: 21cqw;
  margin-left: 6cqw;
  object-fit: contain;
}
#container [data-store-badge] .store-badge-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 65cqw;
  margin-left: 6cqw;
  white-space: nowrap;
}
#container [data-store-badge] .store-badge-caption {
  font: 400 6cqw/1.25 Arial, sans-serif;
  letter-spacing: 0;
}
#container [data-store-badge] .store-badge-title {
  font: 400 13cqw/1.05 Arial, sans-serif;
  letter-spacing: -0.25px;
}
#container [data-store-badge] .store-badge-wordmark {
  display: block;
  position: static;
  width: 61cqw;
  height: 15cqw;
  object-fit: contain;
  object-position: left center;
}
/* The exported Google Play wordmark uses an inverted SVG coordinate system. */
#container [data-store-badge] .store-badge-wordmark { transform: scaleY(-1); }

/* Keep language selection outside the original page geometry. */
.language-switch {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 12px;
  background: #002837;
  color: white;
  font: 14px sans-serif;
}
.language-switch a { color: inherit; text-underline-offset: 4px; }
.language-switch a[aria-current] { color: #8cff3c; font-weight: 700; }
.language-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
