body[data-page="favoritos"] .favorites-page {
  color: #edf4ff;
}

body[data-page="favoritos"] .favorites-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  min-height: 260px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(47, 143, 255, 0.42);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 48%, rgba(18, 100, 196, 0.28), transparent 36%),
    radial-gradient(ellipse at 9% 100%, rgba(194, 49, 70, 0.13), transparent 38%),
    linear-gradient(112deg, rgba(3, 16, 33, 0.98), rgba(6, 25, 48, 0.96) 62%, rgba(5, 18, 35, 0.99));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body[data-page="favoritos"] .favorites-page-hero::before {
  position: absolute;
  top: 50%;
  right: -5rem;
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(61, 151, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(61, 151, 255, 0.025), 0 0 0 60px rgba(61, 151, 255, 0.018);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

body[data-page="favoritos"] .favorites-hero-copy,
body[data-page="favoritos"] .favorites-hero-count {
  position: relative;
  z-index: 1;
}

body[data-page="favoritos"] .favorites-hero-copy .eyebrow {
  margin: 0;
  color: #489cff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page="favoritos"] .favorites-page-hero h1 {
  max-width: 11ch;
  margin: 12px 0 0;
  color: #f4f7ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

body[data-page="favoritos"] .favorites-page-hero .hero-text {
  max-width: 720px;
  margin: 16px 0 0;
  color: #a9bfdc;
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}

body[data-page="favoritos"] .favorites-hero-count {
  display: grid;
  justify-items: center;
  align-content: center;
  width: clamp(142px, 15vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(75, 153, 239, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(32, 101, 174, 0.34), rgba(4, 19, 37, 0.94) 72%);
  box-shadow: inset 0 0 0 9px rgba(65, 134, 211, 0.045), 0 20px 42px rgba(0, 0, 0, 0.2);
}

body[data-page="favoritos"] .favorites-hero-count > span,
body[data-page="favoritos"] .favorites-hero-count > small {
  color: #9ab4d3;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="favoritos"] .favorites-hero-count > strong {
  margin: 3px 0;
  color: #f5f8ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

body[data-page="favoritos"] .favorites-hero-count > small {
  color: #71b4ff;
  font-size: 0.58rem;
}

body[data-page="favoritos"] .favorites-page .section-heading {
  margin: 0 0 12px;
}

body[data-page="favoritos"] .favorites-page .section-heading .eyebrow {
  color: #499fff;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

body[data-page="favoritos"] .favorites-page .section-heading h2 {
  margin-top: 5px;
  color: #f0f5ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
}

body[data-page="favoritos"] .favorites-limit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(62, 132, 203, 0.33);
  border-radius: 17px;
  background: linear-gradient(105deg, rgba(10, 33, 59, 0.94), rgba(5, 19, 36, 0.92));
}

body[data-page="favoritos"] .favorites-limit-card .eyebrow {
  margin: 0 0 5px;
  color: #64aaff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="favoritos"] .favorites-limit-card h2 {
  margin: 0;
  color: #eff5ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: 1.25rem;
}

body[data-page="favoritos"] .favorites-limit-card .section-text {
  margin: 5px 0 0;
  color: #9cb4d1;
  font-size: 0.78rem;
}

body[data-page="favoritos"] .favorites-limit-card .button {
  min-height: 42px;
  border-color: rgba(75, 145, 221, 0.4);
  border-radius: 11px;
  background: rgba(17, 54, 92, 0.56);
  color: #cfe5ff;
  white-space: nowrap;
}

body[data-page="favoritos"] .favorites-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
  gap: 12px;
}

body[data-page="favoritos"] .favorite-summary-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(57, 123, 190, 0.35);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(20, 95, 175, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(10, 31, 55, 0.96), rgba(4, 17, 32, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 16px 30px rgba(0, 0, 0, 0.13);
}

body[data-page="favoritos"] .favorite-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(119, 160, 203, 0.15);
}

body[data-page="favoritos"] .favorite-summary-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

body[data-page="favoritos"] .favorite-summary-photo {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(77, 157, 238, 0.45);
  border-radius: 50%;
  background: #102844;
  object-fit: cover;
}

body[data-page="favoritos"] .favorite-summary-identity .eyebrow {
  margin: 0 0 4px;
  color: #62aaff;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="favoritos"] .favorite-summary-identity h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #eff5ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

body[data-page="favoritos"] .favorite-summary-identity h3 a {
  color: inherit;
  text-decoration: none;
}

body[data-page="favoritos"] .favorite-summary-identity h3 a:hover {
  color: #73bcff;
}

body[data-page="favoritos"] .favorite-summary-head > .favorite-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 10px;
  border-color: rgba(255, 195, 81, 0.36);
  border-radius: 10px;
  background: rgba(103, 74, 20, 0.16);
  color: #ffdf9b;
  font-size: 0.65rem;
}

body[data-page="favoritos"] .favorite-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding-top: 13px;
}

body[data-page="favoritos"] .favorite-summary-metrics > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 10px;
  background: rgba(2, 13, 27, 0.46);
}

body[data-page="favoritos"] .favorite-summary-metrics span {
  overflow: hidden;
  color: #8fa9c8;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="favoritos"] .favorite-summary-metrics strong {
  overflow-wrap: anywhere;
  color: #f2f7ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

body[data-page="favoritos"] .favorite-summary-metrics .favorite-summary-metric-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(95px, 0.3fr) minmax(0, 1fr);
  align-items: center;
}

body[data-page="favoritos"] .favorite-summary-metrics .favorite-summary-metric-wide strong {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
}

body[data-page="favoritos"] .favorites-chart-card {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(58, 125, 193, 0.34);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 28, 50, 0.95), rgba(4, 17, 32, 0.97));
}

