/* 🎨 Tipografía global */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&display=swap');

/* 🎨 Variables */
:root {
  --bg-dark: #0f172a;
  --bg-alt: rgba(15, 23, 42, 0.95);
  --accent: #3b82f6;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
}

/* 🔹 Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

/* 🔹 Body */
body {
  margin: 0;
  padding-top: 0px; /* compensar header fijo */
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://raw.githubusercontent.com/JhondyDario/SuperStreamersArena/main/media/backgrounds/fondo0.png') no-repeat center center;
  background-size: cover;
  filter: blur(12px) brightness(0.6);
  z-index: -1;
}

/* 🔹 Headings */
h1, h2, h3, .brand-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--text-light);
}

h2 {
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 12px;
}

/* 🔹 Layout */
.container, .wrap {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 🚀 Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  padding: 10px 0;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo { height: 40px; }

.brand-title {
  font-size: 1.3rem;
  color: #fff;
}

/* 🔹 Navegación */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.site-nav ul li a:hover { color: var(--accent); }

/* 🌌 Secciones */
.section.wrap,
.about-box,
.media-section {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.section { padding: 40px 0; }

.text-box {
  background: rgba(255,255,255,0.02);
  padding: 18px;
  border-radius: 12px;
}

.about-text p,
.media-container h2 { color: var(--text-light); }

/* 🎠 Carousel */
.carousel, .video-wrapper {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1024 / 500; /* 🔹 Ajusta automáticamente el alto según la proporción */
  border-radius: 12px;
  overflow: hidden;
  background: #061022;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* 🔹 Contenedor general del carrusel */
.carousel {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* 🔹 Imagen de cada slide */
.carousel img.slide {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 se ven completas sin deformarse */
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background: #000; /* evita bordes transparentes visibles */
}

.carousel img.slide.active { opacity: 1; }

/* ⬅️➡️ Flechas */
.carousel-controls button.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.carousel-controls button.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-controls button.prev { left: 12px; }
.carousel-controls button.next { right: 12px; }

/* ⭕ Dots */
.carousel-controls .dots {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.carousel-controls .dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-controls .dots .dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* 🎥 Video */
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 🗂 Media */
.media-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.media-left, .media-right {
  flex: 1 1 550px;
  max-width: 550px;
}

/* 📌 Footer */
.site-footer {
  text-align: center;
  padding: 30px 15px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-muted);
  border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.social-icons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform .3s, filter .3s;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* 📷 Logos flotantes */
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 100px 0 40px 0; /* ↑ margen superior más grande para bajar los logos */
}

.logo-main {
  width: 320px;
  max-width: 80%;
  animation: float-center 4s ease-in-out infinite;
}

.logo-side {
  width: 200px;
  max-width: 40%;
  opacity: .9;
  animation: float-up 4s ease-in-out infinite;
}

.espaciado { margin-top: 2rem; }

/* Animaciones */
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-center {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

/* 🔹 Caja de contenido (Donaciones y Contactos) */
.content-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: left;
  margin: 10px;
  flex: 1;
}

/* 🔹 Separación solo para características */
.features-box p {
  margin-bottom: 12px;
}


.social-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .brand-title { font-size: 1.1rem; }
  .logo-main { width: 200px; }
  .logo-side { width: 120px; }
  .logos-container { margin-top: 140px; }
}

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .carousel, .video-wrapper {
    aspect-ratio: 16 / 9; /* 🔹 formato más ancho en móvil */
    height: auto;
  }
  .carousel img.slide { object-fit: contain; }
  .logo-main { width: 140px; }
  .logo-side { display: none; }
  .site-nav ul { gap: 0.8rem; }
  .site-nav a { font-size: 14px; }
  .carousel-controls button.carousel-btn { width: 36px; height: 36px; font-size: 22px; }
  .carousel-controls .dots .dot { width: 10px; height: 10px; }
  .logos-container { margin-top: 140px; }
}

/* 📱 Corrección de ancho y márgenes en móviles (contact page) */
body.contact-page, 
.contact-section, 
.contact-grid, 
.content-box {
  overflow-x: hidden;
  max-width: 100%;
}
