/* Arona Show — splash page styles
   Replicated from aronashow.com (Wix). Positions are expressed in vw so the
   layout scales with the viewport the same way the Wix "scaling factor" does. */

/* Self-hosted Google Fonts (SIL Open Font License), latin subset: no third-party
   request in the critical path. Questrial is preloaded from the <head>. */
@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/questrial-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --teal: #8cefe9;
  --btn-font: normal normal normal 16px/1.4em 'Questrial', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Questrial', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

/* ---------- Hero section ---------- */

.hero {
  position: relative;
  /* Never shorter than the viewport, and always tall enough to contain the
     lowest positioned element (language flags at ~50vw + their height). */
  min-height: 100vh;
  min-height: max(100vh, 54vw);
  width: 100%;
  overflow: hidden;
  background-color: var(--black);
  background-image: url('../assets/hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero > * {
  position: absolute;
  z-index: 1;
}

/* Background video (the live site uses a looping stage video; the photo is its poster/fallback) */
.hero-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* Top-left: Laboratorio Escénico logo */
.lab-logo {
  left: 2.7vw;
  top: 2.99vw;
  width: 6.11%;
}

/* Left: awards strip */
.premios {
  left: 2.07vw;
  top: 7.88vw;
  width: 31.27%;
}

/* Top-right: Tickets button */
.tickets {
  right: 16.56vw;
  top: 1.89vw;
}

/* Top-right corner: sponsor logo */
.sponsor {
  right: 1.84vw;
  top: 1.66vw;
  width: 13.36%;
}

/* Centre: Arona logo */
.arona-logo {
  left: 50%;
  top: 35.86vw;
  width: 28.63%;
  transform: translateX(-50%);
  margin-left: 0.47vw;
}

/* Centre: ENTRAR button */
.entrar {
  left: 50%;
  top: 45.46vw;
  transform: translateX(-50%);
}

/* Centre: language switcher */
.lang {
  left: 50%;
  top: 50.39vw;
  transform: translateX(-50%);
}

/* Centre, under the flags: link to the FAQ page */
.home-faq {
  left: 50%;
  top: 54vw;
  transform: translateX(-50%);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--white);
  opacity: .8;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
  transition: opacity .3s, color .3s;
}
.home-faq:hover,
.home-faq:focus-visible { opacity: 1; color: var(--teal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 50px;
  padding: 2px;
  border: 2px solid var(--teal);
  border-radius: 100px;
  background-color: var(--teal);
  color: var(--black);
  font: var(--btn-font);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.4s ease 0s, background-color 0.4s ease 0s, color 0.4s ease 0s;
}

.btn:hover,
.btn:focus-visible {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Language switcher ---------- */

.lang ul {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}

.lang li {
  display: flex;
}

.lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang a img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.lang a:hover,
.lang a:focus-visible,
.lang a[aria-current='true'] {
  opacity: 1;
}

.lang a:hover {
  transform: scale(1.1);
}

/* ---------- Mobile layout (mirrors the Wix mobile breakpoint) ---------- */

@media (max-width: 750px) {
  .hero {
    min-height: 160vw;
    min-height: max(100vh, 160vw);
  }

  .lab-logo {
    left: 5.77vw;
    top: 7.48vw;
    width: 18.8%;
  }

  .premios {
    left: 50%;
    top: 134.9vw;
    width: 86.31%;
    transform: translateX(-50%);
  }

  .tickets {
    right: auto;
    left: 50%;
    top: 5.31vw;
    transform: translateX(-50%);
  }

  .sponsor {
    right: 1.01vw;
    top: 5.31vw;
    width: 29.3%;
  }

  .arona-logo {
    top: 97.52vw;
    width: 70.54%;
    margin-left: 0;
  }

  .entrar {
    top: 118.97vw;
  }

  .lang {
    top: 149.54vw;
  }

  .home-faq {
    top: 161vw;
  }

  .btn {
    width: 120px;
    min-height: 40px;
  }
}

/* Google rating badge under the Tickets button */
.home-rating {
  right: 16.56vw;
  top: calc(1.89vw + 60px);
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.home-rating-stars { display: flex; gap: 2px; color: #f1ab06; }
.home-rating-stars svg { width: 15px; height: 15px; }
.home-rating:hover, .home-rating:focus-visible { color: var(--teal); }
@media (max-width: 750px) {
  .home-rating {
    right: auto;
    left: 50%;
    top: calc(5.31vw + 48px);
    width: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 13px;
    white-space: nowrap;
  }
  .home-rating-stars svg { width: 13px; height: 13px; }
}
