:root {
  --bg: #ffffff;
  --surface: #f7faff;
  --surface-green: #f4fbf7;

  --text: #0d1b36;
  --muted: #657086;

  --blue: #1769e0;
  --blue-dark: #0d55c5;
  --blue-soft: #eaf2ff;

  --green: #14a85a;
  --green-soft: #eaf8ef;

  --purple: #8b5cf6;
  --purple-soft: #f2edff;

  --orange: #f4a340;
  --orange-soft: #fff4e3;

  --border: #dfe7f2;

  --shadow:
    0 16px 40px
    rgba(20, 51, 96, 0.10);

  --radius: 24px;
}


/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 30;

  background:
    rgba(
      255,
      255,
      255,
      0.92
    );

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid
    rgba(
      223,
      231,
      242,
      0.75
    );
}

.nav-container {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin: 0 auto;

  min-height: 78px;

  display: flex;
  align-items: center;

  gap: 28px;
}


/* =========================
   LOGO
========================= */

.logo {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  font-size: 28px;
  font-weight: 900;

  letter-spacing: -0.8px;

  white-space: nowrap;
}


/* Logo real de RunCircuit */

.logo-image-link {
  display: inline-flex;
  align-items: center;

  flex-shrink: 0;

  width: auto;
  height: auto;

  overflow: hidden;
}

.logo-image-link .brand-logo {
  display: block;

  width: 190px !important;
  height: auto !important;

  max-width: 190px !important;
  max-height: 66px !important;

  object-fit: contain;
}


/* Footer */

.footer-logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-logo .footer-brand-logo {
  display: block;

  width: 185px !important;
  height: auto !important;

  max-width: 185px !important;
  max-height: 68px !important;

  object-fit: contain;
}


/* Logo anterior, por compatibilidad */

.logo
> span:last-child
> span {
  color: var(--blue);
}

.logo-icon {
  width: 44px;
  height: 44px;

  border-radius: 14px;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--blue)
    );

  color: white;

  font-size: 23px;

  box-shadow:
    0 10px 24px
    rgba(
      23,
      105,
      224,
      0.20
    );
}


/* =========================
   NAV
========================= */

.nav {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 28px;
}

.nav a {
  position: relative;

  font-size: 14px;
  font-weight: 700;

  color: #17243b;
}

.nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -10px;

  height: 2px;

  border-radius: 99px;

  background: var(--blue);

  transform: scaleX(0);

  transform-origin: center;

  transition:
    transform
    0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}


/* =========================
   BUTTONS
========================= */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 0 22px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: white;

  font-size: 14px;
  font-weight: 800;

  box-shadow:
    0 10px 24px
    rgba(
      23,
      105,
      224,
      0.22
    );

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 28px
    rgba(
      23,
      105,
      224,
      0.28
    );
}

.button-small {
  min-height: 44px;

  padding: 0 18px;

  white-space: nowrap;
}

.button-secondary {
  background: white;

  color: var(--text);

  border:
    1px solid #b8c8df;

  box-shadow: none;
}

.button-secondary:hover {
  box-shadow:
    0 10px 22px
    rgba(
      25,
      54,
      94,
      0.10
    );
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(
        72,
        164,
        255,
        0.22
      ),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 78%,
      rgba(
        33,
        185,
        107,
        0.14
      ),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbff 100%
    );
}

.hero::after {
  content: "";

  position: absolute;

  right: -90px;
  bottom: -90px;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    rgba(
      25,
      111,
      225,
      0.05
    );
}

.hero-content {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin: 0 auto;

  min-height: 620px;

  display: grid;

  grid-template-columns:
    0.95fr 1.05fr;

  align-items: center;

  gap: 42px;

  padding:
    62px 0 70px;

  position: relative;

  z-index: 2;
}

.beta-pill {
  width: fit-content;

  display: flex;

  align-items: center;

  gap: 7px;

  padding:
    8px 12px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.4px;

  border:
    1px solid
    rgba(
      20,
      168,
      90,
      0.15
    );
}

.beta-pill span {
  font-size: 9px;
}

