:root {
  --green: #16a163;
  --green-dark: #0f6f47;
  --green-deep: #073f2a;
  --green-light: #e8f7ef;
  --lime: #b7f34a;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --text: #17231d;
  --muted: #667085;
  --border: rgba(15, 111, 71, 0.14);
  --background: #f4fbf7;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(15, 111, 71, 0.16);
  --soft-shadow: 0 18px 45px rgba(15, 111, 71, 0.08);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(183, 243, 74, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(22, 161, 99, 0.22), transparent 30%),
    var(--background);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 111, 71, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 111, 71, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 18px;
  color: var(--green-deep);
  font-size: clamp(56px, 10vw, 126px);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

label {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

select:focus,
input:focus {
  border-color: rgba(22, 161, 99, 0.5);
  box-shadow: 0 0 0 4px rgba(22, 161, 99, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid rgba(15, 111, 71, 0.1);
  text-align: left;
}

th {
  background: rgba(232, 247, 239, 0.9);
  color: var(--green-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover {
  background: rgba(232, 247, 239, 0.52);
}

/* Base */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 18px 58px;
}

.glass-card,
.impact-card,
.results-hero,
.podium-card,
.filters-panel,
.table-card,
.partners-hero,
.partners-toolbar,
.partner-card,
.contact-hero,
.contact-card,
.challenge-card,
.challenge-hero,
.challenge-info-card,
.poster-section,
.race-hero,
.race-switcher,
.race-info-card,
.route-map-card,
.race-common-card,
.kiloreto-hero,
.kiloreto-progress-hero,
.kiloreto-info-card,
.kiloreto-cta-section {
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.event-badge,
.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(232, 247, 239, 0.92);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.soft-pill {
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.share-btn {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 18px 44px rgba(15, 111, 71, 0.28);
}

.secondary-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--green-deep);
}

.primary-button:hover,
.secondary-button:hover,
.share-btn:hover {
  transform: translateY(-2px);
}

.collaborate-button {
  background: linear-gradient(135deg, #84cc16, var(--green));
}

.collaborate-button-light {
  border: 1px solid rgba(15, 111, 71, 0.18);
  background: linear-gradient(135deg, rgba(183, 243, 74, 0.42), white);
  color: var(--green-deep);
}

.full-width-button {
  grid-column: 1 / -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.compact-actions {
  margin: 22px 0 0;
}

.single-action {
  width: fit-content;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.empty-message,
.empty-inline {
  display: none;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.empty-inline {
  display: block;
  grid-column: 1 / -1;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(32px, 5vw, 54px) 18px 24px;
  border-top: 1px solid rgba(15, 111, 71, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(232, 247, 239, 0.92)),
    radial-gradient(circle at 12% 0%, rgba(183, 243, 74, 0.22), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(22, 161, 99, 0.16), transparent 32%);
}

.site-footer-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.site-footer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.site-footer-heading h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.site-footer-heading p:not(.eyebrow) {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.sponsor-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 10px;
}

.sponsor-logo-card {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 111, 71, 0.07);
}

.sponsor-logo-card img {
  display: block;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 111, 71, 0.12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
}

.site-footer-links a {
  color: var(--green-deep);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--green);
}

.reveal {
  animation: revealUp 0.75s both cubic-bezier(.22, 1, .36, 1);
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.32s;
}

/* Header */
.event-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  overflow: hidden;
  border-bottom: 1px solid rgba(183, 243, 74, 0.22);
  background:
    linear-gradient(90deg, rgba(183, 243, 74, 0.08), transparent 22%, rgba(22, 161, 99, 0.12) 72%),
    linear-gradient(135deg, #031611 0%, #05251b 48%, #073f2a 100%);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 14px 38px rgba(3, 22, 17, 0.16);
  color: white;
}

.event-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, black, transparent 86%);
}

.event-topbar,
.event-topbar * {
  min-width: 0;
}

.event-topbar-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 4px clamp(18px, 4vw, 52px);
}

.event-topbar-status,
.event-topbar-item,
.event-topbar-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.event-topbar-status {
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(183, 243, 74, 0.30);
  background: rgba(183, 243, 74, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #e9ffc2;
  font-size: 12px;
  font-weight: 900;
}

.event-topbar-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(183, 243, 74, 0.14), 0 0 18px rgba(183, 243, 74, 0.58);
}

.event-topbar--done .event-topbar-dot {
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 16px rgba(255, 255, 255, 0.28);
}

.event-topbar-status,
.event-topbar-cta {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.event-topbar-marquee {
  flex: 1 1 auto;
  min-width: 80px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 22px, black calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 22px, black calc(100% - 22px), transparent 100%);
}

.event-topbar-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: eventTopbarMarquee 16s linear infinite;
  will-change: transform;
}

.event-topbar-marquee-group {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 18px;
}

.event-topbar-marquee:hover .event-topbar-marquee-track {
  animation-play-state: paused;
}

.event-topbar-marquee .event-topbar-item {
  flex: 0 0 auto;
  max-width: none;
}

.event-topbar-item {
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.event-topbar-item::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(183, 243, 74, 0.82);
}

.event-topbar-location::before {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(183, 243, 74, 0.82);
  background: transparent;
}

.event-topbar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-topbar-item:hover {
  border-color: rgba(183, 243, 74, 0.34);
  background: rgba(183, 243, 74, 0.10);
}

.event-topbar-cta {
  justify-content: center;
  min-height: 26px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--lime), #22c55e);
  box-shadow: 0 10px 24px rgba(183, 243, 74, 0.18);
  color: #05251b;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-topbar-cta:hover {
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(15, 111, 71, 0.1);
  background: rgba(244, 251, 247, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(132px, 18vw, 220px);
  max-height: 58px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(15, 111, 71, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px rgba(15, 111, 71, 0.08);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 800;
}

.nav-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--green-deep);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions a:not(.nav-pill):hover {
  background: rgba(232, 247, 239, 0.95);
}

.nav-pill {
  color: white !important;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 12px 32px rgba(15, 111, 71, 0.18);
}

@media (max-width: 1080px) and (min-width: 761px) {
  .site-header {
    gap: 12px;
    padding-inline: 18px;
  }

  .nav-actions {
    gap: 6px;
    font-size: 13px;
  }

  .nav-actions a {
    padding-inline: 10px;
  }
}

/* Home */
.hero {
  min-height: calc(100vh - 75px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(4px);
  animation: float 7s ease-in-out infinite;
}

.orb-one {
  width: 280px;
  height: 280px;
  top: 16%;
  right: 8%;
  background: rgba(183, 243, 74, 0.35);
}

.orb-two {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 8%;
  background: rgba(22, 161, 99, 0.22);
  animation-delay: 1s;
}

.hero-card {
  max-width: 780px;
  padding: clamp(34px, 7vw, 76px);
  border-radius: 38px;
}

.event-badge {
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

.event-badge-content {
  min-width: 0;
}

.event-badge .inline-location {
  white-space: nowrap;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 161, 99, 0.5);
  animation: pulse 1.8s infinite;
}

.inline-location {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.inline-location:hover {
  opacity: 0.8;
}

.hero-logo {
  display: block;
  width: min(100%, 620px);
  max-height: 350px;
  margin: 20px 0 22px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 28px rgba(15, 111, 71, 0.13));
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: #3d5146;
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 700;
  line-height: 1.35;
}

.main-cta-row {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(160px, auto);
  justify-content: start;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stats div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.mini-stats strong {
  display: block;
  color: var(--green-deep);
  font-size: 18px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-link {
  color: var(--green-deep);
  border-bottom: 2px solid rgba(22, 155, 98, 0.35);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.stat-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.pet-stat {
  grid-column: 1 / -1;
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(183, 243, 74, 0.48) !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(183, 243, 74, 0.46), transparent 34%),
    linear-gradient(135deg, rgba(7, 63, 42, 0.97), rgba(22, 161, 99, 0.94)) !important;
  color: white;
  box-shadow: 0 18px 44px rgba(15, 111, 71, 0.22);
}

.pet-stat::after {
  content: "🐾";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.17;
  font-size: 44px;
}

.pet-stat strong,
.pet-stat span {
  position: relative;
  z-index: 1;
  color: white !important;
}

.pet-stat strong {
  font-size: 22px;
  white-space: nowrap;
}

.pet-stat span {
  opacity: 0.9;
}

.hero-side-stack {
  display: grid;
  gap: 18px;
}

.impact-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 34px;
  overflow: hidden;
}

.impact-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(22, 161, 99, 0.12);
}

.impact-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 34px rgba(15, 111, 71, 0.14);
  font-size: 34px;
  animation: float 3.6s ease-in-out infinite;
}

.impact-card h2,
.podium-card h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.food-subtitle {
  color: var(--muted);
  line-height: 1.55;
}

.food-progress-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 24px 0 10px;
  color: var(--green-dark);
  font-weight: 900;
}

.food-progress-info strong {
  font-size: clamp(38px, 7vw, 58px);
  letter-spacing: -0.08em;
}

#porcentaje-comida {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--green-deep);
  color: white;
  font-size: 14px;
}

