/* =========================================
   ESTILOS ORIGINALES (RESTAURADOS)
   ========================================= */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Arial', sans-serif;
}

#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  pointer-events: none;
}

#fondo {
  position: relative;
  z-index: 1;
  margin: 50px 0;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  color: white;
  text-align: center;
  box-sizing: border-box;
}

#section {
  margin: 0;
  padding: 50px 30px;
  width: 100%;
  max-width: 100%;
  background-color: #121212;
  color: #fff;
  box-shadow: 0 0 40px #8a2be255;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  box-sizing: border-box;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  margin-bottom: 40px;
  height: auto;
  min-height: 100px;
  box-sizing: border-box;
  gap: 20px;
}

#header #logo {
  max-height: 100px;
  max-width: 250px;
  height: auto;
  flex-shrink: 0;
}

#nav {
  display: flex;
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

#nav button {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#nav button::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(270deg, #a020f0, #ff007f, #00c6ff, #a020f0);
  background-size: 600% 600%;
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.5s ease;
}

#nav button:hover {
  animation: glitch 0.5s infinite;
  transform: scale(1.08) translateY(-3px);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(160, 32, 240, 0.4);
}

#nav button:hover::before {
  opacity: 1;
  animation: glowMove 3s linear infinite;
}

.button-link { text-decoration: none; display: contents; }

