/* --- Reset mínimo --- */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: url("../img/bgdesktop-ysya.png") center center / cover no-repeat fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #182237;
}

/* Página completa */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Logo sponsor fijo en esquina superior izquierda */
.logo-sponsor {
  position: fixed;
  top: clamp(12px, 2vw, 32px);
  left: clamp(12px, 2vw, 32px);
  width: 4%;
  height: auto;
  z-index: 20;
}

/* --- Sección: Banner --- */
.section-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vh, 44px) 16px clamp(8px, 1.5vh, 16px);
}

.banner-desktop {
  width: clamp(220px, 28vw, 520px);
  height: auto;
}

/* --- Sección: Botones --- */
.section-botones {
  display: flex;
  justify-content: center;
  align-items: start;
  padding: clamp(8px, 1.5vh, 18px) 24px clamp(20px, 4vh, 40px);
}

/* Grid de 4 columnas x 2 filas */
.botones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 18px);
  width: min(88vw, 1500px);
  margin: 0 auto;
}

.boton {
  display: block;
  cursor: pointer;
}

.boton img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.boton img:hover {
  transform: scale(0.92);
  outline-color: rgba(49, 138, 172, 0);
  outline-offset: 80px;
  text-shadow: 1px 1px 6px #fff;
}

/* Ajuste para pantallas desktop bajas */
@media (min-width: 769px) and (max-height: 820px) {
  .section-banner {
    padding-top: clamp(12px, 2vh, 24px);
    padding-bottom: clamp(4px, 1vh, 10px);
  }

  .banner-desktop {
    width: clamp(200px, 24vw, 440px);
  }

  .section-botones {
    padding-top: clamp(4px, 1vh, 12px);
    padding-bottom: clamp(12px, 2vh, 24px);
  }

  .botones-grid {
    width: min(82vw, 1380px);
    gap: clamp(6px, 0.8vw, 14px);
  }
}

/* ===========================
   RESPONSIVE: versión mobile
   =========================== */
@media (max-width: 768px) {
  body {
    background-attachment: fixed;
  }

  .page {
    display: block;
    min-height: 100dvh;
  }

  .logo-sponsor {
    top: 12px;
    left: 12px;
    width: 12%;
  }

  .section-banner {
    padding: 0;
  }

  .banner-desktop {
    width: 100%;
  }

  .section-botones {
    padding: 10vh 0 32px;
  }

  .botones-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 88vw;
    max-width: 360px;
  }

  .boton img {
    width: 100%;
  }
}