.food-progress {
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 71, 0.18);
  border-radius: 999px;
  background: #d9eee3;
  box-shadow: inset 0 3px 8px rgba(15, 111, 71, 0.12);
}

.food-progress-fill {
  position: relative;
  width: 0%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #84cc16 20%, #eab308 43%, #f97316 70%, #ef4444 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 1.5s cubic-bezier(.22, 1, .36, 1);
}

.food-progress-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.58) 45%, transparent 60%, transparent 100%);
  animation: shineMove 2.2s infinite;
}

.food-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.impact-message {
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(232, 247, 239, 0.88);
  color: var(--green-deep);
  font-weight: 900;
}

.kiloreto-card {
  border-color: rgba(22, 161, 99, 0.22);
}

.kiloreto-card h2 {
  max-width: 360px;
}

.kiloreto-card .impact-message {
  margin-bottom: 16px;
}

.kiloreto-button {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--green-deep), #f59e0b);
}

.kiloreto-card .kiloreto-button {
  width: 100%;
}

/* Kiloreto */
.kiloreto-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.kiloreto-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(52px, 8vw, 96px);
}

.kiloreto-hero p:not(.eyebrow),
.kiloreto-info-card p,
.kiloreto-cta-section p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.kiloreto-hero p:not(.eyebrow) {
  max-width: 780px;
  font-size: clamp(17px, 2.2vw, 22px);
}

