/* ===== VARIABLES ===== */
:root {
  --negro: #0D0D0D;
  --rojo: #E8202A;
  --gris: #2A2A2A;
  --blanco: #FFFFFF;
  --rojo-hover: #ff2d38;
  --font-title: 'Barlow Condensed', 'Arial Black', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  background: var(--negro);
  color: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.nav--scrolled { background: rgba(13, 13, 13, 0.98); }
.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo svg { display: block; }
.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.nav__link:hover, .nav__link:focus { color: var(--blanco); }
.nav__link--cta {
  background: var(--rojo);
  color: var(--blanco);
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav__link--cta:hover { background: var(--rojo-hover); color: var(--blanco); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--gris);
  }
  .nav__menu--open { transform: translateY(0); }
  .nav__link { font-size: 1.1rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--rojo);
  color: var(--blanco);
}
.btn--primary:hover { background: var(--rojo-hover); }
.btn--outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn--outline:hover { border-color: var(--blanco); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232, 32, 42, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(232, 32, 42, 0.06) 0%, transparent 50%),
              var(--negro);
}
.hero__broadcast-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero__broadcast-waves span {
  position: absolute;
  border: 2px solid rgba(232, 32, 42, 0.15);
  border-radius: 50%;
  animation: broadcast 3s ease-out infinite;
}
.hero__broadcast-waves span:nth-child(1) { width: 300px; height: 300px; top: -150px; left: -150px; animation-delay: 0s; }
.hero__broadcast-waves span:nth-child(2) { width: 500px; height: 500px; top: -250px; left: -250px; animation-delay: 1s; }
.hero__broadcast-waves span:nth-child(3) { width: 700px; height: 700px; top: -350px; left: -350px; animation-delay: 2s; }

@keyframes broadcast {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero__isotipo {
  margin: 0 auto 32px;
  width: 120px;
  animation: fadeInUp 0.8s ease-out;
}
.hero__k { width: 100%; height: auto; }
.hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero__title-line { display: block; }
.text-red { color: var(--rojo); }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--rojo);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 24px;
}
.section--dark {
  background: var(--gris);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--rojo);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.about__lead {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.about__content p { margin-bottom: 12px; color: rgba(255, 255, 255, 0.8); }
.about__content strong { color: var(--rojo); }
.about__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}
.stat {
  text-align: center;
}
.stat__number {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 3rem;
  color: var(--rojo);
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__stats { justify-content: space-around; }
}

/* ===== CONTENT GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--negro);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.2s;
}
.card:hover {
  border-color: rgba(232, 32, 42, 0.4);
  transform: translateY(-4px);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon--twitch { background: rgba(145, 70, 255, 0.15); color: #9146FF; }
.card__icon--youtube { background: rgba(255, 0, 0, 0.12); color: #FF0000; }
.card__icon--podcast { background: rgba(232, 32, 42, 0.12); color: var(--rojo); }
.card__icon--series { background: rgba(255, 255, 255, 0.08); color: var(--blanco); }
.card__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.card__link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--rojo);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.card__link:hover { color: var(--rojo-hover); }

/* ===== EMBED ===== */
.embed-section {
  margin-top: 60px;
}
.embed-section__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.embed-section__title::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--rojo);
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.embed-wrapper {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--negro);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
}
.embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== SOCIAL GRID ===== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  background: var(--gris);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.3s;
}
.social-card:hover {
  transform: translateY(-4px);
  border-color: currentColor;
}
.social-card--twitch { color: #9146FF; }
.social-card--youtube { color: #FF0000; }
.social-card--kick { color: #53FC18; }
.social-card--instagram { color: #E4405F; }
.social-card--tiktok { color: #00f2ea; }
.social-card--facebook { color: #1877F2; }
.social-card__name {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--blanco);
}
.social-card__handle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== CONTACT ===== */
.contact {
  max-width: 500px;
  margin: 48px auto 0;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}
.contact__item a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.contact__item a:hover { color: var(--rojo); }

/* ===== FOOTER ===== */
.footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 480px) {
  .footer__content { flex-direction: column; gap: 12px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
