/* =======================
   VARIABLES
======================= */
:root {
  --color-bg: #0b1020;
  --color-section: #121a33;
  --color-primary: #0055ff;
  --color-accent: #00aaff;
  --color-text: #e6e8ee;
  --color-muted: #9aa4b2;
}

/* Modo claro (opcional) */
.light-mode {
  --color-bg: #f4f6fb;
  --color-section: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #555;
}

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

/* =======================
   BASE
======================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fondo animado */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,170,255,0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,85,255,0.12), transparent 40%);
  animation: fondoAnimado 10s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes fondoAnimado {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Animación gamer */
.energy {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 45%, rgba(0,170,255,0.05), transparent 55%);
  animation: energyMove 6s linear infinite;
  z-index: -1;
}

@keyframes energyMove {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

/* =======================
   CONTENEDOR
======================= */
main {
  max-width: 900px;
  margin: auto;
}

/* =======================
   HEADER
======================= */
.main-header {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  padding: 30px 15px;
  color: white;
}

.logo {
  font-size: 2.4rem;
  margin: 0;
}

.slogan {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}

/* =======================
   BOTÓN EN VIVO
======================= */
.live-button {
  display: inline-block;
  margin: 25px auto;
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s;
}

.live-button.live {
  background: linear-gradient(90deg, #ff004c, #ff006a);
  box-shadow: 0 0 25px rgba(255, 0, 76, 0.7);
  animation: livePulse 1.5s infinite;
}

.live-button.offline {
  background: #555;
  box-shadow: none;
  cursor: default;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 10px rgba(255,0,76,.6); }
  50% { box-shadow: 0 0 30px rgba(255,0,76,1); }
  100% { box-shadow: 0 0 10px rgba(255,0,76,.6); }
}

.live-button:hover {
  transform: scale(1.05);
}

/* =======================
   STATS
======================= */
.stats {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 20px;
}

.stat span {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.stat p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =======================
   BANNER
======================= */
.banner img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0,170,255,.25);
  animation: fadeIn 1s ease;
}

/* =======================
   OFFLINE SCREEN
======================= */
.offline-screen {
  background: var(--color-section);
  padding: 40px 20px;
  border-radius: 20px;
  margin: 30px auto;
  max-width: 600px;
  animation: fadeIn 1.2s ease;
}

.offline-screen h2 {
  color: var(--color-accent);
}

.offline-msg {
  font-style: italic;
  color: var(--color-muted);
}

/* =======================
   SOBRE MÍ
======================= */
.about {
  padding: 30px 20px;
  background-color: var(--color-section);
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.about h2 {
  color: var(--color-accent);
}

.about p {
  max-width: 600px;
  margin: auto;
}

/* =======================
   REDES
======================= */
.social {
  padding: 30px 20px;
}

.social h2 {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.social-links a {
  color: white;
  text-decoration: none;
  background: var(--color-primary);
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  transition: transform .3s, background .3s, box-shadow .3s;
}

.social-links a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,170,255,.4);
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: var(--color-section);
  color: var(--color-muted);
  padding: 15px;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-accent);
}

/* =======================
   ANIMACIONES
======================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 600px) {
  .stats {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 2rem;
  }
}