body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg,
      #ff8000cc 20%,
      #00ff0db0 60%,
      #009dff99 80%);
  background-attachment: fixed;
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
}

.logo img {
  display: block;
  width: 230px;
  margin: 20px auto;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(80px);
  animation: aparecerLogo 2s forwards;
}

@keyframes aparecerLogo {
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 {
  margin: 20px 0;
}

h2{
  font-size: 60px;
}

h1 {
  font-size: 60px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  opacity: 0;
  transform: translateY(80px);
  animation: aparecerH1 2s forwards;
}

@keyframes aparecerH1 {
  to { opacity: 1; transform: translateY(0); }
}

h2 span, h3 span {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5);
  animation: bounceIn 1s ease forwards;
  animation-delay: 1s;
}

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.1); }
  80%  { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.flecha { position: relative; top: -8px; font-size: 60px; font-weight: 900; }

li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.btn-container {
  display: flex;
  justify-content: center; 
  gap: 10px;               
  flex-wrap: wrap;         
}

button {
  position: relative;
  bottom: 20px;
  height: 50px;
  font-weight: 900;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(80px);
  animation: aparecerButton 2s forwards;
}

@keyframes aparecerButton {
  to { opacity: 1; transform: translateY(0); }
}

button:hover {
  background-color: #0056b3;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: left;
  animation: scaleUp 0.8s ease forwards;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;   
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  line-height: 1;
  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;    
  transform: none; 
}

.close-btn:hover {
  color: #000;
}

.sorteo-items {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-wrap: wrap;         
  gap: 20px;               
  margin: 30px auto;       
  max-width: 1000px;   

  opacity: 0;
  transform: translateY(80px);
  animation: aparecerImgs 2s forwards;
}

@keyframes aparecerImgs {
  to { opacity: 1; transform: translateY(0); }
}

.sorteo-items img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.titulo_instrucciones{
    position: relative;
    top: -20px;
    text-align: center;
    font-size: 60px;
}

.intro-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease forwards;
}

.intro-popup {
  position: relative;
  overflow: hidden;
  font-size: 30px;
  background: rgb(253, 56, 56);
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.intro-popup img.bg-float {
  position: absolute;
  width: 50px;
  opacity: 0.7;
  z-index: 1; 
}

.float1 {
  top: 90%; left: 10%;
  animation: float1 6s infinite linear;
}
.float2 {
  top: 85%; left: 30%;
  animation: float2 7s infinite linear;
}
.float3 {
  top: 95%; left: 50%;
  animation: float3 5s infinite linear;
}
.float4 {
  top: 80%; left: 70%;
  animation: float4 6.5s infinite linear;
}
.float5 {
  top: 92%; left: 85%;
  animation: float5 8s infinite linear;
}

.float6 {
  top: 88%; left: 15%;
  animation: float6 6.8s infinite linear;
}

.float7 {
  top: 87%; left: 60%;
  animation: float7 7.2s infinite linear;
}

.float8 {
  top: 90%; left: 75%;
  animation: float8 6.5s infinite linear;
}

@keyframes float1 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(20px,-50px) rotate(90deg); }
  50% { transform: translate(-10px,-100px) rotate(180deg); }
  75% { transform: translate(30px,-150px) rotate(270deg); }
  100% { transform: translate(0,-200px) rotate(360deg); }
}

@keyframes float2 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(-30px,-40px) rotate(45deg); }
  50% { transform: translate(20px,-90px) rotate(90deg); }
  75% { transform: translate(-15px,-140px) rotate(135deg); }
  100% { transform: translate(0,-180px) rotate(180deg); }
}

@keyframes float3 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(15px,-60px) rotate(60deg); }
  50% { transform: translate(-25px,-120px) rotate(120deg); }
  75% { transform: translate(10px,-160px) rotate(180deg); }
  100% { transform: translate(0,-200px) rotate(240deg); }
}

@keyframes float4 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(-20px,-50px) rotate(90deg); }
  50% { transform: translate(25px,-110px) rotate(180deg); }
  75% { transform: translate(-15px,-150px) rotate(270deg); }
  100% { transform: translate(0,-190px) rotate(360deg); }
}

@keyframes float5 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(30px,-60px) rotate(45deg); }
  50% { transform: translate(-20px,-120px) rotate(90deg); }
  75% { transform: translate(25px,-160px) rotate(180deg); }
  100% { transform: translate(0,-200px) rotate(360deg); }
}

@keyframes float6 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(25px,-50px) rotate(60deg); }
  50% { transform: translate(-20px,-100px) rotate(120deg); }
  75% { transform: translate(15px,-150px) rotate(240deg); }
  100% { transform: translate(0,-200px) rotate(360deg); }
}

@keyframes float7 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(-25px,-60px) rotate(45deg); }
  50% { transform: translate(30px,-120px) rotate(90deg); }
  75% { transform: translate(-15px,-160px) rotate(180deg); }
  100% { transform: translate(0,-210px) rotate(360deg); }
}

@keyframes float8 {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(30px,-70px) rotate(60deg); }
  50% { transform: translate(-25px,-130px) rotate(120deg); }
  75% { transform: translate(20px,-180px) rotate(240deg); }
  100% { transform: translate(0,-220px) rotate(360deg); }
}

.intro-popup * {
  position: relative;
  z-index: 2;
}

.btn-container button,
.intro-btn {
  width: auto;        
  min-width: 120px;   
  max-width: 200px;   
  flex: 0 0 auto;    
}

.intro-btn {
  margin-top: 20px;
  padding: 0.7rem 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.intro-btn:hover {
  background: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}

.tab-btn.active {
  background: #007bff;
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #ddd;
}

.tab-content {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}

.tab-content.active {
  display: block;
}

#lightboxOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

#lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}


/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  h1, h2 {
    font-size: 50px;
  }

  .sorteo-items img {
    width: 150px;
  }

  .titulo_instrucciones {
    font-size: 40px;
  }

  button, .intro-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}

@media (max-width: 768px) {
  h1, h2 {
    font-size: 40px;
  }

  h3.flecha {
    font-size: 50px;
  }

  .sorteo-items {
    flex-direction: column;
    gap: 15px;
  }

  .sorteo-items img {
    width: 120px;
  }

  .titulo_instrucciones {
    font-size: 30px;
  }

  .btn-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  button, .intro-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  h1, h2 {
    font-size: 30px;
  }

  h3.flecha {
    font-size: 40px;
  }

  .sorteo-items img {
    width: 100px;
  }

  .titulo_instrucciones {
    font-size: 24px;
  }

  button, .intro-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .popup, .intro-popup {
    max-width: 90%;
    padding: 1rem;
  }

  .tabs {
    flex-direction: column;
    gap: 5px;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

