:root {
  --blue-900: #0b2f66;
  --blue-800: #174f91;
  --blue-700: #115fb1;
  --blue-500: #0e79d5;
  --red: #ff1744;
  --red-dark: #d80d35;
  --white: #ffffff;
  --gray-50: #f5f8fc;
  --gray-100: #e8eef7;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 18px 46px rgba(11, 47, 102, 0.18);
  --transition: all 0.22s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--gray-900);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(118deg, transparent 0 42%, rgba(255, 23, 68, 0.08) 42% 43%, transparent 43% 100%),
    linear-gradient(118deg, transparent 0 58%, rgba(14, 121, 213, 0.08) 58% 59%, transparent 59% 100%);
  background-size: 220px 220px, 310px 310px;
  animation: track-drift 18s linear infinite;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.event-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background-color: rgba(11, 47, 102, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  width: 132px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--red);
}

.nav-cta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-cta,
.btn-primary {
  background-color: var(--red);
  color: var(--white);
  padding: 12px 20px;
}

.nav-cta:hover,
.btn-primary:hover {
  background-color: var(--white);
  color: var(--blue-900);
  transform: translateY(-2px) skewX(-5deg);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--white);
  padding: 12px 20px;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-primary.light {
  background-color: var(--white);
  color: var(--blue-900);
}

.btn-primary.light:hover {
  background-color: var(--red);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background-color: currentColor;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 130px 0 82px;
  color: var(--white);
  background-color: var(--blue-900);
  background-image:
    linear-gradient(90deg, rgba(11, 47, 102, 0.96) 0%, rgba(11, 47, 102, 0.78) 42%, rgba(11, 47, 102, 0.2) 100%),
    url('../../images/events/corrida-emtel/hero-bg.jpg');
  background-size: 110% auto;
  background-position: center;
  overflow: hidden;
  animation: hero-pan 16s ease-in-out infinite alternate;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.hero::before {
  right: 7%;
  bottom: 9%;
  width: 210px;
  height: 72px;
  border: 28px solid var(--red);
  border-left-color: transparent;
  transform: rotate(-16deg);
  animation: accent-sprint 5.6s ease-in-out infinite;
}

.hero::after {
  left: -70px;
  bottom: -36px;
  width: 280px;
  height: 92px;
  border: 32px solid rgba(14, 121, 213, 0.9);
  border-right-color: transparent;
  transform: rotate(12deg);
  animation: accent-sprint 6.4s ease-in-out infinite reverse;
}

.hero-art {
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background-color: var(--red);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-content::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: min(520px, 78vw);
  height: 4px;
  background-image: repeating-linear-gradient(90deg, var(--red) 0 54px, transparent 54px 78px);
  transform: translateX(-50%) skewX(-24deg);
  animation: dash-run 1.15s linear infinite;
}

.event-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  background-color: var(--white);
  color: var(--blue-900);
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.awards-panel h2,
.location-copy h2,
.cta-box h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.04;
}

.hero h1 {
  margin: 22px 0 20px;
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  text-transform: uppercase;
}

.hero-logo-title {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
}

.hero-logo-title img {
  width: min(640px, 92vw);
  height: auto;
}

.hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 700;
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.section {
  padding: 82px 0;
}

.intro-section,
.location-section {
  background-color: var(--white);
}

.distances-section,
.awards-section {
  background-color: var(--gray-50);
}

.kit-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 47, 102, 0.96), rgba(23, 79, 145, 0.94)),
    var(--blue-900);
  color: var(--white);
}

.kit-section::before {
  content: '';
  position: absolute;
  inset: 18% -120px auto auto;
  width: 320px;
  height: 98px;
  border: 34px solid var(--red);
  border-left-color: transparent;
  border-radius: 999px;
  transform: rotate(-18deg);
  animation: accent-sprint 5.8s ease-in-out infinite;
}

