:root {
  --fecoa-black: #000000;
  --fecoa-dark: #1a1a1a;
  --fecoa-charcoal: #333333;
  --fecoa-red: #e31b23;
  --fecoa-red-dark: #b9151c;
  --fecoa-red-soft: #fdeced;
  --fecoa-blue: #009cde;
  --fecoa-blue-dark: #007eb5;
  --fecoa-blue-soft: #e6f6fd;
  --navy: #1a1a1a;
  --navy-mid: #252525;
  --ink: #333333;
  --muted: #5c6678;
  --line: #d8dee6;
  --bg: #f4f6f9;
  --white: #ffffff;
  --carousel-accent: #e31b23;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.12);
  --font-head: "Kanit", system-ui, sans-serif;
  --font-body: "Kanit", system-ui, sans-serif;
  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --us-red: var(--fecoa-red);
  --us-red-dark: var(--fecoa-red-dark);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overscroll-behavior-x: none;
  /* Evita barra horizontal; en body rompe position:sticky/fixed del header en WebKit/Blink. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--us-red);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
}

.top-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--fecoa-blue) 0%, var(--fecoa-blue) 38%, var(--fecoa-red) 50%, var(--fecoa-blue) 62%, var(--fecoa-blue) 100%);
}


.hero-carousel {
  position: relative;
  z-index: 0;
  color: #fff;
  --hero-h: clamp(280px, 62vh, 560px);
  --kb-duration: 34s;
  --kb-min: 1.03;
  --kb-max: 1.1;
  min-height: var(--hero-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--us-red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.brand-text--with-logo {
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}

.brand-text--with-logo .brand-full {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fecoa-blue);
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: normal;
  max-width: 14rem;
}

/* Tagline bajo logo: visible en móvil; al scroll contraído la barra de búsqueda la controla .site-header--mobile-search-collapsed */

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-short {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-full {
  font-size: 0.78rem;
  color: #9ab7c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: none;
  gap: 0.35rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-ghost {
  color: #f0f4f8;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(0, 157, 222, 0.18);
  border-color: rgba(0, 157, 222, 0.45);
}

.btn-red {
  background: var(--us-red);
  color: #fff;
  border-color: var(--us-red);
}
.btn-red:hover {
  background: var(--us-red-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--fecoa-blue) 0%, var(--fecoa-blue-dark) 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 157, 222, 0.35);
}
.btn-accent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-with-icon {
  gap: 0.4rem;
}

.btn-with-icon .ico {
  flex-shrink: 0;
  opacity: 0.9;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
}


.hero-carousel-track {
  position: relative;
  min-height: var(--hero-h);
  overflow: hidden;
  background: #050b14;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--kb-min, 1.03));
}

.hero-carousel-slide.is-active .hero-carousel-bg {
  animation: fecoa-hero-kenburns var(--kb-duration, 34s) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes fecoa-hero-kenburns {
  0% {
    transform: scale(var(--kb-min, 1.03));
  }
  100% {
    transform: scale(var(--kb-max, 1.1));
  }
}

.hero-carousel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 20, 0.15) 0%,
    rgba(5, 11, 20, 0.35) 40%,
    rgba(5, 11, 20, 0.82) 100%
  );
  z-index: 1;
}

.hero-carousel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.25rem 1rem 3.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-carousel-cat {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-carousel-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.hero-carousel-cta:hover {
  color: #ffe6d5;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 12, 24, 0.45);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.hero-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hero-carousel-prev {
  left: 0.75rem;
}
.hero-carousel-next {
  right: 0.75rem;
}

.hero-carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 12, 24, 0.35);
  backdrop-filter: blur(6px);
}

