* {
  box-sizing: border-box;
}

img.main-logo {
  width: min(400px, 60vh) !important;
  max-height: 12dvh;
  object-fit: contain;
  margin: 0 auto 2.5vh auto;
  display: block;
  text-align: center;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

body.splash-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: scroll;
  padding: 1dvh 0;
}

#preloadContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  overflow: scroll;
  gap: 5vh;
  padding: 0 1rem;
}

.top-part {
  display: flex;
  flex-direction: column;
}

body.ficha-page{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  min-height: 100%;
  overflow-y: scroll;
  height: 100vh;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 1rem 0;
  width: 100%;
  max-width: 100%;
}
.stage {
  width: fit-content;
  height: fit-content;
  max-width: 100%;
}

body.splash-page .partners {
  justify-self: stretch;
  padding: clamp(2px, 1.5dvh, 16px) 3vw;
}

.project-message {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1em, 2.6vh, 1.3em);
  line-height: 1.5em;
  text-align: center;
  margin-top: clamp(0.5em, 3dvh, 2em);
  margin-bottom: clamp(1em, 5dvh, 4em);
}
body.splash-page .project-message {
  font-size: clamp(0.75em, 2.6dvh, 1.3em);
  line-height: 1.3em;
  margin-top: clamp(2px, 2dvh, 2em);
  margin-bottom: clamp(4px, 3dvh, 4em);
}

/* ---------- Ficha-tecnica ---------- */
table.credits {
  margin-left: auto;
  margin-right: auto;
  border-style: none;
}

td.credits {
  padding: 5px;
  width: 40%;
  vertical-align: text-top;
}

/* ------------ Shared header ---------- */
h1 {
  font-size: clamp(1.5em, 4.5vh, 2.6em);
  font-family: 'Oswald', sans-serif;
  text-align: center;
}

.local {
  margin-top: -2vh;
  font-size: clamp(1em, 3vh, 1.8em);
  font-family: 'Lato', sans-serif;
  text-align: center;
}

body.splash-page h1 {
  font-size: clamp(1em, 4.5dvh, 2.6em);
}

body.splash-page .local {
  margin-top: -1dvh;
  font-size: clamp(0.75em, 3dvh, 1.8em);
}

body.splash-page img.main-logo {
  margin: 0 auto clamp(4px, 2.5dvh, 20px) auto;
}

h2 {
  font-size: clamp(1.2em, 3vh, 2em);
  margin-top: 1.5vh;
  margin-bottom: 1vh;
  font-family: 'Oswald', sans-serif;
  text-align: center;
}

table.credits {
  margin-left: auto;
  margin-right: auto;
}

td.credits {
  padding: clamp(2px, 0.5vh, 5px);
}

/* ---------- Shared footer / partners logic ---------- */
.partners {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(5px, 2vw, 24px);
  padding: 1rem 3vw;
  width: 100%;
  max-width: 100%;
}

.partners-center {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: clamp(10px, 2vw, 24px);
}

.partners-right {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
}

.partner-roles {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.partner-roles h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.7em, 1.4vw, 0.9em);
  font-weight: lighter;
  text-align: left;
  vertical-align: text-top;
  white-space: nowrap;
  margin: 0 0 0.5vh 0;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: clamp(6px, 1vw, 10px);
  min-width: 0;
}

.partner-logos img {
  max-height: min(60px, 8vh);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.splash-page .partners {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-items: center;
}

body.splash-page .partners-center {
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.splash-page .partners-center::-webkit-scrollbar {
  display: none;
}

body.splash-page .partner-roles {
  flex: 0 0 auto;
}

body.splash-page .partner-logos img {
  max-height: min(50px, 6dvh);
}