.hero-text h1 {
  margin: 0;

  max-width: 600px;

  font-size:
    clamp(
      48px,
      5.2vw,
      73px
    );

  line-height: 1.03;

  letter-spacing: -3px;
}

.hero-text h1 span {
  color: var(--green);

  font-style: italic;
  font-weight: 800;
}

.hero-text p {
  max-width: 550px;

  margin:
    26px 0 0;

  font-size: 18px;

  line-height: 1.7;

  color: var(--muted);
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}


/* =========================
   STORE / BETA BADGES
========================= */

.store-row {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 24px;
}

.store-badge {
  min-width: 150px;

  border-radius: 12px;

  background: #05070b;

  color: white;

  padding:
    10px 16px;

  display: flex;

  flex-direction: column;

  gap: 2px;
}

.store-badge small {
  font-size: 8px;

  letter-spacing: 0.4px;

  opacity: 0.78;
}

.store-badge strong {
  font-size: 17px;

  font-weight: 700;
}

.beta-store {
  background:
    linear-gradient(
      135deg,
      #10213e,
      #0c315e
    );

  border:
    1px solid
    rgba(
      74,
      146,
      255,
      0.35
    );
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
  position: relative;

  min-height: 540px;
}

.circle-decoration {
  position: absolute;

  border-radius: 50%;

  border: 2px solid;

  opacity: 0.55;
}

.circle-one {
  width: 42px;
  height: 42px;

  right: 26px;
  top: 72px;

  border-color: var(--blue);
}

.circle-two {
  width: 34px;
  height: 34px;

  right: 68px;
  bottom: 110px;

  border-color: var(--green);
}


/* =========================
   PHONE MOCKUPS
========================= */

.phone {
  position: absolute;

  width: 250px;

  min-height: 485px;

  border-radius: 38px;

  padding:
    32px 18px 22px;

  background: white;

  border:
    9px solid #111820;

  box-shadow:
    0 32px 70px
    rgba(
      11,
      35,
      73,
      0.24
    ),
    inset
    0 0 0 1px
    #dce4ef;
}

.phone::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 9px;

  transform:
    translateX(-50%);

  width: 84px;
  height: 19px;

  border-radius:
    0 0 13px 13px;

  background: #111820;
}

.phone h3 {
  margin:
    7px 0 18px;

  font-size: 22px;
}

.phone-label {
  margin:
    0 0 10px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 700;
}

.phone-calendar {
  left: 40px;
  top: 25px;

  transform: rotate(4deg);

  z-index: 4;
}

.phone-ranking {
  right: 8px;
  top: 85px;

  width: 225px;

  min-height: 420px;

  transform: rotate(7deg);

  z-index: 3;
}


/* =========================
   RACE PREVIEW
========================= */

.race-preview {
  display: flex;

  gap: 10px;

  align-items: center;

  margin:
    10px 0;

  padding: 10px;

  border-radius: 14px;

  background: #f7faff;

  border:
    1px solid #e8eef7;
}

.race-preview
> div:last-child {
  min-width: 0;
}

.race-preview strong {
  display: block;

  font-size: 11px;
}

.race-preview small {
  display: block;

  color: var(--muted);

  font-size: 9px;

  margin-top: 3px;
}

.race-preview em {
  display: block;

  color: var(--green);

  font-size: 9px;

  font-style: normal;
  font-weight: 800;

  margin-top: 5px;
}

.date-box {
  flex:
    0 0 42px;

  height: 48px;

  border-radius: 11px;

  border:
    1px solid
    var(--border);

  display: grid;

  place-items: center;

  align-content: center;
}

.date-box strong {
  font-size: 17px;
}

.date-box span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 800;
}


/* =========================
   RANKING PREVIEW
========================= */

.ranking-tabs {
  display: flex;

  justify-content: space-between;

  gap: 6px;

  margin-bottom: 12px;

  font-size: 9px;

  color: var(--muted);
}

.ranking-tabs .active {
  color: var(--blue);

  font-weight: 900;

  border-bottom:
    2px solid
    var(--blue);

  padding-bottom: 4px;
}

.ranking-row {
  display: grid;

  grid-template-columns:
    26px 1fr auto;

  align-items: center;

  gap: 6px;

  padding:
    11px 8px;

  border-bottom:
    1px solid
    #edf1f7;

  font-size: 10px;
}