.kiloreto-progress-hero {
  isolation: isolate;
  min-height: 350px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 16%, rgba(250, 204, 21, 0.34), transparent 27%),
    radial-gradient(circle at 84% 12%, rgba(183, 243, 74, 0.30), transparent 25%),
    linear-gradient(145deg, #052f21, var(--green-deep) 42%, #0f8c58 78%, #f59e0b);
  box-shadow: 0 28px 72px rgba(7, 63, 42, 0.34);
  color: white;
}

.kiloreto-progress-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(145deg, black, transparent 75%);
}

.kiloreto-progress-hero > * {
  position: relative;
  z-index: 1;
}

.kiloreto-progress-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.kiloreto-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.kiloreto-live-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kiloreto-kg-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kiloreto-kg-line strong {
  color: white;
  font-size: clamp(62px, 8.4vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.08em;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.kiloreto-kg-line span {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 900;
}

.kiloreto-percent {
  min-width: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(0, 0, 0, 0.16);
  color: white;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.kiloreto-track-wrap {
  position: relative;
  margin-top: 10px;
}

.kiloreto-main-progress {
  position: relative;
  height: clamp(42px, 7vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(4, 31, 23, 0.58);
  box-shadow:
    inset 0 3px 13px rgba(0, 0, 0, 0.32),
    0 18px 42px rgba(0, 0, 0, 0.18);
}

.kiloreto-hero-meter .food-progress-fill {
  background:
    linear-gradient(90deg, #22c55e 0%, #84cc16 52%, #facc15 100%);
  box-shadow:
    0 0 24px rgba(250, 204, 21, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  animation: kiloretoBarBreath 3.8s ease-in-out infinite;
}

.kiloreto-progress-hero .food-scale {
  color: rgba(255, 255, 255, 0.78);
}

.kiloreto-progress-hero .impact-message {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: white;
}

.kiloreto-quick-grid,
.kiloreto-food-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.kiloreto-quick-grid {
  grid-template-columns: repeat(2, 1fr);
}

.kiloreto-food-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kiloreto-info-card,
.kiloreto-cta-section {
  padding: 26px;
  border-radius: 30px;
}

.kiloreto-info-card h2,
.kiloreto-cta-section h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.kiloreto-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 21px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.kiloreto-list li::marker {
  color: var(--green-dark);
  font-weight: 900;
}

.kiloreto-care-card {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.15), transparent 26%),
    var(--glass);
}

.kiloreto-cta-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(250, 204, 21, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(7, 63, 42, 0.96), rgba(15, 111, 71, 0.94));
  color: white;
  text-align: center;
}

.kiloreto-cta-section .eyebrow,
.kiloreto-cta-section h2,
.kiloreto-cta-section p {
  color: white;
}

.kiloreto-cta-section h2 {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

.kiloreto-cta-section p:not(.eyebrow) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0.88;
}

.kiloreto-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.kiloreto-cta-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.95);
}

/* Reto Strava */
.challenge-card {
  padding: clamp(22px, 4vw, 30px);
  border-radius: 34px;
  overflow: hidden;
}

.challenge-card::after {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.16);
}

.challenge-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.challenge-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 34px rgba(15, 111, 71, 0.14);
  font-size: 31px;
  animation: float 3.8s ease-in-out infinite;
}

.challenge-tag {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.16);
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-card h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.challenge-subtitle {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.challenge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0;
}

.challenge-stats div {
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(232, 247, 239, 0.88);
}

.challenge-stats strong {
  display: block;
  color: var(--green-deep);
  font-size: 17px;
  letter-spacing: -0.04em;
}