.hero-carousel-dot {
  width: 36px;
  height: 3px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.hero-carousel-dot.is-active {
  background: var(--carousel-accent);
  transform: scaleY(1.4);
}

.hero-band {
  position: relative;
  background: linear-gradient(118deg, #2c2c2c 0%, #1a2834 42%, #9fd4e8 100%);
  color: var(--navy);
  min-height: 190px;
  padding-block: 0.35rem 0.5rem;
}

.hero-band-head {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 0.65rem;
}

.hero-band-title {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.12rem, 3.2vw, 1.65rem);
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  border-left: 4px solid var(--fecoa-red, #e31b23);
  padding: 0.15rem 0 0.15rem 1rem;
  margin-inline-start: 0.15rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 20, 0.9) 0%,
    rgba(20, 45, 62, 0.5) 48%,
    rgba(210, 236, 248, 0.38) 100%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem 1rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.hero-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.88rem 1rem 0.88rem 0.95rem;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-sm);
  color: #102a3a;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 6px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.hero-tile:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: color-mix(in srgb, var(--fecoa-blue) 52%, rgba(255, 255, 255, 0.55));
  color: #081a28;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 8px 24px rgba(0, 50, 80, 0.2);
}

.hero-tile:focus-visible {
  outline: 2px solid var(--fecoa-blue);
  outline-offset: 3px;
}

.hero-tile-main {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  flex: 1;
}

.hero-tile-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fecoa-blue-dark);
}

.hero-tile-icon-svg {
  width: 1.65rem;
  height: 1.65rem;
}

.hero-tile-text {
  min-width: 0;
  line-height: 1.25;
}

