:root {
  --ov-blue: #092bc9;
  --ov-blue-dark: #061b78;
  --ov-yellow: #fff04a;
  --ov-ink: #0b1f5c;
  --ov-muted: #60708d;
  --ov-line: #dce6f5;
  --ov-surface: #f5f9ff;
}

.ov-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 30px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 240, 74, 0.38), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(45, 92, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
}

.ov-hero::before,
.ov-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ov-hero::before {
  top: -145px;
  right: -100px;
  width: 340px;
  height: 340px;
  border: 58px solid rgba(9, 43, 201, 0.06);
}

.ov-hero::after {
  bottom: -80px;
  left: 44%;
  width: 150px;
  height: 150px;
  background: rgba(255, 240, 74, 0.18);
}

.ov-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 70px;
}

.ov-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ov-yellow);
  color: var(--ov-blue-dark);
  padding: 8px 14px;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ov-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ov-blue);
  box-shadow: 0 0 0 4px rgba(9, 43, 201, 0.12);
}

.ov-title {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--ov-blue-dark);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.ov-title span {
  display: block;
  color: var(--ov-blue);
}

.ov-logo-title {
  max-width: 540px;
  margin: 0 0 18px;
  line-height: 0;
}

.ov-event-logo {
  display: block;
  width: 100%;
  height: auto;
}

.ov-lead {
  max-width: 610px;
  margin: 0;
  color: #465675;
  font-size: 18px;
  line-height: 1.7;
}

.ov-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 2px solid var(--ov-blue);
  border-radius: 999px;
  background: var(--ov-blue);
  color: #fff;
  padding: 11px 22px;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ov-btn:hover,
.ov-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 43, 201, 0.22);
}

.ov-btn.is-light {
  border-color: #c7d5ef;
  background: #fff;
  color: var(--ov-blue);
}

.ov-btn.is-light:hover,
.ov-btn.is-light:focus-visible {
  border-color: var(--ov-blue);
  color: var(--ov-blue);
}

.ov-btn.is-score {
  border-color: var(--ov-yellow);
  background: var(--ov-yellow);
  color: var(--ov-blue-dark);
}

.ov-btn.is-score:hover,
.ov-btn.is-score:focus-visible {
  border-color: #ffe11f;
  background: #ffe11f;
  color: var(--ov-blue-dark);
  box-shadow: 0 12px 28px rgba(195, 161, 0, 0.24);
}

.ov-hero-collage {
  position: relative;
  min-height: 620px;
}

.ov-hero-photo {
  position: absolute;
  overflow: hidden;
  width: 70%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border: 9px solid #fff;
  border-radius: 18px;
  background: #dfe9f8;
  box-shadow: 0 24px 55px rgba(12, 38, 105, 0.2);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ov-hero-photo:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
}

.ov-hero-photo:nth-child(2) {
  top: 145px;
  right: 0;
  z-index: 2;
  transform: rotate(4deg);
}

.ov-hero-photo:nth-child(3) {
  top: 290px;
  left: 10%;
  z-index: 3;
  transform: rotate(-1deg);
}

.ov-hero-photo:hover {
  z-index: 8;
  transform: rotate(0) scale(1.025);
  box-shadow: 0 30px 65px rgba(12, 38, 105, 0.28);
}

.ov-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ov-hero-photo figcaption {
  position: absolute;
  right: 13px;
  top: 13px;
  left: 13px;
  bottom: auto;
  border-radius: 12px;
  background: rgba(4, 22, 88, 0.86);
  color: #fff;
  padding: 9px 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.ov-scores-showcase {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
  padding: 70px 0 42px;
  background:
    radial-gradient(circle at 7% 20%, rgba(255, 240, 74, 0.22), transparent 18%),
    radial-gradient(circle at 94% 74%, rgba(9, 43, 201, 0.11), transparent 22%),
    #f4f8ff;
}

.ov-scores-showcase::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -90px;
  width: 300px;
  height: 300px;
  border: 48px solid rgba(9, 43, 201, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.ov-scores-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.ov-scores-intro h2 {
  margin: 0 0 8px;
  color: var(--ov-ink);
  font-size: clamp(36px, 4.3vw, 54px);
  line-height: 1;
}

.ov-scores-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--ov-muted);
  font-size: 17px;
  line-height: 1.6;
}

.ov-scores-intro .ov-btn {
  flex: 0 0 auto;
}

.ov-scores-frame-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #d7e2f3;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 43, 111, 0.12);
}

.ov-scores-frame {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  background: transparent;
}

.ov-login-modal[hidden] {
  display: none;
}

.ov-login-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ov-login-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 12, 45, 0.78);
  cursor: default;
  backdrop-filter: blur(5px);
}

.ov-login-dialog {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.32);
  animation: ov-login-in 0.24s ease-out;
}

.ov-login-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dae2f0;
  border-radius: 50%;
  background: #f7f9fd;
  color: var(--ov-blue-dark);
  cursor: pointer;
}