body[data-page="favoritos"] .favorites-chart-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(119, 160, 203, 0.15);
}

body[data-page="favoritos"] .favorites-chart-toolbar .section-text {
  margin: 0 0 6px;
  color: #9bb3d1;
  font-size: 0.76rem;
}

body[data-page="favoritos"] .favorites-chart-toolbar > div:first-child > strong {
  color: #74b6ff;
  font-size: 0.7rem;
}

body[data-page="favoritos"] .favorites-chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body[data-page="favoritos"] .favorite-chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(78, 132, 188, 0.31);
  border-radius: 999px;
  background: rgba(8, 27, 48, 0.8);
  color: #c2d6ef;
  font-size: 0.64rem;
  cursor: pointer;
}

body[data-page="favoritos"] .favorite-chart-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #328ef6;
}

body[data-page="favoritos"] .favorites-chart-mount {
  min-width: 0;
  padding-top: 14px;
}

body[data-page="favoritos"] .favorites-chart-empty {
  margin: 0;
  padding: 24px 12px;
  color: #9cb4d1;
  text-align: center;
}

body[data-page="favoritos"] .favorites-page-frame .pilot-position-chart-scroll {
  border-radius: 12px;
  background: rgba(2, 13, 26, 0.34);
}

body[data-page="favoritos"] .favorites-page-frame .pilot-position-chart {
  max-width: 100%;
}

body[data-page="favoritos"] .favorites-empty-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 270px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(58, 125, 193, 0.36);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(24, 105, 190, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(9, 28, 50, 0.95), rgba(4, 17, 32, 0.97));
  text-align: center;
}

body[data-page="favoritos"] .favorites-empty-card .eyebrow {
  margin: 0;
  color: #61aaff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body[data-page="favoritos"] .favorites-empty-card h2 {
  margin: 0;
  color: #f2f6ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

body[data-page="favoritos"] .favorites-empty-card .section-text {
  max-width: 520px;
  margin: 0;
  color: #9cb4d1;
  line-height: 1.6;
}

body[data-page="favoritos"] .favorites-empty-card .button {
  margin-top: 8px;
}

@media (max-width: 900px) {
  body[data-page="favoritos"] .favorite-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="favoritos"] .favorites-chart-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 760px) {
  body[data-page="favoritos"] .favorites-page-hero {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 12px;
    min-height: 190px;
    padding: 21px 15px;
    border-radius: 18px;
  }

  body[data-page="favoritos"] .favorites-page-hero h1 {
    max-width: 9ch;
    margin-top: 8px;
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  body[data-page="favoritos"] .favorites-page-hero .hero-text {
    margin-top: 10px;
    font-size: 0.74rem;
    line-height: 1.5;
  }

  body[data-page="favoritos"] .favorites-hero-count {
    width: 86px;
  }

  body[data-page="favoritos"] .favorites-hero-count > span {
    max-width: 58px;
    font-size: 0.47rem;
    text-align: center;
  }

  body[data-page="favoritos"] .favorites-hero-count > strong {
    font-size: 2.3rem;
  }

  body[data-page="favoritos"] .favorites-hero-count > small {
    font-size: 0.46rem;
  }

  body[data-page="favoritos"] .favorites-limit-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  body[data-page="favoritos"] .favorites-limit-card h2 {
    font-size: 1rem;
  }

  body[data-page="favoritos"] .favorites-limit-card .section-text {
    font-size: 0.69rem;
  }

  body[data-page="favoritos"] .favorites-limit-card .button {
    width: 100%;
  }

  body[data-page="favoritos"] .favorites-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body[data-page="favoritos"] .favorite-summary-card {
    padding: 12px;
    border-radius: 14px;
  }

  body[data-page="favoritos"] .favorite-summary-photo {
    flex-basis: 45px;
    width: 45px;
    height: 45px;
  }

  body[data-page="favoritos"] .favorite-summary-identity h3 {
    font-size: 0.77rem;
  }

  body[data-page="favoritos"] .favorite-summary-head > .favorite-toggle {
    width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 0;
  }

  body[data-page="favoritos"] .favorite-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="favoritos"] .favorite-summary-metrics > div {
    padding: 8px 7px;
  }

  body[data-page="favoritos"] .favorite-summary-metrics span {
    font-size: 0.48rem;
  }

  body[data-page="favoritos"] .favorite-summary-metrics strong {
    font-size: 0.79rem;
  }

  body[data-page="favoritos"] .favorite-summary-metrics .favorite-summary-metric-wide {
    grid-template-columns: minmax(80px, 0.45fr) minmax(0, 1fr);
  }

  body[data-page="favoritos"] .favorite-summary-metrics .favorite-summary-metric-wide strong {
    font-size: 0.62rem;
  }

  body[data-page="favoritos"] .favorites-chart-card {
    padding: 12px 9px;
    border-radius: 14px;
  }

  body[data-page="favoritos"] .favorites-chart-controls {
    gap: 5px;
  }

  body[data-page="favoritos"] .favorite-chart-toggle {
    min-height: 31px;
    padding: 5px 7px;
    font-size: 0.57rem;
  }

  body[data-page="favoritos"] .favorites-empty-card {
    min-height: 220px;
    border-radius: 15px;
  }
}