.challenge-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.challenge-button {
  width: 100%;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--green-deep), var(--orange));
}

.challenge-hero {
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.challenge-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(46px, 7vw, 86px);
}

.challenge-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.challenge-hero-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--green-deep), var(--orange));
  box-shadow: 0 22px 52px rgba(15, 111, 71, 0.24);
  color: white;
  text-align: center;
}

.challenge-hero-card span {
  font-size: 44px;
}

.challenge-hero-card strong {
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.challenge-hero-card small {
  opacity: 0.88;
  font-weight: 900;
}

.challenge-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.challenge-info-card {
  padding: 26px;
  border-radius: 30px;
}

.challenge-info-card h2,
.poster-section h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.challenge-info-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.challenge-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.challenge-list a {
  color: var(--green-dark);
  font-weight: 900;
}

.challenge-inline-button {
  width: fit-content;
  margin-top: 8px;
}

.poster-section {
  padding: clamp(22px, 4vw, 30px);
  border-radius: 34px;
}

.challenge-poster {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 26px;
  box-shadow: 0 22px 56px rgba(7, 63, 42, 0.18);
}

/* Recorridos */
.race-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.race-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(46px, 7vw, 90px);
}

.race-hero p:not(.eyebrow),
.race-info-card p,
.race-common-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.race-hero p:not(.eyebrow) {
  max-width: 780px;
  font-size: clamp(17px, 2vw, 22px);
}

.race-hero-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 18%, rgba(250, 204, 21, 0.30), transparent 32%),
    linear-gradient(145deg, var(--green-deep), var(--green) 66%, #f59e0b);
  box-shadow: 0 24px 56px rgba(15, 111, 71, 0.24);
  color: white;
  text-align: center;
}

.race-hero-card span {
  font-size: clamp(58px, 8vw, 82px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.09em;
}

.race-hero-card strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.race-hero-card small {
  max-width: 160px;
  opacity: 0.88;
  font-weight: 900;
  line-height: 1.35;
}

.race-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 28px;
}

.race-tab {
  min-height: 80px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-deep);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.race-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 161, 99, 0.34);
  background: white;
}

.race-tab.is-active {
  border-color: rgba(15, 111, 71, 0.28);
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 16px 34px rgba(15, 111, 71, 0.20);
  color: white;
}

.race-tab strong,
.race-tab span {
  display: block;
}

.race-tab strong {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.1;
}

.race-tab span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.race-tab strong span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.race-tab .race-tab-short {
  display: none;
}

.race-tab.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.race-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-bottom: 22px;
}

.race-info-card,
.route-map-card,
.race-common-card {
  padding: 26px;
  border-radius: 30px;
}

.race-info-card h2,
.route-map-card h2,
.race-common-card h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.race-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.race-facts div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(232, 247, 239, 0.86);
}

.race-facts dt {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-facts dd {
  margin: 0;
  color: var(--green-deep);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.race-bullets {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 21px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.race-bullets li::marker {
  color: var(--green-dark);
}

.race-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.race-actions .secondary-button {
  border-color: rgba(15, 111, 71, 0.18);
}

.route-map-card {
  overflow: hidden;
}

.route-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 71, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    radial-gradient(circle at 22% 20%, rgba(183, 243, 74, 0.30), transparent 31%),
    radial-gradient(circle at 80% 76%, rgba(251, 146, 60, 0.18), transparent 30%),
    linear-gradient(145deg, #dff3ea, #f8fff6);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.route-map {
  display: block;
  width: 100%;
  height: clamp(320px, 39vw, 440px);
  min-height: 320px;
  overflow: hidden;
  border-radius: 29px;
  background: #183b2e;
}

.route-map.leaflet-container,
.route-map .leaflet-container,
.route-map .leaflet-pane,
.route-map .leaflet-top,
.route-map .leaflet-bottom {
  font-family: Inter, Arial, sans-serif;
}

.route-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 800;
}

.route-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(7, 63, 42, 0.28);
}

.route-map .leaflet-control-zoom a {
  border: 0;
  color: var(--green-deep);
  font-weight: 900;
}

.route-map-tooltip {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(7, 63, 42, 0.26);
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 900;
}

.route-map-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.92);
}

.route-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-deep);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.route-loading.is-visible {
  opacity: 1;
}