.ranking-row.highlight {
  margin:
    2px 0;

  border-radius: 9px;

  border-bottom: none;

  background: var(--green-soft);

  color: #087d42;
}


/* =========================
   FEATURES
========================= */

.features {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin:
    -12px auto 0;

  padding:
    34px 26px;

  background: white;

  border:
    1px solid
    var(--border);

  border-radius: 26px;

  box-shadow: var(--shadow);

  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  position: relative;

  z-index: 5;
}

.feature {
  padding:
    10px 26px;

  text-align: center;
}

.feature
+ .feature {
  border-left:
    1px solid
    var(--border);
}

.feature-icon {
  width: 54px;
  height: 54px;

  margin:
    0 auto 16px;

  border-radius: 17px;

  display: grid;

  place-items: center;

  color: white;

  font-size: 25px;

  box-shadow:
    0 10px 20px
    rgba(
      10,
      40,
      84,
      0.1
    );
}

.feature-icon.green {
  background:
    linear-gradient(
      135deg,
      #34c978,
      #0da451
    );
}

.feature-icon.blue {
  background:
    linear-gradient(
      135deg,
      #3a91ef,
      #1769e0
    );
}

.feature-icon.purple {
  background:
    linear-gradient(
      135deg,
      #a978ff,
      #7953dd
    );
}

.feature-icon.orange {
  background:
    linear-gradient(
      135deg,
      #ffc266,
      #f39b30
    );
}

.feature h3 {
  margin: 0;

  font-size: 17px;
}

.feature p {
  margin:
    9px auto 0;

  max-width: 220px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.55;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  text-align: center;

  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;

  color: var(--blue);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 1.2px;

  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;

  font-size: 31px;

  letter-spacing: -0.8px;
}

.section-description {
  max-width: 620px;

  margin:
    11px auto 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}

.heading-line {
  width: 48px;
  height: 4px;

  margin:
    14px auto 0;

  border-radius: 99px;

  background: var(--green);
}


/* =========================
   SHOWCASE
========================= */

.showcase {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin: 0 auto;

  padding:
    72px 0 28px;
}

.showcase-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 24px;
}

.showcase-card {
  position: relative;

  overflow: hidden;

  min-height: 560px;

  padding: 28px;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius);

  background:
    linear-gradient(
      180deg,
      rgba(
        255,
        255,
        255,
        0.95
      ),
      rgba(
        247,
        250,
        255,
        0.98
      )
    );
}

.showcase-card:first-child {
  background:
    linear-gradient(
      180deg,
      #f7fff9 0%,
      #f5fbf8 100%
    );
}

.showcase-title {
  font-size: 20px;
  font-weight: 900;
}

.green-text {
  color: var(--green);
}

.blue-text {
  color: var(--blue);
}

.showcase-card
> p {
  margin:
    7px 0 20px;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.55;
}


/* =========================
   WEB RACES
========================= */

.web-race-list {
  display: flex;

  flex-direction: column;

  gap: 9px;

  margin-top: 20px;
}

.web-race {
  display: flex;

  align-items: center;

  gap: 13px;

  background: white;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  padding: 12px;

  box-shadow:
    0 6px 18px
    rgba(
      25,
      54,
      94,
      0.05
    );
}

.featured-race {
  border-color:
    rgba(
      20,
      168,
      90,
      0.55
    );

  box-shadow:
    0 10px 25px
    rgba(
      20,
      168,
      90,
      0.09
    );
}

.web-race-date {
  width: 54px;

  min-height: 62px;

  flex:
    0 0 54px;

  border-radius: 14px;

  background: var(--blue-soft);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}

.web-race-date strong {
  font-size: 20px;

  line-height: 1;
}

.web-race-date span {
  margin-top: 5px;

  color: var(--blue);

  font-size: 9px;
  font-weight: 900;
}

.web-race-info {
  flex: 1;

  min-width: 0;

  display: flex;

  flex-direction: column;
}

.web-race-info strong {
  color: var(--text);

  font-size: 14px;
  font-weight: 900;
}