.ov-login-brand {
  display: grid;
  place-items: center;
  width: 145px;
  height: 88px;
  margin: 0 auto 12px;
}

.ov-login-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ov-login-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--ov-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.ov-login-dialog h2 {
  margin: 0 0 8px;
  color: var(--ov-blue-dark);
  font-size: 30px;
  text-align: center;
}

.ov-login-dialog > p {
  max-width: 365px;
  margin: 0 auto 21px;
  color: var(--ov-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ov-login-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--ov-blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.ov-login-input {
  position: relative;
  margin-bottom: 16px;
}

.ov-login-input i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: #7685a3;
  transform: translateY(-50%);
}

.ov-login-input input {
  width: 100%;
  height: 50px;
  border: 1px solid #d7e0ef;
  border-radius: 13px;
  background: #f9fbff;
  color: var(--ov-blue-dark);
  padding: 10px 15px 10px 44px;
  outline: none;
}

.ov-login-input input:focus {
  border-color: var(--ov-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 53, 207, 0.09);
}

.ov-login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid var(--ov-blue);
  border-radius: 999px;
  background: var(--ov-blue);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ov-login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ov-login-message {
  margin: 13px 0 0;
  color: #7b86a0;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.ov-login-message.is-visible {
  border-radius: 10px;
  background: #fff8ce;
  color: #675900;
  padding: 9px;
  font-size: 12px;
}

.ov-login-message.is-visible.is-error {
  background: #fff0f0;
  color: #a22626;
}

.ov-login-message.is-visible.is-success {
  background: #edf9f1;
  color: #176438;
}

body.ov-login-open {
  overflow: hidden;
}

@keyframes ov-login-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ov-gallery-area {
  position: relative;
  padding: 30px 0 90px;
  background: #fff;
}

.ov-gallery-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.ov-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ov-blue);
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ov-gallery-intro h2 {
  max-width: 700px;
  margin: 0;
  color: var(--ov-ink);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
}

.ov-gallery-intro p {
  max-width: 410px;
  margin: 0;
  color: var(--ov-muted);
  line-height: 1.65;
}

.ov-color-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 10px;
  border: 1px solid var(--ov-line);
  border-radius: 18px;
  background: var(--ov-surface);
}

.ov-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #52617e;
  padding: 9px 16px;
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ov-filter::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
}

.ov-filter[data-team-filter="all"]::before {
  background: conic-gradient(#0c4ddb 0 33%, #fff 33% 66%, #ffe538 66%);
}

.ov-filter[data-team-filter="azul"]::before {
  background: #0c4ddb;
}

.ov-filter[data-team-filter="blanco"]::before {
  border-color: #8996ad;
  background: #fff;
}

.ov-filter[data-team-filter="amarillo"]::before {
  border-color: #cfad00;
  background: #ffe538;
}

.ov-filter.is-active,
.ov-filter:hover,
.ov-filter:focus-visible {
  background: #fff;
  color: var(--ov-blue);
  box-shadow: 0 7px 20px rgba(14, 43, 123, 0.1);
}

.ov-team-section {
  margin-top: 30px;
}

.ov-team-section[hidden] {
  display: none;
}

.ov-team-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 22px;
  padding: 25px 28px;
}

.ov-team-head::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -55px;
  width: 160px;
  height: 160px;
  border: 28px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.ov-team-head.is-blue {
  background: linear-gradient(135deg, #061e9e 0%, #0b4dde 100%);
  color: #fff;
}

.ov-team-head.is-white {
  border: 1px solid #d3deed;
  background: linear-gradient(135deg, #fff 0%, #edf3f9 100%);
  color: var(--ov-ink);
}

.ov-team-head.is-yellow {
  background: linear-gradient(135deg, #ffe43b 0%, #fff27b 100%);
  color: #162052;
}

.ov-team-copy,
.ov-team-link {
  position: relative;
  z-index: 1;
}

.ov-team-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 86px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 9px 14px rgba(2, 17, 70, 0.2));
}

.ov-team-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 5px;
  color: inherit;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1;
}

.ov-team-dot {
  width: 17px;
  height: 17px;
  border: 4px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px currentColor;
}

.is-white .ov-team-dot {
  border-color: #fff;
  background: #fff;
}

.is-yellow .ov-team-dot {
  border-color: rgba(255, 255, 255, 0.75);
  background: #ffe43b;
}

.ov-team-meta {
  margin: 0;
  color: inherit;
  font-size: 15px;
  opacity: 0.82;
}

.ov-team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: inherit;
  padding: 10px 16px;
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.is-white .ov-team-link,
.is-yellow .ov-team-link {
  border-color: rgba(9, 43, 201, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.ov-team-link:hover,
.ov-team-link:focus-visible {
  color: inherit;
  transform: translateY(-1px);
}

.ov-gallery-grid {
  columns: 3 300px;
  column-gap: 18px;
}

.ov-photo-card {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 18px;
  background: #e8eef8;
  box-shadow: 0 10px 28px rgba(14, 37, 93, 0.12);
  break-inside: avoid;
}

.ov-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.ov-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(to top, rgba(3, 16, 61, 0.76), rgba(3, 16, 61, 0) 52%);
  color: #fff;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ov-photo-overlay span {
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.ov-photo-overlay i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ov-yellow);
  color: var(--ov-blue-dark);
}

