@font-face {
  font-family: "RubikWeb";
  src: url("../fuente.php?f=rubik") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "BestieWeb";
  src: url("../fuente.php?f=bestie") format("opentype");
  font-display: swap;
}

body,
button,
input,
select,
textarea {
  font-family: "RubikWeb", system-ui, sans-serif;
}

.add-btn,
.primary,
.action,
.button-row button,
.button-row a,
.actions button {
  font-family: "RubikWeb", system-ui, sans-serif;
}

.hero h1 {
  font-family: "BestieWeb", "RubikWeb", system-ui, sans-serif;
}

.brand > span.school-logo {
  display: block;
  width: 38px;
  height: 58px;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("footer-coope.png");
  background-repeat: no-repeat;
  background-size: 464px 58px;
  background-position: -307px -7px;
}

.institutional-footer {
  min-height: 110px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #5946d6;
}

.institutional-footer img {
  display: block;
  width: min(640px, 100%);
  height: auto;
}

@media (max-width: 520px) {
  .brand > span.school-logo {
    width: 31px;
    height: 48px;
    background-size: 384px 48px;
    background-position: -254px -6px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 12px;
    line-height: 1.15;
  }

  .institutional-footer {
    min-height: 88px;
    padding: 16px 12px;
  }
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  isolation: isolate;
  background-image: url("festival-bg-desktop.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  display: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(760px, 68vw);
  height: auto;
  margin: auto;
  padding: 5vh 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1.festival-title {
  position: absolute;
  top: 15vh;
  left: 0;
  right: 0;
  width: min(400px, 75%);
  margin: 0 auto;
  line-height: 1;
  animation: festival-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 0 rgba(255, 255, 255, .75));
}

.festival-title img {
  display: block;
  width: 100%;
  height: auto;
}

.next-event {
  position: absolute;
  top: 44px;
  left: -470px;
  right: auto;
  width: 350px;
  margin: 0;
  padding: 11px 36px;
  text-align: center;
  border: 2px solid #171717;
  border-radius: 0;
  background: #ffd438;
  box-shadow: 4px 4px 0 #171717;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  transform: rotate(-35deg);
  transform-origin: center;
  animation: ribbon-glow 1.5s ease-in-out infinite;
}

.next-event span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff4b2b;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #171717;
  border-radius: 12px;
  background: #ffd438;
  box-shadow: 6px 6px 0 #171717;
  color: #171717;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero-cta span {
  display: inline-block;
  font-size: 21px;
  line-height: .7;
  animation: arrow-down .9s ease-in-out infinite alternate;
}

@keyframes ribbon-glow {
  0%, 100% { filter: brightness(1); box-shadow: 4px 4px 0 #171717; }
  50% { filter: brightness(1.12); box-shadow: 4px 4px 0 #171717, 0 0 18px rgba(255, 212, 56, .8); }
}

@keyframes arrow-down {
  from { transform: translateY(-3px); }
  to { transform: translateY(5px); }
}

@keyframes festival-float {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-10px) rotate(.5deg); }
}

@media (max-width: 520px) {
  .hero {
    min-height: calc(100svh - 68px);
    padding: 38px 18px 48px;
    background-image: url("festival-bg-mobile.png");
    background-position: center;
  }

  .hero-content {
    width: 88vw;
    height: 100%;
    padding: 4vh 0 0;
  }

  .hero h1.festival-title {
    width: 62vw;
    top: 10vh;
    margin-top: 0;
  }

  .next-event {
    top: 40px;
    left: -86px;
    width: 300px;
    padding: 9px 26px;
    font-size: 10px;
  }

  .hero-cta {
    bottom: 12px;
    width: max-content;
    max-width: calc(100vw - 34px);
    margin: 0;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-event,
  .hero-cta span,
  .festival-title {
    animation: none;
  }
}

.product-image {
  grid-column: 1 / -1;
  display: block;
  width: 170px;
  height: 170px;
  margin: 0 auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(23, 23, 23, .12));
  transition: transform .25s ease, opacity .2s ease;
}

.product-card .product-copy {
  grid-column: 1 / -1;
  text-align: center;
}

.saved-orders {
  margin: 24px 0 34px;
  padding: 20px;
  border: 2px solid #171717;
  border-radius: 18px;
  background: #fff8d8;
  box-shadow: 5px 5px 0 #171717;
}

.saved-orders h2 {
  margin-top: 0;
  font-size: 22px;
}

.saved-order-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: #171717;
  text-decoration: none;
}

.saved-order-link strong,
.saved-order-link small {
  display: block;
}

.saved-order-link > span:last-child {
  color: #5946d6;
  font-weight: 800;
  white-space: nowrap;
}

.recovery-help {
  margin-top: 26px;
}

.product-card:hover .product-image {
  transform: translateY(-4px) rotate(-1deg);
}

@media (max-width: 520px) {
  .product-image {
    width: 150px;
    height: 150px;
  }
}
