:root {
  --brand: #00b894;
  --brand-dark: #019875;
  --ink: #12263a;
  --muted: #6b7c8f;
  --line: #e3e9f0;
  --bg: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 38, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page--home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.nav__links {
  display: flex;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--bg);
}

.nav__link--active {
  color: var(--brand-dark);
  background: rgba(0, 184, 148, 0.12);
}

.home {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 44px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, #0f2027, #12263a 55%, #1b3a5c);
  box-shadow: var(--shadow);
}

.hero__badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.2);
  color: #7ff0d4;
}

.hero__title {
  margin: 16px 0 10px;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.hero__text {
  margin: 0 0 24px;
  font-size: 16px;
  max-width: 46ch;
  opacity: 0.85;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.search__icon {
  font-size: 18px;
}

.search__input {
  flex: 1;
  border: none;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  padding: 10px 0;
}

.search__input:focus {
  outline: none;
}

.filtros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.filtro {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filtro__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.filtro__select {
  padding: 12px 38px 12px 14px;
  font-size: 15px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.filtro__select:focus {
  outline: none;
  border-color: var(--brand);
  background-color: rgba(255, 255, 255, 0.16);
}

.filtro__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filtro__select option {
  color: var(--ink);
}

.btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 20px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.comenzar {
  margin-top: 18px;
}

.comenzar .filtros {
  margin-top: 0;
}

.comenzar__btn {
  width: 100%;
  margin-top: 16px;
}

.section {
  margin-top: 44px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section__title {
  margin: 0;
  font-size: 22px;
}

.section__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(18, 38, 58, 0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 38, 58, 0.12);
}

.card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.card__tag--green {
  color: #019875;
  background: rgba(0, 184, 148, 0.14);
}

.card__tag--blue {
  color: #0868b8;
  background: rgba(9, 132, 227, 0.14);
}

.card__tag--orange {
  color: #c2691a;
  background: rgba(243, 156, 18, 0.16);
}

.card__title {
  margin: 14px 0 6px;
  font-size: 18px;
}

.card__text {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__status {
  font-size: 13px;
  font-weight: 600;
}

.card__status--live {
  color: var(--brand-dark);
}

.card__status--delay {
  color: #c2691a;
}

.card__time {
  font-size: 13px;
  color: var(--muted);
}

.favorito__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}

.favorito__link:hover {
  text-decoration: underline;
}

.favorito__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.15);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: #f5a623;
  transition: transform 0.15s, background 0.15s;
}

.favorito__star:hover {
  transform: scale(1.1);
  background: rgba(245, 166, 35, 0.25);
}

.home__empty {
  margin: 0;
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .hero__title {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .nav__inner {
    padding: 12px 16px;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .search {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .search__icon {
    display: none;
  }

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