:root {
  --black: #000;
  --dark: #111;
  --white: #fff;
  --silver: #ccc;
  --neon-blue: #ffffff;
  --neon-purple: #4d4d4d;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: var(--white);
  z-index: 1000;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--neon-blue);
}

.header-right {
  font-size: 0.9rem;
  gap: 0.5rem;
}

.bubbl-logo {
  height: 26px;
  width: auto;
  vertical-align: middle;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.preloader-logo {
  width: 200px;
  height: 200px;
  animation: zoom 5s ease-in-out infinite;
}

@keyframes zoom {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video,
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 0 2rem;
}

.hero h1 {
  font-family: 'Sequel Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero .highlight {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero .btn {
  background: var(--white);
  color: var(--black);
  padding: 1rem 2.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.4s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ===== CINTA ===== */
.ticker {
  background: var(--white);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: scroll 18s linear infinite;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
}

.ticker-content span {
  margin-right: 5rem;
  display: inline-block;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECCIONES ===== */
.events,
.about {
  padding: 8rem 0;
}

.section-title {
  font-family: 'Sequel Sans', sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* ===== GRID DE EVENTOS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  align-items: start;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: transparent;
  text-align: center;
}

.event-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.788);
  transition: 0.4s;
}

.event-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.event-info {
  text-align: center;
  margin-top: 1.5rem;
  width: 100%;
}

.event-info h3 {
  font-family: 'Sequel Sans', sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.event-info p {
  color: var(--white);
  font-size: 1rem;
  margin: 0.4rem 0;
}

/* ===== BOTONES EN EVENTOS ===== */
.event-info a {
  background: var(--white);
  color: var(--black);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.event-info a:hover {
  background: var(--neon-blue);
  color: var(--black);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* ===== ABOUT ===== */
.about-media {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-media video,
.about-media img {
  width: 100%;
  height: auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid #222;
}

.footer-logo {
  width: 60px;
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.social-icon:hover {
  filter: brightness(0) invert(0.9);
  transform: scale(1.1);
}

.copyright {
  color: var(--silver);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 8rem 1rem 6rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .events,
  .about {
    padding: 4rem 0;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ticker {
    font-size: 0.95rem;
  }
}