.web-race-info small {
  margin-top: 4px;

  color: var(--text);

  font-size: 11px;
  font-weight: 800;
}

.web-race-info
> span:not(
  .race-status
) {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
}

.race-status {
  width: fit-content;

  margin-bottom: 5px;

  padding:
    3px 6px;

  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 7px;
  font-weight: 900;

  letter-spacing: 0.4px;
}

.calendar-note {
  display: flex;

  gap: 9px;

  align-items: flex-start;

  margin-top: 16px;

  padding:
    12px 14px;

  border-radius: 14px;

  background: var(--green-soft);
}

.calendar-note span {
  width: 22px;
  height: 22px;

  flex:
    0 0 22px;

  border-radius: 8px;

  display: grid;

  place-items: center;

  background: white;

  color: var(--green);

  font-size: 12px;
  font-weight: 900;
}

.calendar-note p {
  margin: 0;

  color: #397052;

  font-size: 11px;

  line-height: 1.55;
}


/* =========================
   RANKING DEMO
========================= */

.ranking-demo {
  width:
    min(
      310px,
      100%
    );

  margin-top: 22px;

  padding: 22px;

  border-radius: 26px;

  background: white;

  border:
    1px solid
    var(--border);

  box-shadow:
    0 15px 30px
    rgba(
      26,
      54,
      93,
      0.08
    );
}

.ranking-demo h3 {
  margin:
    0 0 12px;

  text-align: center;

  font-size: 22px;
}


/* =========================
   BENEFITS
========================= */

.benefits {
  list-style: none;

  position: absolute;

  right: 28px;
  bottom: 58px;

  width: 210px;

  padding: 0;
  margin: 0;
}

.benefits li {
  position: relative;

  padding-left: 30px;

  margin:
    17px 0;

  font-size: 13px;

  line-height: 1.5;
}

.benefits li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: -2px;

  width: 22px;
  height: 22px;

  border-radius: 8px;

  display: grid;

  place-items: center;

  background: var(--blue-soft);

  color: var(--blue);

  font-weight: 900;
}

.coming-soon-note {
  position: absolute;

  left: 28px;
  bottom: 24px;

  padding:
    8px 11px;

  border-radius: 10px;

  background: var(--blue-soft);

  color: var(--blue);

  font-size: 10px;
  font-weight: 800;
}


/* =========================
   COMMUNITY
========================= */

.community {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin:
    12px auto 0;

  padding: 30px;

  border-radius: 26px;

  border:
    1px solid
    #dcefe3;

  background:
    linear-gradient(
      90deg,
      #f1fbf5,
      #ffffff 48%,
      #f7fbff
    );

  display: grid;

  grid-template-columns:
    1.15fr
    repeat(
      3,
      1fr
    );

  align-items: center;

  gap: 28px;
}

.community-label,
.section-label {
  display: inline-block;

  color: var(--green);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 1.2px;
}

.community h2 {
  margin:
    7px 0 0;

  font-size: 31px;

  line-height: 1.12;
}

.community h2 span {
  color: var(--green);
}

.community-item {
  border-left:
    1px solid
    #d7e7de;

  padding-left: 24px;
}

.community-item strong {
  font-size: 15px;
}

.community-item p {
  margin:
    7px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.5;
}


/* =========================
   RUNNER TOOLS
========================= */

.runner-tools {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin: 0 auto;

  padding:
    72px 0 10px;
}

.runner-tools-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 16px;
}

.runner-tool {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  padding: 20px;

  display: flex;

  align-items: flex-start;

  gap: 15px;

  box-shadow:
    0 7px 22px
    rgba(
      20,
      51,
      96,
      0.05
    );
}

.runner-tool
> span {
  width: 48px;
  height: 48px;

  flex:
    0 0 48px;

  border-radius: 15px;

  display: grid;

  place-items: center;

  background: var(--blue-soft);

  font-size: 22px;
}

.runner-tool strong {
  color: var(--text);

  font-size: 15px;
  font-weight: 900;
}

.runner-tool p {
  margin:
    6px 0 0;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.55;
}


/* =========================
   ABOUT
========================= */

