:root {
  --accent: #083078;
  --accent-dark: #06255c;
  --crest: #fdd32b;
  --crest-dark: #e8c020;
  --crest-ink: #083078;
  --ink: #232528;
  --muted: #797c7f;
  --line: #e6e8eb;
  --alt: #f1f3f6;
  --band: #e7eaee;
  --white: #fff;
  --header: 92px;
  --wide: 1240px;
  --font: "DM Sans", sans-serif;
  --display: "Inter Tight", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  color: var(--muted);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}
img, video, svg, canvas, iframe,
img[data-lazyloaded],
img[data-src],
img.lazyload,
img.lazyloaded {
  max-width: 100%;
  height: auto;
  display: block;
}
iframe { width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.wrap { width: min(var(--wide), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 48, 120, .35);
}
.btn:hover::after { transform: translateX(120%); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: none;
}
.btn.ghost:hover {
  background: transparent;
  color: var(--crest);
  border-color: var(--crest);
  box-shadow: none;
}
/* Botones sobre fondos oscuros → amarillo del escudo */
.hero .btn,
.cta .btn,
.site-footer .btn,
.nav-modal .btn {
  background: var(--crest);
  color: var(--crest-ink);
}
.hero .btn:hover,
.cta .btn:hover,
.site-footer .btn:hover,
.nav-modal .btn:hover {
  background: var(--crest-dark);
  color: var(--crest-ink);
  box-shadow: 0 12px 28px rgba(253, 211, 43, .38);
}

.page-shell { position: relative; }

.ad-banner {
  position: relative;
  background: #fff;
  z-index: 45;
}
.ad-viewport { position: relative; }
.ad-slide {
  display: none;
  width: min(1580px, 100%);
  margin: 0 auto;
  aspect-ratio: 1580 / 700;
  background: #f4f5f6;
}
.ad-slide.is-on { display: block; }
.ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.ad-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 14px;
}
.ad-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(35, 37, 40, .35);
  cursor: pointer;
}
.ad-dots button.is-on { background: var(--accent); }
@media (max-width: 767px) {
  .ad-slide {
    width: min(820px, 100%);
    aspect-ratio: 820 / 1000;
  }
  .ad-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
  }
}

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  overflow: visible;
  color: #fff;
}
.site-header .bar {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.logo img { height: 74px; width: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.logo-title {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a, .nav-drop > span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
}
.nav > a::after,
.nav-drop > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--crest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav > a:hover::after,
.nav-drop:hover > span::after,
.nav-drop.is-open > span::after { transform: scaleX(1); }
.nav a:hover, .nav-drop:hover > span { color: var(--crest); }
.nav-drop { position: relative; }
.nav-drop > span { cursor: pointer; display: inline-block; padding: 12px 0; }
.nav-drop::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  height: 18px;
}
.nav-drop .panel {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16,18,20,.16);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
.nav-drop:hover .panel,
.nav-drop:focus-within .panel,
.nav-drop.is-open .panel { display: grid; }
.nav-drop .panel a {
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 8px;
}
.nav-drop .panel a:hover { background: rgba(253, 211, 43, .14); color: var(--crest-dark); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.icon-btn:hover {
  color: var(--crest);
  background: rgba(253, 211, 43, .14);
  transform: scale(1.06);
}
.burger { display: none; }

.page-inner .site-header,
.site-header.is-solid {
  position: sticky;
  background: #16181b;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.page-inner { padding-top: 0; }

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background: #111;
  overflow: hidden;
}
.slide {
  min-height: 100vh;
  display: none;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.slide.is-on { display: flex; }
.slide::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.slide.is-on::after {
  animation: hero-ken 14s cubic-bezier(.22,1,.36,1) both;
}
.slide::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,12,16,.78) 0%, rgba(10,12,16,.35) 48%, rgba(10,12,16,.2) 100%),
    linear-gradient(180deg, rgba(10,12,16,.25) 0%, rgba(10,12,16,.15) 40%, rgba(10,12,16,.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 80px));
  margin: 0 0 12vh 6vw;
}
.hero-copy .eyebrow { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.hero-copy h2 {
  color: #fff;
  font-size: clamp(38px, 4.4vw, 64px);
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero-copy p {
  max-width: 460px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  margin: 0 0 28px;
}
.recent {
  position: absolute;
  right: 6vw;
  bottom: 12vh;
  z-index: 2;
  width: min(280px, 30vw);
  color: #fff;
}
.recent h3 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 16px;
  max-width: 6ch;
}
.recent a { display: block; }
.recent img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
}
.recent .meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.recent strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-ui {
  position: absolute;
  z-index: 3;
  left: 6vw;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.dots button.is-on { background: var(--accent); }

.scores {
  background: var(--band);
  padding: 28px 0 36px;
}
.sponsors {
  background: #fff;
  padding: 4px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 0;
}
.sponsors-viewport {
  overflow: hidden;
  width: 100%;
}
.sponsors-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: sponsors-scroll 40s linear infinite;
}
.sponsors-viewport:hover .sponsors-track {
  animation-play-state: paused;
}
.sponsor-item {
  flex: 0 0 auto;
  width: auto;
  height: 207px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: content-box;
}
.sponsor-item img {
  max-width: 447px;
  max-height: 207px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@keyframes sponsors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .sponsors { padding: 2px 0; }
  .sponsor-item {
    height: 165px;
    padding: 0 6px;
  }
  .sponsor-item img {
    max-width: 78vw;
    max-height: 165px;
  }
  .sponsors-track { animation-duration: 28s; }
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.score-card {
  background: #fff;
  min-height: 168px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease;
}
.score-card:hover { transform: translateY(-3px); }
.score-card time {
  color: var(--muted);
  font-size: 13px;
}
.score-card .result {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-weight: 750;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.score-card .teams {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.score-card .cat {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { padding: 88px 0; }
.about-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}
.about-head h2 { font-size: clamp(36px, 4vw, 58px); max-width: 14ch; }
.about-head p { margin: 0; font-size: 18px; }
.director {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
}
.director strong { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; }
.director span { font-size: 14px; }
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 10px;
}
.cols-3 h3 { font-size: 22px; margin-bottom: 10px; }
.cols-3 p { margin: 0; }
.drop::first-letter {
  font-family: var(--display);
  font-size: 54px;
  float: left;
  line-height: .8;
  padding-right: 8px;
  color: var(--ink);
  font-weight: 700;
}

.news-section { background: #f7f5f1; }
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.news-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.news-head h2 { font-size: clamp(34px, 4vw, 52px); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.news-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.more-btn {
  gap: 12px;
  padding-right: 14px;
}
.more-btn span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(24, 28, 32, .06);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 22px 50px rgba(24, 28, 32, .16);
}
.card-media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--alt);
  position: relative;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
  transform: translateX(-130%) skewX(-12deg);
  transition: transform .7s ease;
  pointer-events: none;
}
.card:hover .card-media::after { transform: translateX(130%) skewX(-12deg); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.card:hover .card-media img { transform: scale(1.08); }
.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.card-meta i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  flex: 0 0 auto;
}
.card-meta time { color: var(--muted); }
.card h3 {
  margin: 0 0 30px;
  font-size: clamp(15px, 1.15vw, 20px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}
.card h3 a:hover { color: var(--accent); }
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  margin-top: auto;
  min-height: 44px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.card-cta-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
  margin-left: 8px;
}
.card-cta:hover {
  background: var(--accent);
  color: #fff;
}
.card-cta:hover .card-cta-arrow {
  background: #fff;
  color: var(--accent);
}

.gallery-section { background: var(--alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #232528;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .45s ease, transform .8s ease;
}
.gallery-cell.is-swap img {
  opacity: 0;
  transform: scale(1.04);
}

.cta {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #1b1d20 center/cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(16,18,20,.62); }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); margin: 12px 0 22px; }

.site-footer { background: #16181b; color: rgba(255,255,255,.72); padding: 72px 0 28px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 36px;
}
.site-footer h3 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.news-form { display: flex; gap: 8px; margin-top: 12px; }
.news-form input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  padding: 10px 0;
  outline: none;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  font-size: 13px;
  font-family: var(--display);
  font-weight: 700;
}
.copy {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}

.page-hero {
  background: #16181b;
  color: #fff;
  padding: 54px 0 42px;
}
.page-hero h1 { color: #fff; font-size: clamp(40px, 5vw, 68px); }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.75); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 48px;
  padding: 48px 0 80px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.layout > * { min-width: 0; max-width: 100%; }
.story-article,
.layout > article {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.story-title {
  font-size: clamp(32px, 4vw, 58px);
  margin-bottom: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.prose {
  color: #3c4044;
  font-size: 18px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.3em 0 .4em; max-width: 100%; }
.prose img,
.prose figure,
.prose figure img,
.prose picture,
.prose picture img,
.prose video,
.prose iframe,
.prose .wp-block-image,
.prose .wp-block-image img,
.prose .wp-caption,
.prose .alignnone,
.prose .aligncenter,
.prose .alignwide,
.prose .alignfull,
.prose .elementor-widget-image img,
.prose .elementor-image img {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.prose img { margin: 1em 0; }
.prose figure { margin: 1em 0; }
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose pre,
.prose code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose .wp-block-embed,
.prose .wp-block-video,
.prose .fluid-width-video-wrapper,
.prose .elementor-video {
  max-width: 100%;
  overflow: hidden;
}
.prose a { color: var(--accent); }
.prose blockquote {
  margin: 1.2em 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  max-width: 100%;
}
.story-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  margin-bottom: 28px;
  background: var(--alt);
  border-radius: 12px;
}
.story-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.story-meta a { color: var(--accent); font-weight: 700; }
.side {
  position: sticky;
  top: 24px;
  align-self: start;
}
.side h3 { font-size: 18px; margin-bottom: 14px; }
.side-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; margin-bottom: 14px; align-items: center; }
.side-list img { width: 72px; height: 56px; object-fit: cover; }
.side-list strong { color: var(--ink); font-size: 14px; line-height: 1.3; font-family: var(--display); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 42px 0 80px;
}
.team-block { margin: 28px 0; }
.team-block h2 { font-size: 28px; margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 0 80px; }
.contact-card { background: var(--alt); padding: 28px; }
.contact-card h2 { font-size: 28px; margin-bottom: 8px; }

.search-modal, .nav-modal, .subscribe-modal {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(12,14,16,.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-modal.is-on, .nav-modal.is-on, .subscribe-modal.is-on { display: flex; }
.search-box, .sub-box {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}
.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 28px;
  padding: 8px 0 12px;
  outline: none;
  color: var(--ink);
}
.search-hits { margin-top: 16px; max-height: 50vh; overflow: auto; }
.search-hits a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-hits small { display: block; color: var(--muted); }
.nav-modal { background: #16181b; align-items: stretch; padding: 0; }
.nav-modal nav {
  padding: 96px 7vw 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: auto;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.nav-modal-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-modal-main a {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.nav-modal-cats {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
}
.nav-modal-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crest);
}
.nav-modal-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.nav-modal-cats-grid a {
  color: rgba(255,255,255,.88);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.nav-modal-cats-grid a:hover,
.nav-modal-cats-grid a:active {
  background: rgba(253, 211, 43, .16);
  color: var(--crest);
}
/* compat: menús viejos sin estructura nueva */
.nav-modal nav > a {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sub-box { width: min(460px, 100%); text-align: left; position: relative; }
.sub-box h2 { font-size: 36px; margin-bottom: 16px; }
.sub-box input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  margin: 8px 0 16px;
  outline: none;
}
.close-x {
  position: absolute; top: 14px; right: 14px;
  border: 0; background: transparent; font-size: 28px; cursor: pointer; color: var(--ink);
}
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; cursor: pointer;
  display: none;
}
.to-top.is-on { display: grid; place-items: center; }

@media (max-width: 1100px) {
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid, .about-head, .layout, .contact-grid { grid-template-columns: 1fr; }
  .recent { display: none; }
  .nav { display: none !important; }
  .burger { display: grid; }
  .side { position: static; margin-top: 36px; }
  .site-header { height: auto; min-height: 72px; }
  .site-header .bar {
    width: calc(100% - 24px);
    gap: 10px;
    padding: 10px 0;
  }
  .logo { flex: 1; min-width: 0; gap: 10px; }
  .logo img { height: 48px; width: auto; flex: 0 0 auto; }
  .logo-title {
    font-size: 15px;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tools { margin-left: 0; flex: 0 0 auto; }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px 0 56px;
    width: 100%;
  }
  .page-shell,
  .wrap,
  .layout,
  .story-article,
  .layout > article,
  .prose {
    max-width: 100%;
    min-width: 0;
  }
  .story-title,
  .layout h1 {
    font-size: clamp(26px, 7.2vw, 36px) !important;
    line-height: 1.15;
    margin-bottom: 14px !important;
  }
  .story-cover {
    max-height: none;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
  }
  .prose { font-size: 16px; }
  .prose img,
  .prose figure,
  .prose figure img,
  .prose picture,
  .prose picture img,
  .prose .wp-block-image img,
  .prose .elementor-widget-image img,
  .prose .elementor img,
  .story-article img,
  article.story-article img,
  .layout article img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .prose figure { margin: 1em 0; max-width: 100%; }
  .prose .alignwide,
  .prose .alignfull,
  .prose .wp-block-image.alignfull,
  .prose .wp-block-image.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .side-list a { grid-template-columns: 64px minmax(0, 1fr); }
  .side-list strong { overflow-wrap: anywhere; }
  .chip-list { max-width: 100%; }
  .card-media {
    aspect-ratio: 16 / 11;
    min-height: 140px;
    background: #dfe3e8;
  }
  .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .sponsor-item img { max-width: min(280px, 70vw); }
  .ad-banner,
  .ad-viewport,
  .ad-slide { max-width: 100%; overflow: hidden; }
  .nav-modal-main a { font-size: 28px; }
  .nav-modal-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-modal-cats-grid a { font-size: 13px; padding: 9px 10px; }
}
@media (max-width: 700px) {
  .score-grid, .news-grid, .post-grid, .cols-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { width: calc(100% - 40px); margin: 0 20px 14vh; }
  .hero-copy h2 { font-size: clamp(32px, 9vw, 40px); max-width: 100%; }
  .hero-copy p { font-size: 16px; }
  .wrap { width: calc(100% - 24px); max-width: 100%; }
  .chip-list { gap: 6px; }
  .chip { font-size: 12px; padding: 5px 10px; }
  .foot-grid { gap: 28px; }
  .news-section { padding-left: 0; padding-right: 0; }
  .card-body { padding: 14px 14px 16px; }
  .card h3 { font-size: 15px; margin-bottom: 18px; }
  .story-meta { font-size: 12px; letter-spacing: 0.04em; }
  .layout { padding: 18px 0 48px; }
}

/* Oculta header/footer viejos de Elementor cuando el tema fuerza el chrome */
body.regatas-theme-chrome .elementor-location-header,
body.regatas-theme-chrome .elementor-location-footer,
body.regatas-theme-chrome header.ehf-header,
body.regatas-theme-chrome footer.ehf-footer,
body.regatas-theme-chrome .ehf-template-header,
body.regatas-theme-chrome .ehf-template-footer {
  display: none !important;
}

/* Motion system */
.hero-copy .eyebrow,
.hero-copy h2,
.hero-copy p,
.hero-copy .btn {
  opacity: 0;
  transform: translateY(32px);
}
.slide.is-on .hero-copy .eyebrow {
  animation: rise-in .75s cubic-bezier(.22,1,.36,1) .12s both;
}
.slide.is-on .hero-copy h2 {
  animation: rise-clip .95s cubic-bezier(.22,1,.36,1) .26s both;
}
.slide.is-on .hero-copy p {
  animation: rise-in .85s cubic-bezier(.22,1,.36,1) .42s both;
}
.slide.is-on .hero-copy .btn {
  animation: rise-in .8s cubic-bezier(.22,1,.36,1) .56s both;
}
.recent {
  opacity: 0;
  transform: translateX(28px);
  z-index: 2;
}
.hero .recent {
  animation: slide-in-right 1s cubic-bezier(.22,1,.36,1) .75s both;
}
.recent.is-swap {
  animation: recent-swap .55s cubic-bezier(.22,1,.36,1) both;
}
.scroll-down {
  animation: bounce-y 1.8s ease-in-out infinite;
}
.logo img {
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  animation: logo-float 4.5s ease-in-out infinite;
}
.logo:hover img {
  animation-play-state: paused;
  transform: scale(1.06) rotate(-3deg);
}
.logo-title {
  position: relative;
  background: linear-gradient(90deg, #fff 0%, #fff 38%, #7ec8f0 48%, #4db8e8 50%, #7ec8f0 52%, #fff 62%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 5s linear infinite;
}
.site-header.is-solid .logo-title,
.page-inner .logo-title {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

.news-head .eyebrow,
.news-head h2 {
  position: relative;
}
.news-head.is-visible h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: line-draw .7s cubic-bezier(.22,1,.36,1) .2s both;
}
.news-head:not(.news-head-center).is-visible h2::after {
  margin-left: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-scale {
  opacity: 0;
  transform: scale(.88) translateY(18px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.card-cta {
  transition: background .25s ease, color .25s ease, transform .25s ease, gap .25s ease;
}
.card-cta:hover {
  gap: 36px;
}
.card-cta-arrow {
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .25s ease, color .25s ease;
}
.card-cta:hover .card-cta-arrow {
  transform: translateX(6px) scale(1.1);
  animation: arrow-nudge .6s ease infinite;
}

.gallery-cell {
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, filter .45s ease;
}
.gallery-cell.is-visible img {
  animation: gallery-drift 9s ease-in-out infinite alternate;
}
.gallery-cell:nth-child(3n).is-visible img {
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}
.gallery-cell:nth-child(odd).is-visible img {
  animation-duration: 7.5s;
}
.gallery-cell:hover {
  transform: scale(1.045) rotate(.4deg);
  z-index: 1;
  box-shadow: 0 22px 48px rgba(16,18,20,.22);
  filter: saturate(1.08);
}
.gallery-cell:hover img {
  animation-play-state: paused;
  transform: scale(1.1);
}

.sponsors {
  position: relative;
}
.sponsors::before,
.sponsors::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.sponsors::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.sponsors::after {
  right: 0;
  background: linear-gradient(270deg, #fff, transparent);
}
.sponsor-item img {
  transition: transform .4s cubic-bezier(.22,1,.36,1), filter .35s ease;
}
.sponsor-item:hover img {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.14));
}

.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,103,31,.28), transparent 70%);
  top: -120px;
  right: -80px;
  animation: orb-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta .wrap > * {
  opacity: 0;
  transform: translateY(22px);
  position: relative;
}
.cta.is-visible .wrap > * {
  animation: rise-in .85s cubic-bezier(.22,1,.36,1) both;
}
.cta.is-visible .eyebrow { animation-delay: .1s; }
.cta.is-visible h2 { animation-delay: .25s; }
.cta.is-visible .btn { animation-delay: .4s; }

.to-top {
  transition: transform .25s ease, background .25s ease, opacity .25s ease;
}
.to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--accent);
}

.ad-slide.is-on {
  animation: ad-fade .65s ease both;
}
.ad-dots button {
  transition: transform .25s ease, background .25s ease, width .25s ease;
}
.ad-dots button.is-on {
  transform: scale(1.15);
}

.more-btn span {
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .25s ease;
}
.more-btn:hover span {
  transform: translateX(4px) rotate(45deg);
  background: var(--accent);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-clip {
  from { opacity: 0; transform: translateY(36px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes title-sheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes hero-ken {
  from { transform: scale(1.14) translate(2%, -1%); }
  to { transform: scale(1) translate(0, 0); }
}
@keyframes gallery-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-2%, 1.5%); }
}
@keyframes ad-fade {
  from { opacity: .2; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes line-draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(6px) scale(1.1); }
  50% { transform: translateX(10px) scale(1.1); }
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.15); }
}
@keyframes recent-swap {
  from { opacity: .35; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-scale, .reveal-left,
  .hero-copy .eyebrow, .hero-copy h2, .hero-copy p, .hero-copy .btn,
  .recent, .cta .wrap > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .slide::after { transform: none !important; }
}
