:root {
  --urda-blue: #177fea;
  --urda-red: #ff1a21;
  --urda-yellow: #f4e600;
  --urda-dark: #0d1117;
  --urda-navy: #102844;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.inner-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.inner-page main {
  flex: 1;
}

.navbar {
  background-color: var(--urda-navy);
}

.navbar-home {
  transition: background-color .4s, box-shadow .4s;
}

@media (min-width: 992px) {
  .navbar-home:not(.scrolled) {
    background-color: transparent;
  }
}

.navbar-home.scrolled {
  background-color: white;
  box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
  --bs-navbar-color: #444;
  --bs-navbar-hover-color: #111;
  --bs-navbar-active-color: #111;
  --bs-navbar-brand-color: #222;
  --bs-navbar-brand-hover-color: #111;
  --bs-navbar-disabled-color: #6c757d;
  --bs-navbar-toggler-border-color: rgb(0 0 0 / 25%);
}

.navbar-home.scrolled .navbar-toggler-icon {
  filter: brightness(0);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 6rem 0 3rem;
  overflow: hidden;
  background: linear-gradient(rgb(0 0 0 / 65%), rgb(0 0 0 / 60%)),
    linear-gradient(135deg, var(--urda-blue), #0b3b74);
}

.hero::before {
  content: "";
  position: absolute;
  top: 100px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 15px solid rgb(255 255 255 / 7%);
  transform: rotate(45deg);
  animation: rotate-diamond 20s linear infinite;
}

@keyframes rotate-diamond {
  to { transform: rotate(405deg); }
}

.hero .container {
  position: relative;
}

.hero-logo {
  display: block;
  margin: 0 auto 30px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  animation: fade-in-up 1s ease;
}

.hero p {
  animation: fade-in-up 1.3s ease;
}

.hero-buttons {
  animation: fade-in-up 1.6s ease;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 100px;
  height: 5px;
  background-color: var(--urda-red);
  transform: translateX(-50%);
}

.counter-box,
.card-urda {
  height: 100%;
  transition: transform .4s, box-shadow .4s;
}

.counter-box:hover,
.card-urda:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 12%);
}

.counter-box {
  padding: 35px;
  border-radius: 20px;
  background-color: white;
  text-align: center;
}

.counter-number {
  color: #0965bd;
  font-size: 3rem;
  font-weight: 800;
}

.card-urda {
  overflow: hidden;
  border: 0;
  border-radius: 25px;
}

.card-image {
  height: 240px;
  background: linear-gradient(135deg, var(--urda-red), var(--urda-yellow));
}

.solidaria {
  background: linear-gradient(135deg, #0b60b8, #113b6d);
  color: white;
}

.event-card {
  border: 0;
  border-radius: 30px;
}

.event-image-placeholder {
  min-height: 220px;
  background-color: #f1f5f9;
  border-bottom: 2px dashed #cbd5e1;
  transition: background-color .3s;
}

.event-image-placeholder:hover {
  background-color: #e2e8f0;
}

.event-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.countdown {
  font-size: 2rem;
  font-weight: 700;
}

.history-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--urda-navy), #0b60b8);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.history-video:hover,
.history-video:focus-visible {
  color: white;
  text-decoration: underline;
}

.footer {
  background-color: var(--urda-dark);
  color: white;
}

.footer a {
  color: #a9d4ff;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero h1,
  .hero p,
  .hero-buttons {
    animation: none;
  }

  .navbar-home,
  .counter-box,
  .card-urda {
    transition: none;
  }

  .counter-box:hover,
  .card-urda:hover {
    transform: none;
  }
}
