/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #ffffff;
  text-decoration: none;
}

/* ================= HEADER L1 MAX ================= */
header {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 8px 24px;
  background: linear-gradient(180deg, #ef233c 0%, #111827 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 35, 60, 0.35);
}

.title-header {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.prelogo {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logodef {
  display: block;
}

.logo2 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ================= CONTENEDOR STREAM ================= */
.main-frame {
  width: 92%;
  max-width: 960px;
  margin: 24px auto 16px;
  flex: 1;
}

.subiframe {
  width: 100%;
  margin: 0 auto;
  padding: 6px;
  border-radius: 13px;
  background: #1f2937;
  border: 1px solid rgba(239, 35, 60, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.preframe {
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: #000000;
}

#embedIframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000000;
}

/* ================= BOTÓN L1 MAX ================= */
#btnIframe {
  width: 100%;
  margin: 8px 0 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #ef233c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#btnIframe:hover {
  background: #ff304f;
  transform: translateY(-1px);
}

#btnIframe:active {
  transform: scale(0.99);
}

.centerfull {
  width: 100%;
  text-align: center;
}

.margin-top-2 {
  margin-top: 1.2rem;
}

/* ================= FOOTER ================= */
footer {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(180deg, #111827 0%, #ef233c 100%);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}

.redes > li {
  list-style: none;
}

.red-item {
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.92;
}

.red-item:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ================= MÓVIL ================= */
@media (max-width: 768px) {
  header {
    min-height: 54px;
    padding: 10px 14px 8px 16px;
  }

  .title-header {
    font-size: 1.05rem;
  }

  .prelogo {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .main-frame {
    width: 96%;
    max-width: 100%;
    margin: 16px auto 12px;
  }

  .subiframe {
    padding: 4px;
    border-radius: 11px;
  }

  .preframe {
    border-radius: 8px;
  }

  #btnIframe {
    padding: 8px 10px;
    font-size: 13.5px;
    border-radius: 7px;
  }

  footer {
    min-height: auto;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    text-align: center;
  }

  .footer-title,
  .red-item {
    font-size: 0.78rem;
  }
}