.about {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin:
    70px auto 0;

  padding: 60px;

  border-radius: 30px;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(
        41,
        127,
        238,
        0.15
      ),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #0d1c37,
      #10284d
    );

  color: white;
}

.about-content {
  max-width: 700px;
}

.about
.section-label {
  color: #6be49b;
}

.about h2 {
  margin:
    10px 0 20px;

  font-size: 42px;

  line-height: 1.08;

  letter-spacing: -1px;
}

.about p {
  max-width: 640px;

  color: #c7d2e4;

  font-size: 16px;

  line-height: 1.7;
}

.beta-message {
  margin-top: 24px;

  max-width: 560px;

  padding:
    16px 18px;

  border-radius: 16px;

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.beta-message strong {
  color: #71eba3;

  font-size: 13px;
  font-weight: 900;
}

.beta-message span {
  color: #d4ddeb;

  font-size: 12px;

  line-height: 1.5;
}


/* =========================
   DOWNLOAD
========================= */

.download {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin:
    26px auto 0;

  padding:
    30px 42px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #1769e0,
      #0755cd
    );

  color: white;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  box-shadow:
    0 20px 40px
    rgba(
      23,
      105,
      224,
      0.22
    );
}

.download-label {
  display: inline-block;

  margin-bottom: 8px;

  color: #bcd5ff;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.9px;
}

.download h2 {
  margin: 0;

  font-size: 28px;
}

.download p {
  max-width: 620px;

  margin:
    7px 0 0;

  color: #dbe9ff;

  font-size: 14px;

  line-height: 1.55;
}

.download-actions {
  flex:
    0 0 auto;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;
}

.download-actions small {
  color: #d9e7ff;

  font-size: 9px;
}

.download-button {
  min-height: 50px;

  padding:
    0 22px;

  border-radius: 14px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  background: white;

  color: var(--blue);

  font-weight: 900;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.download-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px
    rgba(
      0,
      0,
      0,
      0.15
    );
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 36px;

  padding:
    48px 0 22px;

  border-top:
    1px solid
    var(--border);
}

.footer-grid {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    1fr
    1.2fr;

  gap: 40px;
}

.footer p,
.footer a {
  color: var(--muted);

  font-size: 13px;

  line-height: 1.7;
}

.footer a {
  display: block;

  margin:
    4px 0;
}

.footer a:hover {
  color: var(--blue);
}

.footer h4 {
  margin:
    0 0 12px;

  font-size: 14px;
}

.footer-beta {
  display: inline-block;

  margin-top: 10px;

  padding:
    6px 9px;

  border-radius: 9px;

  background: var(--blue-soft);

  color: var(--blue);

  font-size: 9px;
  font-weight: 900;
}

.footer-bottom {
  width:
    min(
      1180px,
      calc(100% - 36px)
    );

  margin:
    38px auto 0;

  padding-top: 20px;

  border-top:
    1px solid
    var(--border);

  text-align: center;

  color: #8994a6;

  font-size: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

  .nav {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
  }


  /* Logo */

  .logo-image-link .brand-logo {
    width: 160px !important;

    max-width: 160px !important;
    max-height: 58px !important;
  }

  .footer-logo .footer-brand-logo {
    width: 170px !important;

    max-width: 170px !important;
    max-height: 62px !important;
  }


  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;

    padding-top: 48px;
  }

  .beta-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text h1,
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .store-row {
    justify-content: center;
  }

  .hero-visual {
    width:
      min(
        620px,
        100%
      );

    margin: 0 auto;
  }

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

  .feature
  + .feature {
    border-left: none;
  }

  .feature:nth-child(even) {
    border-left:
      1px solid
      var(--border);
  }

  .feature:nth-child(n + 3) {
    border-top:
      1px solid
      var(--border);

    padding-top: 28px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    min-height: 0;
  }

  .benefits {
    position: static;

    width: auto;

    margin-top: 24px;
  }

  .coming-soon-note {
    position: static;

    width: fit-content;

    margin-top: 20px;
  }

  .community {
    grid-template-columns:
      repeat(
        3,
        1fr
      );
  }

  .community
  > div:first-child {
    grid-column:
      1 / -1;

    text-align: center;
  }

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

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


