* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #020617 100%);
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: #22c55e;
}

/* HEADER */
header {
  width: 100%;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.title-header {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.prelogo {
  width: 42px;
  height: 42px;
  transition: all 0.2s ease-in-out;
  border: 2px solid rgba(34, 197, 94, 0.75);
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prelogo:hover {
  transform: scale(1.05);
  border-color: #86efac;
}

.logodef {
  display: block;
  transform: translateY(0);
}

.logo2 {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* CONTENEDOR PRINCIPAL */
.main-frame {
  width: min(96%, 920px);
  margin: 10px auto 14px;
  flex: 1;
}

/* TITULO */
.title {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
  margin: 8px 0 10px;
  line-height: 1.25;
}

/* PLAYER */
.subiframe {
  width: 100%;
  margin: 10px auto 12px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

.preframe {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* BOTON */
#btnIframe {
  width: 100%;
  margin: 8px 0 0;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.22s ease;
}

#btnIframe:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  transform: translateY(-2px);
}

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

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

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

/* FOOTER */
footer {
  width: 100%;
  min-height: 54px;
  background-color: rgba(15, 23, 42, 0.97);
  color: #d1d5db;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(34, 197, 94, 0.25);
}

.footer-title {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
}

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

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

.red-item {
  color: inherit;
  font-size: 0.82rem;
  transition: color 0.15s ease-in-out;
}

.red-item:hover {
  color: #22c55e;
}

/* MOVIL */
@media (max-width: 768px) {
  header {
    height: 52px;
    padding: 0 10px;
  }

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

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

  .logo2 {
    width: 26px;
    height: 26px;
  }

  .main-frame {
    width: 98%;
    max-width: 100%;
    margin: 6px auto 10px;
  }

  .title {
    font-size: 1.18rem;
    margin: 6px 0 8px;
  }

  .subiframe {
    padding: 5px;
    border-radius: 13px;
    margin: 8px auto 10px;
  }

  .preframe {
    border-radius: 10px;
  }

  #btnIframe {
    margin-top: 7px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

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

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

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