.intro-layout,
.awards-layout,
.location-layout,
.kit-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.section-heading h2,
.awards-panel h2,
.location-copy h2,
.cta-box h2 {
  margin-top: 18px;
  color: var(--blue-900);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading.centered {
  max-width: 760px;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin: 0 auto;
}

.intro-copy {
  border-left: 6px solid var(--red);
  padding-left: 28px;
}

.intro-copy p,
.awards-panel p,
.location-copy p,
.cta-box p {
  color: var(--gray-700);
  font-size: 1.03rem;
}

.intro-copy p + p {
  margin-top: 18px;
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.distance-card {
  min-height: 260px;
  padding: 34px 28px;
  border: 1px solid var(--gray-100);
  border-top: 7px solid var(--red);
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.distance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 42%, rgba(255, 23, 68, 0.14) 42% 48%, transparent 48% 100%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.distance-card:hover {
  transform: translateY(-5px) skewX(-1.5deg);
}

.distance-card:hover::before {
  transform: translateX(120%);
}

.distance-number {
  display: block;
  color: var(--blue-800);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.distance-card h3 {
  margin: 18px 0 10px;
  color: var(--blue-900);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.distance-card p {
  color: var(--gray-700);
}

.kit-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.15fr 0.85fr;
}

.kit-image {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background-color: var(--blue-900);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.kit-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.kit-image:hover img {
  transform: scale(1.035);
}

.kit-copy {
  border-left: 7px solid var(--red);
  padding-left: 30px;
}

.kit-copy .eyebrow {
  color: var(--red);
}

.kit-copy h2 {
  margin-top: 18px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 900;
  line-height: 1.04;
}

.kit-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.awards-panel {
  padding: 42px;
  border-radius: 8px;
  background-color: var(--blue-900);
  color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.awards-panel::after {
  content: '';
  position: absolute;
  inset: auto -80px 28px auto;
  width: 240px;
  height: 44px;
  border-top: 8px solid rgba(255, 255, 255, 0.14);
  border-bottom: 8px solid rgba(255, 255, 255, 0.14);
  transform: rotate(-18deg);
  animation: lane-slide 4.8s ease-in-out infinite;
}

.awards-panel .eyebrow {
  color: var(--red);
}

.awards-panel h2,
.awards-panel p {
  color: var(--white);
}

.award-list {
  display: grid;
  gap: 14px;
}

.award-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background-color: var(--white);
  box-shadow: 0 8px 24px rgba(11, 47, 102, 0.08);
  transition: var(--transition);
}

.award-row:hover {
  transform: translateX(8px);
  border-left-color: var(--blue-500);
}

.award-row strong {
  color: var(--blue-900);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.award-row span {
  color: var(--gray-700);
  font-weight: 800;
  text-align: right;
}

.location-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.location-details span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
  background-color: var(--gray-100);
  color: var(--blue-900);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-map {
  overflow: hidden;
  border: 6px solid var(--blue-900);
  border-radius: 8px;
  background-color: var(--blue-900);
  box-shadow: var(--shadow);
  min-height: 420px;
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-map:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(11, 47, 102, 0.24);
}

.event-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-800);
  color: var(--white);
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  left: 8%;
  top: -44px;
  width: 230px;
  height: 78px;
  border: 30px solid var(--red);
  border-right-color: transparent;
  border-radius: 999px;
  transform: rotate(-10deg);
  animation: accent-sprint 5.2s ease-in-out infinite;
}

.cta-box {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.cta-box .eyebrow {
  color: var(--red);
  margin: 0 auto;
}

.cta-box h2,
.cta-box p {
  color: var(--white);
}

.cta-box p {
  max-width: 660px;
  margin: 18px auto 30px;
}

.event-footer {
  background-color: var(--blue-900);
  color: var(--white);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-credit a {
  color: var(--white);
}

.footer-credit a:hover {
  color: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-parallax {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

@keyframes hero-pan {
  0% {
    background-position: 48% center;
  }

  100% {
    background-position: 58% center;
  }
}

@keyframes accent-sprint {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 16px -10px;
  }
}

@keyframes dash-run {
  to {
    background-position-x: 78px;
  }
}

@keyframes lane-slide {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: -28px 8px;
  }
}

@keyframes track-drift {
  to {
    background-position: 220px 220px, -310px 310px;
  }
}

@media (max-width: 920px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu.active {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    background-color: var(--blue-900);
  }

  .nav-menu.active a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 640px;
    background-position: 58% center;
    background-size: cover;
  }

  .intro-layout,
  .awards-layout,
  .location-layout,
  .kit-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .kit-copy {
    padding-left: 22px;
  }

  .distance-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand-link img {
    width: 118px;
  }

  .hero {
    min-height: 620px;
    padding: 116px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(11, 47, 102, 0.92) 0%, rgba(11, 47, 102, 0.82) 52%, rgba(11, 47, 102, 0.96) 100%),
      url('../../images/events/corrida-emtel/hero-bg.jpg');
    animation-duration: 12s;
  }

  .hero::before {
    right: -72px;
    bottom: 110px;
  }

  .hero::after {
    left: -120px;
  }

  .hero-actions,
  .location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 66px 0;
  }

  .intro-copy {
    padding-left: 20px;
  }

  .kit-image img {
    min-height: 240px;
  }

  .awards-panel {
    padding: 30px 22px;
  }

  .award-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .award-row span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .is-parallax {
    transform: none !important;
  }
}