@keyframes glowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glitch {
  0%    { text-shadow: 2px 0 #ff0000, -2px 0 #00ffea; }
  20%   { text-shadow: -2px 0 #ff0000, 2px 0 #00ffea; }
  40%   { text-shadow: 2px 2px #ff0000, -2px -2px #00ffea; }
  60%   { text-shadow: -2px -2px #ff0000, 2px 2px #00ffea; }
  80%   { text-shadow: 2px 0 #ff0000, -2px 0 #00ffea; }
  100% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffea; }
}

.glitch-title {
  position: relative;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-block;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  padding: 8px 20px;
  border-radius: 12px;
}

.glitch-title::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(270deg, #a020f0, #ff007f, #00c6ff, #a020f0);
  background-size: 600% 600%;
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.5s ease;
}

.event-item:hover .glitch-title {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 25px rgba(160, 32, 240, 0.4);
}

.event-item:hover .glitch-title::before {
  opacity: 1;
  animation: glowMove 3s linear infinite;
}

.event-expand {
  position: relative;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(160,32,240,0.15) 0%, rgba(0,198,255,0.1) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(160,32,240,0.4);
  border-top: none;
  border-radius: 0 0 20px 20px;
  opacity: 0;
  padding: 0 30px;
  transform: translateY(-30px);
  transition: max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.7s ease,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.9s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.event-expand.active {
  max-height: 380px;
  opacity: 1;
  padding: 50px 30px;
  transform: translateY(0);
}

.event-expand::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a020f0, #00c6ff, #ff007f, transparent);
  background-size: 200%;
  opacity: 0;
  animation: lineGlow 2s linear infinite;
}

.event-expand.active::before {
  opacity: 1;
  animation: lineSweep 1.2s ease-out forwards, lineGlow 3s linear infinite;
}

@keyframes lineSweep {
  0%    { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes lineGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.expand-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.event-expand.active .expand-content {
  opacity: 1;
  transform: translateY(0);
}

.expand-content h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 32px;
  margin: 0 0 18px 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #a020f0, #00c6ff, #ff007f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(160,32,240,0.6);
}

.btn-informes {
  position: relative;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 16px 50px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-informes::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #a020f0, #ff007f, #00c6ff, #a020f0);
  background-size: 400%;
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s;
  animation: glowMove 4s linear infinite;
}

.btn-informes:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 15px 35px rgba(160,32,240,0.5);
}
.btn-informes:hover::before {
  opacity: 1;
}

.content-wrapper { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; width: 100%; }
.section-gif { width: 300px; height: auto; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.section-text { flex: 1; min-width: 300px; font-size: 18px; line-height: 1.6; text-align: left; }
.social-icons { display: flex; gap: 20px; justify-content: center; margin: 30px 0; }
.social-icons img { width: 60px; height: 60px; transition: transform 0.3s ease; }
.social-icons img:hover { transform: scale(1.2); }
.custom-choreo { margin: 60px auto; max-width: 100%; padding: 0 20px; }
.custom-choreo h2 { font-size: 30px; margin-bottom: 40px; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.4); text-align: center; }
.event-images { display: flex; flex-direction: column; align-items: center; gap: 60px; margin-bottom: 80px; width: 100%; }
.event-item { position: relative; width: 90%; max-width: 1000px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.6); cursor: pointer; transition: all 0.4s ease; }
.event-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(160,32,240,0.4); }
.event-content { display: flex; align-items: center; background: linear-gradient(90deg, #1a1a1a 50%, transparent 100%); min-height: 320px; position: relative; }
.event-text { flex: 1; padding: 40px; color: white; z-index: 2; }
.event-text h3 { font-family: 'Share Tech Mono', monospace; font-size: 42px; text-transform: uppercase; margin: 0 0 15px 0; letter-spacing: 3px; }
.event-text p { font-size: 18px; line-height: 1.5; opacity: 0.9; }
.event-img { flex: 1; position: relative; overflow: hidden; }
.event-img::before { content: ''; position: absolute; left: 0; top: 0; width: 100px; height: 100%; background: linear-gradient(to right, #1a1a1a, transparent); z-index: 1; }
.event-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.event-item:hover .event-img img { transform: scale(1.08); }
.discover-text { font-size: 24px; font-weight: bold; color: #FFFFFF; margin: 40px 0; }
.shine-logo { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.shine-logo img { width: 100px; filter: drop-shadow(0 0 10px #a020f0); animation: pulse 2s infinite; }
.shine-logo p { font-size: 20px; color: #FFFFFF;}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
#footer { text-align: center; margin: 5px 0 20px; font-size: 14px; color: #fff; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
#creditos-btn { background: rgba(255,255,255,0.1); border: 1px solid #fff; color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.3s ease; }
#creditos-btn:hover { background: #a020f0; transform: scale(1.1); }

/* Intro Screen */
#intro-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  opacity: 1; transition: opacity 1.2s ease-out; pointer-events: all;
}
#intro-screen.fade-out { opacity: 0; pointer-events: none; }
#intro-video { max-width: 80%; max-height: 80%; object-fit: contain; }
#intro-video, #intro-screen img {
  animation: logoPulse 3s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 40px #a020f0) drop-shadow(0 0 80px #00c6ff);
}
@keyframes logoPulse { 0% { transform: scale(0.95); } 100% { transform: scale(1.05); } }
body.intro-active { overflow: hidden; }

/* =======================================================
   RESPONSIVE DESIGN (ARREGLO PARA MÓVIL)
   ======================================================= */

@media (max-width: 900px) {
  #header { flex-direction: column; padding: 20px; }
  #header #logo { max-width: 180px; margin-bottom: 15px; }
  #nav { justify-content: center; gap: 10px; width: 100%; }
  #nav button { min-width: 70px; font-size: 14px; padding: 10px; }
  
  .content-wrapper { flex-direction: column; text-align: center; }
  .section-text { text-align: center; }
  
  /* --- REGLAS NUEVAS PARA QUE LA IMAGEN SE VEA --- */
  .event-content { flex-direction: column-reverse; } /* Imagen Arriba, Texto Abajo */
  .event-img { width: 100%; height: 250px; } /* Altura fija para que la imagen aparezca */
  .event-text { text-align: center; padding: 30px; }
  
  /* Sombra de abajo hacia arriba en celular */
  .event-img::before { 
    width: 100%; height: 60px; 
    background: linear-gradient(to top, #1a1a1a, transparent); 
    top: auto; bottom: 0; left: 0; 
  }
}