:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e6e6e6;
  --gray-600: #555555;
  --gray-800: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Contenedor general */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
}

.header__search {
  margin-left: auto;
}

.search {
  width: 220px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search:focus {
  border-color: var(--white);
}

/* ── Hero ───────────────────────────────── */
.main {
  padding-top: 64px;
  padding-bottom: 80px;
}

.hero {
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 56px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__text {
  margin-top: 18px;
  max-width: 520px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gray-600);
}

/* ── Secciones ──────────────────────────── */
.section {
  margin-top: 56px;
}

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

.section__title {
  font-size: 1.4rem;
  font-weight: 700;
}

.section__count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* ── Grid de eventos ────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.event {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  font-weight: 300;
  color: var(--gray-600);
  border: 1px dashed var(--gray-200);
}

.event__thumb {
  position: relative;
  background: var(--black);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.event:hover .event__thumb img {
  opacity: 1;
  transform: scale(1.04);
}

.event__status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 4px 10px;
}

.event__body {
  padding: 18px;
}

.event__category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.event__title {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Reproductor ────────────────────────── */
.player-main {
  padding-top: 40px;
}

.player__video {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--gray-200);
}

.player__video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.player__info {
  padding: 28px 0 8px;
}

.player__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 5px 12px;
  margin-bottom: 14px;
}

.player__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.player__hint {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray-600);
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer__brand {
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer__text {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 720px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .header__search {
    margin-left: 0;
    width: 100%;
  }

  .search {
    width: 100%;
  }

  .nav {
    gap: 20px;
  }

  .main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero {
    padding: 12px 0 40px;
    margin-bottom: 40px;
  }
}