.route-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.route-profile {
  padding: 14px;
  border: 1px solid rgba(15, 111, 71, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.route-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.route-profile-head span {
  color: var(--muted);
}

.route-profile svg {
  display: block;
  width: 100%;
  height: 110px;
}

.route-profile-area {
  fill: rgba(22, 161, 99, 0.12);
}

.route-profile-line {
  fill: none;
  stroke: var(--green-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.race-common-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.race-common-card {
  min-height: 280px;
}

.race-hero > *,
.race-detail-layout > *,
.race-common-grid > *,
.race-switcher > * {
  min-width: 0;
}

/* Resultados */
.results-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.results-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(48px, 8vw, 92px);
}

.results-hero p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.summary-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.summary-card strong {
  display: block;
  color: var(--green-deep);
  font-size: 18px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.podium-card,
.filters-panel,
.table-card {
  margin-bottom: 22px;
  border-radius: 28px;
}

.podium-card {
  padding: 24px;
}

.podium {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.92fr;
  align-items: end;
  gap: 16px;
  min-height: 330px;
  padding: 24px 10px 6px;
  overflow: hidden;
}

.podium::before {
  content: "";
  position: absolute;
  inset: 20px 0 auto;
  height: 180px;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 50% 48%, rgba(22, 161, 99, 0.12), transparent 30%),
    radial-gradient(circle at 20% 65%, rgba(183, 243, 74, 0.12), transparent 24%);
  filter: blur(2px);
}

.podium-place {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-items: end;
  isolation: isolate;
  animation: podiumEntrance 0.78s both cubic-bezier(.18, 1.35, .28, 1);
}

.place-1 {
  min-height: 292px;
}

.place-2 {
  min-height: 252px;
}

.place-3 {
  min-height: 232px;
}

.podium-info {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 8px -10px;
  padding: 16px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(7, 63, 42, 0.10);
  text-align: center;
  backdrop-filter: blur(14px);
}

.podium-medal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 28px;
}

.podium-place strong {
  color: var(--green-deep);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.05;
}

.podium-place span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.podium-place b {
  color: var(--green-dark);
  font-size: clamp(23px, 2.8vw, 34px);
  letter-spacing: -0.06em;
}

.podium-block {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 30px 30px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, var(--green-deep), var(--green));
  box-shadow: 0 24px 54px rgba(7, 63, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.place-1 .podium-block {
  min-height: 194px;
  background: linear-gradient(145deg, #d8a700, #facc15 45%, #fff2a8);
}

.place-2 .podium-block {
  min-height: 154px;
  background: linear-gradient(145deg, #7d8794, #d7dde6 52%, #ffffff);
}

.place-3 .podium-block {
  min-height: 126px;
  background: linear-gradient(145deg, #9a5a22, #d58a45 54%, #ffd0a3);
}

.podium-block span {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  text-shadow: 0 10px 26px rgba(7, 63, 42, 0.22);
}

.place-1 .podium-block span {
  color: rgba(7, 63, 42, 0.42);
}

.filters-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  padding: 18px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-card {
  overflow: hidden;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-deep);
  font-weight: 900;
}

.share-btn {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: white;
}

.mobile-results {
  display: none;
}

.result-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
}

.result-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-card h3 {
  margin-bottom: 12px;
  color: var(--green-deep);
  font-size: 18px;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.empty-state-results {
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.empty-state-icon {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 10vw, 4rem);
}

.empty-state-results h3 {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.15;
}

.empty-state-results p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  line-height: 1.6;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border-radius: 16px;
  background: var(--green-deep);
  box-shadow: 0 18px 42px rgba(7, 63, 42, 0.32);
  color: white;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: 0.28s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Colaboradores */
.partners-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.partners-hero h1,
.contact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(46px, 7vw, 86px);
}

.partners-hero p:not(.eyebrow),
.contact-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.partners-hero-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 190px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--green-deep), var(--green));
  box-shadow: 0 22px 52px rgba(15, 111, 71, 0.24);
  color: white;
}

.partners-hero-card span {
  font-size: 42px;
}

.partners-hero-card strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.partners-hero-card small {
  opacity: 0.86;
  font-weight: 900;
}

.partners-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 28px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.partner-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 30px;
  animation: revealUp 0.65s both cubic-bezier(.22, 1, .36, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 76px rgba(15, 111, 71, 0.18);
}

.partner-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.partner-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 25% 20%, rgba(183, 243, 74, 0.48), transparent 38%),
    linear-gradient(145deg, #ffffff, #e8f7ef);
  box-shadow: 0 14px 34px rgba(15, 111, 71, 0.12);
  color: var(--green-deep);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  padding: 10px;
  background: white;
  object-fit: contain;
}

.partner-card h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 27px;
  letter-spacing: -0.045em;
}

.partner-card p {
  flex: 1;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.donation-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(232, 247, 239, 0.9);
}

.donation-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-box strong {
  color: var(--green-deep);
  font-size: 17px;
  line-height: 1.35;
}

/* Contacto */
.contact-hero {
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
}

.section-logo {
  display: block;
  width: min(100%, 560px);
  max-height: 140px;
  margin: 8px 0 18px;
  object-fit: contain;
  object-position: left center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 26px;
  border-radius: 30px;
}

