/* Reset básico */
.rifa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem 2rem 1rem;
}

.rifa-card {
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0 auto;
    color: #fff;
    border-radius: 20px;
}

.rifa-title {
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffcf23;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px #222;
}

.rifa-opportunity {
    font-weight: 900;
    font-size: 3.6rem;
    color: #b9c2cb;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px #222;
    text-transform: uppercase;
    line-height: 0.9;
}

/* Filas con fondo rgba como en el diseño original */
.rifa-row {
    margin-bottom: 1.5rem;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    background-color: rgba(0,0,0,0.18);
    padding: 1.5rem;
}

.rifa-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.rifa-col-img {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rifa-img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.rifa-col-info {
    flex: 1;
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
}

.rifa-prize {
    font-weight: bold;
    font-style: italic;
    font-size: 4.5rem;
    color: #ffcf23;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px #222;
    text-transform: uppercase;
    line-height: 0.9;
}

.rifa-desc {
    font-size: 1.1rem;
    color: #b9c2cb;
    line-height: 1.3;
}

/* Mantener amarillo del precio */
.rifa-price span {
    color: #ffcf23;
}

/* Lotería y cuenta regresiva */
.rifa-loteria {
    font-size: 2.2rem;
    color: #b9c2cb;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 1px 1px 6px #222;
}

.rifa-countdown {
    font-size: 1.9rem;
    color: #b9c2cb;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 6px #222;
}

.rifa-countdown span {
    color: #ffcf23;
}

/* Sección inferior con números */
.rifa-bottom-section {
    background-color: rgba(0,0,0,0.18);
}

.rifa-number-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.rifa-number-label {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.rifa-num-selector {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

/* Caja de número ligeramente más alta para acomodar up/down */
.rifa-num-box {
    background-color: #374552;
    color: #b9c2cb;
    font-size: 2.5rem;
    font-weight: 900;
    border-radius: 12px;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-right: 50px;
}

/* número central */
.rifa-num-box span, .rifa-num-box > span {
    font-size: 2.8rem;
    font-weight: 900;
    display: inline-block;
}

/* Flechas arriba/abajo dentro de la misma caja (posición derecha) */
.rifa-arrow {
    background: none;
    border: none;
    color: #b9c2cb;
    font-size: 1.1rem;
    cursor: pointer;
    position: absolute;
    right: -30px;
    padding: 5px;
    transition: color 0.2s;
}

.rifa-arrow:hover {
    color: #ffd700;
}

.rifa-arrow-up {
    top: 6px;
}

.rifa-arrow-down {
    bottom: 6px;
}

/* Botones del lado derecho */
.rifa-right-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rifa-comprar-boleta,
.rifa-agregar-mas {
    background: #ffcf23;
    color: #222;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rifa-agregar-mas {
    background: transparent;
    border: 2px solid #ffcf23;
    color: #ffcf23;
}

.rifa-comprar-boleta:hover,
.rifa-agregar-mas:hover {
    filter: brightness(1.05);
}

.rifa-comprar-icon,
.rifa-agregar-icon {
    background: #222;
    color: #ffcf23;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Números elegidos */
.rifa-numeros-elegidos {
    color: #b9c2cb;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 0;
    margin: 0 auto 0 auto;
    max-width: 600px;
    text-align: center;
}

/* Botones de acción finales */
.rifa-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}

.rifa-generar-btn {
    color: #b9c2cb;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
    width: 100%;
    justify-content: center;
}

.rifa-generar-btn:hover {
    color: #fff;
}

.rifa-finalizar-btn {
    background-color: #000;
    color: #ffcf23;
    font-size: 1.9rem;
    font-weight: 900;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-transform: uppercase;
    width: 100%;
    justify-content: center;
}

.rifa-footer {
    margin-top: 2rem;
    font-size: 1rem;
    color: #b9c2cb;
    text-align: center;
    text-shadow: 1px 1px 6px #222;
}

/* Responsive */
@media (max-width: 900px) {
    .rifa-row-top { 
        flex-direction: column; 
        padding: 1.5rem 0.5rem; 
    }
    
    .rifa-col-info { 
        padding-left: 0; 
        text-align: center;
    }
    
    .rifa-col-img { 
        margin-bottom: 1.5rem; 
    }
    
    .rifa-opportunity {
        font-size: 1.8rem;
    }
    
    .rifa-prize {
        font-size: 3rem;
    }
    
    .rifa-number-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rifa-right-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .rifa-container {
        padding: 5rem 0.5rem 1rem 0.5rem;
    }

    .rifa-generar-btn {
        font-size: 1rem;
    }

    .rifa-finalizar-btn {
        font-size: 1.2rem;
    }

    .rifa-numeros-elegidos {
        font-size: 0.8rem;
    }

    .rifa-title {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .rifa-loteria {
        font-size: 1.5rem;
    }

    .rifa-countdown {
        font-size: 1.1rem;
    }

    .rifa-countdown span {
        font-size: 1.3rem;
    }
    
    .rifa-card {
        padding: 1.5rem 0.5rem;
    }

    .rifa-comprar-boleta, .rifa-agregar-mas {
        font-size: 0.6rem;
    }
    
    .rifa-num-box {
        width: 55px;
        height: 45px;
        margin-left: 0px;
        margin-right: 20px;
    }

    .rifa-num-box span {
        font-size: 2rem;
    }
    
    .rifa-arrow-up {
        right: -28px;
        top: -4px;
    }
    
    .rifa-arrow-down {
        right: -28px;
        bottom: -4px;
    }
    
    .rifa-num-selector {
        gap: 10px;
    }

    .rifa-footer {
        font-size: 0.7rem;
    }
}

#rifa-datos-form .form-label {
    color: #ffcf23;
    font-weight: 600;
    font-size: 1rem;
}
#rifa-datos-form .custom-input {
    background-color: #131b23 !important;
    color: white !important;
    border: 2px solid #ffcf23 !important;
    border-radius: 8px !important;
    font-size: 1.1rem;
}
@media (max-width: 767px) {
    #rifa-datos-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.rifa-subtotal {
    text-align: center;
    margin: 0 auto 0 0;
}

.rifa-subtotal-valor {
    color: #20BF23; 
    font-weight: 900; 
    font-size: 2rem;
}

.rifa-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}
.rifa-dropdown-btn {
    width: 100%;
    cursor: pointer;
}
.rifa-dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
    z-index: 1000;
    border-radius: 8px;
    right: 0;
    left: 0;
}
.rifa-dropdown-content .dropdown-item {
    color: #fff;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #232b3a;
    cursor: pointer;
    font-size: 1.08rem;
    transition: background 0.2s;
}
.rifa-dropdown-content .dropdown-item:last-child {
    border-bottom: none;
}
.rifa-dropdown-content .dropdown-item:hover {
    background: #232b3a;
    color: #ffcf23;
}