/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {

  .button-small {
    display: none;
  }

  .nav-container {
    min-height: 66px;
  }


  /* Logo */

  .logo-image-link .brand-logo {
    width: 145px !important;

    max-width: 145px !important;
    max-height: 52px !important;
  }

  .footer-logo .footer-brand-logo {
    width: 155px !important;

    max-width: 155px !important;
    max-height: 56px !important;
  }


  .hero-content {
    width:
      min(
        100% - 28px,
        1180px
      );

    padding-top: 36px;
  }

  .beta-pill {
    font-size: 9px;
  }

  .hero-text h1 {
    font-size: 44px;

    letter-spacing: -2px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 500px;

    transform:
      scale(0.9);

    transform-origin:
      top center;
  }

  .phone-calendar {
    left: 4%;
  }

  .phone-ranking {
    right: 2%;
  }

  .features {
    width:
      min(
        100% - 28px,
        1180px
      );

    grid-template-columns: 1fr;

    padding:
      14px 22px;
  }

  .feature,
  .feature:nth-child(n + 3) {
    border: none;

    border-top:
      1px solid
      var(--border);

    padding:
      24px 0;
  }

  .feature:first-child {
    border-top: none;
  }

  .showcase {
    width:
      min(
        100% - 28px,
        1180px
      );

    padding-top: 52px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-description {
    font-size: 13px;
  }

  .showcase-card {
    min-height: 0;

    padding: 22px;
  }

  .ranking-demo {
    width: 100%;
  }

  .benefits {
    position: static;

    width: auto;

    margin-top: 24px;
  }

  .coming-soon-note {
    position: static;

    margin-top: 18px;
  }

  .community {
    width:
      min(
        100% - 28px,
        1180px
      );

    grid-template-columns: 1fr;

    padding: 26px;
  }

  .community
  > div:first-child {
    grid-column: auto;
  }

  .community-item {
    border-left: none;

    border-top:
      1px solid
      #d7e7de;

    padding:
      18px 0 0;
  }

  .runner-tools {
    width:
      min(
        100% - 28px,
        1180px
      );

    padding-top: 52px;
  }

  .runner-tools-grid {
    grid-template-columns: 1fr;
  }

  .about {
    width:
      min(
        100% - 28px,
        1180px
      );

    padding:
      38px 26px;
  }

  .about h2 {
    font-size: 34px;
  }

  .download {
    width:
      min(
        100% - 28px,
        1180px
      );

    padding: 26px;

    flex-direction: column;

    text-align: center;
  }

  .download-actions {
    width: 100%;
  }

  .download-button {
    width: 100%;
  }

  .footer-grid {
    width:
      min(
        100% - 28px,
        1180px
      );

    grid-template-columns: 1fr;
  }
}


/* =========================
   MOBILE PEQUEÑO
========================= */

@media (max-width: 520px) {

  .logo-image-link .brand-logo {
    width: 130px !important;
    max-width: 130px !important;
    max-height: 48px !important;
  }

  .footer-logo .footer-brand-logo {
    width: 145px !important;
    max-width: 145px !important;
    max-height: 52px !important;
  }

  .hero-content {
    padding-top: 28px;
    padding-bottom: 15px;
    gap: 5px;
  }

  .beta-pill {
    margin-bottom: 15px;
    padding: 7px 10px;
  }

  .hero-text h1 {
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1.6px;
  }

  .hero-text p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 46px;
  }

  .store-row {
    margin-top: 18px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
    padding: 9px 14px;
  }

  .hero-visual {
    min-height: 350px;
    margin-top: 8px;

    transform: scale(0.66);
    transform-origin: top center;

    width: 145%;
    margin-left: -22.5%;
  }

  .phone-calendar {
    left: 12%;
    top: 15px;
  }

  .phone-ranking {
    right: 10%;
    top: 70px;
  }

  .web-race {
    padding: 10px;
  }

  .web-race-date {
    width: 48px;
    flex-basis: 48px;
    min-height: 58px;
  }

  .web-race-date strong {
    font-size: 18px;
  }

  .web-race-info strong {
    font-size: 13px;
  }

  .web-race-info small {
    font-size: 10px;
  }

  .calendar-note {
    padding: 11px;
  }

  .runner-tool {
    padding: 16px;
  }

  .runner-tool > span {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .about p {
    font-size: 14px;
  }

  .download h2 {
    font-size: 25px;
  }
}


/* =========================================================
   PÁGINAS LEGALES
========================================================= */

.legal-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 68px 0 90px;
}