.hero-tile-arrow {
  color: var(--fecoa-blue);
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 2.25rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.38rem;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
.section-title.alt {
  color: var(--us-red);
}

.section-link {
  font-weight: 600;
  color: var(--fecoa-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-link:hover {
  color: var(--fecoa-red);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card--media {
  display: flex;
  flex-direction: column;
}

.news-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.news-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.news-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.news-title a:hover {
  color: var(--us-red);
}

.athletes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.athlete-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.18s, transform 0.18s;
}
.athlete-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.athlete-photo {
  aspect-ratio: 4 / 5;
  background: #e6ebf3;
  overflow: hidden;
}
.athlete-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #cfd8e8, #9fb0cb);
}

.athlete-meta {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.athlete-name {
  margin: 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.athlete-line {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.athlete-line .dot {
  margin: 0 0.25rem;
}

.athlete-about {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fecoa-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--fecoa-dark);
  color: #fff;
}

.spotlight-media img,
.spotlight-media {
  min-height: 220px;
}

.spotlight-media {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (min-width: 900px) {
  .spotlight-media {
    border-radius: var(--radius) 0 0 var(--radius);
  }
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(120deg, #1b2b45, #0a1628);
}

.spotlight-copy {
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.spotlight-title {
  margin: 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  line-height: 1.25;
}

/* Spotlight — hasta 2 eventos (hoy o próximos): rejilla, imagen compacta */
.spotlight.spotlight--events {
  display: block;
  position: relative;
  overflow: hidden;
}

.spotlight.spotlight--events .spotlight-event-eyebrow {
  margin: 0;
  padding: 1rem 1.25rem 0.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 3.2vw, 1.65rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border-left: 5px solid var(--fecoa-red, #e31b23);
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  padding-left: 1rem;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fecoa-red, #e31b23) 22%, transparent),
    transparent 55%
  );
}

.spotlight-events-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.35rem 1.25rem 1.1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .spotlight-events-row:not(.spotlight-events-row--single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .spotlight-events-row--single {
    grid-template-columns: minmax(0, min(34rem, 100%));
    justify-content: center;
  }
}

.spotlight-event-cell {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  min-height: 0;
  background: color-mix(in srgb, #fff 5%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

@media (min-width: 640px) {
  .spotlight-event-cell {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(150px, 20vh, 210px);
  }
}

.spotlight-event-cell__media {
  position: relative;
  min-height: 120px;
  max-height: 150px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .spotlight-event-cell__media {
    min-height: 0;
    max-height: none;
  }
}

.spotlight-event-cell__media--empty {
  background: linear-gradient(120deg, #1b2b45, #0a1628);
}

.spotlight-event-cell__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-event-cell__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-width: 0;
}

.spotlight-event-cell__title {
  margin: 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.82rem, 1.65vw, 1.02rem);
  line-height: 1.28;
  font-weight: 700;
}

.spotlight-events-more {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  text-align: center;
  font-size: 0.9rem;
}

.spotlight-events-more__link {
  color: color-mix(in srgb, #fff 88%, var(--fecoa-blue) 12%);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #fff 35%, transparent);
}

.spotlight-events-more__link:hover {
  color: #fff;
  border-bottom-color: var(--fecoa-blue, #009cde);
}

.spotlight.spotlight--events .spotlight-event-viewport {
  overflow: hidden;
  width: 100%;
}

.spotlight.spotlight--events .spotlight-event-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight.spotlight--events .spotlight-event-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(260px, 38vh, 420px);
  align-items: stretch;
}

@media (min-width: 900px) {
  .spotlight.spotlight--events .spotlight-event-slide {
    grid-template-columns: 1.12fr 0.88fr;
    min-height: clamp(280px, 34vh, 440px);
  }
}

.spotlight.spotlight--events .spotlight-event-slide__media {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (min-width: 900px) {
  .spotlight.spotlight--events .spotlight-event-slide__media {
    min-height: 0;
    border-radius: var(--radius) 0 0 var(--radius);
  }
}

.spotlight.spotlight--events .spotlight-event-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight.spotlight--events .spotlight-event-slide__copy {
  padding: 1.5rem 1.25rem 1.65rem;
  justify-content: center;
}

.spotlight.spotlight--events .spotlight-event-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.spotlight.spotlight--events .spotlight-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.35rem;
}

.spotlight.spotlight--events .spotlight-event-athletes {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.spotlight.spotlight--events .spotlight-event-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem 0.85rem;
}

.spotlight.spotlight--events .spotlight-event-prev,
.spotlight.spotlight--events .spotlight-event-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.spotlight.spotlight--events .spotlight-event-prev:hover,
.spotlight.spotlight--events .spotlight-event-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.spotlight.spotlight--events .spotlight-event-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 14rem;
}

.spotlight.spotlight--events .spotlight-event-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.spotlight.spotlight--events .spotlight-event-dot.is-active {
  background: var(--fecoa-red, #e31b23);
  transform: scaleY(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .spotlight.spotlight--events .spotlight-event-track {
    transition-duration: 0.01ms;
  }
}

.videos-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.videos-track {
  display: flex;
  gap: 0.85rem;
  min-width: min-content;
}

.video-card {
  width: 260px;
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #334155, #0f172a);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(227, 27, 35, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  padding-left: 3px;
}
.play-badge svg {
  display: block;
}

.video-title {
  margin: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ribbon {
  background: var(--fecoa-black);
  color: #f0f4f8;
  padding: 0.85rem 0;
  font-weight: 600;
}

.ribbon-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ribbon-inner a:hover {
  color: #fff;
  text-decoration: underline;
}

.ribbon-meta {
  font-size: 0.85rem;
  color: rgba(0, 157, 222, 0.85);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.event-row:hover {
  border-color: #c5ceda;
}

.event-date {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}

.event-title {
  font-weight: 600;
}

.event-place {
  color: var(--muted);
  font-size: 0.88rem;
}

.promo-banner {
  background: #e9edf4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.promo-visual img {
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.promo-placeholder {
  min-height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.promo-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.join-cta {
  position: relative;
  padding: 3rem 0;
  color: #fff;
  background: linear-gradient(120deg, #000000 0%, #0a1a28 45%, #003d55 100%);
  text-align: center;
}

.join-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.55);
}

.join-inner {
  position: relative;
}

.join-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  line-height: 1.2;
}

.join-sub {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: #dbe7fb;
}

.site-footer {
  background: #050b14;
  color: #b7c4d9;
  padding: 2rem 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.footer-tag {
  margin: 0;
}

.footer-links,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #fff;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7fb;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.social-svg {
  display: block;
}

.sponsor-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
  text-align: center;
  color: #7c8aa0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-fab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  margin: 0;
  z-index: 60;
}
.admin-fab a {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Admin */
.admin-body {
  background: #f8fafc;
  min-height: 100vh;
}
.admin-top {
  background: var(--fecoa-black);
  color: #e8eef8;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-top a {
  color: #fff;
  font-weight: 600;
}
.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.field-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.field-grid input[type="text"],
.field-grid textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font: inherit;
}
.field-grid textarea {
  min-height: 120px;
  resize: vertical;
}
.field-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.field-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.thumb-preview {
  max-width: 200px;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
}
.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}
.notice {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.section-list a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}
.section-list a:hover {
  color: var(--us-red);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .hero-carousel-slide {
    transition: none;
  }
  .hero-carousel-slide.is-active .hero-carousel-bg {
    animation: none !important;
    transform: scale(var(--kb-min, 1.03));
    will-change: auto;
  }
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-card--media {
    flex-direction: row;
    align-items: stretch;
  }
  .news-card--media .news-thumb {
    width: 42%;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .news-card--media .news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .event-row {
    grid-template-columns: 140px 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .news-card--media {
    flex-direction: column;
  }
  .news-card--media .news-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .athletes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .spotlight {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .promo-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
  .ribbon-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-carousel-nav {
    display: flex;
  }
}

.news-place {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.current-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .current-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .current-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.current-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.current-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.current-event-media {
  display: block;
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.current-event-media--empty {
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 55%, #94a3b8 100%);
}

.current-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.current-event-card:hover .current-event-media img {
  transform: scale(1.04);
}

.current-event-body {
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: flex-start;
  min-width: 0;
}

.current-event-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-family: var(--font-head);
  min-height: calc(1.35em * 2);
}

.current-event-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.current-event-title a:hover {
  color: var(--us-red);
}

.current-event-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.current-event-place {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.current-event-register {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.5rem;
  text-align: center;
  text-decoration: none;
}

.current-event-athletes {
  margin: 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
  min-height: 2.25rem;
}

.current-event-athletes--empty {
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.contact-strip {
  background: var(--fecoa-dark);
  color: #e8eef8;
}

.contact-strip-inner {
  padding: 2rem 0 2.5rem;
}

.contact-strip .section-title {
  color: #fff;
}

.contact-strip-text {
  margin: 0.5rem 0 0;
  max-width: 40rem;
  color: rgba(226, 232, 240, 0.88);
}

/* Página pública de eventos (/eventos) y cabecera compartida */
.calendar-page-header {
  background: var(--navy);
  color: #e8eef8;
  padding: 1.25rem 0 1.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-page-header-inner {
  max-width: var(--container, 72rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.calendar-back-link {
  display: inline-block;
  color: var(--fecoa-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.calendar-back-link:hover {
  text-decoration: underline;
}

.calendar-page-title {
  margin: 0.85rem 0 0.4rem;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.2;
}

.calendar-page-lead {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
  max-width: 40rem;
}

.calendar-empty-msg {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.fecoa-calendar-page .current-events-section {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.events-page-main {
  padding-bottom: 2rem;
}

.events-page-block {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.events-page-block--alt {
  background: #f8fafc;
  border-top: 1px solid var(--line, #e2e8f0);
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.fecoa-events-page .current-events-section .section-head {
  margin-bottom: 1rem;
}

/* Barra de filtros — página /eventos */
.events-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--line, #e2e8f0);
  padding: 1.25rem 0 1.5rem;
}

.events-filter-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.events-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.events-filter-dates {
  align-items: flex-end;
}

.events-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.events-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
}

.events-filter-select,
.events-filter-date {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--fecoa-dark, #0f172a);
  min-height: 2.35rem;
}

.events-filter-select--wide {
  flex: 1 1 16rem;
  min-width: 12rem;
  max-width: 100%;
}

.events-filter-presets,
.events-filter-chips {
  align-items: center;
}

.events-filter-legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  margin-right: 0.35rem;
}

.events-preset-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: var(--fecoa-dark, #0f172a);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.events-preset-btn:hover {
  border-color: var(--fecoa-blue, #009cde);
  color: var(--fecoa-blue, #009cde);
}

.events-preset-btn.is-selected {
  border-color: var(--fecoa-blue, #009cde);
  background: var(--fecoa-blue, #009cde);
  color: #fff;
}

.events-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.events-chip input {
  margin: 0;
  accent-color: var(--fecoa-blue, #009cde);
}

.events-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

.events-page-btn {
  min-width: 6.5rem;
}

.events-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.events-page-indicator {
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  font-weight: 600;
}

@keyframes fecoa-event-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 156, 222, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(0, 156, 222, 0);
  }
}

.current-event-card--flash {
  animation: fecoa-event-flash 1.2s ease-out 1;
  border-radius: 12px;
}
