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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f3f4f6;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* HEADER */

.header {
  width: 100%;
  background: linear-gradient(135deg, #161d2b 0%, #222d42 100%);
  border-bottom: 4px solid #f4c430;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.header-container {
  width: min(1180px, calc(100% - 32px));
  min-height: 105px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.header-title {
  color: #ffffff;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
}

.header-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

/* CONTENIDO PRINCIPAL */

.main-content {
  width: min(1180px, calc(100% - 32px));
  margin: 35px auto 60px;
}

.channel-intro {
  margin-bottom: 28px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  box-shadow: 0 7px 25px rgba(23, 32, 51, 0.07);
}

.channel-intro h1 {
  margin-bottom: 14px;
  color: #182033;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}

.description {
  color: #4b5565;
  font-size: 17px;
  line-height: 1.8;
}

.description a {
  color: #bd8500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.description a:hover {
  color: #966900;
}

/* REPRODUCTOR */

.player-section {
  margin-bottom: 45px;
}

.section-title,
.channels-title {
  margin-bottom: 18px;
  color: #182033;
  font-size: clamp(23px, 4vw, 31px);
  font-weight: 800;
  line-height: 1.3;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  border: 5px solid #ffffff;
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(14, 20, 33, 0.2);
}

.player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

/* TARJETAS */

.channels-section {
  width: 100%;
}

.channels-title {
  text-align: center;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.15);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-content {
  flex: 1;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-content h3 {
  margin-bottom: 10px;
  color: #182033;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 22px;
  color: #5b6473;
  font-size: 15px;
  line-height: 1.7;
}

.btn-watch {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4c430;
  color: #171717;
  border: 2px solid #f4c430;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn-watch:hover {
  background: #dcae18;
  border-color: #dcae18;
  transform: translateY(-2px);
}

.btn-watch:focus-visible,
.header-brand:focus-visible,
.red-item:focus-visible {
  outline: 3px solid #f4c430;
  outline-offset: 4px;
}

/* FOOTER */

.footer {
  width: 100%;
  margin-top: auto;
  padding: 27px 0;
  background: #161d2b;
  border-top: 4px solid #f4c430;
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.redes {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.red-item {
  min-height: 40px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.red-item:hover {
  background: #f4c430;
  color: #171717;
  border-color: #f4c430;
}

/* TABLET */

@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MÓVIL */

@media (max-width: 640px) {
  .header-container {
    min-height: 85px;
  }

  .header-brand {
    gap: 12px;
  }

  .header-logo {
    width: 60px;
    height: 60px;
  }

  .main-content {
    width: min(100% - 20px, 1180px);
    margin-top: 22px;
    margin-bottom: 40px;
  }

  .channel-intro {
    padding: 22px 18px;
    border-radius: 11px;
  }

  .description {
    font-size: 16px;
    line-height: 1.75;
  }

  .player-wrapper {
    border-width: 3px;
    border-radius: 10px;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-content {
    padding: 20px;
  }

  .footer-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .redes {
    justify-content: center;
    flex-wrap: wrap;
  }
}