.contact-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 34px rgba(15, 111, 71, 0.14);
  font-size: 30px;
}

.contact-card h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.contact-card a {
  border-bottom: 2px solid rgba(22, 155, 98, 0.28);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.contact-card a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}

.contact-card p {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px) {
  .partners-hero,
  .partners-toolbar,
  .challenge-hero,
  .challenge-detail-grid,
  .race-hero,
  .race-detail-layout,
  .race-common-grid,
  .kiloreto-hero,
  .kiloreto-quick-grid,
  .kiloreto-food-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero,
  .results-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .results-page .container {
    padding-inline: 1rem;
  }

  .results-hero {
    gap: 1rem;
  }

  .results-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
    line-height: 0.95;
  }

  .results-hero > div:first-child p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.45;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card strong {
    font-size: 1.2rem;
  }

  .section-title-row h2 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .empty-state-results {
    padding: 2rem 1rem;
    border-radius: 20px;
  }
}

@media (max-width: 680px) {
  .carreras-page {
    overflow-x: hidden;
  }

  .carreras-page .container,
  .carreras-page .race-hero,
  .carreras-page .race-hero > div,
  .carreras-page .race-hero-card,
  .carreras-page .race-switcher,
  .carreras-page .race-detail-layout,
  .carreras-page .race-info-card,
  .carreras-page .route-map-card,
  .carreras-page .race-common-grid,
  .carreras-page .race-common-card {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding: 18px 14px 42px;
  }

  .site-header {
    top: 0;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: min(62vw, 190px);
    max-height: 48px;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    font-size: clamp(9px, 2.65vw, 11px);
  }

  .nav-actions a {
    min-height: 38px;
    padding: 8px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    font-weight: 900;
    white-space: normal;
    text-align: center;
  }

  .nav-actions .nav-pill {
    background: var(--green-deep);
    box-shadow: 0 8px 18px rgba(7, 63, 42, 0.20);
    color: white !important;
  }

  .hero {
    gap: 14px;
    padding: 12px;
  }

  .hero-card,
  .impact-card,
  .results-hero,
  .podium-card,
  .filters-panel,
  .table-card,
  .partners-hero,
  .partners-toolbar,
  .partner-card,
  .contact-hero,
  .contact-card,
  .challenge-card,
  .challenge-hero,
  .challenge-info-card,
  .poster-section,
  .race-hero,
  .race-switcher,
  .race-info-card,
  .route-map-card,
  .race-common-card,
  .kiloreto-hero,
  .kiloreto-progress-hero,
  .kiloreto-info-card,
  .kiloreto-cta-section {
    border-radius: 24px;
  }

  .hero-card {
    padding: 18px 15px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .event-badge {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }

  .hero-logo {
    max-height: 174px;
    margin: 12px auto 14px;
    object-position: center;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    width: 100%;
    margin-bottom: 18px;
  }

  .single-action {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 12px 10px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .mini-stats div {
    padding: 10px 6px;
    border-radius: 16px;
    text-align: center;
  }

  .mini-stats strong,
  .stat-link {
    font-size: 14px;
  }

  .mini-stats span {
    font-size: 11px;
  }

  .mini-stats .pet-stat {
    grid-column: 1 / -1;
    min-height: 66px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .mini-stats .pet-stat strong {
    font-size: 18px;
  }

  .mini-stats .pet-stat span {
    font-size: 12px;
  }

  .pet-stat::after {
    right: 14px;
    font-size: 34px;
  }

  .impact-card {
    padding: 20px 16px;
  }

  .kiloreto-button {
    min-height: 46px;
  }

  .food-progress-info {
    margin-top: 18px;
  }

  .food-progress-info strong {
    font-size: 38px;
  }

  .challenge-card {
    padding: 20px 16px;
  }

  .challenge-card-top {
    align-items: flex-start;
  }

  .challenge-tag {
    font-size: 10px;
    text-align: right;
  }

  .challenge-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .challenge-stats div {
    padding: 10px 6px;
    border-radius: 16px;
    text-align: center;
  }

  .challenge-stats strong {
    font-size: 14px;
  }

  .challenge-stats span {
    font-size: 10px;
  }

  .challenge-hero {
    padding: 20px 16px;
  }

  .challenge-hero-card {
    min-height: 150px;
  }

  .challenge-info-card {
    padding: 20px 16px;
  }

  .challenge-poster {
    border-radius: 18px;
  }

  .race-hero,
  .race-info-card,
  .route-map-card,
  .race-common-card {
    min-width: 0;
    padding: 20px 16px;
  }

  .race-hero h1 {
    overflow-wrap: break-word;
    font-size: clamp(40px, 12vw, 58px);
  }

  .race-hero p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
  }

  .race-hero-card {
    min-height: 150px;
    padding: 18px;
    border-radius: 20px;
  }

  .carreras-page .race-switcher {
    width: min(100%, 360px);
  }

  .race-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 6px;
  }

  .race-tab {
    width: 100%;
    min-width: 0;
    min-height: 76px;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 4px;
    text-align: center;
  }

  .race-tab strong {
    margin-bottom: 5px;
    font-size: clamp(11px, 3vw, 13px);
  }

  .race-tab span {
    font-size: clamp(9px, 2.45vw, 10px);
    line-height: 1.25;
  }

  .race-tab .race-tab-full {
    display: none;
  }

  .race-tab .race-tab-short {
    display: block;
  }

  .race-tab strong,
  .race-tab span,
  .race-facts dd,
  .race-bullets li {
    overflow-wrap: anywhere;
  }

  .carreras-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .race-facts {
    grid-template-columns: 1fr;
    margin: 18px 0;
  }

  .race-facts div {
    min-height: auto;
  }

  .race-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-map-shell {
    border-radius: 20px;
  }

  .route-map {
    height: 285px;
    min-height: 285px;
    border-radius: 19px;
  }

  .route-meta-row {
    font-size: 12px;
  }

  .route-profile {
    padding: 12px;
    border-radius: 18px;
  }

  .route-profile svg {
    height: 86px;
  }

  .kiloreto-hero,
  .kiloreto-progress-hero,
  .kiloreto-info-card,
  .kiloreto-cta-section {
    padding: 20px 16px;
  }

  .kiloreto-hero h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .kiloreto-hero p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.45;
  }

  .kiloreto-progress-hero {
    order: -1;
    min-height: 318px;
    border-radius: 20px;
  }

  .kiloreto-progress-head {
    gap: 10px;
  }

  .kiloreto-kg-line {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .kiloreto-kg-line strong {
    font-size: clamp(58px, 19vw, 84px);
  }

  .kiloreto-kg-line span {
    font-size: 17px;
  }

  .kiloreto-percent {
    min-width: 58px;
    padding: 8px 9px;
    font-size: 14px;
  }

  .kiloreto-main-progress {
    height: 46px;
  }

  .kiloreto-info-card h2,
  .kiloreto-cta-section h2 {
    font-size: 26px;
  }

  .kiloreto-list {
    padding-left: 18px;
    font-size: 14px;
  }

  .kiloreto-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .partners-hero,
  .results-hero,
  .contact-hero {
    padding: 20px 16px;
  }

  .partners-hero-card {
    min-height: 150px;
  }

  .partners-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: auto;
  }

  .section-logo {
    max-height: 92px;
    margin-right: auto;
    margin-left: auto;
    object-position: center;
  }

  .section-title-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .soft-pill {
    align-self: flex-start;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .podium-card {
    padding: 16px 12px 18px;
  }

  .podium-card .section-title-row {
    margin-bottom: 12px;
  }

  .podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    min-height: 245px;
    padding: 10px 0 0;
    overflow: visible;
  }

  .podium::before {
    inset: auto 0 0;
    height: 92px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(232, 247, 239, 0), rgba(232, 247, 239, 0.95));
    filter: none;
  }

  .place-2 {
    order: 1;
  }

  .place-1 {
    order: 2;
  }

  .place-3 {
    order: 3;
  }

  .podium-place {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .podium-info {
    justify-items: center;
    width: 100%;
    min-height: 112px;
    margin: 0 0 -7px;
    padding: 9px 5px 12px;
    border: 1px solid rgba(15, 111, 71, 0.10);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(7, 63, 42, 0.08);
    text-align: center;
  }

  .place-1 .podium-info {
    border-color: rgba(250, 204, 21, 0.38);
  }

  .podium-medal {
    width: auto;
    height: auto;
    margin-bottom: 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
  }

  .podium-place strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.12;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .podium-place span {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.15;
  }

  .podium-place b {
    justify-self: center;
    margin-top: 4px;
    font-size: 17px;
    line-height: 1;
  }

  .podium-block {
    min-height: 86px;
    border-radius: 16px 16px 10px 10px;
    box-shadow: 0 12px 22px rgba(7, 63, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .place-1 .podium-block {
    min-height: 122px;
  }

  .place-2 .podium-block {
    min-height: 94px;
  }

  .place-3 .podium-block {
    min-height: 74px;
  }

  .podium-block span {
    font-size: 44px;
    letter-spacing: -0.08em;
  }

  .site-footer {
    margin-top: 30px;
    padding: 28px 14px 22px;
  }

  .site-footer-heading,
  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-heading h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .sponsor-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sponsor-logo-card {
    min-height: 76px;
    padding: 12px;
    border-radius: 16px;
  }

  .sponsor-logo-card img {
    max-height: 46px;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  table {
    display: none;
  }

  .mobile-results {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .empty-message {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .empty-state-results {
    padding: 1.6rem 0.85rem;
  }

  .empty-state-results p {
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .podium {
    gap: 4px;
    min-height: 232px;
  }

  .podium-info {
    min-height: 108px;
    padding: 8px 4px 11px;
    border-radius: 13px;
  }

  .podium-medal {
    font-size: 20px;
  }

  .podium-place strong {
    font-size: 11px;
  }

  .podium-place span {
    font-size: 9px;
  }

  .podium-place b {
    font-size: 15px;
  }

  .podium-block {
    border-radius: 13px 13px 9px 9px;
  }

  .place-1 .podium-block {
    min-height: 112px;
  }

  .place-2 .podium-block {
    min-height: 86px;
  }

  .place-3 .podium-block {
    min-height: 68px;
  }

  .podium-block span {
    font-size: 38px;
  }
}

@media (max-width: 380px) {
  .nav-actions {
    gap: 5px;
  }

  .nav-actions a {
    min-height: 34px;
    padding: 7px 3px;
    font-size: 10px;
  }

  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-stats .pet-stat {
    grid-column: 1 / -1;
  }

  .event-badge {
    font-size: 11px;
  }

  .hero-logo {
    max-height: 160px;
  }
}

/* Animaciones */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shineMove {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 161, 99, 0.48);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(22, 161, 99, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 161, 99, 0);
  }
}

@keyframes podiumEntrance {
  from {
    opacity: 0;
    transform: translateY(58px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kiloretoBarBreath {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.28) brightness(1.08);
  }
}

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

/* Botón comida popular (variante visual) */
.comida-button {
  background: linear-gradient(135deg, #fef3c7, #fde68a); /* amarillo suave */
  border: 1px dashed rgba(251, 146, 60, 0.6);
  color: #92400e;
}

.comida-button:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  transform: translateY(-2px);
}


/* Menú desplegable responsive */
.nav-toggle,
.nav-toggle-button {
  display: none;
}

@media (max-width: 760px) {
  .event-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 4px;
    padding: 4px 6px;
    width: 100%;
    overflow: hidden;
  }

  .event-topbar-status {
    width: auto;
    max-width: 44vw;
    gap: 4px;
    padding: 6px 8px;
    overflow: hidden;
    font-size: clamp(11px, 3vw, 13px);
    text-overflow: ellipsis;
    flex: 0 0 auto;
  }

  .event-topbar-status strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-topbar-dot {
    width: 5px;
    height: 5px;
  }

  .event-topbar-marquee {
    min-width: 72px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
  }

  .event-topbar-marquee-track {
    animation-duration: 12s;
  }

  .event-topbar-marquee-group {
    gap: 4px;
    padding-right: 10px;
  }

  .event-topbar-item {
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: clamp(11px, 3vw, 13px);
  }

  .event-topbar-cta {
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    font-size: clamp(11px, 3vw, 13px);
    flex: 0 0 auto;
  }

  .site-header,
  .site-header.compact-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    justify-content: flex-start;
    min-width: 0;
  }

  .brand-logo {
    width: min(52vw, 174px);
    max-height: 46px;
  }

  .nav-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 111, 71, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 111, 71, 0.10);
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-lines {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .nav-toggle-lines > span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle:checked + .nav-toggle-button .nav-toggle-lines > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-button .nav-toggle-lines > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-button .nav-toggle-lines > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 0;
    margin: 0;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    color: var(--green-deep);
    font-size: 15px;
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease;
  }

  .nav-toggle:checked ~ .nav-actions {
    max-height: 520px;
    margin-top: 2px;
    padding: 8px;
    border: 1px solid rgba(15, 111, 71, 0.12);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 46px rgba(15, 111, 71, 0.14);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-actions a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 17px;
    font-size: 15px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
  }

  .nav-actions a:not(.nav-pill):hover {
    background: rgba(232, 247, 239, 0.95);
  }

  .nav-actions .nav-pill {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    color: white !important;
    box-shadow: 0 10px 26px rgba(7, 63, 42, 0.18);
  }
}

@media (max-width: 380px) {
  .event-topbar-inner {
    padding-inline: 8px;
  }

  .event-topbar-status {
    padding-inline: 8px;
  }

  .event-topbar-item {
    padding-inline: 5px;
  }

  .event-topbar-cta {
    padding-inline: 8px;
  }

  .nav-toggle-button {
    padding-inline: 12px;
  }

  .nav-toggle-label {
    display: none;
  }
}


@keyframes eventTopbarMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-25%, 0, 0);
  }
}