/* --- ESTILOS GENERALES DEL CONTENEDOR --- */
#generador-numeros {
    font-family: 'Arial', sans-serif;
    padding: 20px;
    border: none;
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent; 
}
#generador-numeros h2, #generador-numeros h3 {
    text-align: center;
    color: #333;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* --- BARRA DE PROGRESO  --- */
#progreso-texto {
    
    color: #000000; 
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}
#progreso-texto strong {
    color: #007bff; 
}
.gnu-progress-bar-container {
    width: 100%;
    height: 28px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative; 
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); 
}
.gnu-progress-bar {
    height: 100%;
    background-color: #28a745; 
    text-align: center;
    font-weight: bold;
    transition: width 0.6s ease;
    border-radius: 4px;
    white-space: nowrap;
    
}


.gnu-progress-bar-container span.porcentaje-centrado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: #000000; 
    font-size: 1em; 
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8), 0 0 1px rgba(255, 255, 255, 0.5); 
    z-index: 10; 
    padding: 0;
}

.gnu-progress-bar.alert {
    background-color: #dc3545;
}


#paquetes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.paquete-card {
    background: #ffffff; 
    border-radius: 20px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    width: 100%;
    max-width: 300px;
    text-align: center;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; 
    display: flex; 
    flex-direction: column;
}
.paquete-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); 
}

/* Card Popular (Ribbon y Colores Destacados) */
.paquete-popular {
    border: none; 
    background: linear-gradient(to bottom, #ffe082 0%, #ffc107 100%); 
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4); 
}
.paquete-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(to right, #ffeb3b, #ffc107); 
    color: #333;
    padding: 5px 18px;
    font-weight: bold;
    font-size: 0.9em;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: 10;
    border-bottom-left-radius: 10px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}
.paquete-popular .card-header {
    background: none; 
}
.paquete-popular .card-header .header-destacado,
.paquete-popular .card-header .header-star {
    color: #8b6e00; 
}


/* Card Header */
.card-header {
    padding: 20px 10px 10px;
    background-color: transparent; 
}
.header-star {
    font-size: 2.8em; 
    display: block;
    margin-bottom: 8px;
    color: #fdd835; 
}
.header-destacado {
    font-size: 1.3em;
    font-weight: 800; 
    color: #333;
    margin: 0;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* Card Body (Precios y Chances) */
.card-body {
    padding: 15px 20px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.body-chances {
    background: #f0e6fa; 
    padding: 18px; 
    border-radius: 12px; 
    margin-bottom: 18px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1); 
}
.paquete-popular .body-chances {
    background: #fff8e1; 
}
.chances-count {
    display: block;
    font-size: 1.6em; 
    font-weight: bold;
    color: #7b1fa2; 
    margin-bottom: 5px;
}
.chances-price {
    display: block;
    font-size: 2.5em; 
    font-weight: 900;
    color: #333;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
}

/* Bonus Section */
.body-bonus {
    background: linear-gradient(to right, #4CAF50, #8bc34a); 
    padding: 15px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2); 
    margin-top: 10px; 
    font-weight: 600;
}
.bonus-title {
    display: block;
    font-size: 1.15em;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.bonus-detail {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 3px;
}
.body-bonus small {
    display: block;
    font-size: 0.85em;
    font-style: italic;
    opacity: 0.9;
}

/* Botón Elegir */
.btnElegir {
    width: 100%;
    padding: 18px 20px; 
    background: linear-gradient(to right, #ff9800, #ff5722); 
    color: white;
    border: none;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 0 0 20px 20px; 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2); 
    margin-top: auto; 
}
.btnElegir:hover {
    background: linear-gradient(to right, #ff5722, #ff9800); 
    transform: translateY(-2px); 
}
.btnElegir:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#seleccion-manual {
    margin-top: 50px; 
    padding: 30px 20px;
    border-top: 1px dashed #e0e0e0; 
    background-color: #fcfcfc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    color: #333; /* Color general oscuro para legibilidad */
}
#seleccion-manual h3 {
    margin-top: 0 !important;
    border-top: none;
    padding-top: 0;
    font-size: 1.3em; 
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}
.manual-controls {
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 15px; 
    padding: 10px 0;
    flex-wrap: wrap; 
}
.manual-controls label {
    display: block;
    margin-bottom: 0; 
    font-size: 1.05em;
    font-weight: 600;
    white-space: nowrap; 
    color: #333; /* Asegura que la etiqueta sea oscura */
}
.manual-controls #cantidad {
    padding: 12px; 
    width: 80px; 
    text-align: center;
    border-radius: 8px; 
    margin-right: 0; 
    border: 1px solid #a0c0e0; 
    font-size: 1.1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.manual-controls #btnGenerarManual {
    padding: 12px 25px; 
    background: linear-gradient(to right, #5c6bc0, #3f51b5); 
    color: white;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.manual-controls #btnGenerarManual:hover {
    background: linear-gradient(to right, #3f51b5, #5c6bc0); 
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}
.manual-controls #btnGenerarManual:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


#resultado-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    text-align: center;
}
#mensaje-error {
    font-weight: bold;
    color: #d32f2f; 
    background-color: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}
#mensaje-exito {
    font-weight: bold;
    color: #388e3c; 
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    #paquetes-container {
        flex-direction: column; 
        align-items: center;
    }
    .paquete-card {
        max-width: 350px; 
    }
    .manual-controls {
        flex-direction: column;
        gap: 10px;
    }
    .manual-controls label {
        margin-bottom: 5px;
    }
    .manual-controls #cantidad {
        width: 100%;
        max-width: 150px;
        margin-right: 0;
    }
    .manual-controls #btnGenerarManual {
        width: 100%;
        max-width: 250px;
    }
}