

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
    color: #333;
}

nav {
    background-color: #001e80;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


.img-inicio {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

h1 {
    font-size: 36px;
    color: #001e80;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#acerca {
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#acerca h2 {
    font-size: 28px;
    color: #001e80;
    margin-bottom: 20px;
}

.premios {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.premio {
    text-align: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.premio img {
    width: 150px;  /* Asegura que todas las imágenes tengan el mismo tamaño */
    height: 150px;
    object-fit: cover; /* Hace que la imagen mantenga la proporción sin distorsionarse */
    border-radius: 8px;
    margin-bottom: 15px;
}

.premio h3 {
    color: #001e80;
    font-size: 24px;
    margin-bottom: 10px;
}

.premio ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.premio ul li {
    margin-bottom: 8px;
}

/* Estilos para la sección de Método de Pago */
#pago {
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

#pago h2 {
    font-size: 28px;
    color: #001e80;
    margin-bottom: 20px;
    text-align: center;
}

.pago-contenido {
    text-align: center;
}

.pago-contenido p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-pago {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-pago p {
    font-size: 16px;
    margin: 8px 0;
    color: #333;
}

/* Estilos para la sección de Contacto */
#contacto {
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

#contacto h2 {
    font-size: 28px;
    color: #001e80;
    margin-bottom: 20px;
    text-align: center;
}

.contacto-contenido {
    text-align: center;
}

.contacto-contenido p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-contacto a {
    color: #001e80;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.info-contacto a:hover {
    color: #0034b3;
}

.info-contacto p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.info-contacto i {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}


.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #127a39;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-icon i {
    font-size: 32px;
    color: white;
}

.whatsapp-icon:hover {
    background-color: #128C7E;
}


.arrow-up {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: #001e80;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-up i {
    font-size: 24px;
    color: white;
}

.arrow-up:hover {
    background-color: #0034b3;
}


#boletos {
    padding: 40px 20px;
    text-align: center;
}

input[type="text"], select {
    padding: 12px;
    width: 80%;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button[type="button"] {
    padding: 12px 20px;
    background-color: #001e80;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="button"]:hover {
    background-color: #0034b3;
}


#boletos {
    padding: 60px 20px;
    background: #ffffff;
}

#boletos h2 {
    color: #001e80;
    font-size: 30px;
    margin-bottom: 20px;
}

#busqueda {
    padding: 12px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    border: 2px solid #001e80;
    border-radius: 6px;
    font-size: 16px;
}

#listaBoletos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin: 30px auto;
    max-width: 1600px;
}

.boleto {
    background-color: #001e80;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.boleto:hover {
    background-color: #0034b3;
    transform: scale(1.05);
}

#paginacion {
    margin-top: 20px;
}

#paginacion button {
    background-color: #001e80;
    color: white;
    border: none;
    padding: 10px 16px;
    margin: 0 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#paginacion button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


#paginacion button:hover {
    background-color: #0034b3;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);  /* Color de fondo más oscuro */
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    color: #001e80;
    transition: color 0.3s;
}

.close:hover {
    color: #0034b3;
}

.modal-content h2 {
    font-size: 28px;
    color: #001e80;
    margin-bottom: 20px;
}

.modal-content form input {
    padding: 12px;
    margin: 10px 0;
    width: 80%;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal-content form button {
    padding: 12px 20px;
    background-color: #001e80;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content form button:hover {
    background-color: #0034b3;
}

.form-group {
    margin-bottom: 20px;
}

#selectorEstado {
    margin-top: 10px;
}

#apartarButton {
    display: block;
    width: 80%;
    margin: 20px auto;
}

#informacionText {
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* Estilo base para los elementos que queremos que aparezcan */
.fade-in {
    opacity: 1;
    transform: translateY(20px); /* Desplazamos un poco el elemento para darle un efecto de entrada */
    transition: opacity 4s ease-out, transform 4s ease-out;
}

/* Cuando el elemento está en vista, se muestra con opacidad 1 */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .premios {
        flex-direction: column;
        align-items: center;
    }
    .premio {
        width: 90%;
        margin-bottom: 20px;
    }
    #listaBoletos {
        grid-template-columns: repeat(5, 1fr);
        font-size: 12px;
    }
}

.seccion-rifa {
    background: linear-gradient(to bottom, #eaf1ff, #ffffff);
    padding: 60px 20px;
    text-align: center;
    color: #001e80;
}

.seccion-rifa h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffc107;
    
}

.seccion-rifa p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.seccion-rifa .premios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.premio {
    background-color: #ffffff;
    border: 3px solid #001e80;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 300px;
    text-align: center;
}

.premio img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.premio h3 {
    font-size: 22px;
    color: #001e80;
    margin-bottom: 10px;
}

.premio ul {
    list-style: none;
    padding: 0;
    font-size: 15px;
    color: #444;
    text-align: left;
}

.premio ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.premio ul li::before {
    content: "⭐";
    position: absolute;
    left: 0;
    color: #ffc107;
}

.metodo-pago {
    background-color: #f0f4ff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 750px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .metodo-pago h2 {
    text-align: center;
    color: #001e80;
    margin-bottom: 1rem;
  }
  
  
  .info-pago strong {
    color: #001e80;
  }
  
  .info-pago ul {
    margin-left: 1.2rem;
    list-style-type: disc;
  }
  
  .info-pago hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px dashed #ccc;
  }
  
  #totalPagar {
    font-weight: bold;
    color: #0034b3;
  }
  
  .info-pago {
    display: block;
    width: 100%;
    max-width: 550px;
    text-align: left;
    background: #ffffff;
    border: 2px solid #001e80;
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }
  

.info-pago p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
}

.info-pago p::before {
    font-size: 18px;
    color: #001e80;
}

.modal-content.tombola {
    text-align: center;
}

#cantidadTombola {
    padding: 10px;
    font-size: 18px;
    margin: 15px auto;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#resultadoTombola {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #001e80;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#resultadoTombola span {
    background: #ffc107;
    color: #001e80;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    animation: aparecer 0.4s ease;
}

@keyframes aparecer {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    #listaBoletos {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    #listaBoletos {
        grid-template-columns: repeat(4, 1fr);
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    button, input, select {
        width: 100% !important;
        font-size: 16px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .boleto {
        font-size: 13px;
        padding: 8px;
    }
}

.seccion-enfermedad {
    padding: 60px 20px;
    background: #ffffff;
    color: #333;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.contenedor-enfermedad {
    max-width: 800px;
    margin: 0 auto;
}

.seccion-enfermedad h2 {
    font-size: 32px;
    color: #001e80;
    margin-bottom: 20px;
}

.seccion-enfermedad p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}
.descargar-excel {
    background-color: transparent;
    color: transparent;
    border: transparent;
    padding: 5px 16px;
    font-size: 10px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 10px auto;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .submensaje-precio,
.submensaje-boletos {
  text-align: center;
  font-size: 1.2rem;
  color: #001e80;
  margin-top: 5px;
  font-weight: 500;
}

.submensaje-precio strong,
.submensaje-boletos strong {
  color: #d60000;
}
