:root {
  --page-bg: #080808;
  --red-bg: #7d0714;
  --display-font: "BadaBoom BB", Impact, sans-serif;
  --comic-font: "Anime Ace 2.0 Regular", cursive;
}

@font-face {
  font-family: "BadaBoom BB";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/badabb.woff2") format("woff2");

}

@font-face {
  font-family: "Anime Ace 2.0 Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/animeace2_reg.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

.landing {
  width: 100%;
  overflow: hidden;
  background: var(--page-bg);
  container-type: inline-size;
}

.section {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  overflow: hidden;
  container-type: inline-size;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.asset {
  position: absolute;
  height: auto;
}

.asset img {
  width: 100%;
  height: auto;
}

.section-transition-01 {
  --transition-h: clamp(36px, 6.5cqw, 132px);
  position: relative;
  z-index: 50;
  width: 100%;
  height: var(--transition-h);
  margin: calc(var(--transition-h) * -0.62) 0;
  overflow: visible;
  pointer-events: none;
}

.section-transition-01 img {
  position: absolute;
  top: 56%;
  left: 50%;
  width: 112cqw;
  max-width: none;
  transform: translate(-50%, -50%);
}

.section-transition-02 {
  --transition-h: clamp(36px, 6.5cqw, 132px);
  position: relative;
  z-index: 50;
  width: 100%;
  height: var(--transition-h);
  margin: calc(var(--transition-h) * -0.62) 0;
  overflow: visible;
  pointer-events: none;
}

.section-transition-02 img {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 112cqw;
  max-width: none;
  transform: translate(-50%, -50%);
}

.transition-02 {
  --transition-h: clamp(42px, 7.4cqw, 148px);
}

.transition-03 {
  --transition-h: clamp(48px, 9cqw, 174px);
}

.section-hero {
  aspect-ratio: 1 / 1.2;
  background: var(--red-bg);
}

.section-hero .section-bg {
  background-image: url("images/section1/background.webp");
}

.hero-header {
  position: absolute;
  z-index: 10;
  top: 2.4cqw;
  left: 50%;
  display: grid;
  width: 78.1cqw;
  grid-template-columns: 13cqw 1fr 16cqw;
  align-items: center;
  gap: 3cqw;
  transform: translateX(-50%);
}

.hero-logo,
.hero-register,
.route-button,
.bases-overlay__download {
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-register,
.route-button,
.bases-overlay__download {
  position: relative;
}

.hero-logo {
  width: 13cqw;
}

.hero-register {
  justify-self: end;
  width: 15.6cqw;
}

.hero-logo:hover,
.hero-register:hover,
.route-button:hover,
.sponsor-marca:hover,
.bases-overlay__download:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.kit-button:hover {
  filter: brightness(1.08);
  transform: translateX(-50%) translateY(-3px);
}

.hero-register img,
.kit-button img,
.route-button img,
.bases-overlay__download img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-register-hover,
.kit-button-hover,
.route-button-hover,
.bases-overlay__download-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-register-hover {
  transform: scale(0.92);
  transform-origin: center;
}

.hero-register-image,
.kit-button-image,
.route-button-image,
.bases-overlay__download-image {
  transition: opacity 180ms ease;
}

.hero-register:hover .hero-register-hover,
.hero-register:focus-within .hero-register-hover,
.kit-button:hover .kit-button-hover,
.kit-button:focus-within .kit-button-hover,
.route-button:hover .route-button-hover,
.route-button:focus-within .route-button-hover,
.bases-overlay__download:hover .bases-overlay__download-hover,
.bases-overlay__download:focus-within .bases-overlay__download-hover {
  opacity: 1;
}

.hero-register:hover .hero-register-image,
.hero-register:focus-within .hero-register-image,
.kit-button:hover .kit-button-image,
.kit-button:focus-within .kit-button-image,
.route-button:hover .route-button-image,
.route-button:focus-within .route-button-image,
.bases-overlay__download:hover .bases-overlay__download-image,
.bases-overlay__download:focus-within .bases-overlay__download-image {
  opacity: 0;
}

.hero-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2cqw;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-nav a {
  display: block;
  color: #fff;
  font-family: var(--display-font);
  font-size: 2.6cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 0.08em 0 #000,
    0.08em 0 0 #000,
    -0.08em 0 0 #000,
    0 -0.08em 0 #000;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-nav a:hover {
  color: #ffe348;
  transform: translateY(-2px);
}

.hero-welcome {
  top: 15.5%;
  left: 43%;
  width: 32.8cqw;
  transform: translateX(-50%);
}

.hero-name {
  top: 18%;
  left: 50%;
  width: 70.3cqw;
  transform: translateX(-50%);
}

.hero-comic {
  left: 19%;
  bottom: 14%;
  width: 48cqw;
}

.hero-character {
  right: 15%;
  bottom: 15%;
  width: 25cqw;
}

.section-about {
  aspect-ratio: 1 / 0.8;
}

.section-about .section-bg {
  background-image: url("images/section2/background.webp");
}

.about-characters {
  top: 10%;
  right: 30%;
  width: 39.6cqw;
}

.about-copy {
  top: 30%;
  left: 50%;
  width: 61.5cqw;
  transform: translateX(-50%);
}

.about-subcopy {
  top: 70%;
  left: 48%;
  width: 46.9cqw;
  transform: translateX(-50%);
}

.section-kit {
  aspect-ratio: 1 / 0.7;
}

.section-kit .section-bg {
  background-image: url("images/section3/background.webp");
}

.kit-title {
  top: 12%;
  left: 50%;
  width: 53.1cqw;
  transform: translateX(-50%);
}

.kit-button {
  left: 50%;
  bottom: 45%;
  width: 18.75cqw;
  transform: translateX(-50%);
  transition: transform 180ms ease, filter 180ms ease;
}

.section-route {
  aspect-ratio: 1 / 0.95;
}

.section-route .section-bg {
  background-image: url("images/section4/background.webp");
}

.route-title {
  top: 15%;
  left: 30%;
  width: 35.2cqw;
  transform: translateX(-50%);
}

.route-map {
  top: 20%;
  left: 50%;
  width: 59.4cqw;
  transform: translateX(-50%);
}

.route-option {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.2cqw, 16px);
  transform: translateX(-50%);
}

.route-distance {
  width: 13.5cqw;
}

.route-2k {
  top: 45%;
  left: 20%;
}

.route-7k {
  top: 60%;
  left: 45%;
}

.route-12k {
  top: 40%;
  left: 65%;
}

.route-button {
  width: 13cqw;
}

body.route-modal-open {
  overflow: hidden;
}

.route-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(125, 7, 20, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.route-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.route-overlay__panel {
  position: relative;
  width: min(92vw, 1040px);
  max-height: 86vh;
  padding: clamp(18px, 3.5vw, 32px);
  border-radius: clamp(14px, 2.5vw, 26px);
  background: #0a0a0a;
  border: 3px solid var(--route-accent, #bb0714);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: grid;
  gap: clamp(8px, 2vw, 18px);
}

.route-overlay__label {
  margin: 0;
  text-align: center;
  font-family: var(--display-font);
  font-size: clamp(20px, 4vw, 42px);
  color: var(--route-accent, #bb0714);
  text-shadow:
    0 0.08em 0 #000,
    0.08em 0 0 #000,
    -0.08em 0 0 #000,
    0 -0.08em 0 #000;
}

.route-overlay__image {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  border-radius: clamp(8px, 1.5vw, 16px);
}

.route-overlay__close {
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  width: clamp(36px, 5vw, 54px);
  height: clamp(36px, 5vw, 54px);
  border: 0;
  border-radius: 999px;
  background: var(--route-accent, #bb0714);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.route-overlay__close:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.route-overlay__close svg {
  width: 58%;
  height: 58%;
}

/* ---- Modal de Bases (previsualizacion PDF) ---- */
body.bases-modal-open {
  overflow: hidden;
}

.bases-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(125, 7, 20, 0.82);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.bases-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bases-overlay__panel {
  position: relative;
  width: min(94vw, 920px);
  max-height: 92vh;
  padding: clamp(18px, 3vw, 30px);
  border-radius: clamp(14px, 2.5vw, 24px);
  background: #0a0a0a;
  border: 3px solid #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(12px, 2vw, 20px);
}

.bases-overlay__label {
  margin: 0;
  text-align: center;
  font-family: var(--display-font);
  font-size: clamp(24px, 5vw, 46px);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 0.08em 0 #000,
    0.08em 0 0 #000,
    -0.08em 0 0 #000,
    0 -0.08em 0 #000;
}

.bases-overlay__viewer {
  position: relative;
  width: 100%;
  height: clamp(360px, 64vh, 760px);
  border-radius: clamp(8px, 1.5vw, 14px);
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bases-overlay__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bases-overlay__download {
  justify-self: center;
  display: inline-flex;
  width: clamp(180px, 32vw, 260px);
}

.bases-overlay__close {
  position: absolute;
  top: clamp(10px, 2vw, 16px);
  right: clamp(10px, 2vw, 16px);
  width: clamp(36px, 5vw, 52px);
  height: clamp(36px, 5vw, 52px);
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 160ms ease, filter 160ms ease;
}

.bases-overlay__close:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.bases-overlay__close svg {
  width: 58%;
  height: 58%;
}

.section-sponsors {
  aspect-ratio: 1 / 1.2;
}

.section-sponsors .section-bg {
  background-image: url("images/section5/background.webp");
}

.sponsors-content {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 51cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0px, 2.6cqw, 24px);
  transform: translateX(-50%);
}

.sponsors-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(-350px, -12cqw, -310px);
}

.sponsors-title {
  width: 46.9cqw;
  height: auto;
}

.sponsor-slot {
  width: 100%;
  max-height: clamp(200px, 34cqw, 520px);
  padding: clamp(12px, 2.6cqw, 28px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(110px, 16cqw, 180px), 1fr));
  gap: clamp(10px, 2cqw, 24px);
  align-content: start;
  justify-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.24);
  border-radius: clamp(12px, 2cqw, 24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sponsor-slot::-webkit-scrollbar {
  width: 10px;
}

.sponsor-slot::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.sponsors {
  width: 100%;
  height: clamp(44px, 7cqw, 110px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.sponsor-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2cqw, 24px);
  padding: clamp(10px, 2cqw, 24px) 0;
  width: 100%;
}

.sponsor-divider {
  width: 25%;
  height: clamp(2px, 0.32cqw, 5px);
  background: #fff;
}

.sponsor-marca {
  width: 16.7cqw;
}

.sponsor-marca a {
  position: relative;
  display: inline-block;
}

.footer-marca-image,
.footer-marca-hover {
  display: block;
  width: 100%;
  height: auto;
}

.footer-marca-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.footer-marca-image {
  transition: opacity 180ms ease;
}

.sponsor-marca:hover .footer-marca-hover,
.sponsor-marca:focus-within .footer-marca-hover {
  opacity: 1;
}

.sponsor-marca:hover .footer-marca-image,
.sponsor-marca:focus-within .footer-marca-image {
  opacity: 0;
}

.sponsors-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.footer-divider {
  width: 80%;
  height: clamp(2px, 0.32cqw, 5px);
  margin: 0 auto;
  background: #fff;
}

.footer-inner {
  display: grid;
  width: 78.1cqw;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 6cqw, 80px);
  row-gap: clamp(10px, 3cqw, 36px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(18px, 5cqw, 80px) 0;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.2cqw, 12px);
}

.footer-title {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(13px, 2.6cqw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-link {
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(10px, 1.6cqw, 22px);
  letter-spacing: 0;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffe348;
}

.footer-contact {
  grid-column: 1;
  grid-row: 1;
}

.footer-work {
  grid-column: 1;
  grid-row: 2;
}

.footer-follow {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.footer-brand {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.footer-follow-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqw, 18px);
}

.footer-socials {
  display: flex;
  gap: clamp(6px, 1cqw, 12px);
}

.footer-social {
  display: grid;
  width: clamp(24px, 4cqw, 48px);
  height: clamp(24px, 4cqw, 48px);
  place-items: center;
  text-decoration: none;
}

.footer-brand {
  align-items: flex-end;
}

.footer-brand-image {
  width: 16.7cqw;
  height: auto;
}

@media (max-width: 1280px) {
  .hero-header {
    grid-template-columns: minmax(46px, 15cqw) 1fr minmax(76px, 18cqw);
    width: 86cqw;
  }

  .sponsors-header {
    margin-top: clamp(-320px, -10cqw, -210px);
  }

  .hero-nav ul {
    gap: clamp(5px, 2.2cqw, 14px);
  }

  .hero-nav li a {
    font-size: clamp(12px, 3.5cqw, 40px);
  }

  .hero-comic {
    width: 48cqw;
  }

  .hero-character {
    width: 25cqw;
  }

  .about-characters {
    width: 39.6cqw;
  }

  .about-subcopy {
    width: 45cqw;
    top: 75%;
  }

  .section-transition-01 img {
    top: 50%;
    width: 122cqw;
  }

  .section-transition-02 img {
    width: 122cqw;
  }

  .kit-button {
    width: 25cqw;
  }

  .section-route{
    aspect-ratio: 1 ;
  }

  .route-map {
    width: 65cqw;
  }

  .route-title{
    width: 40cqw;
  }

  .route-12k, .route-2k, .route-7k{
    width: 18cqw;
  }

  .sponsors-content {
    width: 82cqw;
  }

  .sponsor-slot {
    max-height: clamp(200px, 38cqw, 480px);
    grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 18cqw, 170px), 1fr));
  }

  .sponsor-divider {
    width: 35%;
  }

  .sponsor-marca {
    width: 25cqw;
  }

  .sponsors {
    height: clamp(40px, 7.5cqw, 100px);
  }

  .footer-inner {
    width: 86cqw;
    column-gap: clamp(12px, 4cqw, 48px);
    row-gap: clamp(8px, 2cqw, 22px);
  }

  .footer-title, .footer-link {
    font-size: clamp(10px, 2.5cqw, 18px);
  }

  .footer-social{
    width: clamp(10px, 4cqw, 40px);
    height: clamp(10px, 4cqw, 40px);
  }

  .footer-brand-image{
    width: 30cqw;
  }
}

@media (max-width: 700px) {
  .hero-header {
    grid-template-columns: minmax(46px, 15cqw) 1fr minmax(76px, 18cqw);
    width: 80cqw;
  }

  .hero-nav ul {
    gap: clamp(5px, 2.2cqw, 14px);
  }

  .hero-nav li a {
    font-size: clamp(12px, 3.5cqw, 40px);
  }

  .hero-comic {
    width: 48cqw;
  }

  .hero-character {
    width: 25cqw;
  }

  .about-characters {
    width: 39.6cqw;
  }

  .about-subcopy {
    width: 45cqw;
    top: 75%;
  }

  .section-transition-01 img {
    top: 50%;
    width: 122cqw;
  }

  .section-transition-02 img {
    width: 122cqw;
  }

  .kit-button {
    width: 25cqw;
  }

  .section-route{
    aspect-ratio: 1 ;
  }

  .route-map {
    width: 65cqw;
  }

  .route-title{
    width: 40cqw;
  }

  .route-12k, .route-2k, .route-7k{
    width: 18cqw;
  }

  .sponsor-marca {
    width: 25cqw;
  }

  .sponsors-header {
    margin-top: clamp(-80px, -5.5cqw, -70px);
  }

  .sponsors-content {
    width: 88cqw;
  }

  .sponsor-slot {
    max-height: clamp(180px, 46cqw, 420px);
    padding: clamp(6px, 2.2cqw, 14px);
    grid-template-columns: repeat(auto-fit, minmax(clamp(80px, 22cqw, 140px), 1fr));
    gap: clamp(6px, 2cqw, 14px);
  }

  .sponsors {
    height: clamp(25px, 7.5cqw, 100px);
  }

  .footer-inner {
    width: 80cqw;
    column-gap: 14px;
    row-gap: 10px;
  }

  .footer-title, .footer-link {
    font-size: clamp(10px, 2.5cqw, 18px);
  }

  .footer-social{
    width: clamp(10px, 4cqw, 40px);
    height: clamp(10px, 4cqw, 40px);
  }

  .footer-brand-image{
    width: 30cqw;
  }
}

@media (max-width: 430px) {
  .hero-header {
    grid-template-columns: minmax(46px, 15cqw) 1fr minmax(76px, 18cqw);
    width: 90cqw;
    gap: 6px;
  }

  .footer-inner {
    padding-bottom: 14px;
  }
}