.ov-photo-card:hover img,
.ov-photo-card:focus-visible img {
  transform: scale(1.025);
}

.ov-photo-card:hover .ov-photo-overlay,
.ov-photo-card:focus-visible .ov-photo-overlay {
  opacity: 1;
}

.ov-coming-soon {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 2px dashed #e3c21b;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 229, 56, 0.26), transparent 38%),
    #fffdf2;
  padding: 40px 24px;
  text-align: center;
}

.ov-coming-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffe538;
  color: var(--ov-blue-dark);
  font-size: 32px;
  box-shadow: 0 12px 28px rgba(204, 170, 0, 0.2);
}

.ov-coming-soon h3 {
  margin: 0 0 8px;
  color: var(--ov-ink);
  font-size: 30px;
}

.ov-coming-soon p {
  max-width: 560px;
  margin: 0;
  color: var(--ov-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ov-resource-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 52px;
  border-radius: 24px;
  background: var(--ov-blue-dark);
  color: #fff;
  padding: 28px 32px;
}

.ov-resource-banner h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 27px;
}

.ov-resource-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.ov-resource-banner .ov-btn {
  flex: 0 0 auto;
  border-color: var(--ov-yellow);
  background: var(--ov-yellow);
  color: var(--ov-blue-dark);
}

.ov-resource-banner .ov-btn:hover,
.ov-resource-banner .ov-btn:focus-visible {
  color: var(--ov-blue-dark);
}

@media (max-width: 1199px) {
  .ov-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
    gap: 38px;
  }

}

@media (max-width: 991px) {
  .ov-hero {
    padding: 42px 0 30px;
  }

  .ov-hero-grid {
    grid-template-columns: 1fr;
  }

  .ov-hero-copy {
    max-width: 720px;
  }

  .ov-hero-collage {
    max-width: 720px;
    min-height: 620px;
  }

  .ov-gallery-intro {
    display: block;
  }

  .ov-gallery-intro p {
    max-width: 680px;
    margin-top: 16px;
  }
}

@media (max-width: 767px) {
  .ov-hero {
    padding: 34px 0 28px;
  }

  .ov-title {
    font-size: clamp(40px, 13vw, 56px);
  }

  .ov-lead {
    font-size: 16px;
  }

  .ov-hero-photo {
    border-width: 7px;
    border-radius: 18px;
  }

  .ov-gallery-area {
    padding: 28px 0 66px;
  }

  .ov-scores-showcase {
    padding: 48px 0 30px;
  }

  .ov-scores-intro {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .ov-scores-intro p {
    font-size: 15px;
  }

  .ov-scores-intro .ov-btn {
    width: 100%;
  }

  .ov-scores-frame-wrap {
    border-radius: 22px;
  }

  .ov-color-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ov-filter {
    justify-content: center;
    padding-inline: 10px;
  }

  .ov-team-head,
  .ov-resource-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ov-team-head {
    align-items: center;
    flex-direction: row;
  }

  .ov-team-logo {
    width: 70px;
  }

  .ov-team-link,
  .ov-resource-banner .ov-btn {
    width: 100%;
    justify-content: center;
  }

  .ov-photo-overlay {
    opacity: 1;
  }
}

@media (max-width: 479px) {
  .ov-hero-actions,
  .ov-btn {
    width: 100%;
  }

  .ov-hero-photo {
    width: calc(100% - 44px);
    max-width: none;
    border-width: 6px;
    border-radius: 14px;
  }

  .ov-hero-collage {
    min-height: 550px;
  }

  .ov-hero-photo:nth-child(1) {
    top: 0;
  }

  .ov-hero-photo:nth-child(2) {
    top: 145px;
  }

  .ov-hero-photo:nth-child(3) {
    top: 290px;
    left: 22px;
  }

  .ov-hero-photo figcaption {
    right: 6px;
    top: 6px;
    left: 6px;
    bottom: auto;
    padding: 6px;
    font-size: 10px;
    text-align: center;
  }

  .ov-gallery-intro h2 {
    font-size: 36px;
  }

  .ov-color-nav {
    grid-template-columns: 1fr;
  }

  .ov-team-head {
    padding: 22px;
  }

  .ov-resource-banner {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-btn,
  .ov-team-link,
  .ov-photo-card img,
  .ov-photo-overlay {
    transition: none;
  }
}

/* Mantiene el visor de la galeria por encima del encabezado fijo. */
.mfp-bg {
  z-index: 20000 !important;
}

.mfp-wrap {
  z-index: 20001 !important;
}
