
/* --------------------
   RESET
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #011627);
  color: #fff;
}

html{
    scroll-behavior: smooth;
}

/* --------------------
   CONTAINER
-------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --------------------
   HEADER
-------------------- */
/* Hacemos que header cree un contexto de apilamiento y esté por encima */
.site-header {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  position: relative;    /* importante */
  z-index: 9999;         /* suficientemente alto para quedar encima de todo */
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 100px;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover{
    color: #ff0000;
    font-weight: 700;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 10001; /* encima del nav para poder cerrarlo */
}
.menu-toggle span {
  background: white;
  height: 3px;
  margin: 4px 0;
  width: 25px;
  border-radius: 3px;
}

/* --------------------
   TITULOS
-------------------- */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0;
  font-weight: 600;
}

/* --------------------
   TARJETAS QUINIELAS
-------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.glass-card {
  /*background: rgba(255,255,255,0.06);*/
  background-color: #011627;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease;
  position: relative; /* importante para controlar z-index */
  z-index: 1;         /* dejamos abajo respecto al header/nav */
}
.glass-card:hover {
  transform: translateY(-5px);
}
.card-logo {
  max-width: 80px;
  margin-bottom: 1rem;
}
.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f8df00;
  margin-bottom: 1rem;
}
.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn {
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  text-align: center;
}
.btn.whatsapp { background: #25D366; }
.btn.blue { background: #2c5364; }

.btn.whatsapp:hover{
    background-color: #38ee7b;
}
.btn.blue:hover{
    background-color: #9e2626;
}

/* --------------------
   TARJETAS TRANSFERENCIAS
-------------------- */
.bank-card {
  background: linear-gradient(135deg, #fdfdfd, #ffffff);
  border-radius: 15px;
  padding: 1.5rem;
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 15px rgba(224, 224, 224, 0.3);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
}
.bank-card:hover { transform: scale(1.02); }
.bank-header img { max-width: 80px; margin-bottom: 1rem; }
.bank-number { font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 0.5rem; font-weight: 400; }
.bank-holder { font-size: 1rem; opacity: 0.8; font-weight: 700; }

/* --------------------
   NAV RESPONSIVE (FIX)
   -> Nav tendrá z-index muy alto y ancho controlado para no quedar debajo
-------------------- */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 1rem;
    left: 1rem;
    background: rgba(6,10,20,0.95);
    padding: 0.75rem;
    border-radius: 12px;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    z-index: 10002; /* MUY alto para sobreponerse a tarjetas */
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    list-style: none;
  }
  .menu-toggle { display: flex; }
  .site-nav.active { display: block; }
}

/* Pequeño ajuste visual para evitar que el menú tape el contenido al abrir:
   si quieres, puedes agregar un pequeño espacio en la parte superior del main */
.main-offset {
  padding-top: 10px;
}

/* --------------------
   SECCIÓN REGLAMENTO
-------------------- */
.rules-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.rules-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease both;
    
}


.rules-list {
    list-style: decimal;
    padding-left: 1.2rem;
}

.rules-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

h4{
    text-align: center;
    font-weight: 300;
}

/* Animación de entrada */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*BOLSA INICIAL*/

/* Bolsa Inicial */
/*.bolsa-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.bolsa-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-width: 600px;
    margin: 0 auto;
}

.bolsa-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Botón */
/*.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ff4b4b, #ff0000);
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255,0,0,0.4);
}

/* Modal Imagen */
/*.modal {
    display: none; /* Oculto por defecto */
    /*position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}*/

/*.modal-contenido {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}*/

/* Botón cerrar */
/*.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover {
    color: #ff4b4b;
}*/

/* ===== Bolsa Inicial ===== */
.bolsa-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem auto;
    text-align: center;
}


.bolsa-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-width: 600px;
    margin: 0 auto;
}

.bolsa-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #fffc4b, #00ff00);
    color: rgb(0, 0, 0);
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255,0,0,0.4);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.cerrar {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cerrar:hover {
    color: #ff4b4b;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/*FOOTER*/

.footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-link {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* Fondo del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Contenedor del Modal */
.modal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    margin: auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Texto con Scroll Interno */
.modal-texto {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Barra de Scroll Personalizada */
.modal-texto::-webkit-scrollbar {
    width: 6px;
}
.modal-texto::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 10px;
}
.modal-texto::-webkit-scrollbar-track {
    background: transparent;
}

/* Títulos */
.modal-content h2 {
    color: #ffcc00;
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-top: 1rem;
    color: #ffcc00;
    font-size: 1.1rem;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f1f1;
}

/* Botón cerrar */
.cerrar-modal {
    color: #ffcc00;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.cerrar-modal:hover {
    color: white;
}

.fecha-actualizacion {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #bbb;
}


/* Botón flotante de WhatsApp con animación */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: pulso 1.5s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp img {
    width: 40px;
    height: 40px;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Animación de pulso */
@keyframes pulso {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Canvas a pantalla completa */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* no bloquea clics */
    z-index: 9999;
}