/* =========================
   LEGAL HERO
========================= */

.legal-hero {
  max-width: 820px;
  margin-bottom: 48px;
}

.legal-hero .section-label {
  color: var(--green);
}

.legal-hero h1 {
  margin: 10px 0 18px;

  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;

  color: var(--text);
}

.legal-hero > p {
  max-width: 720px;
  margin: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.7;
}

.legal-update {
  display: inline-block;

  margin-top: 18px;

  padding: 7px 11px;

  border-radius: 999px;

  background: var(--blue-soft);
  color: var(--blue);

  font-size: 11px;
  font-weight: 800;
}


/* =========================
   LEGAL LAYOUT
========================= */

.legal-layout {
  display: grid;

  grid-template-columns:
    230px
    minmax(0, 1fr);

  gap: 56px;

  align-items: start;
}


/* =========================
   ÍNDICE LEGAL
========================= */

.legal-index {
  position: sticky;
  top: 110px;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface);

  display: flex;
  flex-direction: column;

  gap: 4px;

  box-shadow:
    0 8px 24px
    rgba(20, 51, 96, 0.05);
}

.legal-index strong {
  margin-bottom: 10px;

  color: var(--text);

  font-size: 13px;
  font-weight: 900;
}

.legal-index a {
  padding: 7px 8px;

  border-radius: 8px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.35;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.legal-index a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}


/* =========================
   CONTENIDO LEGAL
========================= */

.legal-content {
  width: 100%;
  max-width: 820px;
}

.legal-section {
  scroll-margin-top: 110px;

  padding: 0 0 34px;
  margin-bottom: 34px;

  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  margin: 0 0 16px;

  color: var(--text);

  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.legal-section h3 {
  margin: 24px 0 10px;

  color: var(--text);

  font-size: 16px;
  line-height: 1.4;
}

.legal-section p {
  margin: 0 0 14px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.8;
}

.legal-section ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}

.legal-section li {
  margin: 7px 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}

.legal-section strong {
  color: var(--text);
}


/* =========================
   AVISOS LEGALES
========================= */

.legal-notice,
.legal-highlight {
  margin: 18px 0 22px;

  padding: 18px 20px;

  border-radius: 16px;
}

.legal-notice {
  background: var(--blue-soft);

  border:
    1px solid
    rgba(23, 105, 224, 0.14);
}

.legal-notice strong {
  color: var(--blue);

  font-size: 13px;
}

.legal-notice p {
  margin: 6px 0 0;

  color: #47668f;
}

.legal-highlight {
  background: var(--green-soft);

  border:
    1px solid
    rgba(20, 168, 90, 0.16);
}

.legal-highlight h3 {
  margin: 0 0 7px;

  color: #087d42;

  font-size: 16px;
}

.legal-highlight p {
  margin: 0;

  color: #397052;
}

.legal-contact-button {
  margin-top: 8px;
}


/* =========================
   LEGAL TABLET
========================= */

@media (max-width: 900px) {

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-index {
    position: static;

    display: grid;

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

  .legal-index strong {
    grid-column: 1 / -1;
  }
}


/* =========================
   LEGAL MOBILE
========================= */

@media (max-width: 720px) {

  .legal-page {
    width: min(100% - 28px, 1180px);

    padding: 42px 0 60px;
  }

  .legal-hero {
    margin-bottom: 30px;
  }

  .legal-hero h1 {
    font-size: 38px;
    letter-spacing: -1.3px;
  }

  .legal-hero > p {
    font-size: 15px;
  }

  .legal-index {
    grid-template-columns: 1fr;

    padding: 16px;
  }

  .legal-index strong {
    grid-column: auto;
  }

  .legal-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 13px;
  }

  .legal-notice,
  .legal-highlight {
    padding: 16px;
  }
}